Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Function Module for Creating Outbound Delivery

Former Member
0 Kudos

Hi All,

Please provide me the FM Name which will create the outbound delivery same as VL01N transaction and I needs to update Serial Numbers also. Please help me to find the FM which will create outbound delivery and behave same as VL01N transaction.

Thanks in advance.

8 REPLIES 8

manthanraja
Active Participant
0 Kudos

try BAPI_OUTB_DELIVERY_CHANGE

also

in the link below your question has been discussed ..

also try this link

http://sap.ittoolbox.com/groups/technical-functional/sap-interfaces/bapiidocfm-for-outbound-delivery...

hope it helps

Regards

Manthan

0 Kudos

Hi,

That discussion is not useful for me since the FM what they have mentioned BAPI_OUTB_DELIVERY_CREATENOREF is not available in My system and also i dont want to replicate the outbound delivery ..i want to create the Outbound delivery

0 Kudos

did you try these

BAPI_OUTB_DELIVERY_CREATE_SLS

BAPI_OUTB_DELIVERY_CREATE_STO

also one fact has come to light

there is an OSS note "Note 491875 - Maintenance of Delivery Transactions VL01, VL02, VL31, VL32".

By reading it, i understand that no BAPI exists for delivery creation/modification (VL01N VL01 / VL02N VL02).

==> I think you should use Batch input for creating/modifying deliveries (and Goods issues).

Regards

Manthan.

0 Kudos

Hi Manthan,

BAPIS mentioned by you are not available in My system.

0 Kudos

Hi,

But BAPI_OUTB_DELIVERY_CHANGE is not released.

Former Member
0 Kudos

hi

check FM 1:


    CLEAR: ls_request.
    ls_request-document_type      = 'A'.
    ls_request-document_numb      = tvbap-vbeln.
    ls_request-document_item      = tvbap-posnr.
    ls_request-quantity_sales_uom = tvbap-KWMENG.
    ls_request-PLANT              = tvbap-werks.
    ls_request-STGE_LOC           = tvbap-lgort.
    ls_request-MATERIAL           = tvbap-matnr.
    ls_request-batch              = tvbap-charg.
    ls_request-date_usage         = p_datvw.
    ls_request-date               = p_date.
    ls_request-time               = p_time.
    APPEND ls_request TO lt_request.

  CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC'
* EXPORTING
*   DELIVERY_EXTEND         =
*   TECHN_CONTROL           =
  TABLES
    REQUEST                 = lt_request
*   PARTNER                 =
*   PARTNER_ADDR            =
*   TEXT_HEADER             =
*   TEXT_LINES              =
    CREATEDITEMS            = CREATEDITEMS
    RETURN                  = RETURN
*   EXTENSION1              =
*   EXTENSION2              =
*   CO_CHAR_VALUES          =
*   BATCH_ATTRIBUTES        =
*   BATCH_VALUES_CHAR       =
*   BATCH_VALUES_CURR       =
*   BATCH_VALUES_NUM        =
*   TOKENREFERENCE          =

or FM2:


  CALL FUNCTION 'W_FRM_DELIVERY_CREATE_GENERAL'
    EXPORTING
      I_INTERNAL_COMMIT   = 'X'
      I_NO_LOCK_DOCS      = 'X'
      I_INIT_UNIT_CONV    = 'X'
    TABLES
      T_DOCUMENTS         = ITAB_DOCUMENTS
      T_MESSAGELOG        = ITAB_MESSAGELOG
      T_VBLS              = T_VBLS
    EXCEPTIONS
      NOTHING_TO_DO           = 1
      MESSAGE_ACCORDING_LOGS  = 2
      OTHERS                  = 3.

.

regards,darek

Former Member
0 Kudos

Thanks for your answers.

Former Member
0 Kudos

Hi,

use below FM.

BAPI_OUTB_DELIVERY_SAVEREPLICA

BAPI_DELIVERPROCESSING_EXEC

Regards,

Salil