‎2011 Jan 27 12:53 PM
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
‎2011 Jan 27 3:11 PM
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
‎2011 Jan 27 1:00 PM
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
‎2011 Jan 27 1:14 PM
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
‎2011 Jan 27 1:39 PM
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..
‎2011 Jan 27 2:48 PM
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
‎2011 Jan 27 3:11 PM
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