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

Explain the structure of a bdc sessions?

557


Is it possible to run host command from SAP environment? How do you run?

619


any one can tell me which is the tables can store in ddic plese dont say db02l,please give me different ways of resideing the tables ?

1985


Work most on which module: name a few tables?

598


What is the disadvantage of a call by reference? : abap modularization

605






Write syntax for message error (report)?

639


When the top-of-page event does get triggered?

685


What are the types of records that are transferred to sap r/3 and used by interfaces? : abap bdc

542


How is conversion of data types done between abap/4 & db layer?

638


how to Create reports in SD module such as sales order report, which covers all organization levels, delivery status, invoice status, shipping details and partner function details. The data will be extracted from VBAP, VBPA, VBAK, VBUP, VBFA, KNA1, LIPS, VBRP, MARA, VBEP and KONV tables. plz mention the detail coding Tahnks, Rahul

2873


What is append search help? : sap abap data dictionary

699


What happens when you post goods issue after delivery? How does the inventory get reduced after the delivery?

563


Does every abap/4 have a modular structure? : abap modularization

700


What is the difference between sum and collect?

891


What are the functions of lock objects?

705