cancel
Showing results for 
Search instead for 
Did you mean: 

Create PR as follow on document in SOCO

Former Member
0 Kudos

We're on SRM 5 WAS 7.00. and following support packages.

SRM_PLUS 550 0015 SAPKIBK015

SRM_SERVER 550 0015 SAPKIBKT15

Overview

We've a special requirement, to create PR's in the back end system instead of PO, from the SOCO based on some special conditions. A BAdI has been identified for this purpose "BBP_TARGET_OBJTYPE". Using code from the standars implementation the conditions have been fit in.

Question.

When creating PO from the worklist in the SOCO, the BAdI is triggered and "TARGET_OBJTYPE" is set to PR. Once the program has executed the new screen shown is title says "Bid Invitation" and an error message " You have either failed to select an item, or you cannot create a follow-on document due to an error that has occurred". I tried looking for it on sap notes but no luck.

Activated debugging, and in there I found that the PR no. is generated and there is no messages in the transfer process either

-> CL_BBP_SC_TRANSFER_SOURCING.

Any hint to what the problem can be ?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Muhammad,

Why do you want to create PR through SOCO? You can as well do the SPRO settings for Sourcing in SRM, so that a SC without source of supply directly creates a PR in backend and does not go to SOCO.

Regards

Saravanan.

Former Member
0 Kudos

Hi Saravanan,

Due to the nature of the requirements, the PReqs will have to be created through SOCO. Coming back to the original questions, is there a solution or a hint?

Regards

M. Ali

former_member183819
Active Contributor
0 Kudos

Hi Mohamed,

why do bring the cart into sourcing cocpit to create a PR. that is meaning less.

since buyer assigned a vendor then it creates a Purchase order.

if your requirement is to create a PR for all your sc , you dont assign any vendor or add a prefered vendor

and it will create a PR rather than PO and do not do any define sourcing configuration for that material group.

or

control via

define back end system for the object in spro

create always Purchase order select the option as external procurement

make understand the customer that sourcing is to assign a negotiated vendor and create a PO.

br

muth

Former Member
0 Kudos

Please check the documentation for the BAdI. It clearly fulfills my requirement. I have identified, that the standard screens 4001 of program BBP_SOCO_UI_ITS has some drawbacks, like it does not cater for the change of labels, etc...

Moreover, the screen is in a modified/active status instead of active status.

Using Business Add-In BBP_TARGET_OBJTYPE you can define your own criteria for determining the target objects in the backend system.

As standard, the target objects are created according to the settings in Customizing, see Define Objects in Backend System (Purch. Reqs, Reservations, Purch. Orders).

The type of the target object is then placed in the field CT_ITEM-PACK_OBJTYPE.

The following object types exist:

Object type Meaning

BUS2093 Reservation

BUS2105 Purchase requisition

BUS2012 Purchase order

Then the BAdI BBP_TARGET_OBJTYPE is called up.

Using method

DETERMINE_TARGET_OBJECT_TYPES

you can determine the target object depending on other item data (or any combination thereof) and overwrite the field CT_ITEM-PACK_OBJTYPE.

Ensure that you choose logical combinations. For example, you cannot create a reservation without a product number.

Example

The system has determined via Customizing that a purchase order is to be created. However, you prefer to have certain users restricted to creating purchase requisitions. Then you overwrite field CT_ITEM-PACK_OBJTYPE with BUS2105.