cancel
Showing results for 
Search instead for 
Did you mean: 

SC not converting to direct PO as the follow on document

Former Member
0 Kudos

Hi,

We are working on the classic scenario on SRM 5.5, we have configured the setting SRM IMG->SRM->SRM server -> Cross-Application Basic Settings->Define Objects in Backend System (Purch. Reqs, Reservations) for external procurment and always PO if data completed else PR also maitained the Purchasing group id and product category here.

We have activated Badi BBP_DOC_CHANGE_BADI with method BBP_SC_CHANGE and maintained the code to convert the vendor partner type from 39 to 19.

We have not activated Badi BBP_TARGET_OBJTYPE .

Now when we use catalogs to create the SC the follow on document created is PO as expected but when we use normal describe requirement with the source of supply and all the other details completed in SC still the follow on document created is PR and not PO as expected.

When we check the PR in R/3 the vendor maintained in ths SC is displayed in the fixed vendor field and not in the preferred vendor field. But for some reason the follow on document created is not PO.

Please suggest if i am missing anything on the config or coding.

Regards

GGL

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member544585
Contributor
0 Kudos

Hi GGL,

You can use BAdI BBP_CREATE_BE_PO_NEW to convert your preferred vendor to a fixed vendor. This BAdI is invoked when the SRM Shopping Cart is converted to ERP PO.

Cheers,

Serguei

former_member183819
Active Contributor
0 Kudos

Hi

what is the entry in bbp_pd ?

are you assigning prefered vendor and making them as fixed vendor right?

what is the setting on define backend objects (pr,po ) .. settings for product category?

any setting s for this product category in sourcing?

so your requirement is converting prefered vendor to fixed vendor.

br

muthu

Former Member
0 Kudos

Hi Muthu,

Thanks for your reply.

The Entry displayed in BBP_PD is preffered vendor and not as vendor (Fixed vendor).

Yes, we are assignning the preffered vendor and trying to make it as a fixed vendor with the help of change BADI.

The setting for backend objects is to create PO if the data is complete and the product category is also maintained here.

There is no sourcing used.

I actually want to convert the preffered vendor to fixed vendor so that the PO will be created instead of PR.

Looks like my Badi is not able to convert the vendor as fixed vendor and it is showing as prrffered vendor in BBP_PD.

Please advise.

Regards

GGL

former_member183819
Active Contributor
0 Kudos

Implement the following method , in which you will force prefer vendor

to fixed vendor for all applicable sc.

IF_EX_BBP_DOC_CHANGE_BADI~BBP_SC_change.

You will have to work with partner function 00000039 which is the

prefered vendor to move into the partner function 00000019.

In the BBP_DOC_CHANGE_BADI we provide the business partner data

through the IT_PARTNER interface table. the prefered vendor or desired

vendor has partner type 39, the regular supplier will have partner

type 19. a switch from 39 to 19 should create a po instead of

requisition.

please update your code here.

so some one can scan your code.

br

muthu

Former Member
0 Kudos

Hi Muthu,

Please find the code below taht we have used

METHOD if_ex_bbp_doc_change_badi~bbp_sc_change.

CONSTANTS : c_vendor TYPE bbp_pds_partner-partner_fct

VALUE '00000019',

c_preferred_vend TYPE bbp_pds_partner-partner_fct

VALUE '00000039'.

DATA : ls_partner TYPE bbp_pds_partner.

LOOP AT it_partner INTO ls_partner

WHERE partner_fct EQ c_preferred_vend.

MOVE c_vendor TO ls_partner-partner_fct.

MODIFY it_partner FROM ls_partner INDEX sy-tabix.

ENDLOOP.

et_partner[] = it_partner[].

ENDMETHOD.

Another thing i would like to highlight is that this Badi is set as Filter Depended and filter type as BBP_SEARCH_OBJTYP

In defined filters i can see Object type BUS2205 - object type EBP Invoice.

Please help in rectifying my code used in this BADI.

Regards

GGL

former_member183819
Active Contributor
0 Kudos

SRM IMG->SRM->SRM server -> Cross-Application Basic Settings->Define Objects in Backend System (Purch. Reqs, Reservations, Purch. Orders)->

pur grp= *

prod cat= exact value of the prod cat in srm you want to create PR

source sys=backend

Int proc=always external proc 3

Ext proc=purchase order if item data complete, otherwise PR.

make ensure that you have this settings

br

muthu

Former Member
0 Kudos

Hi Muthu,

Thanks for the feedback.

The config setting is exactly mentioned by you and i am still able to get only PR created and not PO.

When i use catalog to create SC it is getting converted as PO where as when i use the describe requirement to create SC it is converted as PR and not PO.

When i check BBP_PD for both the SC , i see the catalog SC is displayed as Vendor and for the describe requirement SC it is dispalyed as Preffered vendor. The code what i have maintained in the Badi is not able to convert the preffered vendor to the fixed vendor for describe requirement and the SC details is assumed as incomplete and PR is created.

Please can you guide me on the code which i think has to be modified so that the vendor picked in SC gets updated as fixed vendor in SC creation stage itself.

Regards

GGL

former_member183819
Active Contributor
0 Kudos

See peter Log

https://wiki.sdn.sap.com/wiki/display/SRM/Howtoanalyzethefollow-ondocumentdetermination

br

muthu