Skip to Content
author's profile photo Former Member
Former Member

Unable to update MARC-MMSTA using BAPI_MATERIAL_SAVEDATA

Hi All,

I am trying to update MARC-MMSTA as below and I am not getting error from the BAPI but still I am not able to update the field.

Please let me know the issue

ws_headata-material = ws_records-matnr. "ws_update_price-matnr.

ws_headata-purchase_view = 'X'.

ws_plantdata-plant = ws_records-reswk. "ws_update_price-reswk.

ws_plantdata-pur_status = space.

ws_plantdatax-plant = ws_records-reswk. "ws_update_price-reswk.

ws_plantdatax-pur_status = 'X'.

  • ws_plantdatax-pvalidfrom = 'X'.

  • Modify Plant-Specific Material Status

CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'

EXPORTING

headdata = ws_headata

plantdata = ws_plantdata

plantdatax = ws_plantdatax

IMPORTING

return = ws_msg.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'.

Thanks

Bala Duvvuri

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Feb 08, 2012 at 06:49 AM

    Are you also passing pur_status in clientdata and clientdatax tables ?

    [Update plant material status using bapi BAPI_MATERIAL_SAVEDATA |Update the x plant material status and plant speific material status;

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 08, 2012 at 06:57 AM

    Hi,

    Check the bellow link which help you in creating BAPI_MATERIAL_SAVEDATA.

    <external link removed>

    Regards,

    Goutam Kolluru.

    Edited by: Suhas Saha on Feb 8, 2012 12:40 PM

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.