Application Development and Automation 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: 
Read only

Problem to use RV_DELIVERY_CREATE

Former Member
0 Likes
808

Hi All,

Can anybody send the code to use RV_DELIVERY_CREATE funtion module in detail.

Thanks in Advance

Hi All,

Can anybody send the code to use RV_DELIVERY_CREATE funtion module in detail.

Thanks in Advance

2 REPLIES 2
Read only

Former Member
0 Likes
583

Hi,

*   Deliver SD-Documents
    call function 'RV_DELIVERY_CREATE'
         exporting
              selektionsdatum    = if_ledat
              vbsk_i             = cs_vbsk
              i_lieferart        = space
*             if_no_enqueue      = is_control-no_enqueue
              if_no_deque        = is_control-no_commit      "SP_324711
              if_no_commit       = is_control-no_commit
              if_synchron        = is_control-synchron
              it_vorgabe_daten   = it_vorgabe_daten
              if_vbls_pos_rueck  = 'X'
              if_nur_vorgabe_pos = if_nur_vorgabe_pos
              is_delivery_extend = is_delivery_extend
              if_check_spevi     = 'X'                       "HP_308439
         importing
              vbsk_e             = cs_vbsk
         tables
              lvbak              = cx_sd_order-vbak
              lvbap              = cx_sd_order-vbap
              lvbep              = cx_sd_order-vbep
              lvbfa              = cx_sd_order-vbfa
              lvbfs              =          ct_vbfs
              lvbkd              = cx_sd_order-vbkd
              lvbls              =          ct_vbls
              lvbpa              = cx_sd_order-vbpa
              lvbuk              = cx_sd_order-vbuk
              lvbup              = cx_sd_order-vbup
         exceptions
              error_message      = 1
              others             = 2.

LV50R_CREAF07

This program is using this particular Function module.

you can do one thing. just put break-point on this function module and run vl10 transaction by giving sales order number and choose any red color line and select in background mode.

then the program stops you at LV50R_CREAF07 -- >RV_DELIVERY_CREATE function module.

you check the values what are all passed in debugging mode and pass same values.

but normally we use

" SHP_VL10_DELIVERY_CREATE "

function module to create delivery.

If you find some reqt that is to be solved with the FM you mentioned carry with the procedure what i mentioned.

Thanks

Parvathi

Read only

0 Likes
583

Hi Parvati,

I need a Function Module to create delivery from saleorder. I think SHP_VL10 is used to create delivery from purcahse orders. Clarify....

Thanks