Skip to Content
0

ABAP Consistency Check Production Versions

Feb 12 at 03:51 PM

78

avatar image
Former Member

Hi Experts,

To fulfill the requirement of our customer we created an upload tool for master date which creates BoM's, Routings and Production Versions in one go.

Creation of these objects works just fine, but there is one problem with the production versions. We are using CM_FV_PROD_VERS_DB_UPDAT as function module and are entering all the required information.

Now our issue is the consistency check. We update PRFG_S, PRFG_F and the PRDAT, but after saving and running the MRP, the BoM is not found. When we do the consistency check manually in transaction C223 it works perfectly.

Could you please help us out to fix this issue on how to do the Consistency Check for this Production Version?

Thank you very much!

KR,

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Caetano Almeida
Feb 13 at 03:27 PM
0

Hello Guy

Function module CM_FV_PROD_VERS_DB_UPDAT is not released, which means that it was not developed to be used in custom programs, so these kind of problems may happen when you use it outside SAP standard transactions.

Did you try to compare the values on table MKAL when you create the production in C223 and when you create it with this function module? Anything different?

Regards,

Caetano

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hello Caetano,

Thank you for your answer. The MKAL-table is correctly filled and is 100% the same as a manually created Production Version. Unfortunately, when I look at the details, I notice at the bottom that some fields are not filled in, fields that reference to table MKAL_EXPAND. I was hoping that a solution could be provided on how to fix this during the creation of the production version, how to add the fields to that structure.

As there is no standard BAPI available for the Production Version, we feld 'obliged' to use this one. Just hoping to take the last bump in the ride.

Kind Regards,

Guy De Coninck

0