Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

DELETE AND INSERT

Former Member
0 Likes
752

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
647

First u need to Delete all Records , then agaiin u have to all the same BAPI to Update with new records.

Regards

Peram

5 REPLIES 5
Read only

Former Member
0 Likes
647

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

Read only

Former Member
0 Likes
648

First u need to Delete all Records , then agaiin u have to all the same BAPI to Update with new records.

Regards

Peram

Read only

0 Likes
647

How do i put it in code the same thing .....

Read only

0 Likes
647

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

Read only

0 Likes
647

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