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: 

BAPI TO CREATE OUTBOUND DELIVERY FOR PURCHASING DOCUMENT

Former Member
0 Kudos

Hi Everyone,

Does anyone know of any BAPI to create an outbound delivery for purchasing document?

I have made a BDC program ( call transcation 'VL10B' ).

But the error messages always be shown when it's running as a backgroud job.

Best Regards,

Sky

1 ACCEPTED SOLUTION

Lakshmant1
Active Contributor
0 Kudos

Hi Lee,

Have a look at function modules under function group WFR0.

Thanks

Lakshman

6 REPLIES 6

Lakshmant1
Active Contributor
0 Kudos

Hi Lee,

Have a look at function modules under function group WFR0.

Thanks

Lakshman

0 Kudos

Hi friend !

I need an exemple, can you help me ?

Thanks !

0 Kudos

Hi,

USe T code WF60 and put a break point at FMW_FRM_DELIVERY_CREATE , you will get the parameters it passes.

Good Luck!

Manohar

Former Member
0 Kudos

Hi Sky,

Let's try this code ...

.

tbl_request-document_numb = wa_itab-ebeln.

tbl_request-document_item = wa_itab-ebelp.

tbl_request-ship_to = wa_itab-kunnr.

tbl_request-sold_to = wa_itab-kunnr.

tbl_request-plant = wa_itab-werks.

tbl_request-quantity_sales_uom = wa_itab-wamng.

  • -

tbl_request-base_uom = wa_itab-meins.

tbl_request-material = wa_itab-matnr.

tbl_request-delivery_date = wa_itab-eindt.

tbl_request-transp_plan_date = wa_itab-tddat.

tbl_request-loading_date = wa_itab-lddat.

tbl_request-goods_issue_date = wa_itab-wadat.

tbl_request-document_type = 'B'. "Purchasing Ord

APPEND tbl_request.

  • - Create DO

CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC'

TABLES

request = tbl_request

createditems = tbl_items

return = tbl_return.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

.

Regards,

Therdsak

0 Kudos

Hello Everybody.

I have the same problem with VL10B regarding bdc and background session.

Once an STO is created by entering data in transaction ME21N, I am right now using VL10B to do the delivery and the "Picking" and "Storage Location" of the "Sending Plant" have been configured to be populated automatically.

Also the "Post Goods Issue" has been scheduled in VL23.

I checked the FM "W_FRM_DELIVERY_CREATE" as suggested above. But I do not know how will it take data from an STO and do the delivery.

Can anyone please help.

Thank you.

Message was edited by: Sai Sanathan

Message was edited by: Sai Sanathan

Former Member
0 Kudos

Hi Gurues

I have an issue that once I created in VL10B NLCC Delivery with reference to NB Purchase order (ind of stock transport between two company codes).

Might be using the BAPI I could create additional rows in the NLCC delivery with referenc to another PO order?

Eddie