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 Outbound to File

former_member220801
Participant
0 Kudos

Hi experts,

I have tried to output invoice IDoc to file (Obj. Name: INVOIC02). When I view INVOIC02 in WE30, I got the follow segments:

E1EDK01 - IDoc: Document header general data

However, I check with the IDoc file, I have E2EDK01005 instead of E1EDK01.

Any way to have my IDoc file to output E1EDK01 instead of E2EDK01005? Thanks.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Gundam,

E1EDK01005 is the standard segment name from SAP from 45B. You cannot change that. (unless you want to send out the IDOC's in version 30A which I'm sure is not your intension). It is also not recommended to manually change the segment names.

If you're converting to EDIFACT, then your EDI subsystem will do the mapping from IDOC format (flat file - as you said the port type is file) to EDIFACT (flat file in UN standards). Your EDI mapper will already have the EDIFACT standard loaded into his mapping software. You can simply go to WE60, give basic type (e.g. INVOIC02 etc), go to documentation, create DTD and then format 46 or unicode (depending on what your EDI subsystem is). Your EDI team will be able to use this DTD and use it as an input file in their map. This is fairly the standard process followed. Note: Many latest EDI systems come loaded with all the IDOC file definitions. So you do not even have to do anything.

5 REPLIES 5

Former Member
0 Kudos

Have you created the IDOC through File Port ? It will show the latest Version of Segment Definition. (E2EDK01005 is latest released version (45B) of segment defintion E1EDK01).

0 Kudos

Yes, IDoc file is created using FM IDOC_OUTPUT_INVOIC.

Because our counterpart is not a SAP system, we will translate the IDoc file to EDIFACT, so that's why it'll be better if we can output E1EDK01 (a generic name) instead of E2EDK01005 as segment name.

Is it possible? Thanks.

0 Kudos

I don't think you will be able to change this standard functionality while creating the IDOC in file format using FILE Port.

JL23
Active Contributor
0 Kudos

SAP has no segment called E2EDK01005 .

segment is E2EDK01 the 005 is already the ACTION field.

You can display the structure E2EDK01 in SE11.

the 2 in E2EDK01 just tells that this record is an outbound IDOC, the 1 at the second place is used in the inbound IDOC.

why do you need it to be a 1?

Former Member
0 Kudos

Gundam,

E1EDK01005 is the standard segment name from SAP from 45B. You cannot change that. (unless you want to send out the IDOC's in version 30A which I'm sure is not your intension). It is also not recommended to manually change the segment names.

If you're converting to EDIFACT, then your EDI subsystem will do the mapping from IDOC format (flat file - as you said the port type is file) to EDIFACT (flat file in UN standards). Your EDI mapper will already have the EDIFACT standard loaded into his mapping software. You can simply go to WE60, give basic type (e.g. INVOIC02 etc), go to documentation, create DTD and then format 46 or unicode (depending on what your EDI subsystem is). Your EDI team will be able to use this DTD and use it as an input file in their map. This is fairly the standard process followed. Note: Many latest EDI systems come loaded with all the IDOC file definitions. So you do not even have to do anything.