Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

User exit for updating BANFN structure for ME51N transaction code

Former Member
0 Kudos

Hi All,

My reuirement is to changes BANFN-REVLV field based on some caculation thru ME51N/ME52N transaction code.

I have tried the exit MEREQ001 but its not useful.

I have writtent the code in EXIT_SAPLMEREQ_008 but its giving error message 'structure is not editable'. Please let me know any exit or BADI for this purpose.

Thanks.

1 ACCEPTED SOLUTION

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

Try with BADI ME_PROCESS_REQ_CUST.

Regards,

Eduardo

6 REPLIES 6

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

Try with BADI ME_PROCESS_REQ_CUST.

Regards,

Eduardo

0 Kudos

Hi,

Iam new to BADI, Please let me know how to implement and use the BADI. and what to write inside the BADI.

0 Kudos

Hi I have implemented the BADI..but how to change the value for field revision level at item level.

I have used the method PROCESS_ITEM and i have written the belwo code..

CALL METHOD im_item->GET_DATA

RECEIVING

RE_DATA = lt_item .

How to change the values in internal table???

0 Kudos

I have used the method SET_DATA. Now its working fine.

0 Kudos

Hi,

Check this [article|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f3202186-0601-0010-6591-b832b1a0d0de] in this site (SDN) to learn how to work a BADI.

You can check the BADI with tcode SE18. To implement it use tcode SE19. You have a sample. The idea behind BADI is ABAP OO (classes and methods).

If you need something else, tell me it.

Regards

Eduardo

0 Kudos

Hi,

In this moment I don't have access to a system with this BADI, but I have access to ME_PROCESS_PO_CUST (very similar).

In method PROCESS_ITEM.

The declaration of data:


  data: ls_mepoitem type mepoitem.

Get the data:


  ls_mepoitem = im_item->get_data( ).

Set the data


  im_item->set_data( ls_mepoitem ).

A sample of modification of data:


  if ls_data_header-bsart = 'ZNK'.
    ls_mepoitem-retpo = 'X'.
  endif.

If my memory works, change MEPOITEM by MEREQ_ITEM. If I'm not right somebody will correct it.

I hope this helps you

Regards,

Eduardo