cancel
Showing results for 
Search instead for 
Did you mean: 

HOW TO MAKE FIELD mandatory in lsmw

Former Member
0 Kudos

Hi,

i am working on lsmw.

my issue is how to make the fields mandatory in lsmw.

thanks in advance.

satish

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos
Former Member
0 Kudos

Go to change field mapping and conversion rules, press insert rule. When the multiple selection appears select abap code and continue.

When the abap code appears ask if the field is initial to display an error message.

Former Member
0 Kudos

Hi,

In more functional language, how do you do that?

I can get to the ABAP Code Page but not sure about code re. the rest.

Pls let me know when you have the chance.

Thanks!

Kathy

Former Member
0 Kudos

Hi Kathy,

The ABAP code is:

Assue field name is VBELN and table is VBAK.

Then:

If VBAK-VBELN is INITIAL.

Message E000(Z01) WITH 'Please enter Sales Order Number'.

Endif.

Regards,

Fawaz

Former Member
0 Kudos

THANK YOU VERY MUCH!!! JUST TRIED AND IT WORKS.