cancel
Showing results for 
Search instead for 
Did you mean: 

ME_REQ_SOURCING_CUST Badi

Former Member
0 Kudos

Dear Gurus,

We are on SRM 7 and configuring the Plan driven procurement scenario. As required, we have activated the BAdi 'ME_REQ_SOURCING_CUST' for transferring the purchase requisitions from ERP to SAP SRM.

In the method ' IF_EX_ME_REQ_SOURCE_CUST~ACTIVE

I have activated the logic

cv_ext_sc_ind = cl_mmpur_constants => yes. = SC creation in SRM possible

What does it mean?

Which one of the below is true?

1. The PR in ERP will create an entry in sourcing cockpit.

2. The PR in ERP will create a shopping cart as usual.

Please, let me know which one is correct.

Thanks and regards,

Ranjan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

The PR in ERP will create a shopping cart as usual

this is true.

As you create a PR in ECC and it is approved.

there is a program BBP_EXTREQ_TRANSFER will be run manually (or) set a background jod.

This PR will be pushed to SRM

In SRM a s/c will be created with approved status

you can see the S/C in Carry out sourcing -sourcing Cock pit

Please check and reply

Regards

G.Ganesh Kumar

Answers (1)

Answers (1)

Former Member
0 Kudos

HI

Mehtod : IF_EX_ME_REQ_SOURCE_CUST~ACTIVE

->when parameter CV_AUT_SOURCING is set to true, external sourcing (e.g. SRM system) is active in ERP system

->when parameter CV_EXT_RFX_IND is set to true, RFx can be created out of PR directly from ERP system using application CPPR

->when parameter CV_EXT_SC_IND is set to true, PR in ERP system will be transferred to SRM using application CPPR

Method b. IF_EX_ME_REQ_SOURCE_CUST~CHECK_EXTERNAL_SOURCE

Here you need to maintain the logic / condition for which PR has to be transfered to SOCO.

Example

IF ( is_req_item-ekgrp = 'SRM' AND is_req_item-matkl = '100' )

cv_ext_sourcing = cl_mmpur_constants=>yes.

ENDIF.

When this BADI is active whenever you save a PR with say the purchasing group as SRM and material group is 100 (as per sample code above), system automatically generates an xml. This xml will reach SRM via PI system.

Once this xml is processed in SRM, a SC is created in SRM.

Hope this helps.

Regards

Sam