Skip to Content
author's profile photo Former Member
Former Member

PR_Validation

Hi Experts,

I have a requirement that

I have to validate PR document type,

account assignment type and i have to assign fixed asset number for document type.

for ex: PR doctype(BSART) = 'ECB'

ACCOUNT ASSIGNMENT(knttp) = 'A'.

HERE IF I ENTER EXCEPT 'A' ,WE SHOULD GET ERROR MSG 'PLEASE ENTER A ONLY'.

after that it should accept only '100000000' asset number for the above combination PR doc type 'ECB' and KNTTP = 'A'.

other wise it should give error msg.

i tried with badi ME_REQ_POSTED.

But its not working.

can any one tel me which type of enhancement i have to use.

Thanks,

NR

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 03, 2012 at 12:09 PM

    hi,

    i think this thread is not related sap-PI ,pls post in correct place

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 03, 2012 at 05:48 PM

    Hello NR,

    We will move this to the Materials Management forum. I think that is the area you are working with. You will have a better chance of getting a quality answer to your query in the correct forum.

    Regards

    Moderator

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 03, 2012 at 08:56 PM

    Hi NR

    Stepping through ME51n I see user exit EXIT_SAPLMEREQ_005 from enhancement MEREQ001

    is processed. In the user exit the structure 'im_data_new' has the field available that you want to validate.

    You can throw an error if the criteria is not met.

    The user exit is called with each item change so looks good for your requirement.

    Assign enhancement MEREQ001 to a project in CMOD and activate the user exit

    EXIT_SAPLMEREQ_010 would probably also be useful for a check before save.

    Hope this helps you further

    Kind regards

    Brian

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.