cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How is calculated SC current quantity in item basic data tab ?

laurent_burtaire
Active Contributor
0 Likes
562

Hello,

We work on a SRM 7 release with PPS.

As it is not possible in Extended Classic Scenario to use local contracts (that is not replicated into ECC backend) as sources of supply for "Limit" item Shopping Cart creation, we create "Free text" (Description) SC item.

For this kind of SC item, according to a specific and dedicated UoM, SC quantity is given as mandatory to be '1'. Then, users populate price. So, in this way, we have an "Amount" SC item being equivalent to standard "Limit" SC item.

Then, at corresponding PO item creation, SC item quantity ('1') is populated into PO item gross price and SC item gross price is populated into quantity PO item in order to be able to confirm in "quantity" our PO.

This process is OK.

Nevertheless, we have two sides effect after PO is generated :

1- Field "Current quantity" (not sure with the name - i do not have SRM system in front of me) for SC item basic data tab seems to be populated with value being difference between SC item quantity and PO item quantity.

For example, if SC item quantity is '1' and PO item quantity is '20.000' in SC item basic data, order quantity is '1' and ordered quantity is '20.000' with is normal. But "Current quantity" (below "Ordered quantity") is '19.999-' instead of '0'.

2- After a first confirmation created based on SC (not on PO, this is important), SC POWL button "Create confirmation" is greyed out. This seems to be normal behavior as PO item quantity confirmed first time can not be lower than 1, this confirmed quantity is greater than SC item quantity. So, there is no SC outsanding quantity...

Our two problems should be linked: this is due to how "Current quantity" for SC is calculated.

As our customer users do not have access to PO POWL, we can not use create Confirmation transaction in order to use PO as reference document to create confirmations.

In a technical point of view, field concerned is PS_SC_OUT_QUAN (not sure with this name...) for context ITEM_BASIC_DATA from view V_DODCSC_I_BD (WDC /SAPSRM/WDC_DODC_SC_I_BD ).

I found enhancement for this field ( /SAPPSRM/WD_SC_I_BD_QUAN ) but this enhancement has no method !

I tried to debug some methods from Class /SAPSRM/CL_CH_WD_SET_FACADE, but i did not find yet where calculation is done for concerned field.

My aim is to make an enhancement to overwrite standard calculation.

An easier way should be to reverse gross price and quantity directly inside SC (to not have difference betwen SC and PO quantities), but our customer does not want.

Do you have any idea ?

Regards.

Laurent.

Accepted Solutions (0)

Answers (1)

Answers (1)

laurent_burtaire
Active Contributor
0 Likes

Hello,

We used a workaround to answer to our customer's requirement.

We ceated two customer fields, one for net price and a second one for the quantity. Using metadata, we hid the two corresponding standard fields and displayed our CUF in SC.

Using BadI Change for SC, we populated standard fields with our CUF values (after having made inversion between quantity / net price).

Checks are done in BAdI to be sure our quantity CUF and price unit values are '1'.

As we use SC to create only PO as follow-on document, no other modifications are necessary.

Regards.

Laurent.