Skip to Content

BAPI_MATERIAL_SAVEDATA

Dear all,

I want to change Purchasing Group -EKGRP

MRP Controller -DISPO

INHOUSE PRDN TYPE-DZEIT

Planned Delivery-PLIFZ

Planning stratergy group-STRGR

USING BAPI_MATERIAL_SAVEDATA.Is this possible and how?

i am trying to use bapi for the first time.

Can any one plz send me some sample code

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2008 at 04:53 AM

    Hi,

    In this BAPI, first update all the important datas for the material

    example header data , client data etc.

    Then in plant data, we have purchasing group, mrp controller,

    inhouse prodn type, planned delivery, planning strategy grp.

    Update the values.

    Ex:

    check whatever views you need.

    wa_headdata-material = l_matnr.

    wa_headdata-matl_type = wa_xyz-mtart.

    wa_headdata-basic_view = 'X'.

    wa_headdata-sales_view = 'X'.

    wa_headdata-purchase_view = 'X'.

    wa_headdata-mrp_view = 'X'.

    wa_headdata-work_sched_view = 'X'.

    wa_headdata-storage_view = 'X'.

    wa_headdata-warehouse_view = 'X'.

    wa_headdata-quality_view = 'X'.

    wa_headdata-account_view = 'X'.

    wa_headdata-cost_view = 'X'.

    *Updating plant data

    wa_plantdata-pur_group = ekgrp.

    wa_plantdata-mrp_ctrler = dispo.

    wa_plantdata-plnd_delry = plifz.

    wa_plantdatax-pur_group = 'X'.

    wa_plantdatax-mrp_ctrler = 'X'.

    wa_plantdatax-plnd_delry ='X'.

    CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'

    EXPORTING

    headdata = wa_headdata

    clientdata = wa_clientdata

    clientdatax = wa_clientdatax

    plantdata = wa_plantdata

    plantdatax = wa_plantdatax

    AND so on.

    Hope this is fine.

    Regards,

    Sundaressh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2008 at 04:59 AM

    Chk this thread for sample code.

    BAPI_MATERIAL_SAVEDATA - QM - Inspection Setup

    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.