FM to update plant of material in QMEL table

Hi,
If anyone knows a FM to update the material plant field MAWERK in QMEL table please let me know.
Regards,
Simmi

Hi Prashant
Try BAPI_SALESORDER_CHANGE

Similar Messages

  • How To Update STRMN STRUR  Field of QMEL table

    hello Guru,
                         I have created a FM and Update the long text Field of notification but now i want to update the STRMN
    STRUR field using a FM.
    Please share the idea with us..........

    In the FM 'NOTIFICATION_CHANGE_DOCUMENT', you have
    'VIQMEL_NEW' as input parameter in that you have STRMN STRUR  parameters(Pass notification no. in this structure).
    Also, give INDUPD = 'U'.
    Try this, it may help you.
    Regards,
    Chandu.

  • Update the x plant material status and plant speific material status

    HI Experts,
    I am new to abap. In my requriment i want to update the status of x-plant material status (MSTAE) in MARA  and
    plant specific material status (MMSTA) in MARC. In master data the status of those fields is blank. Insted of balnk i have to upload '01' or '02'.
    using BAPI_MATERIAL_SAVEDATA  i am unable to upload. its not working.
    is there any another way to upload that two plants status.
    thanks in advance
    sravan

    Hi martin,
    i think insted of it_*** (internal table) we have to use work area. please make sure conform this one.
    i am giving my logic wat i have written and my requirement also...
    The process to update material master data status is described in 'xxxxx' Mark and Release Cost Estimates and BAPu201D.
    u2022     As a result of releasing a standard cost, certain master data elements need to be updated by the Cost accountant in order to enable further activities within SAP.
    u2022     All material codes for which Cost Accounting has released a new standard cost, need to have their Material Status indicators changed from 02 (reviewed) to 03 (released).  This removes the system blocks on certain activities within SAP like purchasing, production and Sales.  The status will be needed to change in two views of the Material Master. 
    u2022     The u201CX-plant matl statusu201D field on the Basic Data 1 view
    u2022     The u201CPlant-sp. matl statusu201C field on the Costing 1 view
    This update should be automated
    Select materials for which a price change document was posted based on selection parameters.
    Select price change documents for company code defined in selection screen since last run date
    u2022     Reference procedure = PRCHG (MLHD-AWTYP)
    u2022     Entered on MLHD-CPUDT u2013 verify against last run date to include in selection
    u2022     Entered at MLHD-CPUTM u2013 verify against last run date to include in selection
    u2022     Store last run date and time by company code, so that it can be picked up in the next run. (store in table TVARVC?)
    Select only the documents of plants which belong to the company code in table MLIT. The link between company code and plant can be found in table T001K.
    u2022     Valuation area = Plant MLIT-BWKEY
    u2022     Create a list of all materials MLIT-MATNR
    The next 2 updates should happen independently;
    u2022     Update the u201CPlant-sp. matl statusu201C field (MARC-MMSTA) on all plant views belonging to the company on the Costing 1 view to status 3 with as prerequisite;
    u2022     The current plant material status is 02
    u2022     This action must be done on all plants belonging to the company code
    u2022     Update the u201CX-plant matl statusu201D field (MARA-MSTAE) on the Basic Data 1 view to status 3 with as prerequisite;
    u2022     The current X-plant material status is 02.
    in pt_final1 i get the data corresponing to given tables.
    LOOP AT PT_FINAL1 INTO GS_FINAL1.
    *HEADER DATA
      GS_HEAD-MATERIAL = GS_FINAL1-MATNR.
      GS_HEAD-IND_SECTOR = GS_FINAL1-MBRSH.
      GS_HEAD-MATL_TYPE = GS_FINAL1-MTART.
      GS_HEAD-BASIC_VIEW = 'X'.
      GS_HEAD-COST_VIEW = 'X'.
    APPEND GS_FINAL1 TO IT_FINAL1.
    *CLIENTDATA
      GS_CLNT-PUR_STATUS = GS_FINAL1-MSTAE.
      GS_CLNTX-PUR_STATUS = 'X'.
    *PLANT DATA
      GS_PLNT-PLANT      = GS_FINAL1-WERKS.
      GS_PLNT-PUR_STATUS = GS_FINAL1-MMSTA.
      GS_PLNTX-PUR_STATUS = 'X'.
      CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
        EXPORTING
          HEADDATA    = GS_HEAD
          CLIENTDATA  = GS_CLNT
          CLIENTDATAX = GS_CLNTX
          PLANTDATA   = GS_PLNT
          PLANTDATAX  = GS_PLNTX
        IMPORTING
          RETURN      = GS_RET.
        Commit to release the locks
       RETURN-TYPE is 'E' in case of error, else 'S'.
      IF GS_RET-TYPE = 'E'.
        LOOP AT IT_RET.
          WRITE: / RETURNMES-MESSAGE.
        ENDLOOP.
      ELSEIF GS_RET-TYPE = 'S'..
        WRITE: / 'PLANT MATERIAL STATUS '.
      ENDIF.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    ENDLOOP.

  • For plant ZKPL, material type FERT is not defined in Table T134W

    Hello Everybody,
    I have created a delivery and trying to PGI it.
    But I see an error saying  -
    "For plant ZKPL, material type FERT is not defined in Table T134W".
    Can someone tell me where am I going wrong please?
    Thanks,
    Sneha.

    Hi
    T code OMS2
    choose your material type FERT and click on to qty and value updation
    In the screen which is subsequently opening select your plant and tick for qty and value updation
    After this log off for about 30 seconds and the relog and put the delivery in change mode VL02 and then do PGI
    This hopefully solve your error
    Regards
    Raja

  • For plant 1200, material type Hawa is not defined in Table T134W

    Hi Everyone.
    I am trying to post a goods issue but having an error log.
    For plant 1200, material type Hawa is not defined in Table T134W.
    I checked table T134W (se16) - and material Hawa is assigned to plant 1200.
    However I checked T-code OMS2 and Val.area 1200 is NOT associated with HAWA.
    Is this the reason I am having this PGI error.
    If so - how do I assign Hawa to Val.area 1200

    Hi
    The valuation area is plant that is 1200
    In t code OMS2 choose your material type HAWA and in the left hand side there will be a dialogue box of qty and value updation and if you click that then in the subsequent screen which is opening you need to tell that HAWA at plant 1200 will have vaue and qty updation (need to tick both of them)
    That is the cause for this error
    Regards
    Raja

  • Missing connection of Material in Plant to Material Ledger

    Hi,
    We encountered an error when doing GR for PO without Account assignment.
    Error: Missing connection of Material in plant to the material ledger.
    Issue: Not able to post goods receipt for materials for particular Plant D059 with HIBE material type for purchase order without account assignment.
    Materials were setup before value update selected for HIBE material type for plant X and hence price determination was blank in Material master.
    client was unable to create purchase requisition for these materials andfound value update was not selected for this material type for this plant.
    Later when value update was selected for HIBE for Plant X, Goods receipt cannot be posted with reference to PO without account assignment. But able to do MIGO-GR for account assigned Purchase orders.
    After value updating for this material type for this plant X, purchase requisitions and orders were created but unable to do goods receipt for PO without account assignment. Goods receipt can be posted
    for Purchase orders with account assignment.
    Now we are unable to do change price determination for material attachedto HIBE material type.
    Please let me know how to resolve this issue.
    Thanks and regards, Muthuvel

    Hi Bharat,
    Again Thanks for the immediate reply.
    As I have mentioned earlier, when the stock update was done for this material type, the material was created and it didnt have any value in ML Act and Price determination.
    Material ledger was activated to production.
    when the client found they were not able to create PR with account assignment, then value update was selected for this material type.
    Now there is a problem in Goods receipt for PO without account assignment.
    Whereas there is no problem in GR for PO with account assignment.
    I cannot do now CKMM also since the present price determination is a mandatory field and blank is no accepted.
    Please help.
    Regards, Muthuvel

  • Standared cost estimate particular period particular plant howmany materiea

    Dear Friends,
    one plant we have around 50000 materieal in this 50000 materieal how many materieal we run costing run in may month how many materieal we dint run in costing run in may mnoth how we found ,
    I want to give report please reply,
    Thank you!
    Regards,
    Prema D

    Dear Prema D.
    the easiest way is to go to the marc table and check for the Cost Esimate updated in the material or not
    Best Regards,
    Ravi Reddy

  • How to  find the Open sale orders till date for  given plant and material ?

    Hi experts,
                     I have a requirement to calculate the open sale orders for a given plant and material. I have tried in VA05 wherein i can get only for the material and sales area combination. From the document nos obtained from VA05 i can then find the plant. But my question is how do i get the output of VA05 into my progra. (can i use submit for a module pool report ).
    Also if ther is some other standard table or Function module to find the open sale orders till a given date ,it will be even more helpful....in which case i can drop the VA05 route.
    Kindly help
    Thanks in advance
    Ashwin

    Hi Ashwin,
        You can use SAP Tables VBAK and VBUP to get to know if the document is complete or not.
       VBUK-GBSTK is the field that will give you the status of the Sales Order .
      VBUK is used at header level , whereas VBUP is used for Item level.
      So in your case what I would do is :
      Get the Sales Orders that satisy the plant and material criteria from VBAP table , take this Sales Document numbers and go to VBUK or VBUP table to get the Sales Order Status. 
       If I need to find the open quantity as well I will link to VBFA table based on the document number.
      Reward if helpful.
    Thanks,
    Imran

  • Error in update of packaging material data in mat. master

    Hi all ,
    Actually , when I was going to update the packaging material information in material master , that time noticed whole parameters - blank spaces  / attributes of the packaging material data area is not showing . Why it behaves as ? ...
    regards
    arghya

    This just tells me that you do not even know the basics of a material type.
    SAP does not check the material type name, VERP and ROH is nothing else than a couple characters from the alphabet (in German language they even make some sense). You can create your own material type HUXX for handling units and if it is correctly setup then it will work.
    How long do you consider yourself as a newcomer? you have registered in 2010. You started with SD, then MM (were all your questions got rejected because you failed to search) and now Logistics Execution (by the way I am moderator here too). And everywhere you were told to use Google to search prior to posting. Spend more time to increase the skills on searching, this gets you more benefits on the long run.
    And in the 5th year with SAP and SCN you should at least know how to report an issue. If you have an error message, then tell the exact message along with the message number. Saying the setup is properly and then complaining that the system is asking for something else does not help to solve the issue, as it it just reflects your assumption but does not tell any facts.
    If everything would be properly setup, then you would not have an issue. Does that sound logical?
    Start from wikis like that Logistics General Handling Unit Introduction - ERP SCM - SCN Wiki
    or from help.sap.com, just search with this string in google: sap best practices handling unit management

  • Referance material document of 103 is not updating in 105 material document

    Dear All,
    I have created a Good Receipt through MIGO using 103 movement. Later I have created 105 movement with respect to 103 movement reference through release blocked stock.
    After creation of documents, when checked the document created through 105 movement there is no reference number of 103 document number found in the document number of 105 movement.
    In the table MSEG field LFBNR is supposed to get updated with the reference number of the document created through 103 movement.
    In this case, this reference number is not updated in the table MSEG-LFBNR.
    What is the reason for Referance material document of 103 is not updating in 105 material document at item level in Purchase order Tab.
    Regards,
    Vinay

    Hi,
      I was faced this issue yesterday and finally find it caused by the check box ' Based-GR IV' in the PO.
    Twig Chan

  • Price update from Original Material to copied Material Master

    I have a scenario,
    We are selling Raw materials to outside companies who have shortage of materials on Loan Basis. Once they have materials, they will return the materials within a time period. If they don't have the materials and unable to return within the said time, they will make the payment.
    We will follow the normal sales process to sell the item to the customer.
    1. creating sales order,
    2. Outbound Delivery, and
    3. Billing
    Return process when receiving the materials from the company.
    1. Billing Cancellation
    2. PGI Cancellation
    Since this is not an actual sale, hence we need to maintain selling price same as the purchase price.
    We are planning to extend the Raw Materials to Sales View in the material master. However, we came to know that this will be Violation of Act. Hence we are planning to create a new material by copying the existing Raw Material master but the Material type will be Issue on Loan. This material will have sales view and purchase view.
    This material will have a separate Valuation Class. Price control indicator will be V, since the item should be valuated at Purchase Price and the purchase price will keep changing as and when the price changes. This moving average price will be used as selling price.
    The same price needs to be updated in the Sales Order automatically from the Loan Material Master when selling the Loan Material.
    Now, the problem we are facing is, if we create a new Loan Material by copying Raw Material master with ROH material type, how will the price update in New Loan Material since, we will not purchase the Loan Material. We are purchasing the original item as raw material. Hence, this will not update the Loan Material Price automatically and the price will remain unchanged.
    Please suggest a work around?

    Hi,
    Let me explain to you how I am proceeding.
    Step 1:
    Create new material master by copying existing Raw Material with Issue on Loan material type. I am assigning a new Valuation Class in this material master. Also, we keep the pricing
    Step 2:
    Transfer stock from old material to new material in MB1B with movement type 309.
    Step 3: Issue of Loan Material to Customer on loan basis.
    Creating Sales Order, PGI and Billing
    Step 4: Receipt of Item back from Customer
    Sales Return process.
    Step 5: In case Customer does not return goods, then we will collect payment from them
    In the entire process we need to maintain the selling price at purchase price of the original material. Can you suggest any work around, in case this process is not advisable.

  • Collect in an internal table with keys plant and material

    Hi ,
    I have an output internal table with material , plant and var quantitites .
    I would like to use Collect statement and sum the quantities but do it by plant and material .
    How do I specify that i want to do it on plant or material ?
    Thanks !

    hi here is an example like urs..
    DATA: BEGIN OF seats,
            carrid TYPE sflight-carrid,
            connid TYPE sflight-connid,
            seatsocc TYPE sflight-seatsocc,
          END OF seats.
    DATA seats_tab LIKE HASHED TABLE OF seats
                   WITH UNIQUE KEY carrid connid.
    SELECT carrid connid seatsocc
           FROM sflight
           INTO seats.
      COLLECT seats INTO seats_tab.
    ENDSELECT.
    check for help..
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/collect.htm
    regards,
    venkat

  • Batch level settings conversion from plant-to-plant to material-level

    If someone has worked on conversion of Batch level settings within SAP from plant-to-plant to material-level batch management, please let me know what are the challenges involved in doing this. Thanks.

    Check help !!!
    To change the batch level, you have to start a conversion program. This program first checks whether conversion is possible and outputs an error log containing all batch numbers that occur more than once at the new level. Now you need to manually transfer these batch records to batch numbers within Inventory Management using a transfer posting 'material to material'.
    If you change the level from plant level to a higher level, it is possible that batches with the same batch numbers in different plants are actually identical.  In this case, all you have to do is remove stocks (including previous period stocks) so that all batches with the same batch numbers, except one, can be reorganized.
    When you convert from plant level to material level, the material is then to be handled in batches in all plants in which it is defined.
    Standard settings
    In the standard delivery batches are uniquely defined at material level.
    Activities
    To change the batch level, proceed as follows:
    1. Choose the level at which you want your batches to be unique.
    2. Save the new settings and choose Back.
    3. Choose Batch level -> Conversion.
    4. If necessary, carry out the conversion in test mode first.
    Further notes
    Note that you cannot reset conversion from plant level to a higher level in the standard.
    If you create a client by copying an existing client, initially, there are no settings in the target client at batch level. The system makes the settings in the target client only when you have carried out an activity (maintaining master data or posting a goods movement, for example). The client level is not transported. If you copy a client with client level, you have to manually set the client level in the target system.

  • How is the Consumption tab will update in the material master?

    Hi Friends,
    How is the Consumption tab will update in the material master?
    what are the customization required if consumption tab wants update with respective the qty?
    Regards,
    Hari Shankar

    Hi Friends ,
    I am very thankful to u all for your quick response,
    I have tested the two materials with two movement types of 601 and 954.
    when i did the 601 movement type the consumption tab in the material master has updated automatically even though  i haven't maintained forecasting tab, but where as for the movement type 954 the consumption tab is not updated even though i have maintained forecasting tab view in the material master.
    Is the consumption view will update based on the Material movement types?
    where is the control parameter for updating consumption tab?
    could you pls help me regarding this?
    Regards,
    Hari Shankar.

  • Update a Table Field of QMEL Table Using Function Module

    hello Guru
    I want to update a field of QMEL table suing FM which was created by user. how to write code for that. i have some idea but it is not helpful for us.....
    Moderator Message: Searching the forums/Google is a good start.
    Edited by: kishan P on May 19, 2011 12:13 PM

    hi Ram,
    You can use update query on table setting particular field value...There is no Function module for it.
    Regards,
    Pawan.

Maybe you are looking for

  • How to create a FileDialog in the following...

    Hey there. I'm trying to create a FileDialog window using the parents frame to introduce a SAVE dialog that will allow the user to save to a file of their choosing. I'm not sure how to use it. If anyone could take the time to explain to me what I'm u

  • Garbage Characters in XML Feed

    I have a presentation template that produces an XML RSS feed. Although I tell it to use UTF-8 like this : <?xml version="1.0" encoding="UTF-8"?> I still see garbage characters in the news feed. I've read that XML still has trouble dealing with certai

  • How to set selection screen field obligatory dymically

    hi expert, i have to make selection screen field obligatory while selecting a check box,i am using the following code can any one help me regards, thanks in advance..... PARAMETER:p_user TYPE adr6-smtp_addr ,           p_check AS CHECKBOX user-comman

  • Printing a whole document (several sheets)

    Hello, I have made a document with 4 sheets, each having 3 pages.... (12 pages). If I select the 4 sheets and want to print them, I only have one sheet printed : the one with the yellow frame. How can I have those 12 pages printed all at a time ? Tha

  • ESS Error "Details can't be determine for related person"

    HI expert, we got error on ess screen while we try to create transaction of benefit. we are in Indonesia. We got this error message "Details can not be determined for related person 11/" do you know how to solve this? thanks.