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 to file

Former Member
0 Kudos

hi,

i want to create a file from an outbound IDoc and from the file created i want to create an inbound IDoc and post it with some changes. this is just for testing.

what is the process ? can u give me the function modules for this purpose

3 REPLIES 3

laxmanakumar_appana
Active Contributor
0 Kudos

Hi,

Use FM : IDOC_READ_COMPLETELY to read the IDOC data and then use OPEN DATASET to create file from IDOC data.

Use FM :IDOC_INBOUND_FROM_FILE to create inbound IDOC from file.

Develop custom FM to post this Inbound IDOC.

Regards

Appana

Former Member
0 Kudos

Hi,

You can configure(WE20) the Outbound IDoc to a receiver port with a physical directory in your SAP Directories (AL11).

From where you can download and make the necessary changes .

To post it back to the system you can use the below FM

'IDOC_INBOUND_WRITE_TO_DB' and

'IDOC_START_INBOUND'

First one will post and the second one will trigger the processing.

Regards,

Sreejesh P.

NB: Award points if helpful

0 Kudos

> Hi,

>

> You can configure(WE20) the Outbound IDoc to a

> to a receiver port with a physical directory in your

> SAP Directories (AL11).

> From where you can download and make the necessary

> changes .

> To post it back to the system you can use the below

> FM

>

> 'IDOC_INBOUND_WRITE_TO_DB' and

> 'IDOC_START_INBOUND'

>

> First one will post and the second one will trigger

> the processing.

>

> Regards,

> Sreejesh P.

>

> NB: Award points if helpful

Hi,

I have followed your steps, and use physical directory 'EDI_GLOBAL'. When I save purchase order document, an IDoc created, but I get an error like that

"The IDoc '0000000000653068' created was to be sent. An error occurred : 'Write file'".

Can you tell me where the problem locate?

Thanks

Alex