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


Please Help Members By Posting Answers For Below Questions

How do you execute the payroll

2096


What is the different between abap and ooabap? Why do we use ooabap?

625


What are the data types of the abap/4 layer?

711


What are the value tables?

555


In sap scripts, how will you link form with the event driven?

548






Can we display a list in a pop-up screen other than full-size stacked list?

686


What is internal payroll process? : sap abap hr

585


Difference between call by value and call by reference? : abap data dictionary

597


How can you access the function code from menu painter?

633


What are the features of abap/4 dictionary? : abap data dictionary

576


Write special commands of list?

572


Describe data classes? : abap hr

625


What are screen painter and menu painter? : abap hr

568


What is the difference between function group and function module?

517


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.

926