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
How do you execute the payroll
What is the different between abap and ooabap? Why do we use ooabap?
What are the data types of the abap/4 layer?
What are the value tables?
In sap scripts, how will you link form with the event driven?
Can we display a list in a pop-up screen other than full-size stacked list?
What is internal payroll process? : sap abap hr
Difference between call by value and call by reference? : abap data dictionary
How can you access the function code from menu painter?
What are the features of abap/4 dictionary? : abap data dictionary
Write special commands of list?
Describe data classes? : abap hr
What are screen painter and menu painter? : abap hr
What is the difference between function group and function module?
There is a situation where there is a field "MATERIAL DESCRIPTION" in say 20 display only transaction. You want that whenever user opens any of these transaction, this particular field is masked with ****. But table does not holds ****. It holds the actual value. What are different ways of doing it? Which is the best way.