Skip to Content

ME5A Report - Request for Help

Dear All,

I am working on the Report (ME5A) - Purchase Requisition List. I have completed the following items, viz,

a) Additon of Two more fields MRP Type and Lot Size in the Screen Input.

b) Appended the structure MEREP_OUTTAB_EBAN with the above two fields in order to get that in ALV layout.

Now I am stuck up in the place - to populate this field. I debugged it lot and not able to identify it.

Can some one give me a hint on a Function / place where this can be updated.

Thanks a lot

Regards,

Venkat

Add comment
10|10000 characters needed characters exceeded

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2011 at 10:24 AM

    Thanx Venkat

    Your really helped me. However, i would like to add some points :

    1: When you enhanced PR screen using MEREQ001 enhancement, and adding your customer field in CI_EBANDB include, then this field automatically becomes part of MEREP_OUTTAB_EBAN structure. Hence, no additional Append to MEREP_OUTTAB_EBAN is required.

    2: Secondly, while enhancing function exit "EXIT_SAPLMEREQ_003" in MEREQ001 enhancement, you can code to save new fields' data in DB. E.g. use this code:

    
    data : l_mereq_item type mereq_item.
    
    if not im_req_item is initial.
       l_mereq_item = im_req_item->get_data( ).
         if ( CI_EBANDB-ZZNEWFIELD ne l_mereq_item-ZZNEWFIELD ).
            move  CI_EBANDB-NEWFIELD to l_mereq_item-NEWFIELD.
            call method im_req_item->set_data( l_mereq_item ).
            ex_changed = 'X'.
          endif.
    endif.
    

    Doing this will display the new column in ME5A!

    Regards

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi.

      I know this post is too old, but did you find the place to do this. I really need it and when I execute the report is not passing through EXIT_SAPLMEREQ_003.

      Thanks in advance.

  • author's profile photo Former Member
    Former Member
    Posted on Feb 19, 2016 at 08:29 AM

    Hi venkat,

    Im new to this requirement,
    1 . please suggest me how to add EBAN-BADAT in selection screen.
    2 . and it will automatically display in alv coz it present in MEREP_OUTTAB_EBAN structure.
    i have included s_badat in bam_daten_lesen(sapfm06b)..

    Ended up with short dump...please help me

    Thanks in advance

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Venkateswaran (Venkat) Krishnamurthy

      Hi,

      I have the same requirement with this post and need to show a new custom field in ME5A.

      I have put the new field in my CI_EBANDB then the field is shown in ME5A, but how can I populate the field with a query? As of now the field is empty in ME5A

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2010 at 04:15 PM
    -1

    Hi venkat,

    I have a similar request to add Bin Location to ME5A alv(output)..

    I will appreciate it if you can give me a hint on where to add that field.

    Shilpa

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Surbhi,

      Do what Salman says in point 1:

      1: When you enhanced PR screen using MEREQ001 enhancement, and adding your customer field in CI_EBANDB include, then this field automatically becomes part of MEREP_OUTTAB_EBAN structure. Hence, no additional Append to MEREP_OUTTAB_EBAN is required.


      Also as a point 2:

      I found a PERFORM bam_daten_lesen(sapfm06b) that fills la it_eban table with data, what you would do is create an enhancement after this PERFORM an write the code to fill the field into the it_eban table, it works to me.


      Bye

      Juan Camilo