MB_CREATE_GOODS_MOVEMENT Bapi

I am using MB_CREATE_GOODS_MOVEMENT for certain receipt movement. In case of new batch, I want to enter material characteristic also. Say example Original Source Plant. In this BAPI is it possible ? Or Other BAPI to be used ? If yes, what is the BAPI name ?
Thanks.

You can create the characteristic for a charge with BAPI_OBJCL_CREATE, and change with BAPI_OBJCL_CHANGE...
Regards,

Similar Messages

  • Sending IDoc through FunctMod - what if edidd-sdata size 1000

    There are several function modules to which we can send formatted IDoc data, and I am using one of them just fine (IDOC_INBOUND_SINGLE, if it matters).  However, one thing all of these FMs have in common is that they use the EDI_DD40 structure (or it's equivalent), which has an SDATA field of 1000 bytes.
    My problem comes from the need to use a standard SAP-delivered IDoc (MBGMCR01) that has a length of 1061 bytes.  This wouldn't necessarily be an issue as long as all of the data I needed was within the first 1000 bytes, but it's not.
    Any ideas on how to handle this?

    Ferry,
    I think this may be what you are suggesting, but in different words.  Either way, it would likely solve the problem, though not as cleanly as I'd like since now I've got to make changes to the MB_CREATE_GOODS_MOVEMENT BAPI.
    (1) create a new segment called ZZSDATA1
    (2) make this segment a child of the E1BP2107_GM_ITEM_CREATE segment
    (3) put the overflow information in the new segment
    I can't just add another field to the segment, with 1 byte or 1000 bytes.  All of the data for the segment has to fit within one 1000 byte sdata field.

  • Sending IDOC through INOT

    I want to create IDOC for transaction IW29( display notifications) . For this i am using transaction  INOT (send notification). But when i am executing INOT ( using notification no , user status field, and target system fields ) its showing -- No IDOCs created. Kindly help in  solving the issue.
    Thanks.

    Ferry,
    I think this may be what you are suggesting, but in different words.  Either way, it would likely solve the problem, though not as cleanly as I'd like since now I've got to make changes to the MB_CREATE_GOODS_MOVEMENT BAPI.
    (1) create a new segment called ZZSDATA1
    (2) make this segment a child of the E1BP2107_GM_ITEM_CREATE segment
    (3) put the overflow information in the new segment
    I can't just add another field to the segment, with 1 byte or 1000 bytes.  All of the data for the segment has to fit within one 1000 byte sdata field.

  • Parameters for Yield and Scrap quantities in BAPI MB_CREATE_GOODS_MOVEMENT

    Hi All,
    I am using BAPI MB_CREATE_GOODS_MOVEMENT and MB_POST_GOODS_MOVEMENT to carry out the confirmation and Unplanned Goods Reciept.
    Which parameters in MB_CREATE_GOODS_MOVEMENT i have to use for passing Yield and Scrap quantities.
    And from which table i can fetch the Material for the Order? Can i use AFKO for the material number.
    Please give some inputs on how to use these Function Modules.
    Can i use only MB_CREATE_GOODS_MOVEMENT for the confirmation.
    Thanks,
    Anil.

    Hi,
    I presume you are referring to production order confirmation. Refer these:
    BAPI_PRODORDCONF_CREATE_ACT    Enter activity confirmation
    BAPI_PRODORDCONF_CREATE_HDR    Enter Order Confirmations
    BAPI_PRODORDCONF_CREATE_TE     Enter Time Event Confirmation
    BAPI_PRODORDCONF_CREATE_TT     Enter Time Ticket Confirmation
    Regards

  • Require a BAPI which will do VL02N posting,PGI and create an Invoice

    Hi Gurus,
    My Requirement:
    I will be getting an excel file from the legacy system which will provide me with the Delivery numbers whose Shipment has been confirmed.
    I need a BAPI which will post the picking in VL02N for those Deliveries and do the PGI. And post the PGI will create an Invoice through VF01.
    I know its a bit too much to ask for
    Is there any single BAPI which can do these activities (considering that this is a very standard SAP requirement for almost all organizations). Or do we need to use 2 or more BAPI's for the same. Please let me know !
    Many thanks in advance!

    You can use the following Bapi's for PGI:
    WS_DELIVERY_UPDATE
    BAPI_GOODSMVT_CREATE
    MB_CREATE_GOODS_MOVEMENT
    Thanks,
    Anuradha.

  • BAPI for creation of material documents/movements

    Hi Everebody:
    I need some help regarding to bapis for the creation of mateial documents and/or movements. I have been trying to implement bapi BAPI_GOODSMVT_CREATE, but this bapi does not have (import) the posting time in document, which is very important for my porpuse.
    So, I would appretiate a lot any information anybody could give about any bapi I could use to create material documents or material movements but incluidng the posting time in document (field MKPF-OIB_BLTIME).
    Regards

    You can check MB_CREATE_GOODS_MOVEMENT which has mkpf as inporting parameter.

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

  • BAPI o FM for posting goods receipt of an inbound delivery

    Hi
       I have a program that post a goods receipt for an inbound delivery using batch input of transaction VL32 (in the first screen of this trx pushing button "Post Goods Recepit"). We need to change it for a BAPI o FM that makes the same process. I've seen other threads of the same issue that makes reference to BAPI_GOODSMVT_CREATE. I've checked it using value 05 of GM_Code
    (other goods receipt) but it doesn't work (I think the movement type I using is not compatible with the code 05). Can anybody tell me if this BAPI can do what i need? In that case, anybody have an example code?  I've seen other FM: MB_CREATE_GOODS_MOVEMENT. Is that a better choice? Example code will be much appreciated
    Thanks and regards
    Dani

    Check whether there is any BTE from FIBF and use it accordingly.
    Also check from SWEL whether any event is getting published when the GR is being done.
    If none of the above works try to find some user Exit where you can code the needful.
    Thanks
    Arghadip

  • MB_CREATE_GOODS_MOVEMENT and BAPI_GOODSMVT_CREATE

    Hello all,
    Ive been asked to modify a program to create inspection lots.  The change involved adding a prompt to supply the serial numbers for the parts to be moved to inspection.
    Previously it was using MB_CREATE_GOODS_MOVEMENT but try as I may, there appeared to be no means of adding the serial numbers. There is a flag for automaticly generating serial numbers but this would not work (The items already have serial numbers anyway.....the user identifies them)
    So I substituted MB_CREATE_GOODS_MOVEMENT  with BAPI_GOODSMVT_CREATE and added a table of serial numbers. This worked, giving the mesages Id expect if the user entered an invalid number or one that had already been assigned.
    Document numbers produced and the BAPI works.
    However, the next step of the program uses 'QPL1_LOT_GET_BY_TABIX_NO'  to get the insprecton lot number from memory. I can only assume that this number is written by MB_CREATE_GOODS_MOVEMENT  because I find no reference anywhere else.
    The BAPI does not seem to do this even though MB_CREATE_GOODS_MOVEMENT  is part of its code (the mysteries of SAP!)
    The CTCOD (txn code) in the FM was 'MB11' and Ive used '06' as the movement code in the BAPI.
    Nothing is going to post without the inspection lot number. Can anyone tell me how this number is generated (and why is it written to memory?)
    Many thanks in advance

    This is the code I used to resolve the issue. This code AFTER the BAPI_GOODSMVT_CREATE
    1) Create a lot number
    2) Write it to memory (I dont know why it has to do this)
    3) Extract from memory.
      CALL FUNCTION 'QPL1_INITIALIZE'
        EXPORTING
          i_lot_data_only = 'X'.
      DATA:  wa_qals_imp TYPE qals,
             wa_rmqed_imp TYPE rmqed,
             lv_qplos TYPE qplos,
             wa_qals TYPE qals,
             lv_subrc TYPE sy-subrc.
      CLEAR: wa_qals_imp, wa_rmqed_imp, lv_qplos, wa_qals, lv_subrc.
      wa_qals_imp-mandant = sy-mandt.
      wa_qals_imp-werk = l_imseg-werks.
      wa_qals_imp-werkvorg = l_imseg-werks.
      wa_qals_imp-matnr = l_imseg-matnr.
      wa_qals_imp-lifnr = l_imseg-lifnr.
      wa_qals_imp-art = 'XXXXXX'.          "This should be in table QMAT...See below
      wa_qals_imp-ebeln = g_imp_ebeln.
      wa_qals_imp-ebelp =  g_imp_ebelp.
      wa_qals_imp-charg = viqmel-charg.
      wa_qals_imp-herkunft = '08'.    "01
      wa_qals_imp-stat01 = 'X'.
      wa_qals_imp-losmenge = viqmel-rkmng.
      wa_qals_imp-mengeneinh = 'EA'.
      MOVE '01' TO wa_rmqed_imp-dbs_steuer.
      MOVE 'X'         TO wa_rmqed_imp-dbs_flag.
      MOVE 'X'         TO wa_rmqed_imp-dbs_nochg.
      MOVE 'X'         TO wa_rmqed_imp-dbs_nowrn.
      MOVE ' '         TO wa_rmqed_imp-dbs_noerr.
    Create a Lot number
      CALL FUNCTION 'QPL1_INSPECTION_LOT_CREATE'
        EXPORTING
          qals_imp   = wa_qals_imp
          rmqed_imp  = wa_rmqed_imp
        IMPORTING
          e_prueflos = lv_qplos
          e_qals     = wa_qals_imp
          subrc      = lv_subrc.
    If a lot number has been created then lv_subrc will be < 8
      IF lv_subrc LT 8.
        CALL FUNCTION 'QPL1_UPDATE_MEMORY'
          EXPORTING
            i_qals  = wa_qals_imp
            i_updkz = 'I'.
      ENDIF.
    get insp. lot number
      CALL FUNCTION 'QPL1_LOT_GET_BY_TABIX_NO'
        EXPORTING
          i_tabix              = '1'
        IMPORTING
          e_qals               = g_qals
        EXCEPTIONS
          x_no_entry_in_memory = 1
          x_tabix_too_small    = 2
          x_tabix_too_big      = 3
          OTHERS               = 4.
      IF sy-subrc = 0.
        IF  ( g_qals-matnr = viqmel-matnr )
        AND ( g_qals-werk = viqmel-mawerk ).
          g_notification_not_saved = c_kreuz.
          MOVE g_qals-objnr    TO g_insplot_objnr.
          MOVE g_qals-prueflos TO viqmel-prueflos.
          MOVE g_qals-prueflos TO e_qnqmaqmel0-prueflos.
        ENDIF.
      ELSE.
        MESSAGE i162(qm).
        RAISE action_stopped.
      ENDIF.
    *wa_qals_imp-art 
    This is the inspection type (ART) you get from table QMAT. 
    Took a while to get this solution working and I know a number of people looking for an answer to this......Hope it helps.

  • Error while doing Good Issue for Production Order using BAPI

    Hi All,
    I am facing an error like 'u2018Content of order 1011907: MDT218AJ10 transferred to interface (IMSEG): T-86410-71".
    I have written the code as below. Please let me know what is missing when using the BAPI 'BAPI_GOODSMVT_CREATE'. What is the cause of this error ?
    *Action in Transaction (GM_CODE)
    *GM Code for Goods Issue for Production Order is 03
      gs_gmcode-gm_code = '03'.
    *Header Data
    *Posting date
      gs_header-pstng_date = sy-datum.
    *Document date
      gs_header-doc_date   = sy-datum.
    *Item Data
    *Material
      gs_item-material  = zptp_s_rf_migo_261-matnr1.
    *Movement Type
      gs_item-move_type = '261'.
    *Movement Indicator
      gs_item-mvt_ind   = 'F'.
    *Stock Type
      gs_item-stck_type = 'F'.
    *Plant
      gs_item-plant     = gv_plant.
    *Storage Location
      gs_item-stge_loc  = gv_str_loc.
    *Quantity
      gs_item-entry_qnt = zptp_s_rf_migo_261-menge2.
    *Unit
      gs_item-entry_uom = gv_uom.
    *ISO code for unit of measurement
      gs_item-entry_uom_iso = gv_uom.
    *Order Number
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = zptp_s_rf_migo_261-aufnr
        IMPORTING
          output = gs_item-orderid.
    *Reservation Number
      gs_item-reserv_no = gv_resv_num.
    *Reservation Item
      gs_item-res_item = gv_resv_itm.
    *Reservation Type
      gs_item-res_type = gv_resv_type.
      APPEND gs_item TO gt_item.
    Calling BAPI_GOODSMVT_CREATE to create the Material Document Number
      CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
        EXPORTING
          goodsmvt_header       = gs_header
          goodsmvt_code         = gs_gmcode
        IMPORTING
          goodsmvt_headret      = gs_headret
        TABLES
          goodsmvt_item         = gt_item
          goodsmvt_serialnumber = gt_serial
          return                = gt_return.
    Thanks in Advance.

    hi,
    did you look at message ?
    System says, there are differences between the interface data and the order data. It can be anything. I think you should check
    data in the interface . 
    this is the long explanation of your message :
    Diagnosis
    When calling the function module MB_CREATE_GOODS_MOVEMENT or the BAPI GoodsMovement.CreateFromData (BAPI_GOODSMVT_CREATE) to post a goods receipt for a production order, there are differences between the interface data and the order data.
    Example: The order was created for plant 0001, but plant 0002 is passed on in the interface.
    The system checks this for the material and the order item.
    System response
    Due to this difference, the system cannot post the goods receipt.
    Procedure
    Check the data in the interface (IMSEG-WERKS, IMSEG-AUFNR). If necessary, correct the plant or the order number in the interface.
    << Moderator message - Point begging removed >>
    Edited by: Rob Burbank on Feb 6, 2012 11:24 AM

  • How to create a wrapper BAPI?

    I have to create an Interface between Delivery (Dealer) – Consignment issue Delivery (Supplier)
    As soon as Delivery happened (for dealer), the following data is to be retrieved from Delivery as input for further action
    1.Material no
    2.Quantity
    3.Supplying plant (to  identify order  no of specific location).
    4.Equipment no
    Using 1st three inputs BAPI wrapper to identify the order no (Order type ZVKE) & shipping point and trigger Delivery (for the respective PGIed qty & Equipment nos), PGI & Invoice in supplier using the following BAPIs.
    To create delivery:
    BAPI_OUTB_DELIVERY_CREATE_SLS. (The inputs needed for the creation of delivery are order no & shipping point).
    To create PGI:
    BAPI_GOODSMVT_CREATE Post Goods Movements with MB_CREATE_GOODS_MOVEMENT
    To create Billing:
    BAPI_BILLINGDOC_CREATE

    Hi,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/59ef6011-0d01-0010-bfb0-b51381e00509
    http://www.erpgenie.com/abap/bapi/example.htm
    Hope this helps u,
    Regards,
    Arunsri

  • BAPI for REM Confirmation

    Hi Gurus,
    Can anyone let me know the BAPI name to be used for REM confirmation? I have inputs as Material and Quantty from a 3rd party tool. With only these two inputs, I want system to post GR and GI. All other fields can be defaulted.
    Thanks in advance.
    Sumeet

    Hi Vishal,
    Yes. I have been trying the same BAPI since yesterday but facing some issue. In the output I can see confirmation number but not other output. BAPI is not even returing a message.
    In the intervals of two attempts I also get an error "Function module MB_CREATE_GOODS_MOVEMENT cannot be executed"
    Can you let me know what to check.
    Sumeet
    Edited by: Sumeet Vaidya on Apr 8, 2011 11:11 AM
    Edited by: Sumeet Vaidya on Apr 8, 2011 11:12 AM

  • Bapi for goods movement to transfer more than one serial number

    Dear Gurus
    Is their any BAPI with help of which i can transfer More than one serial Number against a single PO.
    We are having scenario where material is transfer from one client say XYZ to another client ABC.
    Now here the serialised material is transfer angainst diffrent POs with the help of I-Doc from one client to another using movement type 501.
    so please help me .Suggest BAPI with the help of wich i can transfer more than one serial number against one PO.
    I have already tried the following BAPI.
    MB_CREATE_GOODS_MOVEMENT
    BAPI_GOODSMVT_CREATE
    Regards
    Anand Battulwar

    Hi ,
    Already this BAPI (BAPI_GOODSMVT_CREATE) has a structure to handle multiple serial number (BAPI2017_GM_SERIALNUMBER).
    Example of working :
    Assume if you have two materials with Qty 2 each ..
    You need to enter Item 1 , Serial 1 and next line item 1 , serial 2  after that item 2 , serial 1 and  item 2 , serial 2 ..
    Do not sort this table , as system take the serial number base on quantity from qty line..
    What's the issue you are facing ?
    Thanks,
    sudhi

  • Bapi for transfer posting

    Estimated,
    I have to make a move between storage location of material that is blocked with status (movement 325). For that I'm trying on the Bapi MB_CREATE_GOODS_MOVEMENT and run with the same parameters as when I review the transaction MIGO_TR, but the structure EMSEG gives me the message number M7096 "Goods movement not possible with mvmt type 325". What could be wrong? and tried doing the Bapi commit, but still gives me error. It also showed the Bapi BAPI_GOODSMVT_CREATE and throws me the same message. Please I am desperate.
    Thanks.

    Hi,
    You can't use function module MB_CREATE_GOODS_MOVEMENT for movement 325, since that function module is used for Goods Issue for delivery.
    You should use bapi "BAPI_GOODSMVT_CREATE" for this movement 325 instead.
    Passing GOODSMVT_CODE = 04 (for Transfer Posting)
    The following thread has a sample code of above BAPI, then do adjustment accordingly as per your requirement.
    Re: i want to Stock upload with movement 561 and t code is mb1c
    Cheers,

  • Good Movement - BAPI used

    Hi Everybody,
    I like to know the BAPI's used for
    1. Good Movement Creation (BAPI_GOODMVT_CREATE - I think I am correct here)
    2. Deleting a Good Movement (is it BAPI_GOODMVT_CANCEL - I am not sure about this, pls confirm me the right one)
    3. Updating a Good Movement (?)
    I will really appreciate for your quick response.
    Regards/Guru

    Hi
    use the following BAPI's w.r.t Goods movements:
    BAPI_GOODSMVT_CANCEL         
    Reverse Goods Movements with MB_CANCEL_GOODS_MOVEMENT
    BAPI_GOODSMVT_CREATE          
    Post goods movements with MB_CREATE_GOODS_MOVEMENT
    BAPI_GOODSMVT_GETDETAIL        Display Details for Material Document
    BAPI_GOODSMVT_GETITEMS         Display Detailed List of Material Documents
    Regards,
    Anji

Maybe you are looking for

  • How to disable Add New Item in SharePoint 2013

    Hi, I want to disable the Add New Item button after the user created one item in SharePoint 2013. Is it possible to disable? Please reply Thank you

  • How to send a report to corresponding client from the SSRS Report

    Hi Friends, I have one requirement, I have multiple clients information in the report based on the Input client parameter it will show in the report. I want to schedule the report. I need to send a report only with the corresponding client informatio

  • Can i use the ipad4 charger to charge up my gopro?

    I'm in a work camp, didn't bring in my wall charger, and I'm wondering if I can use the ipad4 charger on my gopro hero?

  • Error Returning REF CURSOR

    I'm trying to return a REF CURSOR from a function and get the following error: ORA-00932: inconsistent datatypes: expected CURSER got NUMBER ORA-06512: at "CERTS.JIMMY", line 17 ORA-06512: at line 10 Here is my function: CREATE OR REPLACE PACKAGE jim

  • Why is apple maps data different on the mac to the iphone

    basicly there is upto date data on my maps app o nthe mac but when i go and see the same strech of road on my ios device it is the old data. yes this sound picky but i just want to know why, and if it the iphone catche ( if that the right word) how d