2008 Aug 08 9:31 PM
I am trying to implement ME_PROCESS_PO_CUST. My requirement is before the PO is saved it should check whether the kepo-pstyp = 3 then blank out kepo-inmsk. Which method should I use and in which interface. I have tried Process_Item method, it does not work. Any other method? Please reply me at the earliest. Thanks.
I am trying to implement ME_PROCESS_PO_CUST. My requirement is before the PO is saved it should check whether the kepo-pstyp = 3 then blank out kepo-inmsk. Which method should I use and in which interface. I have tried Process_Item method, it does not work. Any other method? Please reply me at the earliest. Thanks.
2008 Aug 08 10:26 PM
you have to use only PROCESS_ITEM method.
inside the method first get the data using the method
GET_DATA and then check all what ever you want, if you want to set you have to use the SET_DATA method.
data: item type MEPOITEM.
ITEM = IM_ITEM->GET_DATA( ).
now check the condition, then
ITEM-iNMSK = ''.
IM_ITEM->SET_DATA( item ).
2008 Aug 08 10:46 PM
Hi Vijay,
Thanks for reply. Before I wrote my code, I put break point at Process_Item. It did not fired during the po save. Any other suggestion?
2008 Aug 09 4:34 AM
if you want the Before save then you have o use the POST method.
How ever the Method Process_item will trigger for each and every change in the item processing., when you change any thing in the line item and press enter then you will see it will tirgger.
Activate the implementations and check.
2008 Aug 11 3:19 PM
Hi Vijay,
I wrote my code in Item_process. It does not hit during entering the line item.
I want to achieve during the saving of PO doc.
Let me know if you have any other suggestion.
Appreciate your reply.
2008 Aug 11 5:22 PM
Just keep a break point inside the method.
Once you edit/inout the item details, then press enter , It should land to PROCESS_ITEM. if it is not then some thing wrong with your implementation of the BADI.
Did you activated the Implementation.
2008 Aug 11 6:29 PM
Hi Vijay,
There is nothing wrong in Badi Implementation. It is activated and implemented very well.
I am very surprise why it is not working at all.
Here is the code:
data: w_data type mepoitem.
Retrieve item data
call method im_item->get_data
receiving re_data = w_data.
Condition.
If w_data-pstyp = 3.
clear w_data-insmk.
w_data-insmk = space.
endif.
Update changes
call method im_item->set_data
exporting im_data = w_data.
Any other suggestion?
Appreciate your great help.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |