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: 

I want to create outbound delivery from sales order (similar to vl01n) only

Former Member
0 Kudos

Hi

I want to create outbound delivery from sales order (similar to vl01n) only using idocs.

please i only want the code. dont tell the basic idoc type, message type, process code and FM's to be used...

i know them .....

its been very painfull in populating the segments edidc etc so pls give code....

8 REPLIES 8

Former Member
0 Kudos

Hi,

Do you want to create IDOC with Outbound Delivery document data?. If yes then copy code of IDOC OUTBOUND DESADV.

Harry

0 Kudos

hi Harry,

i have a Sales Order with me.

I want to create a Outbound delivery.

I cannot use VL01N..

beacause I have to write code to create Outbound delivery.[ BDC is not allowed according to clients requirement]

I could have used the BAPI to create Outbound delivery. but the requirement is i should not use BAPI's instead i have to use IDOCS.

So now please tell me... how to create Outbound delivery ( for the Sales Order I have) using iDOCS.

0 Kudos

Hi Iqbal Mohammed

Write Custom z* program and Populate the data in idoc format.

Use

Basic type :DELVRY03

Message type : DESADV

Use FM: MASTER_IDOC_DISTRIBUTE

Pass the data to below parameter

master_idoc_control

master_idoc_data

write the code and forum can help you correct the errors...

Thanks

Ramesh

0 Kudos

Hi Ramesh, thank you from my heart

i did exactly what you said.

The IDOC status now is green it says (status 03)

IDoc sent to SAP system or external program

Message no. EA083

My question is where is the delivery number... i checked the table

communication_idoc_control = i_edidc_delv1

there is no delivery number in this i did all this to get a delivery number how can i get it

should i do some more stuff to get the delivery number....

pls help

0 Kudos

please somebody help ...

i really need to complete this....

i really need your help if you know the answer pls reply....

0 Kudos

Hi Iqbal Mohammed

with Z* PROGRAM you created.....can send the Created delivery info from SAP to Other system or another SAP System....

if you want to created Delivery & Delivery idoc ..... from Sales order .... then configuration is need in Sale order...

Check with your Functional Team.....

To send idoc from created delivery info from SAP to Other system or another SAP System...Message control tech is needed..

For this idoc type message type needed.....

above info helps you

Thanks

RAMESH

Former Member
0 Kudos

Hello, I read that you solved your problem, I too have the same problem but I did not understand how you solved. You can have the source code Z * you did?

many thanks

0 Kudos

hi i have not solved it yet you said its solved... no body replied properly