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

Production Version error during recipe - material assignment using C202 tcode...

Former Member
0 Likes
3,669

Hi,

I am getting the below error message when I am trying to do the Recipe - Material assignment using the C202 (recipe change) transaction. The Production Version is already created for the material and plant in the MKAL table. When I click on the "Material List" in the C202 tcode, and enter the material, plant, production version. It gives the below error.

error message:     "Select a valid production version for the recipe"

I debugged the issue. The C202 calls the function module CM_FV_MKAL_DET_VAL_REC and inputs all the data (material, plant, prod version). But for some reason, the "Key date" field value of the C202 selection screen is not getting there. This key date field is used to check against the valid from and valid to date fields of the MKAL table. And no data is selected from the MKAL table, resulting in the above error.

function module call (CM_FV_MKAL_DET_VAL_REC😞

  IF NOT VERID_IMP IS INITIAL.

    LOOP AT MKAL_BT

          WHERE MATNR =  MATNR_IMP   AND

                WERKS =  WERKS_IMP   AND

                VERID =  VERID_IMP   AND

                PLNTY =  PLKOD-PLNTY AND

                PLNNR =  PLKOD-PLNNR AND

                ALNAL =  PLKOD-PLNAL AND

                ADATU <= STTAG_IMP   AND

                BDATU >= STTAG_IMP   AND

                VBKZ  NE VBKZ-DELETE.      "Kein gelöschten, neu zu 4.0C

      ADD 1 TO RC27X-ENTRIES.

*     MKAL_INT = MKAL_BT.                      "Unicode

      Move-corresponding MKAL_BT to MKAL_INT.  "Unicode

      MKAL_INT-INDEX_BT = SY-TABIX.

      INDEX_MKAL_BT = SY-TABIX.

      APPEND MKAL_INT.

    ENDLOOP.

Thanks!

Puneet.

Accepted Solutions (0)

Answers (1)

Answers (1)

Amit_SAP
Active Contributor
0 Likes

Hello,

Check in material master/Master recipe/C223 whether any production version is created with same name.

It is possible that production version is already exist with same name ,delete the earlier one and create new.

Hope this will solve your issue..!!

Regards,

Amit sharma

Former Member
0 Likes

I checked no prod version exists for that material, plant. I entered a new prod version number. so it is giving still same error "Select a valid production version for the recipe".

Amit_SAP
Active Contributor
0 Likes

Hello

Can you share screen shots of error Message,MRP 4 view production version and Master recipe?

But where you have created new production version ?

You can try first create the master recipe without material assignment--save, a recipe no will get generated. Now, create the production version for the component with BOM and recipe details with proper validity dates.

I hope this will solve your problem.

Regards,

Amit Sharma

Former Member
0 Likes

Hi,

Here are the steps that I followed.

(1) Created the material in the plant.

(2) Created the BOM for that material.

(3) Created the Recipe in C201. without Recipe - material assignment.

(4) Created the Prod Version using the MM02->MRP 4 view. Assigned the recipe number also.

(5) Going to C202 to do the recipe-material assignment. I enter the recipe and group counter number. Click on the "Material List" in menu. In the pop up I select "Other Material" option, then I enter material, plant and the prod version number that I created in STEP 4. I get the below error:

error message:    "Select a valid production version for the recipe".

I think the SAP is not expecting the Prod Version to be entered here. See if i only enter material, plant and press enter , it automatically pick the prod version that was created in MM02 -> Mrp 4 view. If there are > 1 pro version for that material, plant, after hitting the enter key it shows the list of the prod version in the next pop up screen. From that we have to select any one.

But for some reason, if i enter the prod version in the previous pop up along with material, plant. it gives this error, instead of going to next screen of the recipe - material assignment.

Thanks!

Puneet.

FULL error message details:

Select a valid production version for the recipe

Message No. C5606

Diagnosis

The production version is assigned to another master recipe. Select a production version for the current recipe.

Procedure

If no production version exists for the current recipe, the system leads you to create a production version using the function "material list". You can also maintain a production version for the current recipe using the "material recipe assignment" function.

rupesh_brahmankar
Active Contributor
0 Likes

Hello,

What does it means?

(3) Created the Recipe in C201. without Recipe - material assignment.

Check the master recipe Key date and production version date.

Do you have production version tick in material master?

While creating master recipe through C201 go to Component assignment tab Pop up to insert production version. Enter production version as 0001. Under BOM data select BOM. Save the Master recipe.

It will create the production version.


Best Regards,

R.Brahmankar

Former Member
0 Likes

Hi,

(3) Created the Recipe in C201. without Recipe - material assignment.

Here I will only update the Recipe Header and Recipe Operation tabs manually. I will not update the material tab. I normally do that using the data load.

I can do recipe - material assignment in the C202 by entering the recipe, recipe group counter, then selecting the material tab, then in the material popup, if I select "other material" button, then enter ONLY the material, plant and NOT prod version, the SAP picks the Prod Version (created via MM02-> MRP 4), and i can do the operation/phase assignment to the BOM components. That is not an issue.

But, as per my original post, if I try to do in a different way, it gives me that error. Not sure, if that is how it is supposed to work.

Thanks!

Puneet.

rupesh_brahmankar
Active Contributor
0 Likes

Hello,

Do you have production version tick in material master MRP4 view?

If it is missing then refer SAP note    856937 - Missing version indicator in material master - correction

a nd 1307210 - Current date used as "Key Date" for Production Version check

To check the key date and production version date.


Best Regards,

R.Brahmankar

Former Member
0 Likes

Hi,

I checked the version indicator field (MARC-VERKZ) was set to X, after the prod version is created.

The OSS Note 1307210 is already included in the program. Our SAP component version is SAP_ABA  740, support pack level is 0013.

Thanks!

Puneet.

rupesh_brahmankar
Active Contributor
0 Likes

Hello,

Please one a message to SAP.

Best Regards,

R.Brahmankar