cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI or FM to create an outbound delivery?

12-09-2005 8:20 AM
5963 views 9 comments
0 Likes
Subscribe

Hi all,

does anyone know of a BAPI or a Function Module that given only the sales order document number and the posting date to create an outbound delivery?

(I am looking for something that creates automatically a delivery just like when I create a sales order with automatic delivery creation.)

Regards,

GB

0 Likes

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Likes

Hi George,

What I do here is created a function module and in this function module un generate BATCH INPUT DATA

and then do a call transaction to create the delivery...

If it did give you some clues, please don't forget the reward

-


-- > you did choose my solution

-


Message was edited by: STEPHAN KAMINSKI

Former Member
0 Likes

Thank you all for your postings. I finally recorded the transaction VL01N which seems to be the best solution for my problem at the moment.

Regards,

GB

Former Member
0 Likes

BAPI_DELIVERYPROCESSING_EXEC lets you create an outbound delivery given a sales order number.

/Peter

Former Member
0 Likes

hI George..

i want to do bdc for VL01N.. my doubt is.. manually when we enter the storage location under picking tab, system search for the stock availability if not it displays error message, than agian we enter some diff storage location and so on.. how can we do in the bdc..

hope u understood my doubt.. this is urgent requirement kidly help me

thanks

Former Member
0 Likes

Hi GB,

You could also try:

    
submit rv50sbt1
  with s_vbeln eq yoursalesordernumber
  with vstel eq yourshippinglocation        
  with s_ledat-high eq space   "Deliv date
  with allea eq 'X'            "Sales Orders
  with alleb eq ' '            "Purchase orders
  with samml eq 'X'            "Create Deliveries
  with anzei eq space          "List Display
and return.

Paul

Former Member
0 Likes

Hi,

check these function modules for sales order document no.

<b>In case of smartform:</b>

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'ZFORMNAME'

IMPORTING

fm_name = v_form_name

EXCEPTIONS

no_form = 1

no_function_module = 2

OTHERS = 3.

w_ctrlop-getotf = 'X'.

w_ctrlop-no_dialog = 'X'.

w_compop-tdnoprev = 'X'.

CALL FUNCTION v_form_name

EXPORTING

control_parameters = w_ctrlop

output_options = w_compop

user_settings = 'X'

IMPORTING

job_output_info = w_return

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

i_otf[] = w_return-otfdata[].

<b>In case of sapscript:</b>

options-tdgetotf = 'X'.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

options = options

...

CALL FUNCTION 'CLOSE_FORM'

  • IMPORTING

  • RESULT =

  • RDI_RESULT =

TABLES

otfdata = i_otf

EXCEPTIONS

unopened = 1

bad_pageformat_for_print = 2

send_error = 3

spool_error = 4

OTHERS = 5.

i_otf -

Regards,

Sakthi.

Former Member
0 Likes
Former Member
0 Likes

hi george,

check out these two BAPI's.

BAPI_SALESORDER_CREATEFROMDAT2.

BAPI_IBDLV_CREATE_ FROM_OBDLV.

regs,

jaga

Former Member
0 Likes

Hi,

I think you can use RV_DELIVERY_CREATE_SINGLE or RV_DELIVERY_CREATE.

Do a where-used list on RV_DELIVERY_CREATE_SINGLE, you will be able to make out how to call it.

I just looked at RV_DELIVERY_CREATE, it seems first you have to use function module SHP_GET_SD_DATA to get sales order data and then call RV_DELIVER_CREATE fm with corresponding tables parameters.

Hope this helps..

Sri

Message was edited by: Srikanth Pinnamaneni