‎2007 Aug 27 10:21 AM
hi
i have to insert few records in a perticular field, i am using BAPI Change method via an LSMW , can somebody give me a sample code to first delete the existing data in that record and then insert the new record entry .
Thanks in advance
‎2007 Aug 27 10:34 AM
First u need to Delete all Records , then agaiin u have to all the same BAPI to Update with new records.
Regards
Peram
‎2007 Aug 27 10:33 AM
Please check these links for step by step including snapshot.
BAPI with LSMW
http://esnips.com/doc/ef04c89f-f3a2-473c-beee-6db5bb3dbb0e/LSMW-with-BAPI
For document on using BAPI with LSMW, I suggest you to visit:
http://www.saptechnical.com/Tutorials/LSMW/BAPIinLSMW/BL1.htm
Reward of helpful
‎2007 Aug 27 10:34 AM
First u need to Delete all Records , then agaiin u have to all the same BAPI to Update with new records.
Regards
Peram
‎2007 Aug 27 10:35 AM
‎2007 Aug 27 10:43 AM
Hi ,
No Idea how u can do it thru in single LSMW , but in this case i think u required 2 LSMW's or check can u insert one more BAPI in the same LSMW project ?.
otherwise ,
create a simple program.
Regards
Peram
‎2007 Aug 27 11:19 AM
hi Cant we define a code in the mapping step , where i map my source structure with the target structure.
If yes then can u let me know the code , i mean how do i run the loop for deleting and then inserting .
Thanks in advance