Quantcast
Channel: SCN: Message List - ABAP Development
Viewing all articles
Browse latest Browse all 10425

BOM Update with required change numbers

$
0
0

Hello,

 

Let me explain the background of my problem and then put my question.

 

We use CU51 tcode to update order BOM with changes. When we see the list of items in the result list, we can also look at the change number against which the change will be implemented. So I want to have a approval workflow before this happens to decide which change number is to be implemented on the Order BOM. Once having the approved change number, I would like to implement only the approved change number.

 

Scenarios:

If CH1 and CH2 are used to do the changes, and during workflow, If CH1 gets approved before CH2, then I planned to use the APIs used in CAVC_TEST tcode to INITIALISE AND SAVE the BOM with only the approved CH1, which confirms and saves the change on Order BOM.

 

Can any one suggest the best way to do this scenario. I have tried these APIs but i can find ISTPOM[] having the item entries in debugging mode, from which i can select and delete the records with unapproved change numbers. But I need to perform the same action using some User Exits or BADI. But I referred few, which had only importing parameters and not changing parameters to pass back. Any suggestion or advice on this will help me a lot.

 

I tried the few of the below options:

Badi

BOM_UPDATE   

          -change at save

          -change before update

 

UserExit

CCUXSETM          Saving of Manual Changes for SET Processing

CCUX0004            Post-Processing of Configuration with Dependencies

CCUX0005            Transfer of Item Category by Type Matching

CCUX0006            Fixing of an Order BOM

 

Please suggest how can we edit the item details pulled from STPO table before updating the Order BOM.

 

Anand


Viewing all articles
Browse latest Browse all 10425

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>