on 10-07-2009 3:04 PM
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 ?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.