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 Validation

Former Member
0 Likes
753

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
659

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

3 REPLIES 3
Read only

Former Member
0 Likes
660

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

Read only

Former Member
0 Likes
659

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

Read only

0 Likes
659

Hi Freinds,

Thanks a lot of the replies.

SKIP_RECORD has solved my issue.

Thanks,

Anoop