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 do you understand by work area and internal tables in abap? Why do we use it?
How can you distinguish between different kinds of parameters?
How to find the return code of a statement in abap programs?
What are table clusters?
Can we access static attribute from instance method
What are client dependant objects in abap/sap?
What is bdc programming in sap?
how to track records from data dictionary?
How the at-user command serves mainly in lists?
What are the data classes in abap?
Difference between Insert, Update and Modify?
What is the difference between a substructure and an append structure? : abap data dictionary
How to creat transactions? : abap data dictionary
What is an rfc?
Suppose there is check box along with the rows. The requirement is, select the require check boxes and press a used defined button to save all these checked row data to another table. How can you do it?