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

Debugging issue in ME21N

Former Member
0 Likes
1,893

Dear All,

I am creating a PO.

I kept vendor field blank purposefully and hit enter.

Now at this stage I see an error message 'Enter a Vendor'.

I need to verify the same message in debugging mode to basically understand how the system performs the check before throwing this error message.

I am looking forward to know the field name, table it checks for making validation of entered vendor, the programing condition etc...,in debug mode.

Can any one please help with steps to follow?

I know that /h will start debug mode. but what are the next steps to spot the exact location where the above message is triggered?

Thanks & Regards,

Shetty

1 ACCEPTED SOLUTION
Read only

p291102
Active Contributor
0 Likes
1,331

Dear shashi,

The following mentioned error only u r saying know.

How i got this error as follows:

goto SE93 give your tcode and goto display then u will be getting the package.After getting the package goto SE91 in the message class give f4. you will get one popup. then click information system and there give package name.select the message class and go for display. U will get the list of error messages related to the package. Search for your error message. uwill get the error message no. Then follow the debugging steps as mentioned earlier in your thread.

269 Please select at least one vendor

Hope it helps.

thanks,

sankar m

5 REPLIES 5
Read only

eduardo_hinojosa
Active Contributor
0 Likes
1,331

Hi,

You have it in LMEPOF00 in this coding:


IF ekko-lifnr EQ space.
  IF ekko-bsakz NE bsakz-tran.
    MESSAGE e049.
  ELSE.
    EXIT.
  ENDIF.
ENDIF.

mmpur_metafield mmmfd_vendor.

IF lfa1-lifnr EQ space.
  mmpur_metafield mmmfd_vendor.
  MESSAGE e101 WITH ekko-lifnr.
ELSEIF lfm1-lifnr EQ space.
ELSEIF lfm1-lifnr EQ space AND ekko-bsakz NE bsakz-tran.  "594704
  mmpur_metafield_add mmmfd_purch_org.
  MESSAGE e027 WITH ekko-lifnr ekko-ekorg.
ENDIF.

You can find: set /H in box for tcodes, when debugging stars, in menu path, breakpoint / breakpoint at / sentence and write 'MESSAGE' and F8

I hope this helps you

Regards

Eduardo

Read only

0 Likes
1,331

Thanks. That was really helpful.

How can I know that I can find this error message in program LMEPOF00 ? Is there a way I can find out all the programs associated with ME21N?

regards

Read only

0 Likes
1,331

Dear,

Double click on the message , take the class and number. Go to se91, enter it,select it and click the where used list button.

or during debugging you can make it stop at particular statements from the menu options..

Read only

0 Likes
1,331

Hi,

As I told you, set /H in box for tcodes, run ME21N with field of vendor empty, when debugging stars, in menu path, search breakpoint / breakpoint at / sentence and write 'MESSAGE' and press return, and run it with F8 after each breakpoint, it will stop in all messages that flow of algorithm finds

Regards

Eduardo

Read only

p291102
Active Contributor
0 Likes
1,332

Dear shashi,

The following mentioned error only u r saying know.

How i got this error as follows:

goto SE93 give your tcode and goto display then u will be getting the package.After getting the package goto SE91 in the message class give f4. you will get one popup. then click information system and there give package name.select the message class and go for display. U will get the list of error messages related to the package. Search for your error message. uwill get the error message no. Then follow the debugging steps as mentioned earlier in your thread.

269 Please select at least one vendor

Hope it helps.

thanks,

sankar m