cancel
Showing results for 
Search instead for 
Did you mean: 

BOM Valid to date need to be updated for latest ECN

former_member464519
Participant
0 Kudos
1,771

Hi Folks

i have a requirement to update the valid to date for a latest change number ( Please note that not for previous change number ) at bom item level using a function module , so in this process , i am testing the function module CS_BOM_STPO_VALIDITY . But when i am executing this , i am getting an error KEY_INCOMPLETE . can anyone kindly guide how to update the valid to date for the latest change number at item level , please find the below attachment for the input details .

Accepted Solutions (1)

Accepted Solutions (1)

ameya_beri
Active Contributor
0 Kudos

Hello Sowrya,

The change number 5* 28 is valid from 15-09-2021. Change number has concept of valid from. The BOM line item has been valid from 15-09-2021 to 31-12-9999. If you create a new change number, and make it valid from in future, and change the same line, then the valid from of date of the new CN, will be valid to date of the current line and there will be a new line added valid from new date to 31-12-9999.

I do not think you can control the 31-12-9999, as that is how the system works with change numbers.

When you want to expire the line, you can just process it with any new CN with the valid from date you want.

Hope this helps.

Regards,

Ameya B.

Answers (4)

Answers (4)

former_member464519
Participant
0 Kudos

we had implemented this solution for above requirement.

In order to restrict the valid to date for an ecn , we had used another ecn which we would be considering it as a dummy which gets generated internally in sap for only one time and the valid from date of that ecn keeps on extending which restricts the valid to date of its previous ecns. Thanks to everyone who had provided their solutions as well.

rajesh_madham
Participant
0 Kudos

In your case:

Create a ZBAPI and call in internal bapi in your screenshot for deducing and put results in your Zreports at valid to/from date .

New change number valid from date = Valid to date of old change number of same components or header.

Concept is controversial for what you are trying. But add a new next change number and then find valid to date at admin tab.

former_member184670
Active Participant
0 Kudos

Hi Sowrya,

Once you set the alternative date in the ECN the objects (Material / BOM) attached to the ECN is set to released.

Say for example if the alternative date set for the BOM is 01/11/2021 then the BOM valid from data is shown as 01.11.2021 instead of 31.12.9999.

Please check the alternative dates.

Thanks,

Sundhu

former_member202945
Participant
0 Kudos

Hi Sowrya,

Now, we can understand your requirement.

As per Std SAP we add new ECN and make changes to BOM component then the older ECN number in the BOM will have "Valid To" Date as "Valid From" Date of new ECN.

I will let u know if i find any other options for your requirement.

Regards,

Saikrishna.