Inbound/Outbound Delivery using DESADV01 Inbound IDOC

We are trying to use Message type DESADV, basic type DESADV01 to represent inbound and outbound material deliveries. Our SAP system is configured to accept these IDOCs and apply process code DESA which calls function module IDOC_INPUT_DESADV.
Our question is which of DESADV01's Segment-Field is used to tell the FM that we are talking about an Inbound or an Outbound delivery?
I have read something related to E1EDL21-LFART, but this field seems only present in basic type DELVRY01. Is there something similar in DESADV01?
Cheers

Thanks for your answer Anji.
We are not having problems with the direction of the IDOC. The IDOC is always Inbound to the SAP system, as we want it to be. However the delivery which the IDOC represents can be an inbound delivery (material has entered a certain plant) or an outbound delivery (material has come out of a certain plant).

Similar Messages

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

  • Issue while creating Outbound Delivery using Standard BAPI

    Hi all,
    I am trying to create an outbound delivery for a Sales order using the Standard BAPI - BAPI_OUTB_DELIVERY_CREATE_SLS.
    After giving the valid inputs for Sales order no and doc no, am getting an error as "No instance of object type OutboundDelivery has been created. External reference:" But when trying to create manually there is no problem. Please suggest what may be the issue and how to correct it?
    Regards,
    Vimala P

    Hi Vimala,
    I am trying to create outbound delivery using BAPI_OUTB_DELIVERY_CREATE_SLS & BAPI_DELIVERYPROCESSING_EXEC. But no success. Getting "No instance of object type outbound delivery has been created" in return.
    1) Delivery Type
    2) Delivery selection date
    Needs to be passed in import parameters.
    Could you please tell me what are all the parameters to be passed under tables tab in RV_DELIVERY_CREATE?
    Thanks in Advance..
    Regards,
    Rajasekar .M

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

  • Create outbound delivery using VL10B for Stock Tranfer order

    Hi ALL gurus,
    I had created STO stock transfer order (UB order type ) and release the STO using ME21N and ME29N
    When try create a outbound delivery using VL10B, the STO not show, i remove all check and blank in all seclection. The STO still not show.
    Anyone can help ?? where going wrong ???
    Rejoice

    Hi
    There are two processes for STO , that is with shipping & without shipping.
    For Without Shipping there is no config required.
    For STO with shipping You need to configure in
    SPRO-> IMG-> Materials Management-> Purchasing-> Purchase Order-> Set up Stock Transport Order
    Please go through the link on all types fo STO's
    http://help.sap.com/saphelp_erp2004/helpdata/EN/4d/2b90dc43ad11d189410000e829fbbd/content.htm
    Thanks & Regards
    Kishore
    Edited by: Kishore Kumar Chiluka on Jul 2, 2008 8:25 AM

  • HU not coming when create inbound delivery via outbound delivery using SPED

    Hi experts,
    In my synario  :::issue : Handling units from  outbound delivery are not transferred to  the automatic created inbound    delivery using SPED output type.
    Error when HU is assigned manually     ::Handling unit 10000013565 is already assigned to outbound delivery 87005777.
    Can somebody solve my probeleam or is there any sap note availavle to solve this probleam.I am using ecc 6.0 environment.
    Thanks
    subhasis

    We have the same issue. Please post the resolution. Thanks.

  • Outbound delivery confirmation : MM - With Idoc

    Hello,
    can you let us know if you have already use an idoc type to
    confirm the picking of an outbound delivery and create the packing at the same time (HUM created and VL02N GI Posted) ?
    It seems that this action is possible in DWM (EWM) but not existing for an MM Business flow (Stock managed only in MM)
    thanks for your help
    regards,
    Maxime C.
    Aymax Consulting

    Thanks but i don't see the relation with [6988133|Re: Handling unit issue;
    when we finish an outbound delivery with a goods issue, we see in VL03N the correct details and packaging information. There is no obvious mistake here, no error, up to Goods Issue we can change everything.
    in some cases when the idoc SHP_OBDLV_CONFIRM_DECENTRAL is created some HU line details in segment E1BPDLVHDUNITM are wrong:
    HDL_UNIT_INTO = 0000811193
    HDL_UNIT_EXID_INTO = 00000000100000759839
    DELIV_NUMB = 0082850567
    DELIV_ITEM = 000550
    PACK_QTY =
    SALES_UNIT =
    SALES_UNIT_ISO =
    MATERIAL = 000000000000812005
    HU_ITEM_TYPE = 1  : Material item
    but i should get
    HDL_UNIT_INTO = 0000811193
    HDL_UNIT_EXID_INTO = 00000000100000759839
    DELIV_NUMB = 0082850567
    DELIV_ITEM = 000550
    PACK_QTY = 3.000
    SALES_UNIT = ST
    SALES_UNIT_ISO = PCE
    MATERIAL = 000000000000812005
    HU_ITEM_TYPE = 1  : Material item
    or the PACK_QTY is accumulated in another E1BPDLVHDUNITM segment
    Edited by: H. TOLBOOM on Nov 2, 2010 4:34 PM

  • Adding new lines on outbound delivery using decentral warehouse

    Hi
    I have a decentralized warehouse that reports back to SAP for our outbound deliveries.
    When the systems responds it can add an extra line, if a item can not be delivered.  but it is possible to add an similar item, but with a different item number.
    Can I add new line items to a delivery using SHP_OBDLV_CHANGE or any other idoc, or do I need to use a RFC/BAPI.
    Regards
    Daniel

    FM or BAPI to add line item to SD Delivery

  • How to change the pick quantity in outbound delivery using bapi

    Hi,
    I am using BAPI_OUTB_DELIVERY_CHANGE for changing the outbound delivery picking quantity but there is no field to change the pick quantity.
    plas advice any BAPI to change pick quantity
    Regards,
    Krishna

    Krishna....have a look in the below threads where there was a similar requirement..
    error while using BAPI_OUTB_DELIVERY_CHANGE
    change outbound delivery

  • Print HU label from Outbound delivery using output determination

    Hi,
      We have a business requirement to print HU labels from outbound delivery. The steps followed are
    1) User executes VL02N
    2) User clicks on packing
    3) Material is entered to pack. HU is automatically generated.
    4) After saving the delivery, output message is triggered.
    Output determination is as follows
    1) An Z output type is created.
    2) Form entry and smartform name is assigned to this output type
    Issue:
    The issue is when the output message is triggered and the code in the form entry is executed, the handling unit (from nast) is not yet committed in the database. Since it is not updated in the database table, we cannot get any handling unit data to be printed.
    Any inputs on how to print HU labels using output determination from outbound delivery is appreciated.
    Thanks,
    Sandeep

    Hi Surya,
         Thanks for the reply. But, my question was how to print labels from VL02N when i pack a material on this delivery.
    Regards,
    Sandeep

  • Unable to update Qty for outbound Delivery using BAPI_OUTB_DELIVERY_CHANGE

    Hi Experts,
    I am unable to update the Outbound Delivery quantity using FM BAPI_OUTB_DELIVERY_CHANGE. I am getting error in BAPI Return "Error in document &1 item &2 (quantity consistency check)".
    Here is my sample program to update Quantity
    *& Report  ZTEST_BAPI                                                  *
    REPORT  ZTEST_BAPI                              .
    tables : lips.
    parameters : v_vbeln like likp-vbeln,
                 v_posnr like lips-posnr.
    data : it_item type BAPIOBDLVITEMCHG occurs 0,
           wa_item type BAPIOBDLVITEMCHG,
           it_return type BAPIRET2 occurs 0,
           i_head type BAPIOBDLVHDRCTRLCHG,
           i_hdata type BAPIOBDLVHDRCHG,
           wa_conf type BAPIOBDLVITEMCTRLCHG,
           it_conf type BAPIOBDLVITEMCTRLCHG occurs 0.
    start-of-selection.
    select single * from lips into lips where
                      vbeln = v_vbeln
                      and posnr = v_posnr.
    if sy-subrc eq 0.
    move lips-vbeln to I_hdata-DELIV_NUMB.
    *append wa_hdata to i_hdata.
    move lips-vbeln to wa_item-DELIV_NUMB.
    move lips-posnr to wa_item-DELIV_ITEM.
    move lips-matnr to wa_item-MATERIAL.
    move lips-charg to wa_item-BATCH.
    lips-LFIMG = lips-LFIMG + 20.
    move  lips-LFIMG to wa_item-DLV_QTY.
    move  lips-LGMNG to wa_item-DLV_QTY_IMUNIT.
    move  lips-VRKME TO wa_item-SALES_UNIT.
    MOVE  'KGM'      TO WA_ITEM-SALES_UNIT_ISO.
    MOVE LIPS-MEINS  TO WA_ITEM-BASE_UOM.
    MOVE 'KGM'  TO WA_ITEM-BASE_UOM_ISO.
    append wa_item to it_item.
    move lips-vbeln to wa_conf-DELIV_NUMB.
    move lips-posnr to wa_conf-DELIV_ITEM.
    move 'X' to wa_conf-CHG_DELQTY.
    append wa_conf to it_conf.
    endif.
    CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'
      EXPORTING
        HEADER_DATA               = i_hdata
        HEADER_CONTROL            = i_head
        DELIVERY                  = v_vbeln
      TECHN_CONTROL             =
      TABLES
      HEADER_PARTNER            =
      HEADER_PARTNER_ADDR       =
      HEADER_DEADLINES          =
       ITEM_DATA                 = it_item
       ITEM_CONTROL              = it_conf
      ITEM_SERIAL_NO            =
      SUPPLIER_CONS_DATA        =
      EXTENSION1                =
      EXTENSION2                =
        RETURN                    = it_return
      TOKENREFERENCE            =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    I need to update Qty to the outbound delivery for an given item.
    Thanks for your quick response.
    With Regards,
    Bala Sankar
    9900433488

    Hi Bala,
    make sure you are setting...
    itemdata-dlv_qty
    itemdata-dlv_qty_imunit
    itemdata-fact_unit_nom     e.g = 1.
    itemdata-fact_unit_denom  e.g = 1.
    Rgds
    Glenn

  • Creating Outbound Delivery using BAPI

    Hi All,
    Can anyone advice is there any way to create Oubound Delivery using BAPI.
    If you have come accross with such developments or idea, can you please share your idea?.
    Thanks,
    Muruganand.K

    Hi,
    Use BAPI_DELIVERYPROCESSING_EXEC - Create Delivery from Delivery Due List
    BAPI_OUTB_DELIVERY_CONFIRM_DEC  BAPI for Outbound Delivery Confirmation from a Decentralized System
    BAPI_OUTB_DELIVERY_SPLIT_DEC   BAPI for Subsequent Outbound-Delivery Split from a Decentralized System
    BAPI_OUTB_DELIVERY_CHANGE
    BAPI_OUTB_DELIVERY_CREATENOREF
    BAPI_OUTB_DELIVERY_CREATE_SLS
    BAPI_OUTB_DELIVERY_CREATE_STO
    BAPI_OUTB_DELIVERY_SAVEREPLICA
    Also check
    BAPI for Outbound Delivery Creation with reference to Sales Order - VL01N
    BAPI / FM for Create Outbound Delivery for PO
    Outbound  Delivery User Exits
    EXIT_SAPLV50I_003              User Exit BAPI Outbound Delivery Replication
    EXIT_SAPLV50I_004              User Exit BAPI Outbound Delivery Confirmation
    EXIT_SAPLV50K_007              User Exit BAPI Outbound Delivery Replication (Outbound from Sender System)
    Function module: OIJ_EL_DOCG_CREATE_DELIVERY - Create outbound delivery

  • Unable to create outbound delivery using transaction VL10B

    Hello,
    When I am trying to create an outbound delivery from refrencing a Purchase Order using transaction VL10B,
    the item is not getting selected (In the VL10B , I entered the PO number and executed but in the next screen no items are displayed ).
    Please let me know the reasons for this.
    Please Note : I tried to change the PO delivery date ,but still the above problem persist.
    Thanks & Regards,
    Sumanta Deb

    Hello Sumanta
    Please check at item level in PO under 'delivery schedule' tab, what is the material staging date. If this date is in the future, VL10B will not show any line item in due list. VL10B will only show due list from today and backdated deliveries.
    Let me know if u have any more issue related to this
    Amol

  • Create outbound delivery using VL10D

    Hi Gurus,
    If i have 4 STOs,i call up VL10D,select these 4 STOs,and click backgound button, system will create one outbound delivery with 4 items. but i want 4 outbound deliveries to be created,how to achieve this?
    Thank you in advance!
    Regards,
    Dragsky

    HI Dragsky,
    Please deactivate the flag "order combination" indicator for the default customer determined in the STO ( shipping tab)
    You have do this setting in the customer master XD02
    regards,
    Ramana

  • Create Outbound Delivery Using IDOC

    Hi,
    Does anybody know of an IDOC that I can use to Create Outbound deliveries in SAP?
    I know that I can use BAPI_DELIVERYPROCESSING_EXEC to create the delivery, but I am hoping to do so directly using a standard (or slightly customized) IDOC.
    I will have multiple SAP Sales Order numbers to reference in creating the Delivery Note.  Note that I will not already have a delivery number as this is a create, so I can't use DELVRY*.
    Kind Regards,
    Robin

    Create your own and assign as processing the BAPI or a wrapper for it.
    Enjoy

Maybe you are looking for

  • B/w G3 with no system installed

    I just purchased a used G3 B/W on e-bay.The hard drive was password protected and locked. No install discs and my wife tossed my originals out as my current b/w is running OS10.2.8. and she thought I had too many cd's around. I installed the new hard

  • Urgent please-sorting code issue in BIP

    Hi, issue with sort order in BIP reports. I gave code like this but saying expression error. Please help me. sort should be in the order of numbers , then upper case then lower case values. declared variable is <?variable: srtStr; "'01234567890ABCDEF

  • Is it possible to extract vacacy created in Global HR or provide a link to 3rd party system on vacancy card?

    Hi, We have a client requirement either to extract vacacy created in Global HR or provide a link on vacancy card to 3rd party system ? Regards, Manoj

  • Weblogic Threads Deadlock

    We are experiencing a problem with web services communicating within a weblogic managed server configured with 15 threads. When we have 2 web services in the managed server (named A and B), after flooding A with 20 or more simultaneous requests, we b

  • Page Not Found error trying to import a large application into ApEx XE DB

    I have an ApEx application that I'm trying to import from a Standard DB into Express Edition. I have 2 separate installs of ApEx both on XE and I'm getting the same problem on both. PROBLEM: After I import the application I get the error: PAGE NOT FO