‎2007 Dec 15 4:45 AM
Dear Friends,
I have created one table having fields mandt matnr menge now i have to creat one program to add multiple rows in that table and on input screen i have to give user to enter matnr & mseg fields when user enter the value in that fields then it automatically add to that table. how to write that program to add multiple fields.
please help me!!!!!!!!!!!!!!!!!!!!!!!
Thanks,
Vishal bhagwat
‎2007 Dec 15 4:48 AM
‎2007 Dec 15 5:00 AM
collect the given parametes in a internal table
and use update / modify statement to update the Transparent table
modify ZTAB from itab.
this ill work for sure.
‎2007 Dec 15 5:06 AM
Hi Jack,
Thanks for the sol'n but my prob is that user enter the value in fields on i/p screen and then that value will be inserted into transparent table but how to collect that value in internal table please guide me
Thanks,
Vishal Bhagwat.
‎2007 Dec 15 5:24 AM
ohh its a modyfiable report..
Take a look at the programs
BCALV_EDIT_06
BCALV_EDIT_07
award points if u think it was usefull
‎2007 Dec 15 5:34 AM
Hi jack ,
As per ur first answer only one row inserted into table. but when 2 nd rows wan't inserted into same table then first row deleted and second row will be updated in the table. can i see all or save all row which i added to that table?
Thanks,
Vishal bhagwat.
‎2007 Dec 15 5:50 AM
check for the documentation for modify and update statements in SAP
Modify will add the new fields based on the key field u assigned to the Transparent table...
so ur 1st record is being deleted because either the key is not mentiones in the table of both( 1 and 2 records) have the same key fields..