08-07-2006 3:01 PM
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
08-07-2006 3:23 PM
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
08-07-2006 3:24 PM
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
09-27-2006 8:09 AM
> 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