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

Custom field enhancement in ME21N

Hi experts,

My requirement is simple

To add a Custom field CI_EKKODB-ZZAUTHORITY to ME21N and save it from ME21N

I am using BADI ME_PROCESS_PO_CUST and ME_GUI_PO_CUST for this.

so far i have succeded in displaying the subscreen on ME21N header.

Problem

I am not able to save it to EKKO

I dont know the procedure to save to EKKO.

do i have to use POST method from ME_PROCESS_PO_CUST.

please help.

please reply with some example code.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jul 15, 2011 at 09:37 AM

    Hi

    Yes, in method POST use this code:

    
      data:  ls_header type mepoheader,
             i_header type mepoheader.
    
     " to save it in EKKO
    
      ls_header = im_header->get_data( ).
    
    

    I hope this helps you

    Regards

    Eduardo

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Eduardo Hinojosa

      Hi Eduardo,

      Thanks again for your help.

      I did exactly same as you suggested....

      
      METHOD if_ex_me_process_po_cust~post.
        break ibmabap.
      
        DATA: ls_mepoheader TYPE mepoheader.
        DATA : wa_header TYPE ci_ekkodb.
      
        CALL FUNCTION 'ZMM_MEPO_CUSTFIELD_POP'
          IMPORTING
            im_dynp_data = wa_header.
      
        ls_mepoheader = im_header->get_data( ).
      
        ls_mepoheader-zzreason = wa_header-zzreason.
      
        CALL METHOD im_header->set_data( ls_mepoheader ).
      
      **data:  ls_header type mepoheader,
      **         i_header type mepoheader.
      **
      **  to save it in EKKO
      **
      **  ls_header = im_header->get_data( ).
      
      ENDMETHOD.
      
      

      still it did not work.

      i am really not able to understand what i am missing.

      anyways...

      currently i have solved my requirement using a user exit MM06E005 and its working fine

      Thanks for your support

      Closing the thread

  • Posted on Jul 15, 2011 at 09:55 AM

    Hi Anirudh,

    You can do as Eduardo told. It will work.

    Regards,

    Madhu.

    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.