how to handle multiple line items in bdc??
Answers were Sorted based on User's Feedback
Answer / sainath
multiple records can be handled in BDC only through Table
control.If u need code for this please let me know.
|Is This Answer Correct ?||41 Yes||5 No|
Answer / balamurugan
LOOP AT IT_ITEM INTO WA_ITEM WHERE VBELN = WA_HEADER-VBELN.
INDX = INDX + 1.
CONCATENATE 'WA_SO2-MATNR('INDX')' INTO V_MATNR.
perform bdc_field using V_MATNR WA_ITEM-MATNR.
CONCATENATE 'WA_SO2-MENGE('INDX')' INTO V_MENGE.
perform bdc_field using V_MENGE WA_ITEM-MENGE.
perform bdc_field using BDC_OKCODE '/00'.
We can upload multiple line items Using table control.The
above code explain the same.
|Is This Answer Correct ?||5 Yes||1 No|
Answer / heramb
how we can put multiple line items in bdc
|Is This Answer Correct ?||2 Yes||2 No|
Answer / 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
data v_index(2) type N.
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|
How to create a check box/option button in a list?
THANKS ALL. i CLEARED THE INTERVIEW OF INFOSYS BASED ON THIS QUESTION SET. IT REALLY WORKS. LONG LIVE ALLINTERVIEW.COM
what is process code used in ale idocs ?
What are the things you did in ALV grid display?
what are SPA and GPA parameters?What the Purpose?Examples? under ABAP Memory.
there are 2 selection screens. material num in screen 200 and plant in screen 300. so how can you write in INITIALISATION event?
what is the difference between FOR ALL ENTRIES and SELECT * FROM ?
What are dynamic modifications of a screen? explain in detail?
What is view? Explain the different types of view?
what exact functionality of the END-OF-SELECTION event? and in a report im using the END-OF-PAGE and END-OF-SELECTION events which one will triggers first?
1.search help is there for table or structure or both? 2.in structure there is no technical attribute, then how will u call data elements/fields into the structure? 3. i want to add/write some code in sap standard program in function module related in badi,then how will u write your code in sap standard Fm in badi? 4.what is kapler badi? 5.what is the use of log text in table technical attributes while creating table? 6.what are the fields i have to take to releae/creat a PO from Pur req? 7. if i have already release po as per the Pur req and vendor supplied the material,then again i want same 100 material,then wt will u do? are u release po again? what are steps u follow for this situation?
Suppose u r using FOR ALL ENTRIES. What happens when there is no data in the itab which is using all the entries?