‎2006 Jul 25 12:43 PM
Hi Friends,
I have a query in LSMW.
I am creating Materials using the recording of MM01.
I need to check a material already exists in SAP , before the session is called .
If material exists then that particular record from Excel should not be processed. I dont want to see the log for non processed items.It should be skipped at the LSMW level.
Please advice
Thanks and Regards,
Anoop
‎2006 Jul 25 12:47 PM
Hi,
You can create a re usable routine where in you can check whether material exists . If exists you could call the global function SKIP_RECORD.
Hope this helps.
Rgds,
HR
‎2006 Jul 25 12:47 PM
Hi,
You can create a re usable routine where in you can check whether material exists . If exists you could call the global function SKIP_RECORD.
Hope this helps.
Rgds,
HR
‎2006 Jul 25 12:49 PM
LSMW==> Maintain field mapping and conversion rules => For the session there is an event <b>__BEGIN_OF_TRANSACTION__</b>.
You could write your <b>select * from mara where matnr = source-matnr.</b> and validate the material exist or not.
If exists you can skip that loop using <b>continue</b>.
Hope this helps you.
Best wishes,
TM
‎2006 Jul 26 6:39 AM
Hi Freinds,
Thanks a lot of the replies.
SKIP_RECORD has solved my issue.
Thanks,
Anoop