‎2008 Jul 10 7:40 AM
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.
‎2008 Jul 10 8:17 AM
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
‎2008 Jul 10 10:07 AM
hi rajanikanth,
u r very helpful.
but i didn't find those processing blocks, plz can u make it clear...
‎2008 Nov 16 9:52 AM
u can view them by going to lsmw step 5(field mapping)
goto extras->layout...
select the bottom 3 things...
‎2008 Nov 17 8:21 AM
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...
‎2008 Nov 17 8:38 AM
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.