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

Reset MVKE fields using MATERIAL_MAINTAIN_DARK

Former Member
0 Likes
1,225

Hi im trying to reset fields VMSTA and VMSTD from MVKE

Im using MATERIAL_MAINTAIN_DARK

input data:

AMARA_UEB-MATNR = 300142.

<a href="http://img.photobucket.com/albums/v69/konstantan/mvke.jpg">MVKE</a>

<a href="http://img.photobucket.com/albums/v69/konstantan/reset.jpg[">AMFIELDRES</a>

Im getting the error msg "Valid from" date only defined in conjunction with status

What could be wrong ? what value should I put in AMFIELDRES-TRANC and D_IND?.

Thanks and Regards.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
802

Hi,

You can use the BAPI BAPI_MATERIAL_SAVEDATA ..in there pass

HEADDATA-MATERIAL = 'material number.'.

HEADDATA-SALES_VIEW = 'X'.

SALESDATA-SAL_STATUS = ' ' .

SALESDATA-VALID_FROM = ' '.

SALESDATAX-SAL_STATUS = 'X'.

SALESDATAX-VALID_FROM = 'X'.

Then call the BAPI with the above values..

Then call BAPI_TRANSACTION_COMMIT to commit the data

Thanks

Naren

Hi,

You can use the BAPI BAPI_MATERIAL_SAVEDATA ..in there pass

HEADDATA-MATERIAL = 'material number.'.

HEADDATA-SALES_VIEW = 'X'.

SALESDATA-SAL_STATUS = ' ' .

SALESDATA-VALID_FROM = ' '.

SALESDATAX-SAL_STATUS = 'X'.

SALESDATAX-VALID_FROM = 'X'.

Then call the BAPI with the above values..

Then call BAPI_TRANSACTION_COMMIT to commit the data

Thanks

Naren

3 REPLIES 3
Read only

Former Member
0 Likes
803

Hi,

You can use the BAPI BAPI_MATERIAL_SAVEDATA ..in there pass

HEADDATA-MATERIAL = 'material number.'.

HEADDATA-SALES_VIEW = 'X'.

SALESDATA-SAL_STATUS = ' ' .

SALESDATA-VALID_FROM = ' '.

SALESDATAX-SAL_STATUS = 'X'.

SALESDATAX-VALID_FROM = 'X'.

Then call the BAPI with the above values..

Then call BAPI_TRANSACTION_COMMIT to commit the data

Thanks

Naren

Read only

0 Likes
802

thanks

i manage to resolve my problem with BAPI BAPI_MATERIAL_MAINTAINDATA_RT.

Read only

0 Likes
802

Could you please tell me how you solve the issue. It will be very helpful to me and to others

Regards,

Lisa