03-02-2010 7:56 PM
Hi,
While saving a service order created using TCode IW31, it automatically creates a Purchase Requisition. Is there any user exit or BADI, where I can set the GR non-valuated flag (In Purchase Requisition line item on the valuation tab there is check box)?
I am on SAP 4.7.
Thanks in advance.
MIck
03-02-2010 8:06 PM
03-02-2010 8:06 PM
03-03-2010 6:26 AM
Thanks Keshav.
I am a little confused, because a lot of these exits have interface as the associated type in the importing parameter. These interfaces have methods and these have parameters in them. So I am not sure which exit will give me non-valuated GR field at the time of automatically creating the Purchase Requisition from a Order in IW31.
Please help.
Thanks,
Mick
03-03-2010 6:48 AM
03-03-2010 8:33 PM
Thanks Gautham.
Since most of the exits have an interface as a parameter, I am not sure how to go about finding out which exit will help.
I am a novice at object oriented programming, so if anybody could hel p with the precise exit and some sample code on how to change the value of the GR non valuated flag (EBAN-WEUNB) in a purchase requisition while it is created on saving TCode IW31, it would be much appreciated.
Thanks,
MIck
Edited by: Mick James on Mar 4, 2010 2:07 AM
03-04-2010 3:53 AM
03-04-2010 4:05 AM
Try something like this.
data: my_item type mereq_item.
*you can pass your value to field weunb.
call method im_req_item->get_data receiving re_data = my_item.
If my_item-weunb eq space.
...
...
endif.
03-04-2010 4:15 AM
Thanks Gautham.
Please help with the exit name and how do you change and set the data for the non valuated GR field. Points awarded.
Mick
Edited by: Mick James on Mar 4, 2010 9:45 AM
04-16-2010 8:38 AM