cancel
Showing results for 
Search instead for 
Did you mean: 

Purchase Requisition in Backend in ECS

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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>

Former Member
0 Kudos

Hi Disha,

Thank you for the reply.

Can you provide me the sample code that can help me to activate the BADI BBP_TARGET_OBJECTS for the creation of PR in Backend while the ECS is active.

Thanks,

mahesh

Former Member
0 Kudos

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>