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

Regarding LSMW validation & Debuging

Former Member
0 Likes
617

Hi,

Is it possible to perform validations in LSMW?

If yes, kindly send me detailed description.

Waht is the procedure to debug LSMW?

Thanks & Regards,

sathish dasari.

5 REPLIES 5
Read only

Former Member
0 Likes
582

Yes, it is possible to perform the validations in LSMW.

In the 5th step(Maintain field mapping), we have various processing blocks like Global data, begin of processing, begin of transaction, begin of record. You will get an abap screen when double click on the required block. write the what ever the code required for validations(like norma se38 program).

suppose if you find that the record is an erroneous, skip that record for processing (there is global function available in lsmw skip_transaction), then populate all such error records into one internal table, and you can download the same in end of processing block.

For every lsmw a conversion program will be generated, you can see the same by selecting the display conversion program in user menu.

put the break-point where ever required, it will be triggered duting the convert data step.

Thanks,

Rajinikanth

Read only

0 Likes
582

hi rajanikanth,

u r very helpful.

but i didn't find those processing blocks, plz can u make it clear...

Read only

Former Member
0 Likes
582

u can view them by going to lsmw step 5(field mapping)

goto extras->layout...

select the bottom 3 things...

Read only

Former Member
0 Likes
582

go to step 5 (Maintain Field Mapping and Conversion Rules)

here you double click one of your assigned field and its go to the editor they you can put break point .

break user id.

when you run the convert data its going to this step and stop the program to your break point...

Read only

Former Member
0 Likes
582

Hi.

Go to the Maintain Field Mapping and Conversion Rules step in the LSMW

put

break-point.

statement into source code where you want to debug.