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: 

IDOC creation

Former Member
0 Kudos

Hi,

I have scenario......suppose i have created a delivery note in VL03n then a idoc should get created and trigger.......should i code for that or any setting are there for triggering the idoc.....

Thanks,

Venkat Chaitanya

1 ACCEPTED SOLUTION

Former Member
0 Kudos

i have created an delivery note.....when ever an delivery note is created an idoc should get created and get triggered ....should i write any code or should i configure the output type as ALE seveice...........

7 REPLIES 7

Former Member
0 Kudos

Hi,

Creation of IDoc

To Create Idoc we need to follow these steps:

Create Segment ( WE31)

Create Idoc Type ( WE30)

Create Message Type ( WE81)

Assign Idoc Type to Message Type ( WE82)

Creating a Segment

Go to transaction code WE31

Enter the name for your segment type and click on the Create icon

Type the short text

Enter the variable names and data elements

Save it and go back

Go to Edit -> Set Release

Follow steps to create more number of segments

Create IDOC Type

Go to transaction code WE30

Enter the Object Name, select Basic type and click Create icon

Select the create new option and enter a description for your basic IDOC type and press enter

Select the IDOC Name and click Create icon

The system prompts us to enter a segment type and its attributes

Choose the appropriate values and press Enter

The system transfers the name of the segment type to the IDOC editor.

Create IDOC Type

Follow these steps to add more number of segments to Parent or as Parent-child relation

Save it and go back

Go to Edit -> Set release

Create Message Type

Go to transaction code WE81

Change the details from Display mode to Change mode

After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter

Click New Entries to create new Message Type

Fill details

Save it and go back

Assign Message Type to IDoc Type

Go to transaction code WE82

Change the details from Display mode to Change mode

After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter.

Click New Entries to create new Message Type.

Fill details

Save it and go back

Check the link...

http://www.thespot4sap.com/Articles/SAP_ALE_IDOCS.asp

http://help.sap.com/saphelp_nw04/helpdata/en/b9/c5b13bbeb0cb37e10000000a11402f/content.htm

<b>Reward points</b>

Regards

Former Member
0 Kudos

Hi Venkat,

First find out which message type to be used and then activate the change pointers for that message type. Then you can create IDOC based on change pointer.

Reward points if useful.

Regards,

Atish

Former Member
0 Kudos

Refer this technical Blog :: Basics for IDoc processing (See URL Below)

It has transaction codes and Steps for development and configuration>>

http://sap-info-tips.blogspot.com/2007/06/basics-for-idoc-processing.html

Regards,

Vishal

Former Member
0 Kudos

Hi ,

I have developed a scenario in which we are sending Idoc during delivery creation

( VL01N) .

Can u provide more light on how u intend to create the delivery note , as VL03n is only for delivery display and not for change/create ?

Then i can provide u with more details .

Thanks

Former Member
0 Kudos

i have created an delivery note.....when ever an delivery note is created an idoc should get created and get triggered ....should i write any code or should i configure the output type as ALE seveice...........

0 Kudos

Hi Venkat,

Do the following steps, idoc will trigger automatically.

If you need additional logic you have write user exit.(for first step you don't need coding).

Go to NACE and select V2 and click output type from menu.

Give following value.

Condition component Value

Access sequence 0005 (sales organization/customer)

Condition 0 (no condition)

“Exclusive” select

Output type LAVA (shipping notification outbound)

Procedure V10000 (shipping output)

Application V2 (shipping)

Processing subroutine Program RSNASTED,

form routine EDI-PROCESSING

General data Select Condition access and Multiple sending of output, otherwise

leave the fields blank

Time e.g. 4 (immediately, IDocs are generated immediately after

posting)

Transmission medium 6

Partner function WE

Language DE (German)

You must maintain following values for outbound partner profile.

Message type : Desadv

Partner type : Ku

Partner function : WE

Port : Subsystem

Outbput mode: Collect idoc

Basic type : Delvry01

Packet size: 1

Application: V2

Output type : LAVA

Process code: DELV.

You can post the delivery by selecting Logistics &#8594;&#61472;Sales and Distribution &#8594;&#61472;Shipping, Delivery

-->Create (transaction VL01). Output control is used to find the condition record and the shipping

notification is sent to the customer via EDI (IDoc Interface). The shipping time in the condition

record determines when the corresponding outbound IDoc is generated

On the Create Condition Records (Outg. ship notifica.): Fast Entry screen:

-->Enter customer number in Customer, SAP Ship-to # .

-->Enter WE in PartF.

-->Enter 6 in Medium.

-->Enter 4 in Time.

-->Enter EN in Language.

-->Choose Save.

Now create as you mentioned and let me know.

Thanks,

Narayan

Former Member