09-24-2008 11:00 AM
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.
09-24-2008 11:05 AM
11-13-2008 3:43 PM
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.
09-24-2008 11:14 AM
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.