Transfer of material master data with Classification view

Dear Experts
I want to transfer material master data between R/3 using ALE. We are able to send master data using BD10 without classification view.
Please let me know in detail the configuration, steps invloved in sending materail master along with classification view.
Regards
Samal

HAI FRIENDS,
CHANGING CLASSIFICATION VIEW FOR MATERIAL USING BAPI
->CREATE CHARACTERISTIC USING TCODE CT04
->CREATE CLASS USING TCODE CL01 .
-> RUN THIS PROGRAM TO CHANGE THE CLASSIFICATION VIEW
PARAMETERS: P_MATNR TYPE MARA-MATNR. "MATERIAL
DATA: OBJECTKEY TYPE BAPI1003_KEY-OBJECT,
OBJECTTABLE TYPE BAPI1003_KEY-OBJECTTABLE,
CLASSNUM TYPE BAPI1003_KEY-CLASSNUM,
CLASSTYPE TYPE BAPI1003_KEY-CLASSTYPE,
ALLOCVALUESNUMNEW TYPE TABLE OF BAPI1003_ALLOC_VALUES_NUM WITH HEADER LINE,
ALLOCVALUESCHARNEW TYPE TABLE OF BAPI1003_ALLOC_VALUES_CHAR WITH HEADER LINE,
ALLOCVALUESCURRNEW TYPE TABLE OF BAPI1003_ALLOC_VALUES_CURR WITH HEADER LINE,
RETURN TYPE TABLE OF BAPIRET2 WITH HEADER LINE.
OBJECTKEY = P_MATNR.
OBJECTTABLE = 'MARA'.
CLASSNUM = 'MTS_CABLE_BIN1'. "CLASS(CREATED USING CL01)
CLASSTYPE = '023'. "CLASS TYPE (023 FOR BATCH)
CALL FUNCTION 'BAPI_OBJCL_CHANGE'
EXPORTING
OBJECTKEY = OBJECTKEY
OBJECTTABLE = OBJECTTABLE
CLASSNUM = CLASSNUM
CLASSTYPE = CLASSTYPE
STATUS = '1'
STANDARDCLASS =
CHANGENUMBER =
KEYDATE = SY-DATUM
NO_DEFAULT_VALUES = ' '
IMPORTING
CLASSIF_STATUS =
TABLES
ALLOCVALUESNUMNEW = ALLOCVALUESNUMNEW
ALLOCVALUESCHARNEW = ALLOCVALUESCHARNEW
ALLOCVALUESCURRNEW = ALLOCVALUESCURRNEW
RETURN = RETURN
LOOP AT RETURN.
WRITE: / RETURN-TYPE ,RETURN-MESSAGE.
ENDLOOP.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN =
BY VENKATESWARAREDDY D
     MYTEC SOFT LTD

Similar Messages

  • Create Material Master Data with BAPI

    Hi,
    I don't know using of BAPI. I want using BAPI_MATERIAL_SAVEDATA bapi for creating material master data for Basic Data1, Basic Data2, Purchasing and MRP views. Does anybody can help me ?
    Thank you
    Good night

    Hi,
    Please refer to the documentation below:
    BAPI_MATERIAL_SAVEDATA
    Short Text
    Create and Change Article Master Data
    Functionality
    You use this method to create new material master data or to change existing material master data. The data on a material can be transferred for each call.
    When creating material master data, you must transfer the material number, the material type, and the industry sector to the method. You must also enter a material description and its language.
    When changing material master data, you need enter only the material number.
    In the header data, you must select at least one view for which data is to be created. Depending on the view selected, you must maintain other required parameters. If you do not enter values for all of the required parameters, the method is ended with an error message.
    The corresponding fields in the tables (such as CLIENTDATA) must first be supplied with data by the calling program. An indicator must also be set for each of these fields so that the data is written to the database by the method. This requires the calling program to supply the corresponding field with the indicator in a checkbox table (for example, CLIENTDATAX). Checkbox tables exist for tables that do not contain any language-dependent texts (MAKT, MLTX), International Article Numbers (MEAN), or tax classifications (MLAN). Several data records for a material can be created in these tables.
    If a structure contains fields for units of measurement (such as structure CLIENTDATA, field BASE_UOM), language indicators (such as structure MATERIALDESCRIPTION, field LANGU), or country indicators (such as structure TAXCLASSIFICATIONS, field DEPCOUNTRY), there is always a field of the same name with the ending _ISO. This makes it possible to transfer either the internally used SAP code or a standardized ISO code for the units of measurement, language indicators, or country indicators. ISO codes are converted to an SAP code internally for further processing. The ISO code is used only if the SAP code is not transferred. If you use ISO codes, there must be a unique assignment of the ISO code to the SAP code in the following activities in Customizing for Global Parameters:
    Check Units of Measurement
    Define Countries
    If you want to maintain long texts (basic data texts, internal comments, purchase order texts, material memos, or sales texts) or customer-defined fields for a material, some special conditions have to be observed. They are described in the documentation for parameters MATERIALLONGTEXT and EXTENSIONIN.
    Parameters
    HEADDATA
    CLIENTDATA
    CLIENTDATAX
    PLANTDATA
    PLANTDATAX
    FORECASTPARAMETERS
    FORECASTPARAMETERSX
    PLANNINGDATA
    PLANNINGDATAX
    STORAGELOCATIONDATA
    STORAGELOCATIONDATAX
    VALUATIONDATA
    VALUATIONDATAX
    WAREHOUSENUMBERDATA
    WAREHOUSENUMBERDATAX
    SALESDATA
    SALESDATAX
    STORAGETYPEDATA
    STORAGETYPEDATAX
    FLAG_ONLINE
    FLAG_CAD_CALL
    NO_DEQUEUE
    NO_ROLLBACK_WORK
    RETURN
    MATERIALDESCRIPTION
    UNITSOFMEASURE
    UNITSOFMEASUREX
    INTERNATIONALARTNOS
    MATERIALLONGTEXT
    TAXCLASSIFICATIONS
    RETURNMESSAGES
    PRTDATA
    PRTDATAX
    EXTENSIONIN
    EXTENSIONINX
    Exceptions
    Function Group
    1001UEB
    Thanks,
    Sandeep.

  • Material master creation with Classification

    Hi All,
    I am using an MATMAS05 IDOC interface to create the material master data.
    I am able to create the Basic Data 1 & 2 views.
    Can any one tell me the segments or feilds in the IDOC from where i can populate values to create the material classification?
    Regards
    Sunil.

    hi,
    The idoc type CLFMAS01 should be posted first into R/3 box or is it  MATMAS05.
    and how this two documents will be interlinked ?

  • Material Master Data related with an Asset

    Hi Guys
    I was told that the material master data that I am creating needs to be related with an asset hierarchy, any one know where Do I relate material master data with the asset hierarchy?
    thanks
    Carlos

    Hi,
    Though you Material grade is time dependent and sequentially changing.
    You can create 4 different DTP with Grade selection (only 1 Transformation).
    For example, 1 DTP with filter Grade A, another DTP with grade B, so on.
    and executive all 4 dtp sequentially and activate master data after every DTP run.
    Hope it will workout.
    Thanks,
    Balaram

  • SAP standards for retriving the Material Master Data

    Can someone provide me list of all SAP standards for retriving the Material Master Data with respect to views.
    Standard Reports
    Function Modules
    RFC's
    BAPI's.
    T.codes
    Sample code's
    useful answers will surely be awarded.
    Regards
    Vinayak

    Hi,
    These are the standard BAPI's for Material master.
    BAPI_MATERIAL_DELETE Flag Material for Deletion
    BAPI_MATERIAL_DISPLAY Display Material
    BAPI_MATERIAL_EDIT Change Material
    BAPI_RETAILMATERIAL_CREATE Create Material
    BAPI_RETAILMATERIAL_DELETE Discontinue Material
    BAPI_STANDARDMATERIAL_CREATE Create/Extend Material
    BAPI_MATERIAL_SAVEREPLICA BAPI for Mass Maintenance of Material Data
    BAPI_MATERIAL_SAVEDATA Create and Change Material Master Data
    BAPI_MATERIAL_EXISTENCECHECK Check Existence of Material
    BAPI_MATERIAL_GETBATCHCERT Create Quality Certificate for Batch in Portable Document Format (PDF)
    BAPI_MATERIAL_GETBATCHES Create Batch List for a Material
    BAPI_MATERIAL_GETCHARMERCHHIER Supply Characteristics of Retail Material for Material Group Hierarchy
    BAPI_MATERIAL_GETINTNUMBER Assign New Internal Numbers for a Material Type
    BAPI_MATERIAL_GETINTNUMBERRET Assign New Internal Numbers for a Material Type for Retail Materials
    BAPI_MATERIAL_GETLIST Supply List of Materials for Search Criteria Transferred
    Thanks.,

  • Function module to retrieve the material master data

    Hi all,
    creating material master dta i am using BAPI_MATERIAL_SAVEDATA .is there any f.m with same structures as BAPI_MATERIAL_SAVEDATA to retrieve the materi master data.

    Hi,
    Not sure if there is any function module to get material master data with the same structure..
    But..
    You can select the data from MARA, MARC, etc...and convert it to the BAPI structures using the following function modules..
    CFX_MAP2E_MARA_TO_BAPI_MARA
    CFX_MAP2E_MARC_TO_BAPI_MARC
    Thanks,
    Naren

  • Data for Classification View in Material Master

    Dear all,
    Can someone tell where the data for classification view is stored ??
    We are running a BDC and need to check whether classification view is maintained or not ??
    Thanks in Advance
    Regards,
    Vivek K

    Hi,
    Check the table MARA, there is a Field VPSTA. in this field the Material views will be stores with single charecters. so check for the Clasification view charecter
    also  it's PSTAT in MARA and MARC.
    Work scheduling                A                   
    Accounting                     B                   
    <b>Classification                 C</b>                   
    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         
    Regards
    Sudheer
    Message was edited by:
            Sudheer Junnuthula

  • MM - Material master data - move standard field to another view

    Hi everyone,
    ÉCC 6.0 - release 7.0.
    I've been adding many custom fields in Material master data MM01/02/03. Now I got a problem because we have to use a standard field in another view.
    The field MARA-HERKL is set up to 'SV'(attribute V_130F-PSTAT):
    Warehouse management = S
    Sales = V
    I want to add 'K - Basic data' in this field's attribute at OSMR Tcode , but this attribute is disactivated. I can not change this value.
    I've check this note 306966 that mention: You cannot create new entries and delete entries in client 000. This client contains only the entries delivered by SAP which are used for distinguishing customer-specific fields and SAP standard during the maintenance of the other clients.
    Is there any problem whether I delete this field and afterwards create it with the new values?
    I'm not in client 000. So, I want to just make sure I will do a legal change.
    thank you in advance,
    Alexandre

    None tips, Closed.

  • Material Master Data purchasing view

    Hi, All,
    I have question on material master data purchasing view. There are 2 indicators.
    One is 'automatical purchase order', what effect if I tick this box? Another is 'Source List', what effect if I tick this box?
    Thanks for your answer in advance

    Defines that purchase orders are generated automatically when purchase requsisitions are converted into purchase orders.
    Use
    If this indicator is flagged, the system does not display the purchase orders on the screen before they are saved.
    Dependencies
    In the master record for the vendor with whom the material is ordered, the field "Automatic purchase order" must be flagged in the control data for the purchasing data.
    If the source list is ticked, system expects a source list for the material with a vendor and it will not allow to create PO giving a error message,source not included despite of source list requirement if it is not created.
    Regards,

  • Can we recieve goods for purchase order with out material master data in PO

    I have service PR for doing the services. I will  give the material which is not accounted ( no material in the PO)and raise PO with reference to production order. but once the service is done,that product will become a  material ( master data available) I have to receive the  final product.Can we do the GR for this product. If so ,could you please explain the scenario

    Hi Sankarkumar
    When you are issuing the material for servicing your existing inventory for the material  will be affected how you are plannignto handle that? You are receiving a different material once the serviceing is done then again yoour inventory will be affected for the new material.  If you do not intend to issue material in SAP then why are you worried when you are bringing the new material into SAP after servicing is over?  It is a subcontract scenario in a normal situation. But since you do not want then you can do a Service PO from the reqn and later use receipt without PO for bringing material in. Just speak to your finance guys how to set right the debit/credit amount resulted due to this transaction.
    Regards
    Sam

  • SAP Business Connector with Java (material master data)

    Hey,
    I have a question about the SAP BC. What are the steps I have to do, to use the BC with a Java program?
    My task is to create a program which downloads material master datas from SAP.
    I just installed the BC, and hope, that I did it correctly
    Many thanks in advance!!
    Kind regards,
    Alex
    German Version:
    Hey,
    wie ich oben schon geschrieben habe, habe ich ein paar Fragen zum SAP BC. Ich habe ein Hochschul-Projekt und muss hierfür Materialstammdaten aus SAP herunterladen und mit einem Java Programm ausgeben lassen.
    Kann mir vielleicht jemand weiterhelfen, wie die Schritte hierfür aussehen?! Wie verbinde ich den BC mit meinem SAP System? und wie bekomme ich anschließen die Daten mit einem Java Programm ausgelesen?
    Ich habe bereits den BC installiert und konnte mich meines Wissens auch richtig anmelden;-)
    Ich hoffe, dass mir jemand weiterhelfen kann und bedanke mich schon im Voraus für eventuelle Antworten!!!
    Viele Grüße
    Alex
    Edited by: Rolf Gersbacher on May 19, 2010 10:34 PM

    Hi,
    I work with SAP BC some time ago... I remember that you configure the connection in SM59 / SICF and the server open a port to "listen" (connect external).
    So, your external program can execute functions inside SAP and exchange data.
    See some links:
    http://en.wikipedia.org/wiki/SAP_Business_Connector
    http://help.sap.com/saphelp_nw04/helpdata/en/6a/3f93404f673028e10000000a1550b0/frameset.htm
    http://www.thespot4sap.com/articles/SAP_XML_Business_Integration.asp
    Best regards,
    Leandro Mengue

  • Non-SAP to SAP Material Master Data Transfer

    Hi Experts,
    Please indicate any standard tools in SAP and how to use it wherein we can migrate non-SAP material master data to SAP.
    Points will be awarded.
    Regards,
    LM

    Hello Leo,
    There are a number of options to do this. You can use the standard SAP tool named LSMW - Legacy System Migration Workbench (transaction LSMW) as a starting point.
    Also please read this [Documentation|http://help.sap.com/saphelp_47x200/helpdata/en/0d/414538bc0fe927e10000009b38f8cf/frameset.htm] before undertaking the data migration activity via LSMW.
    Additionally, there is also a Direct Input program available named RMDATIND - please go through the program documentation before you use it. You can use this program to transfer material master data to SAP but
    make sure you assign this program through LSMW for mapping structures etc. The internet link above will give
    more details and step-by-step instructions to follow.
    Hope this helps,
    Cheers,
    Sougata.
    p.s. It is sad to see useful answers remain unrewarded such as this one!
    Edited by: Sougata Chatterjee on May 9, 2008 10:13 PM

  • Program to update info record with material master data

    I am trying to determine if there is a standard SAP program that can be run as a batch file  to update the fields in the info record with the same fields that are in the material master?  ie:  Planned delivery time, Tolerance, purchasing group etc.

    Hi,
    There is no standard report or transaction that can do this.
    The data from these fields in the material master is brought in as a default to the info record when it is created. beyond this point the Info record is treated as being the correct data regardless of what happens to the material master data and so no updates occur in the standard system.
    It would not be difficult to build an LSMW job to copy the data from the material master to the info records and this would be the recommendation if you want to do this.
    Steve B

  • Material Master Data Reporting with SAP BW?

    Hello,
    I have a question regarding the use of a SAP BW System. Do you guys think SAP BW is a appropriate System for modelling and analysing Queries for the Material master data of the R/3 System.
    Focus:          
    Material master data
    Bill of Material
    Material Classification System
    Iu2019m not sure if Infocubes are the right way to report such kind of requirement. I mean Infocubes always requires key figures and dates but the material master data are mainly characteristics. Can someone give me some advice?
    Thanks & Greetings

    Hi,
    I'd say yes. You can aalo use InfoObejct and DSO (like Tables) as well as InfoSets (Join ability).
    Masteer Data and BoM shouldn't be a problem.
    Material Classification System is always a bit tricky. Standard Class extractors are not able to extract multiple classifcations. There will be need of some Programming due to the poor standard solution.
    I suppose some 10 - 15 days till it's finished an productive.
    hth
    cheers
    Sven

  • How to delete MRP view data after create in Material master data ?

    Hi all ,
          After user  create a useless MRP view data in Material master data , how to remove it ?

    Hi
    Material master once created cannot be deleted.Only thing u can do is to mark it for deletion
    Go to Logistics > Materials management > Material master > Material > Flag for deletion > Immediately.
    Give the necessary data that is needed for the view you want to delete.
    Press and flag the view you want to delete.
    Now the view is flagged for deletion. This means that it's use is limited and it will be cleaned up or really deleted at the next clean up of the system.
    regards
    Anand

Maybe you are looking for

  • How can I put up a free version of a book in countries I can't sell to, using iBooks Author

    I have released a paid version of a book on Flags and Anthems of the World to the 51 countries I can sell it to, but how would I be able to up the same book for free to the rest of the countries that I can't sell to, because I don't want them to be l

  • Web Service Response Format (1.4 JAX/RPC)

    Hi, i have built a WS using a JDeveloper wizard to create a Java (1.4 JAX/RPC)Web Service. The problem is i need to be very specific about the format of the response. A typical response would be something like <env:Envelope xmlns:env="http://schemas.

  • Format and setting up SD Card?

    Hi i was wanting to know how can i format the sd card on my At305 and how do i go by setting it up with folders for like movies music and photos

  • FLA or SWF -- MOV or AVI conversion?

    I have searched the forums already and could not come up with a definitive answer. I understand that the latest QuickTime update broke SWF compatibility, but are there any other solutions, either commercial or not, for converting SWFs or FLAs into a

  • Apple Mail delay

    For some reason I have to wait 10-15 minutes for Apple Mail to retrieve my email messages. It always eventually comes in but clicking "check for new mail" does nothing. Clicking that button also does nothing after I've already received my new mail. I