Skip to Content
avatar image
Former Member

Need to add validation/disable for change on Confirmation Control (Confirmaton Category)

Hi,

I need to disable Confirmation Category key field (EKES-EBTYP) for change in Me23n. Alternative i can set a validation of the field as some one try to change it. It should fetch error message.I am using BADI ME_PROCESS_PO_CUST but not getting exact method to implement. Any suggestions ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Oct 19, 2015 at 10:45 AM

    Hi.

    You should implement IF_EX_ME_PROCESS_PO_CUST~CHECK method.

    Inside, to gain access to global datas, you'll need to assign classes' objects in this way:

        IM_ITEMS = IM_HEADER->GET_ITEMS( ).

        IM_EKKO = IM_HEADER->GET_DATA( ).

    Where IM_ITEMS and IM_EKKO declared as:

    DATA: IM_EKKO  TYPE MEPOHEADER.

    DATA: IM_ITEMS TYPE PURCHASE_ORDER_ITEMS.

    Inside you'll have  CH_FAILED parameter to set error or you can use:

    mmpur_message  macro definition to manage ME2* messages (remember INCLUDE mm_messages_mac.)

    Hope to help.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2015 at 08:57 AM

    Hello,

    Have a look at Create confirmations entries with a Badi / me21n / me22n / me23n

    I described how to add confirmation entries to me23n entrys.

    br,

    Nikolaus

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 20, 2015 at 12:23 PM

    Hi Neeraj,

    if you want to disable the field without checking any condition means you can try with

    Transaction Variant - A Step by Step Guide for Creation - Code Gallery - SCN Wiki

    Hope it helpful,

    Regards,

    Venkat.

    Add comment
    10|10000 characters needed characters exceeded