BAPI by which we can update material master AFS data.

Hello All,
I want to update net weigt for a perticular material of material type FERT.
I have data in my internal table.Is there any BAPI for updation.
I want to update like .
Goto MM02. and goto any FERT material.
Goto Additional data button.
GOto AFS weights and volumes tab.
There we need to update netweight value corresponding to the size.
So, Please let me know the various ways of updating.
Please ,Ask me for any clarifications.
Thanks,
kumar
Moderator message - Moved to the correct forum
Edited by: Rob Burbank on Oct 26, 2009 9:25 AM

Hello all,
Did any one have any updates on my ques.. please.
Thanks
Kumar

Similar Messages

  • Bapi or Function Module to update Material Master Data

    Hi Friends,
               could anyone let me know any BAPI's or Function Modules for Material Master UPdate.
    Thanks in Advance
    Regards
    Tina

    hi Tina,
    check this BAPi BAPI_MATERIAL_SAVEDATA to create and change the material master .
    Try ....
    BAPI_MATERIAL_SAVEDATA
    REPORT Z_BAPI_MAT.
                   STRUCTURE  DECLARATIONS                             *
    TABLES: BAPIMATHEAD,  "Headerdata
            BAPI_MARA,    "Clientdata
            BAPI_MARAX,   "Clientdatax
            BAPI_MARC,    "Plantdata
            BAPI_MARCX,   "Plantdatax
            BAPI_MAKT,    "Material description
            BAPIRET2.     "Return messages
    DATA:V_FILE TYPE STRING.
    DATA:
      BEGIN OF LSMW_MATERIAL_MASTER,
        MATNR(018) TYPE C,  "Material number
        MTART(004) TYPE C,  "Material type
        MBRSH(001) TYPE C,  "Industry sector
        WERKS(004) TYPE C,  "Plant
        MAKTX(040) TYPE C,  "Material description
        DISMM(002) TYPE C,  "Extra Field Added In the Program as itsrequired
        MEINS(003) TYPE C,  "Base unit of measure
        MATKL(009) TYPE C,  "Material group
        SPART(002) TYPE C,  "Division
        LABOR(003) TYPE C,  "Lab/office
        PRDHA(018) TYPE C,  "Product hierarchy
        MSTAE(002) TYPE C,  "X-plant matl status
        MTPOS_MARA(004) TYPE C,  "Gen item cat group
        BRGEW(017) TYPE C,  "Gross weight
        GEWEI(003) TYPE C,  "Weight unit
        NTGEW(017) TYPE C,  "Net weight
        GROES(032) TYPE C,  "Size/Dimensions
        MAGRV(004) TYPE C,  "Matl grp pack matls
        BISMT(018) TYPE C,  "Old material number
        WRKST(048) TYPE C,  "Basic material
        PROFL(003) TYPE C,  "DG indicator profile
        KZUMW(001) TYPE C,  "Environmentally rlvt
        BSTME(003) TYPE C,  "Order unit
        VABME(001) TYPE C,
        EKGRP(003) TYPE C,  "Purchasing group
        XCHPF(001) TYPE C,  "Batch management
        EKWSL(004) TYPE C,  "Purchasing key value
        WEBAZ(003) TYPE C,  "GR processing time
        MFRPN(040) TYPE C,  "Manufacturer part number
        MFRNR(010) TYPE C,  "Manufacturer number
        VPRSV(001) TYPE C,  "Price control indicator
        STPRS(015) TYPE C,  "Standard price
        BWPRH(014) TYPE C,  "Commercial price1
        BKLAS(004) TYPE C,  "Valuation class
      END OF LSMW_MATERIAL_MASTER.
                   INTERNAL TABLE DECLARATIONS                         *
    *to store the input data
    DATA:
      BEGIN OF it_matmaster OCCURS 0.
            INCLUDE STRUCTURE LSMW_MATERIAL_MASTER.
    DATA:
      END OF it_matmaster.
    *for material description
    DATA:BEGIN OF IT_MATERIALDESC OCCURS 0.
         INCLUDE STRUCTURE BAPI_MAKT .
    DATA:END OF IT_MATERIALDESC.
    *to return messages
    DATA:BEGIN OF IT_RETURN OCCURS 0.
         INCLUDE STRUCTURE BAPIRET2.
    DATA:END OF IT_RETURN.
    SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-002.
    PARAMETERS:P_FILE LIKE RLGRAP-FILENAME OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK B1 .
    AT SELECTION SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          PROGRAM_NAME  = SYST-CPROG
          DYNPRO_NUMBER = SYST-DYNNR
          FIELD_NAME    = 'P_FILE'
        IMPORTING
          FILE_NAME     = P_FILE.
                   TO UPLOAD THE DATA                                  *
    START-OF-SELECTION.
    V_FILE = P_FILE.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                      = V_FILE
       FILETYPE                      = 'ASC'
       HAS_FIELD_SEPARATOR           = 'X'
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
      tables
        data_tab                      =  IT_MATMASTER
    EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_READ_ERROR               = 2
       NO_BATCH                      = 3
       GUI_REFUSE_FILETRANSFER       = 4
       INVALID_TYPE                  = 5
       NO_AUTHORITY                  = 6
       UNKNOWN_ERROR                 = 7
       BAD_DATA_FORMAT               = 8
       HEADER_NOT_ALLOWED            = 9
       SEPARATOR_NOT_ALLOWED         = 10
       HEADER_TOO_LONG               = 11
       UNKNOWN_DP_ERROR              = 12
       ACCESS_DENIED                 = 13
       DP_OUT_OF_MEMORY              = 14
       DISK_FULL                     = 15
       DP_TIMEOUT                    = 16
       OTHERS                        = 17
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
                   DATA POPULATIONS                                    *
    LOOP AT  IT_MATMASTER.
      BAPIMATHEAD-MATERIAL = IT_MATMASTER-MATNR.
      BAPIMATHEAD-IND_SECTOR = IT_MATMASTER-Mbrsh.
      BAPIMATHEAD-MATL_TYPE = IT_MATMASTER-Mtart.
      BAPIMATHEAD-BASIC_VIEW = 'X'.
      BAPIMATHEAD-PURCHASE_VIEW = 'X'.
      BAPIMATHEAD-ACCOUNT_VIEW = 'X'.
      BAPI_MARA-MATL_GROUP = IT_MATMASTER-MATKL.
      BAPI_MARA-OLD_MAT_NO = IT_MATMASTER-BISMT.
      BAPI_MARA-BASE_UOM = IT_MATMASTER-MEINS.
      BAPI_MARA-BASIC_MATL = IT_MATMASTER-WRKST.
      BAPI_MARA-MFR_NO = IT_MATMASTER-MFRNR.
      BAPI_MARAX-MATL_GROUP = 'X'.
      BAPI_MARAX-OLD_MAT_NO = 'X'.
      BAPI_MARAX-BASE_UOM = 'X'.
      BAPI_MARAX-BASIC_MATL = 'X'.
      BAPI_MARAX-MFR_NO = 'X'.
      BAPI_MARC-PLANT = IT_MATMASTER-WERKS.
      BAPI_MARC-PUR_GROUP = IT_MATMASTER-EKGRP.
      BAPI_MARCX-PLANT = IT_MATMASTER-WERKS.
      BAPI_MARCX-PUR_GROUP = 'X'.
      IT_MATERIALDESC-LANGU = 'EN'.
      IT_MATERIALDESC-MATL_DESC = IT_MATMASTER-MAKTX.
      append IT_materialdesc.
      CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
        EXPORTING
          headdata                   = BAPIMATHEAD
          CLIENTDATA                 = BAPI_MARA
          CLIENTDATAX                = BAPI_MARAx
         PLANTDATA                  = BAPI_MARc
         PLANTDATAX                 = BAPI_MARcx
        FORECASTPARAMETERS         =
        FORECASTPARAMETERSX        =
        PLANNINGDATA               =
        PLANNINGDATAX              =
        STORAGELOCATIONDATA        =
        STORAGELOCATIONDATAX       =
        VALUATIONDATA              =
        VALUATIONDATAX             =
        WAREHOUSENUMBERDATA        =
        WAREHOUSENUMBERDATAX       =
        SALESDATA                  =
        SALESDATAX                 =
        STORAGETYPEDATA            =
        STORAGETYPEDATAX           =
        FLAG_ONLINE                = ' '
        FLAG_CAD_CALL              = ' '
       IMPORTING
         RETURN                     = IT_RETURN
       TABLES
         MATERIALDESCRIPTION        = IT_MATERIALDESC
        UNITSOFMEASURE             =
        UNITSOFMEASUREX            =
        INTERNATIONALARTNOS        =
        MATERIALLONGTEXT           =
        TAXCLASSIFICATIONS         =
        RETURNMESSAGES             =
        PRTDATA                    =
        PRTDATAX                   =
        EXTENSIONIN                =
        EXTENSIONINX               =
    WRITE:/    IT_RETURN-TYPE,
            2   IT_RETURN-ID,
            22  IT_RETURN-NUMBER,
            25  IT_RETURN-MESSAGE.
               IT_RETURN-LOG_NO,
               IT_RETURN-LOG_MSG_NO,
               IT_RETURN-MESSAGE_V1,
               IT_RETURN-MESSAGE_V2,
               IT_RETURN-MESSAGE_V3,
               IT_RETURN-MESSAGE_V4,
               IT_RETURN-PARAMETER,
               IT_RETURN-ROW,
               IT_RETURN-FIELD,
               IT_RETURN-SYSTEM.
    ENDLOOP.
    Regards,
    Naveen

  • 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.

  • Using the APD to update material master in CRM

    Does anybody know if it is possible to update material master records in CRM from BW using the Analyses Process Designer with target CRM?
    I would prefer to know this before creating a custom data target adapter in the CRM SPRO, writing all the required function modules and then finding out that it does not work.
    Thanks,
    József.

    Which direction??
    Inbound/Outbound
    Inbound : IDOC_INPUT_MATMAS01

  • READ_TEXT can read text form sap .Which function can update this text?

    Which function can update/edit the text that readed by function READ_TEXT ?

    Hi,
    Check SAP help on SAVE_TEXT
    http://help.sap.com/saphelp_40b/helpdata/en/d6/0db8ef494511d182b70000e829fbfe/content.htm
    OR
    http://www.geocities.com/rmtiwari/main.html?http://www.geocities.com/rmtiwari/Resources/MySolutions/Dev/Codes/Report/Z_TASK_LIST_LTEXT_UPLOAD.html
    Cheers
    VJ

  • Is there a Bapi using which i can do CATS Transfer (similar to tcode CATA)?

    is there a Bapi using which i can do CATS Transfer (similar to tcode CATA)?
    wanna do transfer to Hr.

    No there isn't but there is nothing to stop you creating one.
    The program essentially passes parameters through to FM CATS_TRANSFER_HR/CATS_TRANSFER_CO/CATS_TRANSFER_PM
    /CATS_TRANSFER_PS. Create a copy of this FM and set it to remote-enabled Module and start immediately.
    Hopefuuly this will help,

  • Change History of Material master classification data

    Dear all.
    How can we see the change history of the Material master classification data.
    Whether any standard report exists which can give this Change History data or whether we can find from  any tables?
    Please let me know your thoughts on this
    Regards
    Shyam

    changes in values for a characteristic can be monitored in CL20N via menu Environment > Change documents
    change history for classification is only stored if you activated this.
    if  it is not set active in your system, then see SAP Note 943559 - FAQ: Frequently asked questions about the classifctn. system
    it has instruction how to active it.

  • View document in material master, Basic data 2 screen?

    Hello gurus,
    How to view a DIR assigned to material master - basic data 2?
    According to help.sap.com:
    Additional Function for Material Master Record:
    In Customizing for the Material Master, you can define a standard document type by choosing Make Global Settings.
    -  Done this: assigned document type needed, created a DIR with that type and assigned it to a given material
    Documents of this standard document type are displayed in the material master record, in the Basic data 2 view (Extras ® Document data).
    - Information of the DIR can be seen in the main screen, no path Extras --> Document data (I know DIRs are shown behind menu path Additional data --> Documents)
    You can display the original application files of a document (for example, an engineering/design drawing) directly from the object (for example, material) using a display application (viewer).
    PROBLEM starts here: no icon or button to click in order to view the document although the help states so.
    Any idea what should be done? Should I install a software of some sort to view? Assign it somehow with SAP? The document type here is doc (MS Word), so nothing special.
    Any advice is highly appreciated.
    BR,
    Pipsa

    Hello Sam,
    Sorry, I think I described the problem inaccurately.
    I could see the document already but for that I must follow the path Additional data --> Document data.
    My core question was: Is there a means to allow a user to display the document directly in the screen Basic data 2 since system creates a new subscreen called Design documents assigned anyway?
    It seems that the design documents assigned is for information purposes only. It would have been far better with usability to have the display icon in the main data.
    BR,
    Pipsa

  • How can i update material master standard price.

    Hi Everyone,
    i would like to know if there is any way i can update my MM Std Price everytime i make any purchase.
    I.e i have std price 40, but next time when i make PO and update Inforec for 70 so i want this 70 also take effect in my material master. Is any expert can tell me about this functionality or any alternate. would be great help
    Ali

    If you are using std prices then these do not vary unless someone is manually changing them (or using a program to do this). That is the main point of std prices, they do not change unless you change them yourself.
    MAP and standard prices are used in material master and it has nothing to do with price with which you will sell your customer.
    MAP and Standard prices will just hit you inventory account and COGS account once you will do PGI.
    I am assuming that you are talking about the price at which you sell to your customer.The easy way of tracking changing prices is that you can make them manual conditions and based on your information you can put them manually in your sales order.
    It is not recommended to change standard price constantly. At this period end, modify the standard price in material Master & continue.
    This can be a regulr activity at period ends, say every month end or quater end or half yearly or yearly. In general it is prctices on yearly basis, but as per the requirement you can consider the period.
    Just go throught the links given below
    http://www.sap-img.com/materials/purchasing-tips.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/MMIVMVAL/MMIVMVAL.pdf
    Primarily, You cannot maintain both Standard Price & MAP. You can maintain only one of it.
    It is recommended that standard price should not be changed at randomly, but as a policy, if required, it should be changed at period end, say monthly, quaterly, Half-yearly or yearly.
    You can also check out transaction CK40N
    reward points if it helps
    regards
    Biju

  • Update material master data BAPI_MATERIAL_SAVE DATA

    Hi All,
    I am using BAPI_MATERIAL_SAVE DATA Fm to update the material master data .
    I want to change material type vend (which already existed) to HIBE material type .
    Even though Basic data view populated its not updating in Material master .
    Which views do i need to populate to change material type one value to other value?

    if you use FM - BAPI_MATERIAL_SAVE DATA ,you can not update material type , use bdc program to update material type ,
    See the transaction : MMAM - No BAPI to update material type
    you need to use BDC Program.
    Reward Points if it is helpful
    Thanks
    Seshu

  • Using supplier to update material master (MM02)

    Hi,
    We have a supplier that manufactures for us and we are asking that they pass certain MARA fields to us, so that we can automatically update the material master.  The primary fields are weights and dimensions.  We are using EDI and the MATMAS message type and basic type.  However, we only want 6 or 7 fields allowed to pass to MARA, but we are getting all fields that are included in MATMAS, which is passing a null value to MARA and overwriting our existing data. 
    Does anyone know how to only pass certain fields using the MATMAS basic/message type?  Should we be using another basic/message type to pass material master information from a supplier?
    Your help is greatly appreciated.
    Regards,
    Vicki Smith
    PHE

    Hi,
    This requires external program interface. Through web portal, your supplier can upload directly all relevant material master data.
    Hope this information will be useful.
    Bye,
    Muralidhara

  • BAPI or FM Required to create Material Master

    IS there any BAPI or Function module avaiable in SAP to create Material Master.
    The following Two BAPIs uses Call transaction, which I dont want.
    BAPI_RETAILMATERIAL_CREATE 
    BAPI_STANDARDMATERIAL_CREATE
    Please let me know if any other Function module or BAPI Avaiable in the system.
    Thanks
    Aman

    Yep,  this one works pretty good.
    call function 'MATERIAL_MAINTAIN_DARK'
             exporting
                  sperrmodus                = ' '
                  kz_prf                    = 'W'
                  max_errors                = ' '
                  p_kz_no_warn              = 'X'
                  kz_verw                   = 'X'
                  kz_aend                   = 'X'
                  kz_dispo                  = 'X'
                  kz_test                   = ' '
                  flag_muss_pruefen         = ' '
                  call_mode                 = 'ACT'
             importing
                  number_errors_transaction = numerror
                  matnr_last     = last_matnr
             tables
                 amara_ueb      = i_mara    "Basic Data
    *             amakt_ueb      = i_makt    "Descriptions
                 amarc_ueb      = i_marc    "Plant
    *             amard_ueb      = i_mard    "Storage Location
    *            AMFHM_UEB      = I_MFHM    "Production Tools
    *             amarm_ueb      = i_marm    "Units of Measure
    *            AMEA1_UEB      = I_MEA1    "Internal Mangagement -  EANs
    *             ambew_ueb      = i_mbew    "Accounting/Costing
    *             asteu_ueb      = i_steu    "Tax Data
    *             astmm_ueb      = i_steumm  "Tax Data
    *            AMLGN_UEB      = I_MLGN    "Warehouse Data
    *            AMLGT_UEB      = I_MLGT    "Storage Type Data
    *            AMPGD_UEB      = I_MPGD    "Change Documents
    *            AMPOP_UEB      = I_MPOP    "Forcast Parameters
    *            AMVEG_UEB      = I_MVEG    "Total Consumption Data
    *            AMVEU_UEB      = I_MVEU    "Unplanned Consumption Data
    *             amvke_ueb      = i_mvke    "Sales Data
    *             altx1_ueb      = i_ltx1    "Sales Text
    *            AMPRW_UEB      = I_MPRW    "Forcast Values
                 amfieldres     = i_delfields
                 amerrdat       = i_errors
             exceptions
                  kstatus_empty             = 01
                  tkstatus_empty            = 02
                  t130m_error               = 03
                  internal_error            = 04
                  update_error              = 05
                  too_many_errors           = 06.
    Regards,
    Rich Heilman

  • Updating Material master purchase order text -LSMW

    Dear Experts
    How can update Purchase order Text  through LSMW, while am doing recording system is not recording this field from material master
    Regards
    Ajeesh.s

    Dear Expert
    Please throw some light on this issue
    Regards
    Ajeesh.s

  • BAPI/function module to create/update vendor master data

    Hi
       We are on ECC 50 and have a need to update vendor master data through a programatic interface ( non-dialog ) with ABAP. What is a good function module that can be used to create/update vendor master data - I looked at BAPI_VENDOR_CREATE and did not find any input interfaces that can be passed to this BAPI.
    Previous experiences with the right BAPI for this purpose that can be shared is appreciated. <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 26, 2008 5:58 PM

    Hi Kiran,
    If you want to load the vendor data into sap its better to go with LSMW batch input program.
    object 0040
    method 0001
    program name RFBIKR00
    Program type B
    this would be a good choice. Recently i did the same.

  • Problem in updating material master using  FM 'MD_MRP_LEVEL_CHANGE_DATA'

    hi experts,
    i m using this FM 'MD_MRP_LEVEL_CHANGE_DATA' to update the material master for MRP Area related data. i m passing the fields in the FM according to the requirement. when i execute the program it gives a msg
    000I : 000, i m not able to track this msg that what can be the error..........
    and also the changes are not reflected in MM03 transaction.
    and if i m trying to pass the same data directly from SE37 and executing the FM , its running perfectly and changes are reflected in MM03.
    please help me out to get out of this problem.
    points will be rewarded for the correct answer.
    thanks in advance..........
    Manisha

    Manisha,
    Can you please provide the code where u r having problems?
    Thanks
    Ganesh.S

Maybe you are looking for