on 12-11-2007 9:50 PM
Hello Gurus,
I have a requirement regarding the creation of Purchase Requisition ( PR) in R/3 and i still want to have ECS active while creating Purchase Order.
Please let me know if anyone is having a better solution to make this requirement realized.
Thanks,
mahesh
Hi,
This is easily possible using BBP_TARGET_OBJECTS BADI
or using BBP_TARGET_OBJTYPE BADI.
BR,
Disha.
<b>Pls reward points for useful answers.</b>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Here is the sample code for BBP_TARGET_OBJECTS_BADI
method IF_EX_BBP_TARGET_OBJECTS~DETERMINE_TARGET_OBJECTS.
data: w_item_data type BBP_BAPIPOGN.
clear: w_item_data.
*--- 2 is for Purchase Requisition
*---loop through selected catalogue items and for zero items set to 3
*---for purchase order.
loop at item_data into w_item_data.
if w_item_data-CATALOG <> ''.
w_item_data-OBJ_TO_GEN = '3'. " Purchase Order
modify item_data from w_item_data.
clear: w_item_data.
endif.
endloop.
endmethod.
BR,
Disha.
<b>Pls reward points for useful answers.</b>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.