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

LSMW / STEP 5 / adapt source code

joerg_arndt
Participant
0 Likes
487

Hi Friends,

in LSMW, step 5 when I press the check syntax button it leads me directly to the abap editor.

Here I can adapt the source code.

After activating the program I can start the conversion program and it runs with the adaptions I made before.

But then I leave the editor return to the LSMW step 5 and again back to the editor all the changings are gone.

Even if I made changings in the global_data section later, the changes are not applied to the source code.

And another phenomenon.

When I leave the LSMW and com back later and add a variable to global_data section I get an syntax error says 'ABC" has already been declared.

Any enlightenment would be very appreciated.

Many Thanks

Jimbob

2 REPLIES 2
Read only

Former Member
0 Likes
438

i don't think, changing directly the conversion program works. Write your code only in allowed areas, eg. global data, begin of transaction, begin of record, individual fields and so on. Then save your work and run the program in 'Convert data' step. Don't worry about that message, it only shows when you check the global data area, probably an LSMW bug.

Read only

joerg_arndt
Participant
0 Likes
438

Hi Harris,

I agree with you, there could be a bug in the LSMW.

But I can change the code of the conversion program and run it and it runs with the changed code but only temporarily. When I leave and come back the changes are gone. However, you can copy the conversion program and make the changes there and run it, but I think that is not neccessary.

Ok, thank you for the Answer Rg. Jimbob