‎2008 Apr 15 9:56 AM
Hi,
How to insert values to the db table which has repeat structure ?plz help if u know.
Regards,
Suchithra
‎2008 Apr 15 10:03 AM
hi,
take an internal table of database structure and use insert statement to insert on to data base.
i.e,
data : it_mara like mara occurs 0 with header line.
insert mara table itab.
‎2008 Apr 15 10:10 AM
Hi,
1.Take the internal table of the structure.
2.Get the data into that internal table.
3.Use LOOP AT ITAB - ENDLOOP to insert the internal table
data into database table.
Write the INSERT and MODIFY statements in loop.
Reward,if useful.
thanks,
Chandu
‎2008 Apr 15 10:12 AM
Pass all the values to the structure .. and insert ...
For Ex:
pass ...
p0041-DAR01 = <value>
p0041-DAT01 = <value>
p0041-DAR02 = <value>
p0041-DAT02 = <value>
p0041-DAR03 = <value>
p0041-DAT03 = <value>
along with all other key fields ..
Use FM HR_INFOTYPE_OPERATION to insert/modify ..
into PA0041 ...