Determine Backend system based on Product category in SAP SRM
To determine product category based on backend systems following are prerequisites:
- All backend systems should be defined as unique logical systems.
- RFC destinations should be defined.
- Product Category should already been created.
Defining a Backend System for a Product Category
Depending on product category purchase document and follow-on documents will be created locally or in any backend system attached to them.
The path for defining is mentioned below: SPRO →Supplier Relationship Management → SRM Server → Technical Basic Settings → Define Backend Systems → Define Backend System for Product Category.
Determining backend system using BADI BBP_DETERMINE_LOGSYS :
We can use BADI BBP_DETERMINE_LOGSYS to define backend system based on our criteria. During determination of backend, back end system value is placed in ITEM_DATA-LOGICAL_SYSTEM field of BADI BBP_DETERMINE_LOGSYS.
” Use method DETERMINE_LOGSYS to determine backend system for Shopping carts.We can modify the value of ITEM_DATA-LOGICAL_SYSTEM based upon the value in ITEM_DATA OR ACCT_DATA.
” For Contracts:
In the standard system, the system creates contracts locally from Sourcing and SAP Bidding Engine.
Sample code for BADI BBP_DETERMINE_LOGSYS:
Create an implementation for BADI BBP_DETERMINE_LOGSYS.
method IF_EX_BBP_DETERMINE_LOGSYS~DETERMINE_LOGSYS.
data :lt_item TYPE LINE OF bbpt_detlogsys_item.
Loop at item_data into lt_item.
If lt_item-product_type = ‘XYZ’. “product type
If sy-sybrc = 0.
lt_item-be_co-code = ‘3000′. “‘company code
lt_item-logical_system = ‘ABCCLNT100′. “logical system
modify it_item from lt_item.
Endif.
Endif.