Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

selling period must be within usability period

0 Kudos
3,832

Hi, Folks

I get the error ' selling period must be within usability period ' while updating an article using the standard BAPI.

The validity dates look okay in tables MAW1 & MVKE.

What can be the resolution to this? Thanks.

1 ACCEPTED SOLUTION
Read only

mayankgupta2017
Explorer
0 Kudos
1,640

Go to MM42, under listing tab change the dates to the current system dates for both store and DC.

Save your changes.

After that try to change the UPC using BAPI, it shouldn't throw any errors.

5 REPLIES 5
Read only

JL23
Active Contributor
0 Kudos
1,640

did you already try if you get the same message when maintaining the material manually?

If you dont get the message in the online transaction then you can be certain that you moved the wrong date in the BAPI, if you get the error message too then it is not BAPI and ABAP related. But as an ABAPer you should be able to easily get to the code which triggers the MH032 message to see which fields SAP compares.

Read only

0 Kudos
1,640

you are right, thanks

Read only

0 Kudos
1,640

Thanks for the response, I understand it but all I'm doing is to update EAN/UPC using the standard BAPI. This is for an existing style and it's variants, not populating any dates while calling the BAPI

I've been debugging this for more than 2 days and this error message is being populated dynamically inside the nested loops, not a straight forward error message. There is some connection between the articles and this selling period must be within the usability period that is not clear as this is not happening for every generic article/style.

Read only

mayankgupta2017
Explorer
0 Kudos
1,641

Go to MM42, under listing tab change the dates to the current system dates for both store and DC.

Save your changes.

After that try to change the UPC using BAPI, it shouldn't throw any errors.

Read only

0 Kudos
1,640

Mayank

Great, thanks for the response/suggestion. Yea, those dates have to be updated, the standard code is comparing MARA-DATAB with MVKE-VDVFL / MVKE-VDVZL / MAW1-VDVFL / MAW1-VDVZL inside the FM: MVKE_SPECIAL_CHECK_GEN_RETAIL