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

me21n

we need to do validation on gl account and account assignment category in tranasction code me21n.

ie if we use account assignment category 'F' in me21n then the gl account should be 10000023. if not system should throw error

saying the gl account must be 10000023. PLease tell how to do ie which user exoit or badi.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Nov 11, 2008 at 04:51 AM

    Quite similer requirement i done just yesterday.

    METHOD if_ex_me_process_po_cust~process_item.
      DATA : re_data TYPE mepoitem.
    **get the item data
    *BREAK-POINT.
      CALL METHOD im_item->get_data
        RECEIVING
          re_data = re_data.
    *AUTHORITY-CHECK OBJECT 'ZKNTTP'
    *               ID 'KNTTP' FIELD re_data-KNTTP.
    * BREAK-POINT.
    "Check for account assignment cat only for "A" and "L".
      IF re_data-knttp = 'L' OR re_data-knttp = 'A'.
        GET PARAMETER ID 'KNT' FIELD re_data-knttp.
    
    * BREAK-POINT.
        IF sy-subrc NE 0.
          MESSAGE 'You are not aurthorized to use Account Assignment Category (Logit)L!!' TYPE 'E'.
        ENDIF.
      ENDIF.
    
    ENDMETHOD.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 06, 2008 at 10:41 AM

    Hi,

    try this...

    ME_FIELDSTATUS_STOCK                    FM Account Assignment Behavior for Stock PR/PO
    

    Arunima

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 06, 2008 at 10:46 AM

    Hi ,

    Try the User exit

    MEQUERY1

    MM06E004

    Regards,

    Nandha

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 06, 2008 at 04:30 AM

    You can use BADI ME_PROCESS_PO_CUST Method PROCES_ITEM. Search the forum for more info.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 10, 2008 at 09:59 AM

    By using BADI ME_PROCESS_PO_CUST Method PROCES_ITEM. How to do this..kindly help.

    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.