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: 

BADI for inserting items in ME51N

Former Member
0 Kudos

Hi

Which BADI do I use to insert items creating a purchase requisition (ME51N)?

Thanks in advance.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Check this badi..



ME_BAPI_PO_CUST      Customer BAdI for BAPI_PO_CREATE1 and BAPI_PO_CHANG

ME_BAPI_PR_CUST      Customer BAdI for Enjoy Purchase Requisition BAPIs

next go to t-code Se15>expand the enhacement tab>enter package(ME) under Badi's tab and

execute you will get the list of Badi's

available...

Prabhu

Edited by: Prabhu Das on Jun 1, 2009 7:17 PM

6 REPLIES 6

Former Member
0 Kudos

Check this badi..



ME_BAPI_PO_CUST      Customer BAdI for BAPI_PO_CREATE1 and BAPI_PO_CHANG

ME_BAPI_PR_CUST      Customer BAdI for Enjoy Purchase Requisition BAPIs

next go to t-code Se15>expand the enhacement tab>enter package(ME) under Badi's tab and

execute you will get the list of Badi's

available...

Prabhu

Edited by: Prabhu Das on Jun 1, 2009 7:17 PM

0 Kudos

Prabhu thanks for answering

ME_BAPI_PR_CUST has two methods, in my case do I have to use OUTBOUND (Method for Changing Export Data of Enjoy PReq BAPI)

Regards.

Former Member
0 Kudos

Dear mgg,

BADI which can be use to insert items creating a purchase requisition ME51N are put a break point and check for its triggering

ME_CHECK_ALL_ITEMS Run Through Items

ME_SUBITEM_FIELDSTATUS BAdI to Control S

SMOD_MRFLB001 Control Items for

Cheers

fareed

0 Kudos

Thanks Fareed, but I was checking and test with break point for inserting items but doesn't work.

I'm using this BAdI ME_PROCESS_REQ_CUST with PROCESS_ITEM but only have 3 parameters: IM_ITEM, IM_COUNT and IM_REF_ITEM, but trying this code, never back to transaction:

DATA: ls_mereq_itemx TYPE mereq_itemx,
            ls_mereq_item  TYPE mereq_item.

*  ls_mereq_item  = im_item->get_data( ).

  ls_mereq_item-MATNR = 'M955_RG'.

CALL METHOD im_item->set_data
EXPORTING
im_data = ls_mereq_item.

Thanks in advance.

Former Member
0 Kudos

Thanks for helping

Solved.

0 Kudos

Hi mgg,

I have similar requirement. Would be great if you share how you achieved.

Thanks in advance.