‎2008 Apr 04 2:27 AM
Hi all
Would anyone please give the step by step procedure for creating and transferring idocs from scratch,
please dont give me the links, explaining clearly will be a great help.
Thanks in advance..
‎2008 Apr 04 3:36 AM
HI,
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.
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
Reward if it is helpful......
Regards,
Naresh
‎2008 Apr 04 4:06 AM
Hi,
Salesorder IDOC
In this example a purchase is created, using the SAP standard functionallity for creating salesorders. When the salesorder is saved, and IDOC is automatically generated. Then we use the IDOC test tool to
create an order confirmation from the salesorder IDOC.
Create Vendor
Create customer
Create partner profiles
Create purchase order
Create the order confirmation IDOC
Create vendor
Create vendor using transaction code MK01. You can also use an existing vendor.
Vendor: T-BILHFN
Purch. org. : 001
Purchase organization may vary from system to system.
Create Customer
Create a customer using transaction VD01. You could also use an existing customer.
In the follwing example the vendor 3471 is used.
Create partner profiles
Create vendor partner profile
General data
Out bound parameters
Inbound parameters
Create customer partner profile
General data
Outbound parameters
Imbound parameters
Create purchase order
Use transaction ME21 to create the purchase order
To send an IDOC when the document is finished, go to Header -> Messages and
change the output medium to EDI.
Then select Further Data and change Dispatch Time to Send immediately. This will
create the IDOC as soon as the purchase order is saved.
Save the document.
Use transaction WE02 to check that the IDOC has been created without errors
Create the order confirmation IDOC
As the system has not been configured to handle the IDOC flow, the IDOC test tool
is used to simulate the flow. The Order IDOC is used as a template to create the
order confirmation IDOC.
Transaction code: WE19
Type the number of the Order IDOC in on the start screen and select menu IDOC ->
Create to create the template.
Change the control record
Note that the name of the port SAPTST may vary from system to system. The name can be seen in the Sender
port of the IDOC
Create new E1DK02 segment
The E1DK02 Document header reference data segment includes references to other documents.
The new E1DK02 segment should be created as a copy of the existing E1DK02, and at the same level.
Change the following fields of the record:
Qualifier: 002
Document item: 10
Qualifier = IDOC qualifier reference document = 002 = Vendor order
Document item =: Item number, see the item number on the purchasing document
Create E1EDP02 segment
The E1EDP02 Document Item Reference data includes references to other documents.
Create E1EDP02 as subelement of E1EDP01 Document item General Data
Qualifier: 001
Document: 4500010757
Document item: 10
Qualifier : IDOC qualifier reference document 001 = Customer purchase order
Document : Document number The number of the purchase order
Document item : Item number, see the item number on the purchasing document
Changing the ACTION field at header or item level
If you are working without a confirmation control key, the IDoc must have a processable action code at either
header or item level:
At header level, the segment field ACTION of segment E1EDK01 must be filled with the value '000' if the complete
purchase order is to be confirmed.
At item level, the segment field ACTION of segment E1EDP01 must be filled with the value '000' or '004' if the PO
item is to be confirmed.
Test IDOC
After the changes have been made, press the Standard Inbound button to generate the IDOC.
If no errors occurs go to transaction WE02 to check if the IDOC has been processed without errors.
If the IDOC has been processed without errors, then display the Purchase order (Transaction ME23). display the
item data and double-click on the item line. If all went well, you will now se that the field Acknowl. no. has been
filled out.
For more information....
[http://www.sapmaterial.com/idoc_sample.html]
Pls. reward if useful....