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

how to insert abap code in LSMW generated program?

Former Member
0 Likes
1,770

hi,

i m working on LSMW for loading data in SAP

i would like to insert abap code into the generated program....

it's because i have 1 BKPF segment (header data), 2 BSEG segments, but i cannot define rules by customizing for the second BSEG segment(LSMW doesn't permitt).

i already tried to insert code directly into the program, but obviously it disapears at each time i generate the program.

i saw that apparently a code insertion has already be made into this program and the subject of this insertion is to define rules for the second BSEG (exactly what i want to do....) and this modification doesn't disapear at new prog generation.....

Any idea ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
679

Hi

Why dont you use the FORM provided by LSMW

To use this please do the following

1.Goto option <b>Maintain Field Mapping and Conversion Rules</b>

2.Goto menu <b>EXTRAS->LAYOUT->Form Routines</b>

Here you will now get many options like

Global Data

Begin of Transaction

Begin of Processing

Begin of Record

like wise the End of these also.

Please put a breakpoint and check where you want to insert your code.

Note:

This is only for the Conversion Program and does not affect the main program used to update the Standard Tables

Hi , I was reading your earlier post .. It seems that you have worked on EMIGALL. Consider a similar situation, it is like writing the code in the events till CALL01...

Thanks

DOminic

Message was edited by: Dominic Pappaly

2 REPLIES 2
Read only

Former Member
0 Likes
680

Hi

Why dont you use the FORM provided by LSMW

To use this please do the following

1.Goto option <b>Maintain Field Mapping and Conversion Rules</b>

2.Goto menu <b>EXTRAS->LAYOUT->Form Routines</b>

Here you will now get many options like

Global Data

Begin of Transaction

Begin of Processing

Begin of Record

like wise the End of these also.

Please put a breakpoint and check where you want to insert your code.

Note:

This is only for the Conversion Program and does not affect the main program used to update the Standard Tables

Hi , I was reading your earlier post .. It seems that you have worked on EMIGALL. Consider a similar situation, it is like writing the code in the events till CALL01...

Thanks

DOminic

Message was edited by: Dominic Pappaly

Read only

0 Likes
679

thank you dominic!

my problem is solved!!!