cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Reading IDOC in XML format

Former Member
0 Likes
376

Hello.

I'm trying to code for reading an IDOC that has been loaded into an XML format.

How do I do that?

David

Accepted Solutions (1)

Accepted Solutions (1)

jamie_cawley
Product and Topic Expert
Product and Topic Expert
0 Likes

Check out

for some reasons this can occur

Regards,

Jamie

Answers (3)

Answers (3)

jamie_cawley
Product and Topic Expert
Product and Topic Expert
0 Likes

Where is the file located? Are you using a directory path or a url? It may be the permissions on the file. The iusr_<machine name> and sytem accounts will need to have full control.

Regards,

Jamie

Former Member
0 Likes

In the Source URL, I have the directory where the IDOC XML documents are stored.

I press OK and this pop-up appears

"Generate Sample XML?"

I press YES

I get this:

"Could not load the XML document.

Error: Unable to complete requested action on XML

document. Content is not allowed in prolog.?

jamie_cawley
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi David,

When you entered the Source URL did you perform this in the Configure dialog or the Link Editor? When using the Configure dialog it will prompt you "Generate Sample XML?" clicking yes will create the reference.

Regards,

Jamie

Former Member
0 Likes

I tried that and I am getting this error.

Could not load the XML document. Error: Unable to complete requested action on XML document. Content is not allowed in prolog.

abesh
Contributor
0 Likes

Use XML Loader Action to load the IDOC. You should now have the IDOC's structure available to you to map. In case I have not understood your question, please explain in a little more detail and i'll try to help

Former Member
0 Likes

Hello.

Thanks for the answer. That has pusehd me in the right direction. However, I must be missing something.

When I go to LINKS on my XmlLoader block, my XmlContent does not have the IDOC structure listed under it. Where do I go to define the tructure (i.e. LOIROU01) underneithe the XmlContent?