Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to handle multiple line items in bdc??

Answer Posted / raju

Table control is used to handle multiple input records.
example for creating customer we use screen xd01.
initial screen we have address details,most of the fields on
this screen are fixed. But when you select payment
transactions you find customer bank details.Now we can see
customer can have multiple bank accounts (bank keys,bank
account no)In the table control row no for each record is
dynamic i.e for 1st record the fields are knbk-banks(01),
knabk-bankl(01)..here 01 specifies the row no and row no
keeps on increasing with every new record.

In bdc we declare a internal table t_knb1 type knb1 customer
bank details.

declare index
data v_index(2) type N.
declare string
data v_enam like bdcdata_fnam
loop at it_banks into wa_banks.
v_index = sy-tabix."loop counter

concatenate 'knbk-banks(' v_index ')'into v_fnam.
wa_bdcdata-fnam = v_fnam.
wa_bdcdata-fval = wa_banks-banks.
append wa_bdcdata to it_bdcdata.

repeat this procedure for all fields.

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is lock object ? : abap data dictionary

1054


What is the use of enqueue function module? : sap abap data dictionary

1046


What is a currency factoring technique?

1159


What are the advantages/ dis-advantages of logical databases?

917


Difference between sy-tabix and sy-index?

1280


What are the two ways for restricting the value range for a domain? : sap abap data dictionary

1201


WHAT ARE THE MANDATORY FIELDS TO BE FILLED FROM TABLES BAPIITEMIN, BAPIPARTNR, BAPIITEMEX, BAPICUCFG, BAPICUINS, BAPICUPRT, AND BAPICUVAL IN BAPI 'BAPI_QUOTATION_CREATEFROMDATA

2492


What are clustered tables?

1007


What are the objects of the abap dictionary or what types of objects can be created in the abap dictionary? : abap data dictionary

908


How to create user interfaces for lists?

960


How can we omit a leading sign and a leading zero in sapscript?

980


When was the sap abap being created?

1076


What is the table buffer? Which type of tables used this buffer?

975


what is code to upload cost centers through call trans. and procedure

2569


Name a few data dictionary objects? : abap data dictionary

1057