how will u handle multiple line items in a table control?
Answer Posted / pinky
in table control field names depends on the no of details
for each record.
Ex:if bank has details like city bankkey bank account etc...
each field in table control can assigned to index..
i.e knbk-banks(01) bank country key
knbk-bankl(o1) bank key.
if the fields in second row it will increment to (02).
logic:
it_knb1 is the table for list of customers bank details.
data:v_index type n.
data:v_fnam like bdcdata-fnam
loop at it_banks into wa_banks.
increment by 1 each time for all records.
v_ndex = sy-tabix.
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.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What are pooled tables?
Can I execute user exits? If yes, how?
What are the data types of the abap/4 layer?
What is evaluation path, where do we do it and why? : sap abap hr
i have cleared my technical round and manager round in cts but they told me u will get a call with in couple of days now i dont know about my status
What does nw 7.4 sp 05/nw 7.5 sp 02 offers in abap?
What is the difference between table and template?
What are plan versions used for? : sap abap hr
What are the abap/4 commands that link to a layout set?
What is the difference between call transaction method and the session method? : abap bdc
What is the disadvantage of a call by reference? : abap modularization
Name the special commands of list?
Difference between function group and function module?
How do you find if a logical database exists for your program requrements?
What are the types of windows in sap script?