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 Purchase order & Purchase requisition.

Former Member
0 Kudos

Hi,

I need the user exits/BADIs/BTE in the following events.

1) Just before saving Purchase requisitions and After saving purchase req ( Create and Change)

2) Just before saving Purchase Order and After saving purchase Order ( Create and Change)

Regards,

Ganesh Nama.

3 REPLIES 3

GauthamV
Active Contributor
0 Kudos

hi,

SEARCH........... in SCN.

u have lot of posts on this topic.

0 Kudos

Hi Experts,

I want to change delivery date in PR while creating purchase requisition ME51n.

Means need to add 7 days in delivry date field when ever it is todays date (sy-datum).

Please suggest suitable badi or EXIT.

I tried in BADI..ME_PROCESS_REQ_CUST... in PROCESS_ITEM methode

data : preqdata type mereq_item,

v_lfdat type sy-datum.

prereq_x type mereq_itemx.

preqdata = im_item->get_data( ).

if preqdata-lfdat = sy-datum.

prereq_x-lfdat = 'X'.

call function 'CALCULATE_DATE'

exporting

days = '7'

months = '0'

start_date = sy-datum

importing

result_date = v_lfdat .

preqdata-lfdat = v_lfdat.

call method im_item->set_datax( prereq_x ).

call method im_item->set_data( preqdata ).

endif.

But systems is ignoring thi change and again coming in same badi ..so in loop.

Please tel any other way to make change is delivery date field.

Thank you.....!!!!

Nilesh.

Former Member
0 Kudos

Hi Nama,

Check with the following BADIs:

ME_PURCHASE_POSTED ( For Purchase Order )

ME_REQ_POSTED ( For Purchase Requisition )

Hope this will help.

Regards,

Nitin.