cancel
Showing results for 
Search instead for 
Did you mean: 

Need a custom importing parameter (Plant) for implementing OCI

aoime02
Explorer
0 Kudos
191

Hi Experts,

We would like to seek an advice on how we can have a custom importing parameter that will contain the value for the Plant. We already develop a logic in the BADI MMPUR_OCI_ITEM_TRANSFER_DATA to get the SAP Material Number using the VENDORMAT importing parameter from the external catalog which is a same value for Supplier Material Number in the S4 system using the CDS of Purchasing Info Records. The problem is multiple plants may use a common VENDORMAT or Supplier Material Number but maintaining different SAP Material Number and PIR. And in order to get the correct SAP Material Number from the runtime internal table we need a second importing parameter that is also an identifier which in this case is Plant.

Is there any way that we can make a custom importing parameter that is coming from the code and not on the parameter sent by the external catalog?

We thought of assigning specific web services per plant to make the logic possible.

It is a very helpful feature if will become successful because, it will prevent users on purchasing materials without checking on the stocks.

Hope you can help with this.

Thanks.

View Entire Topic
Zhehui_Xia
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

I think you cannot custom an importing parameter here. Could you try to use another importing parameters to fetch fields from CDS Views to identify?

Also you can try to raise a CIP to ask for new importing parameters in this BAdI, if it is a very helpful feature.

Best Regards,

Zhehui

aoime02
Explorer
0 Kudos

Hi Zhehui_Xia,

Since we observed that the Web Serices ID is one of the parameters that is being configure in S4 and being received as an importing parameter from External Catalog, we purposely make the ID to have the plant, and we extract the plant on the ID and make it as part of the query for the internal table alongside with the supplier material number to get the SAP material number. This is just tweak, hopefully there could be standard way that we can manipulate some importing parameters.

Will log CIP for this then.

Thank you.