Application Development 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: 

To make PR field validate

Former Member
0 Kudos

hi guru's

in me21n tcode in item level i want to check purchase requestion field initial or not

if its not initial it should trow the message 'please enter pr' how to do it .... it can be done by user exits r badi .. if it possiable please sen the code

7 REPLIES 7

Former Member
0 Kudos

use the BADI - ME_PROCESS_REQ_CUST method - PROCESS_ITEM

0 Kudos

i am new to badi ,please how i can read the data which as been enter by the user

0 Kudos

Hi,

U can search our SDN for ur question.

U can get lot of answers.

Hope the following links will help u.

http://www.saptechies.com/simple-sap-badi-example/

Thanks.

0 Kudos

go to se18.

Select BADI Name.

and give the name as ME_PROCESS_REQ_CUST

click on display

From menu click on -> implementation -> create

give the implementation name as

ZME_PROCESS_REQ_CUST

Give a short text selecting describing the implementation.

Click on the interface tab.

click on the process_item method

and write the following code.


  DATA: st_eban TYPE mereq_item.

  st_eban = im_item->get_data( ).

IF st_eban-bnfpo IS INITIAL.
  MESSAGE 'Enter PR Number' TYPE 'E'.
ENDIF.

Edited by: ZAFCO ABAP on Jan 29, 2009 1:40 PM

0 Kudos

its not trigger for that badi please tell me how to do it....

i put the break point i and checked

0 Kudos

in me21n tcode .... its triggering for me51n

Former Member
0 Kudos

its not clearly answered