cancel
Showing results for 
Search instead for 
Did you mean: 

File 2 Idoc - Problem

Former Member
0 Kudos

HI,

my file 2 Idoc scenario looks fine and the file sender adapter is working (shown in adapter monitoring).

But there is no IDoc output.

q1: Are there any possibilitiy to monitor this ?

There are no messages in the message monitoring.

q2: my file content conversion looks like

KeyFieldName = ID

KeyFieldType = Integer

DTHEADER.fieldnames: ID(keyvalue),Header1,Header2,Header3

DTHEADER.fieldSeparator: ,

DTHEADER.endSeparator: 'nl'

DTHEADER.keyFieldValue:1

DTPOS.fieldnames: ID(keyvalue),Pos1,Pos2,Pos3

DTPOS.fieldSeparator: ,

DTPOS.endSeparator: 'nl'

DTPOS.keyFieldValue:2

DTSUM.fieldnames: ID(keyvalue),Sum1,Sum2

DTSUM.fieldSeparator: ,

DTSUM.endSeparator: 'nl'

DTSUM.keyFieldValue:3

Can you tell me how the flatfile looks like ?

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

hi,

Try to check it out in the transaction code IDX2 there u can check metadata had captured or not also check in the transaction code IDX1 whether port is created or not .

Regards,

Srinivas.D

Former Member
0 Kudos

The IDoc / IDocconfiguration works fine and works in other scenarios.

I have imported the payload into the IR MM Test and the source is red lamped.

any ideas how to find out the problem in the source file and the defined data type ?

Gordon

prabhu_s2
Active Contributor
0 Kudos

make entires in the test tab and execute. post us on the result.

Former Member
0 Kudos

Prabhu,

thx to your advice to test the MM. I found out that the source using the wrong namespace.

My scenario is working now!

Thx,

Gordon

Former Member
0 Kudos

Hi Gordon,

U need to map all the nodes of in the higher cardinality also

For eg

Source

<Node>

<Value1>

<Value2>

IDOC Target

<EAL>

<Node1>

<Node2>

<Root2>

<Node3>

<Node4>

Remember that if any of the nodes Node 4 or Node 3 are mapped to the target then you need to map the higher level node also to something

in this case it means that if node 4 or Node3 are mapped then Root2 is mandatary to be mapped

This u can verfiy in Message Mapping itself.

Rgds

Aditya

Former Member
0 Kudos

Aditya,

File

<record>

<DTHEADER>(node)

<HF1>

<HF2>

<DTPOS>(node)

<PF1>

<PF2>

Idoc

<ZZHeader>(node)

<ZZF1>

<ZZF2>

<ZZPOS>(node)

<ZZF3>

<ZZF4>

File: <HF1> is mapped to IDoc <ZZF1> but the value is not shown in the IDoc

Constant "xxx" is mapped to IDoc <ZZF2> and the value is shown in the IDoc

what is wrong or missing ?

Gordon

Message was edited by:

Gordon Breuer

prabhu_s2
Active Contributor
0 Kudos

does the soruce field has data populated? check on it from the payload. can u post us the payload from moni?

Former Member
0 Kudos

Payload: Inbound File

<?xml version="1.0" encoding="utf-8" ?>

- <ns:FILEINPUT_MT xmlns:ns="http://......./BG_File2IDoc">

- <Record>

- <DTHEADER>

<Header1>123</Header1>

<Header2>456</Header2>

<Header3>789</Header3>

</DTHEADER>

- <DTPOS>

<Pos1>456</Pos1>

<Pos2>457</Pos2>

<Pos3>458</Pos3>

</DTPOS>

- <DTSUM>

<Sum1>444</Sum1>

<Sum2>555</Sum2>

</DTSUM>

</Record>

</ns:FILEINPUT_MT>

Payload: Outbound IDoc

<?xml version="1.0" encoding="UTF-8" ?>

- <ZSTCMP01>

- <IDOC BEGIN="1">

- <EDI_DC40 SEGMENT="1">

<TABNAM>/</TABNAM>

<DIRECT>/</DIRECT>

<IDOCTYP>/</IDOCTYP>

<MESTYP>/</MESTYP>

<SNDPOR>/</SNDPOR>

<SNDPRT>/</SNDPRT>

<SNDPRN>/</SNDPRN>

<RCVPOR>/</RCVPOR>

<RCVPRN>/</RCVPRN>

</EDI_DC40>

- <Z1STCMP_HEADER SEGMENT="1">

<UZEIT>0011</UZEIT>

- <Z1STCMP_ITEM SEGMENT="1">

<ROUNDING_VALUE>1</ROUNDING_VALUE>

</Z1STCMP_ITEM>

</Z1STCMP_HEADER>

</IDOC>

</ZSTCMP01>

File: <Header1>123</Header1> is mapped to

Idoc: <Z1STCMP_HEADER FIELD1> but this one is missing

prabhu_s2
Active Contributor
0 Kudos

can u reimport the idoc in IR and activate. maybe u need to rewoek on mapping also after reimporting. also take the paload and test in MM if can get those fields at the target.

Former Member
0 Kudos

Hi Gordon !!

Check this:

- in XI system, tcode SM58 to verify is the IDOCs are stuck or not in XI, because of misconfiguration, authorization issues, etc.

- in R/3 system (the receiver), tcode BD87 to verify if they arrive to R3 but are not processed.

- Verify in XI, in Integration Configuration if the Logical Name of the business service/system of the sender is ok and is correctly registered in R/3.

- Verify WE20 in R3 to check if the inbound parameter is correctly configured.

- Is R/3 correctly registered in XI SM59?

Regards,

Matias.

Former Member
0 Kudos

OK,

i found an error in my sender file adapter configuration and now ... it works, but i have mapped my structure (see above)

Header1 = IDoc field1

Constant("XXX") = IDoc field2

the same for Pos...

The constant values are shown in the IDoc but the mapped values are missing.

The inbound xml message(pipeline) looks like that:

<?xml version="1.0" encoding="utf-8" ?>

- <ns:FILEINPUT_MT xmlns:ns="http://.....">

- <Record>

- <DTHEADER>

<Header1>123</Header1>

<Header2>456</Header2>

<Header3>789</Header3>

</DTHEADER>

- <DTPOS>

<Pos1>456</Pos1>

<Pos2>457</Pos2>

<Pos3>458</Pos3>

</DTPOS>

- <DTSUM>

<Sum1>444</Sum1>

<Sum2>555</Sum2>

</DTSUM>

</Record>

</ns:FILEINPUT_MT>

any ideas why the values are not shown in the IDoc ?

Former Member
0 Kudos

Do you see anything in SXMB_MONI?

former_member184619
Active Contributor
0 Kudos

Hi Gordon,

Check my posting in WIKI

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/fileToIDOC&

and this blog

/people/venugopalarao.immadisetty/blog/2007/01/24/troubleshooting-file-to-idoc-scenario-in-xi

check this for Sender File

/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30

Sachin

Former Member
0 Kudos

Hey

/people/venugopalarao.immadisetty/blog/2007/01/24/troubleshooting-file-to-idoc-scenario-in-xi

Thanx

Ahmad