Change material master i.e MM02 using BAPI's

Hi ,
I need a BAPI which will change material master for changing MRP 2,Accounting 1 and Costing 1  View .
Please provide me with code if possible .
Thank you .
Regards,
Kumar.

hi ,
Use the fm SELECTION_VIEWS_FIND to get the list of active view for a particular materisl.
The index of each record in the returned table will correspond to the position of that view in the list of views that is displayed in the bdc recording.
The number of views maintained for a material is listed in field MARA-VPSTA.
Each Letter in above fields indicate the views maintained. Following is the list.
A Work scheduling
B Accounting
C Classification
D MRP
E Purchasing
F Production resources/tools
G Costing
K Basic data
L Storage
P Forecasting
Q Quality management
S Warehouse management
V Sales
X Plant stocks
for bdc check this,
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/bdc%2btutorial
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/new%2bpage
BDC:
Batch Data Communication (BDC) is the process of transferring data from one SAP System to another SAP system or from a non-SAP system to SAP System.
Features :
BDC is an automatic procedure.
This method is used to transfer large amount of data that is available in electronic medium.
BDC can be used primarily when installing the SAP system and when transferring data from a legacy system (external system).
BDC uses normal transaction codes to transfer data.
Types of BDC :
CLASSICAL BATCH INPUT (Session Method)
CALL TRANSACTION
BATCH INPUT METHOD:
This method is also called as ‘CLASSICAL METHOD’.
Features:
Asynchronous processing.
Synchronous Processing in database update.
Transfer data for more than one transaction.
Batch input processing log will be generated.
During processing, no transaction is started until the previous transaction has been written to the database.
CALL TRANSACTION METHOD :
This is another method to transfer data from the legacy system.
Features:
Synchronous processing. The system performs a database commit immediately before and after the CALL TRANSACTION USING statement.
Updating the database can be either synchronous or asynchronous. The program specifies the update type.
Transfer data for a single transaction.
Transfers data for a sequence of dialog screens.
No batch input processing log is generated.
For BDC:
http://myweb.dal.ca/hchinni/sap/bdc_home.htm
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&
http://www.sap-img.com/abap/learning-bdc-programming.htm
http://www.sapdevelopment.co.uk/bdc/bdchome.htm
http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm
http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html
Check these link:
http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
http://www.sap-img.com/abap/question-about-bdc-program.htm
http://www.itcserver.com/blog/2006/06/30/batch-input-vs-call-transaction/
http://www.planetsap.com/bdc_main_page.htm

Similar Messages

  • Updating Material Master Moving Average Price using BAPI

    Hi,
    We need to create a program using which we can update material master moving average price for a specific material.
    For this we are using BAPI_MATERIAL_SAVEDATA.
    when we are executing this bapi with inputs, it is showing data updated or created but when we are checking it in MAterial Master the data (MOving Price ) is not getting updated.
    Please advise,
    Thanks.

    I am trying to use BAPI_MATVAL_PRICE_CHANGE to change the price of a material in material master
    (The moving average price [MAP] in Accounting View 1)
    Using the BAPI, I enter
    --> RFC target are
    -> Material No.
    -> Valuation Area
    --> Prices table (I enter the new price that i want)
    when I run the BAPI, i get error message (This can be seen in the returns table)
    ID --> CKMLSENDPRICE
    MESSAGE NUMBER --> 701
    DETAILS --> No customizing data for Valuation Area XXXX found
    PLease advise.

  • Error while trying to change Material master

    Hi ,
    I am getting following error when I am trying to Change material master thru Tcode MM02
    "Required parameter missing when calling up module MARA_SINGLE_READ"
    In fact , I also couldn't select this Material in Purchase order .Error which i am getting is "Faulty Material"
    Could anyone pls help me.
    Regards
    Sandeep marwha

    I created a new material also , but for that also I am getting same error.
    Regards
    Sandeep

  • Upload Material master with long text using LSMW

    Hello,
    i want ot upload material master data via MM01 using LSMW in following views: basic data 1 ,2,  purchasing, purchase order text, plant data 1,2.
    i have to upload long text in purchase order text with length more then 132 char. (approx 700 char long text). and i have text file in which long text is maintained in a single row. then how can i do it without formating text file or anyother possible solution.
    please help.

    ca u clarify how can i do it.
    suppos i have longtext   "Air cooled type air-conditioning unit complete with following components & distance between indoor & outdoor unit is  10 RMT.  A).Indoor evaporating unit comprising of cooling coils,insulated drain tray,20 micron HDPE washable filters,blower,motor,electical junction box etc. B).Outdoor condensing unit comprising of hermatic/semiharmetic compressor's.condenser coils,propeller/axial fans,motors,pressure switches/cutout etc.C).Charging of refrigerant gas & oil.D).Inter connecting refrigerating piping  of copper duly insulated with EXPANDED POLYETHYLENE tubing.E).Complete electical power wiring of AL.&Control wirng of copper required from indoor & outdoor units.Earthing of the complete system with 8 G G.I.wire.  F).Electrical panel will be completed with necessary starter,fuses,switches,timers,over-load relays,contactors,push button and indicating lamps,single phasing preventer etc..and also with remote control with cording. G).The panel should have 1 no.potential free contactor to connect with central fire detection system.The panel should have voltage scanner to ensure stabilized power input to the machine.H).Outdoor unit shall be mounted on MS angle base frame structure duly black painted with synthetic epoxy paint.I).The frame structure shall be mounted on MS plate & serrated rubber pads."
    then what i have to do changes in lsmw.?

  • Control to  create or change material master

    I want to let a group person to create or change material maters only with material group 16. I found an auth. obj. M_MATE_WGR, and set activity as *, while activity goups as 16. But the nothing happened when I change a material with material group 17. It seems this auth. obj. is not checked while change material master. Does any idea for this case? How to let the system check this auth. obj.?
    Thanks great.

    HI,
    Adding to what Sudipta has said, you can also use the workbook technique for accomplishing these type of changes. That way you can achieve all hover text changes in one shot across all MA tabs.
    The 2 main tabs in the wokbook to be changed are: 'Localized Resource' and 'UI overrides' tab.
    As an example, suppose you want to add the following text for Master Agreement External Category field:
    "This field is a classification hierarchy to describe the products or services of the event and/or agreement."
    So in the Localized resource tab, fill out the following:
    BUNDLE: custom
    RESOURCE_ID: xxx     
    RESOURCE_KIND: APP_TEXT     
    DEFAULT_VALUE: This field is a classification hierarchy to describe the products or services of the event and/or agreement.
    Then refer the same attributes in the UI Overrides tab:
    UI_ID: contracts.agreement.ui.buyside.default
    FIELD: EXT_CAT
    ATTRIBUTE: Description
    VALUE: Same as Resource ID used in localized resource (xxx above)
    Hope this helps,
    Vikram Shukla

  • Creation of material Documents for RMPM adjustments using BAPI

    Hi
    can any one help me Creation of material Documents for RMPM adjustments using BAPI...
    i should be grateful to you...
    advance thank you
    with regards
    venkat

    You can check MB_CREATE_GOODS_MOVEMENT which has mkpf as inporting parameter.

  • Material Master workflow - how to use a BAPI?

    Hi,
    I need some help with a material master workflow.
    My requirement is to automate some changes to the material master as steps in the workflow, they are:
    Set the Cross plant material status
    Set the material deletion flag
    I see that the BAPI SAVEDATA is available as a method of BOR BUS1001006. I have created a task with this method but I cannot work out how to automate the changes to the material in the workflow using it?
    Has anyone used this BAPI method in a workflow before, how do I automate the changes to the material using it? or is there another way to make changes to the material as a background step in my workflow?
    Many thanks,
    Neil

    All,
    thanks ever so much for all your input... I have fixed the problem and it was obscure!
    Firstly my binding was wrong... I should not have bound the clientdata and the clientdatax
    since the settings I was trying to default (material status an del flag) from the master task were actually being overwritten with this binding. bit of a schoolboy error that one.
    Secondly I created 1 brand new task and reused 1 old task for the purposes of setting the material status and the deletion flag respectively.
    I managed to get the first one working this morning by removing the binding, the second one still errored with the message about source and target structures being different... which got me thinking, so I created a brand new task for setting the deletion flag and ... it worked!
    So why? ... then I realised.
    We just upgraded to EHP7 and this workflow existed prior to EHP7. I copied the workflow and edited it for my new business requirements. Reading some of the release notes it turns out the structures have changed and there were conversion routines for fixing them.
    All sorted now!

  • Change number in material master required steps to use

    Hi All.
    Thanks in advance sap  mm dudes.
    Need steps in sap mm material master change number.
    creation of change number  and usage  of change number
    Display of list of changes.
    Regards.
    parameshwar

    Dear Parameshwar,
    1.I assume you have created a change number without release key in CC01.
    2.In CC02,for the same change number goto object types and include the check box against material for the first 3 check box and
    save the change number.
    3.Now check in MM02 for any material master changes or I would suggest you to create a new change number with valid from
    date as current date,include the settings for material under object types and then check in MM02.
    Check and revert.
    Regards
    Mangalraj.S

  • Exit while changing Material in  MM01 or MM02

    Hi gurus,
    I’m having some doubts with implementing an exit concerning TR. MM01 and MM02
    I run TR. MM01 or MM02 , enter a Material Number, choose a view, then choose tab “ sales: sales org. 1”. Every time that I change the field “X-distr.chain status” and “DChain-spec. status” with “Z1” ( client specific restriction that allows blockING a material) I want to put the same “Z1” but in tab “Purchasing” in field “Plant-sp.matl status”.
    I’m using EXIT   MGA00001 Material Master (Industry): Checks and Enhancements
    I can put the “Z1” in tab “Purchasing” field “Plant-sp.matl status” for a specific material number (MATNR), but my question is how can I confirm that the user choose a “Z1” for a specific MATNR ? I’m asking this because my code is triggered when the user push the save button, and at this time I don’t have any modification in the table so I need to be sure that the user put the Z1 for a specific material?
    Can u help me with this ?
    TAB: sales: sales org.
    “X-distr.chain status” = MARA-MSTAV
      “DChain-spec. status” = MVKE-VMATA
    TAB: Purchasing
    “Plant-sp.matl status” = MARC – MMSTA
    Best regards,
    Full reward points if helpful.
    Mário.

    HI Miki
    Could you let us know for what purpose you want to use classification, ex: Define the charesteristic for material etc.
    As it has many functionalities.
    For creating the material with classification view, in the material type Classification view should be activated.
    Goto OMS2, Select the material type & click on details.
    Check for the material type Classification view is selected or not.
    Select it if not selected.
    Before creating the material master you need to maintain the Characteristics using CT04 & Class using CL02 with Class type 001 - Material class
    Assigning the Characteristics to the Class in CL02
    Goto MM01, create the material master selecting the Classification view & maintain the class maintained & the Characteristic Values.
    From the Classification screen in the material master:
    When you create classification data, the system asks you to choose a class type in a dialog box. If necessary, you can change the class type on the following screen, where you assign the material to one or more classes. Entries are made in the Description, Status, and Icon fields automatically on the basis of the classes you have chosen. If you have assigned the material to more than one class, you can flag one of the classes as the standard class. You can then assign values to the characteristics. For example, if the characteristic is color, you can assign it the value blue
    Save the material after maintaining all the views required.
    Also check the below link
    http://help.sap.com/saphelp_46c/helpdata/en/ff/515d5849d811d182b80000e829fbfe/content.htm
    Regards
    Mascot
    Edited by: Manish Kumar on Apr 11, 2011 5:44 AM

  • BAPI_MATERIAL_SAVEDATA -        Create and Change Material Master Data

    Hi,
    I want to delete a record an EAN record(MEAN table entry) available in addtitional data tab in Basic data in Material master.
    I am making use of the BAPI BAPI_MATERIAL_SAVEDATA -  to delete the record..
    However I am not able to do the same ..,
    Kindly guide me what all details needs to be passed,, to do the same ...
    I cannot delete directly from MEAN table...
    Regards
    Irfan

    Hi,
    Pass the details in the table INTERNATIONALARTNOS of the BAPI.
    Set the deletion indicator field DEL_FLAG to delete teh record.
    What error messgaes are you getting?
    Regards,
    Ankur Parab

  • Change Scheduling Agreement and Info Record using Bapi

    Hi Experts,
    Can anybody say how to change the Scheduling agreement and Info Record using Bapi.
    I use BAPI_AGREEMENT_MAINTAIN to change Scheduling Agreement .
    But it does not changing Scheduling lines.

    Hi,
    Please find the below link check the setting are correct or not
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a02cb00a-bfb4-2c10-98aa-e33e7f64ba28?quicklink=index&overridelayout=true
    Reagrds,
    Pramod

  • Getting error in while changing sales order which is created using BAPI

    Hi All,
       I have created the sales order using BAPI ( BAPI_SALESORDER_CREATEFROMDAT1 ) and i am successfully creating sales order using this BAPI. But while i want to change sales order iam changing Shipping Conditions in Header Data of sales order .its giving an error .can any know any thing about this.
    Error mesage :    No status object is available for SDI 300082407/10    (Order Number/Item Number)
    In Header i  am passing these values ...
         wa_order_header_in-doc_type = vbak-auart.
        wa_order_header_in-sales_org = vbak-vkorg.
        wa_order_header_in-distr_chan = vbak-vtweg.
        wa_order_header_in-division = vbak-spart.
    Do i required to pass the below values ? in Header structure ( BAPISDHEAD1 ).
    REFOBJECTTYPE
    REFOBJECTKEY
    REFDOCTYPE
    Regards,
    Sudhakar Reddy A

    rectified

  • Mass change Material master

    Dears,
    How can I download current material master to excel format then transfer to another SAP PRD system?
    regards,
    wilson hong

    You Can Download the Material Master Data Maintenance View Wise Using the Tables MARA, MARC, MARD, MBEW etc.
    Go to SE11 and Input Table MARA and Select the Fields for Selections and in PSTAT Maintenance Status Tab Input the Following and download the Same.
    User department Maintenance status
    Work scheduling A
    Accounting B
    Classification C
    MRP D
    Purchasing E
    Production resources/tools F
    Costing G
    Basic data K
    Storage L
    Forecasting P
    Quality management Q
    Warehouse management S
    Sales V
    Plant stocks X
    Storage location stocks Z
    First Download the Data and Perform a BDC to Upload the Master Data Maintenance Status Wise.

  • Sending change date of BP to external using bapi CRMXIF_partner

    Hi,
    I am using bapi crmxif_partner_save_m01 to send create and change of BP to external system as Idoc. I also need to send change date and user id, if changes are made to bp. but i could't find appropriate fields in bapi. Is there anything with bdoc to send or how is it works.
    Other issue that i have when we receive an idoc from external system we need to send acknowledge to them as a batch job at night thru same interface. how it gona works. Here we are sending idocs and receiving idocs but external sys is non sap ESB.
    one more, when we save BP it should generate idoc thru bdoc and send to external sys using CRMXIF_PATNER_SAVE_M. External sys assign a number for our each bp number and send them back to us thru same interface. I assume same bapi automatically updates IDOC data into bdoc and populates into sap tables. Please correct me if i am wrong.
    Please suggest me.

    Guy,i don't regard here is anybody wanna read so much code .For more constructive answers, you would distill core question from your program.

  • Material creation for All VIEW using BAPI Function modules

    Dear All,
                 I want to create materials for all views using BAPI F.Ms. By using BAPI_MATERIAL_SAVEDATA i have extended materials for for only specified views. now my requirement is to create Material with All views including Classfication view also. For this i found BAPI_OBJCL_CREATEFM.
             Tell me that shall i use both Fm's at time to create material.Will it work? According to my knowledge we need to create Characters first ,then we should  assign this character to this class, then while creation of material we should select this class .
            so pls guide me the procedure to follow for both FM's .
    Note : Pls don't suggest me LSMW OR BDC procedure.
    regards,
    Prashanth Maturu.

    Hi prashanth,
    U can use both the FM. using BAPI_MATERIAL_SAVEDATA u can create all the views and for classification view use BAPI_OBJCL_CREATE. before assigning class to material u hve to make sure that the characteristics are uploaded and is attched to the class using transaction CL03.
    Regards,
    Anil N.

Maybe you are looking for

  • Airport Extreme green light but can't see the wifi network

    Hello, coming back from the holidays I can't see my Wifi network anymore (From PS3, Phone, Computers ..etc.). My airport has a greenlight and the internet is working fine if my computer is connected with an Ethernet cable. I re-did the configuration

  • Does Maverix slow my MacBook Pro i7

    does Maverix slow my MacBook Pro i7 specs

  • A command to run a script function in 2004s

    Hi guys I would like to run a piece of script before first load of a WAD template. I know that in the properties of the template there is an option to run action before first display. The thing is that I would like to run script and not a command. Is

  • Standby DB shu and start sequence

    HI all, if i need to Shu a DB which is atteched with a physical standby db so ,what will be the procedure to shu and startup of prymary and standby db. Thanks in Advance. Deep

  • RE: Test automation tools for Forte applications

    Mark, There is a basic automated testing program already supplied by Forte in the examples. It is called AutoTest.Pex. It records events and can replay them. It can be a bit tricky and is a bit basic, but may have some of the functionality that you w