cancel
Showing results for 
Search instead for 
Did you mean: 

Wrong item number in SC

sap_2605
Active Participant
0 Kudos

Dear SAP experts,

We are in SRM 7.01 with ECC 6.05 where we deploy classic scenario. We are trying to make an enhancement in which PO in ECC will have the source SC doc number and SC item number.

We have this case where we initially have 3 items in SC (line 1,2,3). Then before it is fully approved, we delete item no 2. This line no 2 then disappear, and the line previously marked with line 3 become line no 2. However when we see in the table the line that now become line no 2, still have NUMBER_INT = 3 in table CRMD_ORDERADM_I.

This make sense from technical point of view. However if we pass the this number (3) to PO in ECC, then the user will confuse as when they see the SC, they dont see any line with number 3 in it.

Is there any field that keep this new line number? I see there is a field called NUMBER_EXT, but unfortunately it is filled by 0000000000

Best regards,

John

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi John,

You have exactly pointed out that technically you understand that why SAP is not removing the line item index number from the table.

As the functionality you are trying to achieve is not standard sending SC number and SC line item number to the PO, I assume you are implementing BBP_CREATE_BE_PO_NEW BADI to pass SC number and SC line item number. You can easily achieve change the number of the line item in this BADI while passing parameter in PO. You can use FM BBP_PD_SC_GETDETAIL in the BADI to retrieve the information of the SC and for each line item in table ET_ITEM there is field call DEL_IND which if "X" that mean the line item is deleted and accordingly you can adjust the SC line item number pushing into PO.

Hope this helps.

Thank you

Ritesh