Error while doing PGI for Outbound delivery using BAPI BAPI_GOODSMVT_CREATE

Hi All,
I am getting an below error while doing PGI for outbound delivery using the BAPI BAPI BAPI_GOODSMVT_CREATE:
Goods movement not possible with mvmt type 601
Can anyone suggest me what will be the solution for it?
Regards,
Raghuraman.k

I tried with the above BAPI but it is not working.
In my case a delivery has one line item with batch split and other line item without batch split.
Below is my code :
DATA : gwa_header_data TYPE bapiobdlvhdrcon,
       gwa_header_ctrl TYPE bapiobdlvhdrctrlcon,
       lv_delivery     TYPE bapiobdlvhdrcon-deliv_numb,
       git_item_data TYPE STANDARD TABLE OF bapiobdlvitemcon,
       gwa_item_data TYPE bapiobdlvitemcon,
       git_item_ctrl TYPE STANDARD TABLE OF bapiobdlvitemctrlcon,
       gwa_item_ctrl TYPE bapiobdlvitemctrlcon,
       git_return    TYPE STANDARD TABLE OF bapiret2,
       gwa_return    TYPE bapiret2.
*Header data
gwa_header_data-deliv_numb = '0808000002'.
*Header Control data
gwa_header_ctrl-deliv_numb = '0808000002'.
gwa_header_ctrl-post_gi_flg = 'X'.
*Delivery Number
lv_delivery = '0808000002'.
*Item data and its corresponding control data
gwa_item_data-deliv_numb      = '0808000002'.
gwa_item_data-deliv_item      = '900002'.
gwa_item_data-dlv_qty         = 4.
gwa_item_data-dlv_qty_imunit  = 4.
gwa_item_data-fact_unit_nom   = 1.
gwa_item_data-fact_unit_denom = 1.
APPEND gwa_item_data TO git_item_data.
gwa_item_ctrl-deliv_numb      = '0808000002'.
gwa_item_ctrl-deliv_item      = '900002'.
gwa_item_ctrl-chg_delqty      = 'X'.
APPEND gwa_item_ctrl TO git_item_ctrl.
gwa_item_data-deliv_numb      = '0808000002'.
gwa_item_data-deliv_item      = '900003'.
gwa_item_data-dlv_qty         = 6.
gwa_item_data-dlv_qty_imunit  = 6.
gwa_item_data-fact_unit_nom   = 1.
gwa_item_data-fact_unit_denom = 1.
APPEND gwa_item_data TO git_item_data.
gwa_item_ctrl-deliv_numb      = '0808000002'.
gwa_item_ctrl-deliv_item      = '900003'.
gwa_item_ctrl-chg_delqty      = 'X'.
APPEND gwa_item_ctrl TO git_item_ctrl.
gwa_item_data-deliv_numb      = '0808000002'.
gwa_item_data-deliv_item      = '000020'.
gwa_item_data-dlv_qty         = 10.
gwa_item_data-dlv_qty_imunit  = 10.
gwa_item_data-fact_unit_nom   = 1.
gwa_item_data-fact_unit_denom = 1.
APPEND gwa_item_data TO git_item_data.
gwa_item_ctrl-deliv_numb      = '0808000002'.
gwa_item_ctrl-deliv_item      = '000020'.
gwa_item_ctrl-chg_delqty      = 'X'.
APPEND gwa_item_ctrl TO git_item_ctrl.
BREAK-POINT.
CALL FUNCTION 'BAPI_OUTB_DELIVERY_CONFIRM_DEC'
  EXPORTING
    header_data    = gwa_header_data
    header_control = gwa_header_ctrl
    delivery       = lv_delivery
  TABLES
    item_data      = git_item_data
    item_control   = git_item_ctrl
    return         = git_return.
BREAK-POINT.
IF git_return IS INITIAL.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.

Similar Messages

  • Error while doing PGI for outbound delivery in SD

    Dear All
    while posting the PGI for out bound derlivery document in SD we are encountered  the error as follows:
    Fld selection for mvmt type 601/ acct 700000 differs for customer goods movement (015)
    Please give the solution for this, its very very urgent...
    Your quick response in this regards highly appriciated.
    Thanks in advance.

    Hi,
    the field status of movement type and field status group of GL account should be in sink.
    the field that are mandatory for movement type should be also mandatory in field status group of GL account. same rule apllies for optional field.
    in your case, may be GL may have some field like for example text as mandatory but may be set as optional in movement type.
    consult your FI team. otherwise, check what field status group ( say G001) is given to that GL accoount in FS00, double click on that, and check the fields. same compare the fields of movement type.
    easy way is in SE38 give RM07CUFA, execute, give the movement type and GL account, you can see the comparsion.
    your problem will be resolved. bring movement and GL in sink for field selection.
    Regards
    Rajesh

  • Getting the error while doing PGI for depot delivery

    Hi
    I am getting the below error while doing PGI for Depot delivery. This error is happening only when I taking the materials from stock transfer order which has more than 10 line items. Same issue is not happening when I am taking one material in Stock transfer order in & same material in depot delivery. Please see the screen shots below attachment. I have already maintained no range for the object J_1IDEPINV for year 2014.
    Regards
    PK

    Moved from SAP ERP SD Sales to Internationalization and Unicode.  Please post all your CIN related queries here.  Also ensure that before posting, you made efforts in searching in SCN or Google.  The reason for this indication is the issue you posted has already been discussed many times here and you will get some clue had you searched.
    G. Lakshmipathi

  • Error while doing IV for Service Delivery Payment

    Dear Support,
      There is Problem while doing Invoice for delivery Payment(Agent commission) in case of Service Order having without
    account assingment.
    While doing Invoice for that Delivery cost , system is giving a error message 'Enter a GL Account'.
    Pls provide some solution regards .
    Ragerds
    Mukesh

    Hi,
    if your service order is a service purchase order, please read the following:
    Planned delivery costs are not supported for service orders.                    
    There is no plan to change this in the near future.  
    Delivery costs are generally not supported in external services                
    management and in case of blanket purchase orders, item category D or B.       
    Instead of representing delivery costs via conditions, in case of              
    service documents, freight costs and other, SAP recommends to add in           
    additional service lines. (note 381030 )                                                                               
    For the future we recommend to use additional service line instead              
    of planned delivery costs condition. There is no problem to post                
    invoice for different vendor for particular SES created for service             
    line that constitutes delivery costs.    
    Regards,
    Edit

  • Problem while doing PGI for Returns Delivery

    Hi,
    We are facing some problem which doing PGI for a returns delivery. Our scenario is HU and WM managed. After creation of delivery I have created a TO and has two different valuation type of same material. Total quantity in TO is 2, 1 of each valuation type. So, automatically, batch split happened for the line item in delivery.
    Now when I am trying to do PGI for this delivery, I get en error message saying "Enter Valuation Type". The movement type used here is 161 (Vendor Returns)
    Same thing is happening successfully for movement type 643 (Transfer inter company code).  What I can gather is that while creating 161 document against delivery system is not automatically taking the valuation types mentioned in line item of delivery.
    Let me know possible reasons for this error and resolution.
    Regards,
    Vishal

    Implement the OSS note 965985

  • Intercompany PO process, Error F5165 while doing PGI in outbound delivery

    Hi all,
    I am doing an inter-company PO with delivery & billing process.
    i have configured the one step procedure in the STO config so that the movement type triggered while PGI in delivery will be 645.
    But when i do the PGI (Post Goods Issue) in the outbound delivery, i am getting an error message no: F5165 "company code ' ' not defined".
    I have checked the settings like both the supplying site & receiving site have company codes & sales orgs assigned in respective companies.
    I am not sure why this error F5165 is coming.
    how to identify what is the issue.
    Please help.
    regards,
    kumar

    The SAP Note which you referred is consulting note.
    Check the fields as I mentioned in my previous post
    - company code (T001K-BUKRS) or
    - valuation area (T001W-BWKEY).
    - may be field WERKS is not maintained in the preceding document (order) for the corresponding delivery item. As a result, the system does not find a valuation area in table T001W as well
    So, in case to avoid this error your config should have these table-field combination which you are used transaction data
    Table-Field
    Table-desc
    Field-desc
    T001K-BUKRS
    T001K-Valuation area
    BUKRS-Company Code
    T001W-BWKEY
    T001W-Plants/Branches
    BWKEY-Valuation Area
    T001W-WERKS
    T001W-Plants/Branches
    WERKS-Plant
    Regards
    JP

  • Reduction logic while doing PGI for Delevery

    Hello all,
    we have one requirement to make the consumption for MTO(Make to Orders) while MRP running through MD04. We have done some changes in enhancement spot to made the consumption forcifully for MTO's.
    But while accessing MD63 for VSF(Planning with Final Assembly) MTO's we are not able to display the reduction quantity while doing PGI for particular Delivery.But this functionality is working fine for VSE(Planning without Final Assembly) MTO's as SAP standard.
    Please help me out to achieve the same functionality for VSF(Planning with Final Assembly) MTO's .
    Thanks and Regards,
    Siva.

    Hello all,
    we have one requirement to make the consumption for MTO(Make to Orders) while MRP running through MD04. We have done some changes in enhancement spot to made the consumption forcifully for MTO's.
    But while accessing MD63 for VSF(Planning with Final Assembly) MTO's we are not able to display the reduction quantity while doing PGI for particular Delivery.But this functionality is working fine for VSE(Planning without Final Assembly) MTO's as SAP standard.
    Please help me out to achieve the same functionality for VSF(Planning with Final Assembly) MTO's .
    Thanks and Regards,
    Siva.

  • STO Problem while doing GR against outbound delivery

    Hi Gurus,
    Need your help regarding STO,in my case i created
    1. STO
    2. Delivery in VL10B t code and did PGI
    3. on the basis of Delivery i created billing document
    4. Excise invoice in J1IIn
    Now while doing GR against outbound delivery system in not doing GR giving some error code 1 as follows
    Goods receipt not possible for delivery 4900000212: error code 1
    Message no. M7865
    Diagnosis
    The goods receipt for the delivery cannot be posted.
    The error according to the error code:
    1. The delivery does not exist.
    2. The delivery type is unknown.
    3. The delivery is not goods issue posted.
    4. There are no delivery items.
    5. The receiving plant could not be determined.
    6. The delivery items have already been goods receipt posted or contain zero quantities.
    7. Goods receipt(effect)movement type to goods issue movement type could not be determined.
    8. It is not currently possible to block the delivery.
    Procedure
    Error code 1      : Check your entry.
    Error code 2,3,4,6: Check the delivery and its document flow.
    Error code 5      : The delivery must be related to a purchase order or
                        the customer must be a retail business.
    Error code 7      : Check the settins for your movement types.
    My delivery types shipping points everthing is in place but am not able to trace out whats the problem. Please help its urgent
    Regards
    Vivek

    Hi
    Based on the error code 1 , it says that the delivery does not exists in the system, That means you cannot perform a Goods receipt againsst the document specified
    I have also not done Goods receipt with reference to Outbound delivery. So i am not able to confirm that this can be done or not.... i will definitely get back to you on this.
    Thanks & Regards
    Kishore

  • I am getting error while doing MFBF for semifinisg good

    Hi,
    i am getting error while doing MFBF for semifinisg good
    Existing standard cost estimate cannot be used
    Message no. RM175
    Diagnosis
    This error appears under the following circumstances:
    The existing standard cost estimate cannot be used for backflushing activities as the repetitive manufacturing profile was not maintained correctly when the standard cost estimate was carried out.
    The standard cost estimate must come from product costing. Other cost estimates (such as base object controlling) are not possible.
    Procedure
    The repetitive manufacturing profile assigned to the material at the time of the planned cost estimate must be a profile for repetitive manufacturing with product cost collector.
    Use product costing to create the standard cost estimate.

    I had already check REM profile repetitive mfg profile final backflush w. activities.
    this particular material is semifinish material attached in BOM of finish material.
    backflush of finish good is possible but now new requirement is to do production booking for the semifinish material.
    i had assign production version , done routing and maintain REM profile,
    created material cost with quantity structure ck11n then run the costing in ck40n.
    still getting the error what else is to done to able to book this thru MFBF.

  • Error while doing  GR for scheduling aggrement

    Dear Experts,
    We are facing error while doing GR for scheduling aggrement.
    we have done the following steps.
    1) Scheduling aggreement in ME31L
    2) Released in ME35L
    3) Mainatined Sch.Agmt Schdule in ME38 for todays and date 200 qty and other line is 800 qty.
    When we are trying to do GR in MIGO system is giving the following message.
    Document 5500000152 does not contain any selectable items
    can I know what I have missed in the above steps.
    Please guide me to resolve this.
    Regards,
    Prasad

    Hi,
    Please check Please check if Gr is already done against this document.  Also please check whether you have attached SA in the source list with line items.
    T-code:ME01
    Enter Mat.code & Plant.
    In the next screen pl.do the following:
    Valid from - commencement date of the SA
    Valid to - End date of the SA
    Vendor - Vendor on whom the SA is released
    POrg - Your purchase organisation
    PPL - Leave it blank(This is only for interplant)
    OUn - Ordering unit
    Agreement - SA number
    Item - 1
    I hope this will resolve your issue. Thanking you

  • Material document posted during PGI for Outbound Delivery

    Dear Experts,
    We have an Outbound Delivery having multiple line items.
    I have a couple of questions.
    1). How may material doc numbers will be generated if I do PGI multiple times?
    2). Can I have 5 different material docs if I post GI 5 times (Per line). Is this scenario possible?
    Your inputs are valuable. Kindly revert
    Thanks,
    Shetty

    Hi Harry
    In my scenario, Outbound delivery having 5 lines.
    I created TO a and confirmed TO for only 2 lines.
    Now when I do PGI for outbound delivery, GI is done for only those 2 lines with confirmed TO
    I will do the rest of GI again
    In this scenario, what will happen? how many material docs are posted?
    Thanks
    Shetty

  • Getting error while doing pgi

    i am getting an error while doing pgi, the error is 'runtime error - description of exception'
    how could i overcome this problem
    pls help me to solve this problem

    Hi,
    Consult your abaper he can give you a solution.
    Thank you,

  • Change Bill-of-lading&package no in Outbound Delivery using BAPI or any FM

    Dear ABAP Gurus,
    How to change Bill of Lading(BOLNR) and Number of Packages(ANZPK) in Outbound Delivery using BAPI or some other Function MOdule.( BDC is not required for this).
    Regards,
    Rajesh

    MOVE 'BAPE_VBAP' TO lwa_extension-structure.
          lwa_bape_vbap-vbeln = lwa_final-vbeln.
          lwa_bape_vbap-posnr = lv_posnr.
          MOVE lwa_final-yyslotid TO  lwa_bape_vbap-yy_slotid.
          MOVE lwa_bape_vbap TO lwa_extension-valuepart1.
          APPEND  lwa_extension TO  lt_extension.
          CLEAR  lwa_extension.

  • Error while doing PGI

    while doing PGI i am getting error : "     Item 000010 requires exactly 10 serial numbers for the asset "
    i tried by Extra --> serial no here i am not able to do anything, there is no automatic button in pop up screen.
    and in mm02 also i tried in sales:general plant/data
    i am not able to do PGI, is there is any other solutions

    Dear Mohan,
    As per your message the material alredy got assigned some serial number so those serial numbers only you need to assign in the delivery before PGI.
    But you have mentioned that there is no popup menu when you go through Extras -->Click on serial numbers this is the place you can assign the serial numbers to the material (go to drop dowmn for existing serial number).
    I hope this will help you,
    Regards,
    Murali.

  • Error:while doing PGI in STO getting error

    Dear sir,
    while doing pgi in sto i m getting this error and i tried in obyc setting is there is there any other option to solve this isssue.
    Account determination for entry CAIN AUM ____ ___ 7920 not possible
    regards,
    Debesh

    Hi
    Account determination for entry CAIN AUM ____ _ 7920 not possible
    This is a clear OBYC error
    Here CAIN is chart of accounts
    AUM is transaction key
    Go to OBYC select AUM double click that
    system will ask for chart of accounts give CAIN as chart of accounts
    maintain the necessary settings for 7920 and for the valuation grouping code
    Here system has not given what is your valuation grouping code
    In t code OMWD you can see what is the valuation grouping code assigned to your plant
    make the necessary settings
    I feel by chance or by mistake in your delivery doc there is a line item with 0 qty in both delivery and picking
    That is why system has gone for AUM  transaction key
    check that and delete that item and then without the above said settings being maintained the PGI can get processed
    Check and revert back
    Regards
    Raja

Maybe you are looking for