Goods Issue using BAPI_GOODSMVT_CREATE movement type 541

Hi
    According to my requirement I need to do Post goods issue using BAPI_GOODSMVT_CREATE. But I am unable to do PGI . how to consume BOM details if batches are changed. please let me know what values I need to pass to BAPI . give with an example.
Its an urgent requirement.

are you passing batch number to the BAPI?
if not try pass the batch number the rest of the things bapi will take care of.
bi

Similar Messages

  • Post Goods issue using bapi_goodsmvt_create

    hi,
    Iam trying to do post goods issue using bapi_goodsmvt_create. please let me know what are the mandatory fields to be passed?

    hi,
    *& Report  ZRPT_SUB_KO01GOODSMOVEMENT
    REPORT  ZRPT_SUB_KO01GOODSMOVEMENT.
    PARAMETERS : P_BAG(17)  TYPE C,
                 P_ZZORG LIKE zaUFK-ZZORG,
                 P_MATNR LIKE MARA-MATNR,
                 P_WERKS LIKE AUFK-WERKS,
                 P_WERK LIKE AFPO-PWERK,
                 P_DATE LIKE MKPF-BUDAT,
                 P_LGORT LIKE GOITEM-LGOBE.
    DATA : BDC_DATA TYPE STANDARD TABLE OF BDCDATA. "internla table for bdc data
      DATA : WA_BDC_DATA TYPE BDCDATA .                "work area for bdc data
      DATA : T_XMSEG TYPE   MSEG.
      DATA : T_XMKPF TYPE MKPF.
      DATA : V_BAGS1(17) TYPE C.
    DATA : BEGIN OF WA_MB1B,
           ZZGCODE TYPE ZMIGO-ZZGCODE,
           ZZGBAGS TYPE ZMIGO-ZZGBAGS,
           WERKS TYPE AUFK-WERKS,
           LGORT TYPE VBRP-LGORT,
           ZZORG TYPE zAUFK-ZZORG,
           END OF WA_MB1B.
    DATA : V_MATERIAL TYPE BAPI2017_GM_HEAD_RET-MAT_DOC.
    data : v_date(10) type c.
    DATA : T_GOODSMVT_HEADER TYPE BAPI2017_GM_HEAD_01,
           T_GOODSMVT_CODE TYPE BAPI2017_GM_CODE,
           T_GOODSMVT_ITEM TYPE STANDARD TABLE OF BAPI2017_GM_ITEM_CREATE,
           T_RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    DATA : WA_GOODSMVT_ITEM TYPE BAPI2017_GM_ITEM_CREATE.
    DATA : BEGIN OF S_MARA,
           MEINS LIKE MARA-MEINS,
           END OF S_MARA.
    DATA : MATERIALDOCUMENT TYPE BAPI2017_GM_HEAD_RET-MAT_DOC.
    *FORM GOODSMOVEMENT TABLES T_RETURN
                             USING WA_MB1B LIKE WA_MB1B.
    SELECT SINGLE  MEINS
                   FROM MARA
                   INTO S_MARA
                   WHERE MATNR = P_MATNR.
       CONCATENATE p_date6(2) p_date4(2) p_date+0(4) INTO V_DATE SEPARATED BY '.'.
        T_GOODSMVT_HEADER-PSTNG_DATE = P_DATE.
        T_GOODSMVT_HEADER-DOC_DATE = P_DATE.
        T_GOODSMVT_CODE-GM_CODE = '04'.
        WA_GOODSMVT_ITEM-MATERIAL =      P_MATNR.                    "'000000000000001556'.
        WA_GOODSMVT_ITEM-PLANT  =        P_WERK.                     " '1000'.
        WA_GOODSMVT_ITEM-STGE_LOC =      P_LGORT.                    " '0001'.
        WA_GOODSMVT_ITEM-MOVE_TYPE =     'Z42'.
        WA_GOODSMVT_ITEM-VENDOR =         P_ZZORG.                   "'0000100224'.
        WA_GOODSMVT_ITEM-ENTRY_QNT =      P_BAG.                   " '1'.
        WA_GOODSMVT_ITEM-ENTRY_UOM =     S_MARA-MEINS.
        WA_GOODSMVT_ITEM-ENTRY_UOM_ISO = S_MARA-MEINS.
        WA_GOODSMVT_ITEM-MOVE_PLANT = P_WERKS.
        APPEND WA_GOODSMVT_ITEM TO T_GOODSMVT_ITEM.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
    EXPORTING
          GOODSMVT_HEADER          = T_GOODSMVT_HEADER
          GOODSMVT_CODE            = T_GOODSMVT_CODE
    IMPORTING
        MATERIALDOCUMENT           = V_MATERIAL
    TABLES
          GOODSMVT_ITEM            = T_GOODSMVT_ITEM
    RETURN                        = T_RETURN.
    BREAK shailajaa.
               EXPORT t_return  to MEMORY ID '123'.
               EXPORT V_MATERIAL TO MEMORY ID 'MAT'.
                CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
         EXPORTING
           WAIT          = ' '.
    *ENDFORM.

  • Unable to do a goods issue with a movement type with no consumption posting

    Dear Colleagues,
    I have a customer who sellls books, some of these books are printed on demand and hence no inventory is maintained and other books manage inventory as stocks are maintained.
    SD Orders and deliveries are managed for these products.
    However , the customer would like a process in the SAP delivery document to represent the goods leaving the printing plants, ie the goods issue.
    As for materials that do not manage inventory are not visible from the VL06G ( Outbound deliveries for goods issue) transaction. I configured a 'dummy' movement type and assigned it to a schedule line.
    The movement type has the setting 'consumption posting' removed.
    After doing this, the deliveries show up in VL06G, but when attempting to do the post goods issue, I get the following error message  "Deficit of SL Unrestricted-use "
    I have checked all the config that I know and there should not be any availability checks, but shome how it is being checkad at goods issue. Help!!! What am I missing?
    Many thanks
    Henry

    Hello
    From my point of view you need to use a Non Stock Material  (Material type: NOST)  to manage the books .
    then you sell books as you are selling service
    Best regards
    Meher

  • Deficit of Stck w.vend.unr.prev : Goods issue using BAPI_GOODSMVT_CREATE' subcontracting PO

    Hi Experts,
    I am facing one issue while doing Goods Issue for sub contracting PO . In my case, inbound idoc will trigger the BAPI 'BAPI_GOODSMVT_CREATE' with movement code '07'  and movement type as 543.
    But it throws the error Deficit of Stck w.vend.unr.prev 438.793 THD : U329557 0113 VARIOUS O. U329557 is the child material of finished material 0003121XAZ. When i checked in MMBE, for the given material/storageloc/batch it has sufficient quantity.
    I debugged the whole scenerio and found that from one table T156F in FM 'MB_MODIFY_STOCK_ENQUEUE_ENTRY', the value <m> is ASSIGNED from (t156f-felds) with value 1126.190. Later it subtract the value, provided in structure GOODS_ITEMS of BAPI BAPI_GOODSMVT_CREATE with quantity 1564.983 which is to be Goods issued from vendor. 
    1564.983 - 1126.190 = 438.793 .
    Please help me why i am getting this Deficit error even when quantity is present for child material.
    Thanks
    Shahab

    Hi Experts,
    Please help me in this issue.

  • WM: Return Purchase order process issue-Using 161 movement type

    Hi
          i did return PO with using 161 movementype .when i do GRN, WM is appear 601 movement type and storage type is 916 .
          i  think is wrongly triggered the movementype and storage type 916 .
          so where i made mistake the configuration.pls suggest me to do the configuration.
        with regards
       dinesh
    Edited by: code acess on Jul 8, 2011 7:50 AM

    You can ask SAP AG why it was designed this way - I already told you my explanation I have no better thoughts.
    Just remark: WM-mvt 601 is not only related to sales process. Just check the WM/IM interface and you will see it (e.g. IM-mvt 261, IM-mvt 541 are assigned to it). I think it generally means outbound delivery process.
    If the stock is not in the right place and system cannot find it based on the search strategy you use, you have to enter the data manually.
    Edited by: Csaba Szommer on Jul 8, 2011 11:41 AM
    Edited by: Csaba Szommer on Jul 8, 2011 11:48 AM

  • Goods Issue slip against Movement type

    Dear all,
    i have one scenario regarding Returnable gate pass or non returnable gate pass.
    what i am thinking, before going to enhancement can we assign output type to movement type.
    Example:-
    suppose i am creating one new movement type for returnable or non returnable ok
    the after i will create one out form for that and in output determination we can assign that form to movement type directly.
    i checked our condition table there is no option for Movement type.
    Can any body send me hole Configuration setting for Output determination for Good Receipts and Goods Issue.
    it is very urgent.

    Hi,
    The related configuration settings are found out in IMG --> Material Management ---> Inventory Management and Physical Inventory ---> Output Determination ..... Ensure also that the condition record shall be maintained via Transaction MN21
    Follow the below steps:
    1. Maintain the Printer Name in SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Gen Settings->Printer Setting
    2. Ensured in SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Gen Settings->Item Print Indicator, 1 stands for Matl Doc print out
    3. In SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Gen Settings->Print Version, maintain Print Version 2
    4. In SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Maintain Print Indicator for GI/Transfer Posting Documents
    5. In SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Output Determination->Maintain Output Types, for the Output types WE01, WE02 and WE03, ensure the foll:
    a. Default Values: Dispatch Time is 3 or 4 as per reqmt. and Tr medium is 1
    b. Print Parameter is 7
    6. In SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Output Determination->Printer Det->Pr Det by Pl/StoLoc, maintain the Output device for all your Plants
    7. In MN21, for Tr Type WE, Print Version 3, maintain Print Item as 1.(Condition records)
    8. While doing MIGO, ensured that in General Tab, you get "3 Collective Slip" beside the Print Indicator and you tick mark the field.
    Now go to MB90 entered the output type as WE01, Tr m as 1, Sort or. 01, Pro.mode as 01, and executed. Sytem outputted all the material documents that has to be taken print out.

  • Different "cost of goods sold" for goods issue and return (mov.typ 601/602)

    Hello everyone,
    I have posted outgoing delivery to the client. During the goods issue posting (HAWA u2013 with Moving Price Control), system took a moving price for this material u2013 letu2019s say 100 EUR. After a month moving price for this particular material has been changed, letu2019s say actual average price is now 120 EUR.
    Now when I made return delivery, system took on material document actual moving price 120 EUR. Is there a possibility to change this rule, so each time I will make return delivery system will take price from a document Iu2019m referring to?
    Please give me some advice.
    MK
    Edited by: Maciej Kromolicki on Jun 4, 2008 9:59 PM

    Hi kromolicki
    If you have maintained moving avg price for the material in accounting1 tab then , system will pick the price on the avg basis only
    Say for example
    you have sales order for  10qty
    Moving avg price is Rs100/-
    system will calculate , the moving avg price on the basis of the quantity. That is why the COGS will vary
    Regards
    Srinath

  • Error at the time of posting goods by using 561 movement type

    Hi All
    I am getting the following error at the time of doing MB1C tcode..
    Fld selectn for mvmt type 561 / acct 10001 differs for Ext. GA amount in LC (023)..
    Kindly help..
    Rgds,
    Pavan.

    Hi,
    Simply go to OMJJ
    Go to movement type 561
    Then double click on FIELD SELECTION (from 201)/batch search procedure
    Then select your relevant movement and click on DETAIL
    Then go to or double click on MATERIALS MANAGEMENT then you will see field Ext. GA amount in LC  tickmark to SUPRESS and save
    Kapil

  • Error in Goods issue with movement type 541

    Dear Users,
    I have created a Sub contracting PO. After that when i m issuing the goods to vendor with movement type 541, its giving the following error: Movement type 541 is not planned for this operation.
    Please help me out

    You can provide material to vendor either using Transaction codes :
    1.  MIGO - Transfer Posting - Other - Movement type 541
    2.  MB1B - Movement type 541  or
    3.  ME2O - Mention the vendor & execute
    S. Kumar

  • Movement Type 541

    Hi All,
    I am using the movement type 541 for GI .I have attached a ZFORM OF WESCHEINVERS3.I have Two line items for a material document number.For line item 10 i have posted the document and not for line item 2.But in the print preview its giving me both.I need only those line items which are posted.
    Please help me
    Regards
    Lalit

    Mathur:
    From the link:
    http://sap.ittoolbox.com/groups/technical-functional/sap-log-mm/mb04-subsequent-adjustment-1108606
    We create a subcontracting purchase order. We add components to the PO. We then create a delivery using transaction ME20. Once the delivery is
    posted the material shows at the vendor being transferred with movement
    type 541. When the vendor ships in the material we perform a GR which receives the
    assembly and removes the material at vendor with a movement type 543.
    I believe your offsetting entry would be 543, 542 is used for reversal
    For more info:
    http://www.sap-basis-abap.com/sapmo006.htm
    Assign points if info helps
    Vj
    How to give points: Mark your thread as a question while creating it. In the answers you get, you can assign the points by clicking on the stars to the left.

  • Error during Goods Issue using movement type U61

    Dear All,
    There is this error with respect to goods movement type U61. It states u201C Difference in Object List header data: U61 previously /321 Newu201D
    I get this error when I am doing the Goods issue using the transaction EM10 or MB1A
    Any guidance or help is welcome
    Regards
    Balaji.J

    Hi,
    The goods issue movement type is 501, the previous movement type was also 501 only. The status of the device is in ESTO. By doing goods issue using movemenn type U61, I need to make them in to AVLB status.
    Regards
    Balaji.J

  • MM Issue Movement type 541

    Hi All,
    I have generated a sap-script form for Goods Issue Slip.I went to mb1b Transaction and posted one line item .But in the form its showing both line items ,I want only those line items which are posted.Please help me on the same .
    Regards
    Lalit

    hi lalit,
    SAP system allows user to issue material to the vender through 541 movement type (transfer posting -MB1B) without refering to any purchasing document.
    It's a standard SAP functionality which you can control in two ways:
    1.  Field settings : Change fields settings for 541 to include Purchase Order number field as mandatory in the screen. But, this is a weak control as you can enter a Purchase Order and send any material to vendor.
    OMBW - double click 541 -> double click Material Management
    2.  Change the IMG settings for movement type 541 and remove the transaction code MB1B as allowed transaction code. Use ME2O only.  If you want to issue excess material to vendor, you will have to change the Purchase Order components.
    OMJJ - click the Select all button
                  Type 541 for the Movement Type
                  Click the Back button
                  Click Allowed Transactions
                  Delete transaction code for MB1B
    reward me points if helpfull
    karthikeya

  • Different movement types for Goods Issue for different Order Types

    Hello Experts,
    Can we maintain different movement types for Goods Issue for different Order Types at the time of automatic creation of reservations?
    Thanks and regards,
    Satyajit

    Satyajit,
    Folow the link given,
    Re: How to add new movement types when creating reservation?
    Hope this helps you.
    SmanS

  • Goods issue using bapi  BAPI_GOODSMVT_CREATE getting error E M7

    HI  consultants,
    While  posting goods issue using bapi BAPI_GOODSMVT_CREATE . Running the batch job(zprogram) to post the goods issue . The goods issue is been posted by passing  goods receipt data's.
    while processing 3 goods receipt , 2 works fine one goods receipt getting  E M 7 300 NO ITEMS ARE TRANSFERED error.
    when i  processing one by one all the 3 goods receipt is working fine and process sucessfully. While processing in bulk ,i am getting this issue.
    If anybody faces this same problem or knows the solution .Please post the answer.
    The way i am passing the parameter to bapi given bellow.
        WA_GOODSMVT_CODE-GM_CODE = C_03.
    *--populate header data
        WA_GOODSMVT_HEADER-DOC_DATE   = WA_MKPF-BLDAT.
        WA_GOODSMVT_HEADER-PSTNG_DATE = WA_MKPF-BUDAT.
    *--populate item data      
    *-- call the bapi for posting goods issue
                 IT_GOODSMVT_ITEM-NETWORK     = WA_RESBP-AUFNR.
                IT_GOODSMVT_ITEM-RESERV_NO   = WA_RESBP-RSNUM.
                IT_GOODSMVT_ITEM-RES_ITEM    = WA_RESBP-RSPOS.
                IT_GOODSMVT_ITEM-ACTIVITY    = WA_RESBP-VORNR.
                IT_GOODSMVT_ITEM-MOVE_TYPE   = C_281.
                IT_GOODSMVT_ITEM-ENTRY_QNT   = WA_RESBP-NET.
    *--get the item details
                  IT_GOODSMVT_ITEM-MATERIAL   = WA_MSEG-MATNR.
                  IT_GOODSMVT_ITEM-PLANT      = WA_MSEG-WERKS.
                  IT_GOODSMVT_ITEM-STGE_LOC   = WA_MSEG-LGORT.
                  IT_GOODSMVT_ITEM-ENTRY_UOM  = WA_MSEG-ERFME.
                  CALL FUNCTION 'CONVERSION_EXIT_ABPSP_OUTPUT'
                    EXPORTING
                      INPUT  = WA_MSEG-PS_PSP_PNR
                    IMPORTING
                      OUTPUT = WA_PSPHI_TEMP.
                  IT_GOODSMVT_ITEM-WBS_ELEM   = WA_PSPHI_TEMP.
                  APPEND IT_GOODSMVT_ITEM.  
                CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
                  EXPORTING
                    GOODSMVT_HEADER  = WA_GOODSMVT_HEADER
                    GOODSMVT_CODE    = WA_GOODSMVT_CODE
                  IMPORTING
                    MATERIALDOCUMENT = WA_MATERIALDOCUMENT
                  TABLES
                    GOODSMVT_ITEM    = IT_GOODSMVT_ITEM
                    RETURN           = IT_RETURN.
    With Regards,
    Ambrose Mohandoss.

    Problem solved.

  • MIGO Goods Receipt - error with Movement Types on GR from Inbound Delivery

    Hi,
    I am getting an error message when processing a Goods Receipt (MIGO) against an Inbound Delivery with as 2 lines with different movement types, a standard 101 and a 970 (the latter being a user defined movement type for free goods).
    The error message I get is 'Movement type 970 is not allowed; only 101 is allowed
    Message no. BORGR622'
    This error message only occurs with a Goods Receipt against an Inbound Delivery, we are able to process a similar Goods Receipt using MIGO against a Purchase Order, with two different movement types 101 and 970, without any issues. 
    It is only a problem with a GR against an Inbound Delivery which is necessary in our MM solution.
    As anybody and ideas how to resolve this?  I cannot see anything obvious in config, and have not spotted any SAP OSS notes either.
    I should mention that we can process a single line Inbound Delivery and Goods Receipt for the Movement Type 970 also!

    Thanks for the reply.  The Price Control Indicator is 'S'.
    The solution was set up at my company before I joined, but the different movement type is to enable the free goods stock to make a Finance posting to a Bonus Stock GL Account.  Bonus stock sale update the same account.
    As I mention the '970' movement type worked fine with Goods Receipt against a Purchase Order (it was coded into to the user exit). 
    The MM procedures were changed to use the Inbound Delivery matched to the PO, this had a result that when the Goods receipt was posted in MIGO it posted as 101 movement, as the PO number was not being recognised.
    By making a further change to the user exit we able to suggest the '970' movement type, but now get the BORGR622 error I refer to.
    '511' is not possible against an inbound delivery either.

Maybe you are looking for

  • Add new field in the Create Support Message Popup Screen

    Hi Experts, I need to create Project Code Field in the standard popup screen Create Support Message Suggest me any Badi or FM or Bapi or Enhancement to create a new field and update the field value to the Support Message created. Please let me know i

  • Transaction type::730 to 732

    hii friends i have an query that transaction type 730 to 732 are used for write up of depreciation... in ABZU this is used with current financial year date in posting date... here my query is i want to use it with last financial posting date,,,, when

  • How to close the REOPEN container number in SAP ME5.1

    Hi, I found a issue maybe it is a bug for the 5.1, for the Pack/Unpack activity, when we unpack a container number which has already been closed status, and remove all their SFCs from this container number, and then this container number is changed t

  • Remove Mobil me Sign In

    Does anyone know how to remove the Mobile me sign in (or join now) splash page that pops up every time I load the iweb program? I do not publish to Mobile me, but to my own hosted server. I guess if you don't mind me asking two questions, is there a

  • Please help; Need 7 simple errors correcting asap to hand in Monday

    this code i typed has 2 errors; Can someone correct and help please? import java.util.scanner; public class dh{ public static void main(String[]args){ Scanner lire=newScanner(System.in); double dh=1,somdudh=0; System.out.printlen("reste"); reste=lire