BAPI - Posting Multiple Material Number

Hi
I am using BAPI_GOODSMVT_CREATE in my JCO Action. I have more than one material number to get updated at a time. Can someone plz tell me is there anyway we can pass more than one material number at a time to JCO.
Thanks in Advance
Regards
Muzammil

Muzammil,
Have you downloaded and studied the BLS transactions from the Manufacturing section of the SDN site:  <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloads">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloads</a>
I don't believe a version of the BAPI you are using is published yet, but the approach for using a JCO action block with the "Execute Function ?" unchecked, a local xml property and another JCO action block to receive the RequestXML document should be demonstrated in the examples (like WorkOrderCreate in PM).  Using a local xml property and the Append XML links to the Reference version of the JCO block will allow you to feed multiple items into the RequestXML, then assign it to the JCO block that performs the function call.
Regards,
Jeremy Good

Similar Messages

  • Create material master using BAPI .(Mat. internal number range)

    I would like to create the material using BAPI. (Material is internal number range).
    I am trying to create the material using BAPI  BAPI_MATERIAL_SAVEDATA, but material number is required field as per BAPI documentation .
    Can you please suggest me the function modules or BAPI to load materials which are in internal number range.
    Regards
    Badari

    Hi ,
    Use FM 'MATERIAL_NUMBER_GET_NEXT' to get next available material #.
    You can use that material # in BAPI 'BAPI_MATERIAL_SAVEDATA'.
    Cheers,
    Vikram

  • Can we goods receipt without material number and without PO?

    Can we goods receipt without material number and without PO as consumption ?
    I have case that no PO in SAP system (charge to cost center) but need to goods receipt in SAP system.
    How should I do?
    Thank you very much

    Hi
    Go to MB1C enter 561 movement type (initial posting ) .
    Material number is must.
    It will be against profit center as it is goods receipt and stock value will be credited to our a/c .
    Thanks
    Ravi
    Edited by: Ravikant Dewangan on Aug 11, 2009 8:38 PM

  • How can we find the Idoc number which posts the material document in SAP

    Hi All,
    How can we find the Idoc number which posts the material document in SAP. We could not able to find the IDOC number from the material document which was posted by Idoc.
    Thanks
    Chandru

    Hi,
    In MIGO you can go to service of object(Just above show overview) and check 5th option workflow you will find the idoc number.
    regards
    suresh

  • Error  in document number while posting the material

    Dear experts
    while posting the stock  MB1C  for the material  the error  is  " incorrect doc number $  1 .select doc number between   800000100  and 800000199.
    how to  correct  this  error. where  to check this  number ranges  of  document.
    Thanks  &  Regards.
    Erfan.

    Hi
    The document type, which is integrated for Material related posting is appears to be configured as "External Document Number Ranges".  In the event of external number ranges, MM transaction tries to post same document number individually at MM system and propose same number in FI for Accounting Posting.  If the proposed number is not within document number ranges, then you would expect this kind of errors.
    What you need to do is:
    1.  See the document type, which is being posted and set correct number ranges as per MM transaction document type number ranges  or
    2.  change MM transaction number rages in order to FI document number rages
    Hope this helps

  • Disable Customer-Material Number field during VL02n before post goods issue

    Hello SAP gurus,
    I would like to ask the possibility of disabling the field "Customer Material Number' during outbound delivery creation.
    As we would know, this field (LIPS-KDMAT) will only be disabled after post goods issue.
    Will it be possible to disable the field without having to post goods issue first?
    Thanks in advance.
    Jayson

    I think you can do with SHD0 screen variant, or else you need to go with userexit to make display field.

  • Posting multiple VAT lines through BAPI

    At my customer we are importing vendor invoices from a third party system into SAP. For this we use BAPI "BAPI_INCOMINGINVOICE_CREATE1"
    The third party system also calculates the TAX amounts. Therefore, we need to be able to post multiple VAT lines for one invoice line item. This has to do with the fact that we have deductible and non deductible taxes. To do this we would like to use the TAXDATA Table from the BAPI. However, when we post multiple lines here for one Tax Code, we get an error for duplicates in RBTX.
    Has anyone ever dealt with this problem before? How can we post multiple tax lines for a single invoice tax line, either using the above BAPI or using a workaround. I do have to mention that using the BAPI for the initial posting is needed since we have to do with certain Dutch legislation that can only be handled using this BAPI.
    Regards,
    Sjaak van den Berg

    I guess u need to add
    POSCHEDULEX-PO_ITEMX = X.
    before appending the table Parameter POSCHEDULEX
    One for each append statement on table internal table POSCHEDULEX
    Regards
    Alok Pathak

  • To create a Material using BAPI with out passing the material number

    Hello Experts,
    I am using BAPI_MATERIAL_SAVEDATA to create a material of some Ztype. I am successfully creating a material if I am passing Material Number as input. I want the material number to generated internally.
    When I am doing material creation with same input data with out material number using BDC, it is working fine. It is generating the material number.
    But, not with the BAPI.
    Do, I need to specify this some where in the BAPI to generate the Material number internally? Please let me know.
    Please help me in this regard.
    Thanks & Regards,
    Naresh.

    Hi,
    Read the BAPI documentation regarding Internal Number range for materials.
    When you create material master data, the following fields must always
    contain a value in the structure:
    o   MATERIAL
        Only external number assignment is supported for the material number
        (MATERIAL). If you want the material number to be assigned
        internally, the method BAPI_MATERIAL_GETINTNUMBER must first be
        called. This method determines an internal number for the material
        to be created. You must enter this internal number in field
        HEADDATA-MATERIAL.
    Regards
    Vinod

  • BAPI for material creation which returns the new material number

    Hi,
    I need a single BAPI or a remote enabled function module to create a material which would return the new Material number generated.
    Regards,
    Tanveer S.

    Hi
    if this scenario should occur:
    run BAPI_MATERIAL_GETINTNUMBER  and get next material number
    run BAPI_MATERIAL_SAVEDATA and get an error when creating.
    Is there a way to rollback the internal number range?!
    ROLLBACK WORK doesn't seem to work and, if the  BI_SAVEDATA returns with the error, the next try will have the material number X+1, although X  was never used.

  • BAPI to change material assignment with serial number (IQ02)

    Hi Experts,
    Please let me know the BAPI to change material assignment with serial number in IQ02. I am using BAPI_EQUI_CHANGE, but this does not work. Waiting for Your valuable inputs...
    Thanks in advance,
    Birendra

    Hello Birendra,
    Honestly, I do not have good experience with the BAPI for serialnumber change...
    would suggest to explore function module:
    SERIALNUMBER_LIST_UPDATE
    or
    SERIALNUMBER_LIST_SAVE
    Also run ST05 to trace what kind of data it passed to these function modules by running IQ02!
    Cheers
    Krish

  • BAPI_GOODSMVT_CREATE - Error while posting a Material Document

    Hi Experts,
    We are  trying to do the material document posting using the transaction "MB1C" manually in SAP. The movement type which we are using for the same is "261".  While doing this is, it is asking for a work order number and the Recipient number. We gave the Recipient Number as "123". Material document is created successfully.
    Again using the same transaction  "MB1C" , we are trying to do the reversal of the material document which we posted previously against another work order number for the same material and the serial number if the material is serialised and as well as for the non serialised material.
    Both this case, in SAP the material document is created succesfully. This is done manually in SAP.
    When we are trying to create the material document using the BAPI 'BAPI_GOODSMVT_CREATE', for the above scenario, posting the material document '261' movement type for one work order and the reversal for another work order '262' movement type for the same material (whether it is a serialised or non serialised) we are getting the eror as "RE Qty. transferred exceeded 1 PC: 50,003,695 C001 USED 1200".
    We are passing the following at the item level. MATERIAL Number, Plant, STGE_LOC, ENTRY_QNT, MOVE_TYPE, BATCH, ORDERID, RESERV_NO,  RES_ITEM, ACTIVITY, XSTOB for reversal.
    We are passing the GM_CODE as '05'.
    Please let us know what needs to be changed inorder to create the material document properly without getting errors.
    Thanks in Advance,
    Mohan.

    Hi,
    We fixed this issue by removing the reservation number of the material when we are trying to post the material document with the movement type "262".
    The reason for removing the reservation number for the movement type "262"
    The reservation number is getting created against a work order when we trying to create the work order in IW32. This reservation number is used for validating the stock while we are trying to consume and doing the reversal.
    SAP is allowing us to reverse the consumed quantities only based on the reservartion number and hence we got this error.
    To fix this error, if we are trying to reverse a particular material against a different work order for which it has been consumed previiously, remove the reservation number and item number and try posting the material document.
    Hope this solution will solve your issue:)
    Thanks and Regards,
    Mohan.

  • Multiple Material Numbers to use one Info Record

    I have several material numbers that I have recently set up as Subcontracting special procurement. All of these numbers use one quote from our vendor. How do I assign multiple numbers to a single info record?
    Thanks for your assistance!!

    SAP knows 2 kind of subcontracting scenarios, a purchasing route and a production route.
    in the purchasing subcontract scenario you order the finished material with item category L, you can see the components in the purchase order and you consume the components when you post the goods receipt to  this purchase order.
    in the production route, you create production orders to "manufacture" the finished and to consume the components, the purchase order is only to procure the service. you do goods receipt and cosumption in reference to the production order, and you do a goods receipt for the service in reference to the purchase order.
    if the info record is without material number,then you cannot have a permanent  link to a material if you use the purchasing route.
    Usually SAP will propose the info record as source when you assign and process requisitions in ME57. I doupt that SAP will propose info records without material number for requisition with material number. so the only chance to assign such info record to a PO to get the price defaulted would be manual entry of info record number in ME21N (F4 search help is available)
    in the production subcontracting process you can enter the info record number in the recipe, so you can establish a permanent link in master data. So SAP exactly knows which info record price to pull for the service orders. and in this process you can enter one info record number in several recipes.

  • Use material number with profile serial number in SRM

    Hello,
    I created a material number in the back-end and I transfered it to the
    SRM.
    After creating and approving the PO with that material number, I tried to
    create a confirmation in the SRM and I got the error message:
    "Maintain serial numbers for total quantity".
    I do not have an a suitable field in the SRM.
    Please advice.
    Best Regards
    Eyal Weinreb
    HP

    check it up in ECC.
    even if you do MIGO, you will get same erro message.
    Note 1278707 - BAPI_GOODSMVT_CREATE: Message M7 175 during goods receipt
    You are using BAPI_GOODSMVT_CREATE to perform a goods receipt posting for a subcontracting purchase order where the materials being received are serial number managed. The BAPI incorrectly returns the error message M7 175 (Maintain serial numbers for total quantity) even though the correct number of serial numbers are being passed over in the parameter table GOODSMVT_SERIALNUMBER. This error also occurs when the serial numbers should be automatically created during the goods receipt posting (controlled by the field SERIALNO_AUTO_NUMBERASSIGNMENT in the table GOODSMVT_ITEM).
    Note 1337306 - Goods receipt for stock transport order with serial numbers
    In transaction MIGO, you post a goods receipt for stock transport orders for a material with serial number requirement and the system issues error message M7 175: "Maintain serial numbers for total quantity". On the "Serial Numbers" tab page, all you are told is that the item is not relevant for serial numbers. You are therefore unable to maintain serial numbers, even though there is a serial number requirement for this transaction/event. You can post the goods receipt in transaction MB01.
    IEN                    166     Maintain serial numbers for total quantity
    M7                     175     Maintain serial numbers for total quantity

  • How to Read multiple material master data in single idoc

    Iam working inbound material master custoum idoc .IN a single idoc i am receiveing multiple materials data .
    i want to read each material  data in idoc that data need to pass BAPI(perform REC_CREATION_MM Iin side this perform material posting bapi is there.).
    Please provide any suggestion <removed by moderator>.this below logic is not working if idoc contain single material and last record in multiple material is not posting
    lOOP AT idoc_data WHERE docnum = idoc_contrl-docnum.
    if sy-tabix NE 1.
          If idoc_data-segnam = 'E1MARAM'.
            perform REC_CREATION_MM.
          endif.
        endif.
        CASE idoc_data-segnam.
          WHEN 'E1MARAM'.
            wa_E1MARAM = idoc_data-sdata .
            APPEND wa_E1MARAM TO it_E1MARAM.
            MOVE-CORRESPONDING wa_E1MARAM TO it_BAPIMARA.
            APPEND it_BAPIMARA.
            MOVE wa_E1MARAM-MATNR TO it_TABFILD-MATNR.
            MOVE wa_E1MARAM-MEINS TO it_TABFILD-MEINH.
            APPEND it_TABFILD.
          WHEN 'ZMM_C_CLFMAS01'.
            wa_ZMM_C_CLFMAS01 = idoc_data-sdata.
            APPEND  wa_ZMM_C_CLFMAS01 TO it_ZMM_C_CLFMAS01.
          WHEN 'E1MAKTM'.
            wa_E1MAKTM = idoc_data-sdata.
            APPEND  wa_E1MAKTM TO it_E1MAKTM.
            MOVE-CORRESPONDING wa_E1MAKTM TO it_BAPIMAKT .
            APPEND it_BAPIMAKT.
          WHEN 'E1MARCM'.
            wa_E1MARCM = idoc_data-sdata.
            APPEND wa_E1MARCM to it_E1MARCM.
            MOVE-CORRESPONDING wa_E1MARCM TO it_BAPIMARC .
            APPEND it_BAPIMARC.
         WHEN 'E1MVKEM'.
            wa_E1MVKEM = idoc_data-sdata.
            APPEND wa_E1MVKEM to it_E1MVKEM.
            MOVE-CORRESPONDING wa_E1MVKEM TO  it_BAPIMVKE .
            APPEND it_BAPIMVKE .
          WHEN 'E1MLANM'.
            if NOT idoc_data-sdata is INITIAL.
              wa_E1MLANM = idoc_data-sdata.
              if  NOT wa_e1mlanm is INITIAL.
                APPEND wa_E1MLANM TO it_E1MLANM.
                MOVE-CORRESPONDING wa_E1MLANM TO it_BAPIMLAN .
                APPEND it_BAPIMLAN .
              ENDIf.
            endif.
        ENDCASE.
      ENDLOOP.
    Thanks
    VIJAY
    Edited by: Thomas Zloch on May 4, 2010 3:09 PM - priority normalized

    Check the material available in MARC table in SE11 transaction against your plant.If it is not available please maintain through MM01 transaction.

  • Check same material number is entered in the va02 for bulk_sales_order

    hi
    i am calling the transaction 'VA02' by passing the bulk_sales_order number which is already created containing the record, after that if i try to create the new item for same material can allow, but if i try to create for different material i need to display error like
    'invalid material number enter the same material number'. and before that i need to check sales order type is bluk_sales_order "XLB' used in my project...
    thanks with regards
    swamy
    Moderator Message : Duplicate post locked. Continue with [Need to validate the material number in the VA02|Re: Need to validate the material number in the VA02].
    Edited by: Vinod Kumar on May 19, 2011 10:25 AM

    VKOA error was there

Maybe you are looking for