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 happens Update command is used without where clause ?

850


Mention what is alv programming in abap?

837


can anyone do BDC or BAPI for F-02 and F-04 transactions.If it LSMW also.Kindly let me know.

3402


what is the process of creating quotation using BAPIs.

1806


What is sap locking?

787


What are the different types of luws. What are they?

860


What are the table controls in bdc ? What is the difference between bdc and lsmw ?what is the difference between bdc and rfc ? : abap bdc

795


How would you set the formatting options statically and dynamically within a report?

875


What are the events in classical reports?

856


Select up to 1 row and select single difference ?

844


Which transaction code can I used to analyze the performance of ABAP program.?

863


What is cts and what do you know about it? : abap hr

943


What is the advantage of structures?

806


Why bapi need then bdc ? : abap bdc

762


Explain the Inportance of pa40? : abap hr

764