cancel
Showing results for 
Search instead for 
Did you mean: 

Re:Not able to pass/populate sub segment values from IDOC to Flat File

Former Member
0 Kudos

Hi Xi Experts,

I am working on IDOC to Flat file scenario and I am unable to populate values of the IDOC segments in to Target system, there structures as below:

Target :

MT_Type

--Row

-


Field1------0..unbound

-


Field2------0..unbound

-


Field3------0..unbound

-


Field4------0..unbound

-


Field5------0..unbound

Source is:

Z_IDOC---1..1

IDOC--1..1

---BEGIN

-EDI_DC40-1..1

-NODE1----0...9999

-


SEGMENT----required

-


FIELD1-----0..1

-


FIELD2-----0..1

-


E1MAKTM-------0...999

-


SEGMENT----required

-


FIELD3----


0..1

-


FIELD4----


0..1

-


FIELD5----


0..1

I am getting multiple E1MAKTM segments in IDOC so I need to pass/send only Field4 value where Filed3 value equal to A.

I mapped Filed3 equals A then Filed4-->Field4 but I am unable to create any thing apart from Filed1and Filed2 values in the target system.

I mapped Row with IDOC.

Any Inputs?

Thanks

Rajeev.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

change the context of field3 and field4 from "E1MAKTM" to "NODE1"

Regards

Ivan

Former Member
0 Kudos

Hi,

I changed the context to upper segment but I am getting only first value not the required value:

Requirement is :

I am getting multiple E1MAKTM segments in IDOC so I need to pass/send only Field4 value where Filed3 value equal to A.

Suppose the below segment is comming in IDOC 3 times with values:

-


E1MAKTM-------0...999

-


SEGMENT----required

-


FIELD3----


0..1

-


FIELD4----


0..1

-


FIELD5----


0..1

First Time----


Three, C,Four

Second Time----


Five, B,Six

Third Time----


Seven,A,Eight

I am getting just the fist value: that is three where as I am expecting Seven as Fied4 Equals to A

Thanks

Rajeev

Former Member
0 Kudos

Hi,

Apart of changing of context You need to apply the condition:


Field3                          [Field4 ]
                     equals ====IFwithoutelse=== [target node]
                                   
"A"

Regards

Ivan

Former Member
0 Kudos

Thanks Jose for your reply. its resolved..

Before I jsut made context change to only one field.. thats the reason I was unable to get the required result.

Points are awarded.

Rajeev

Answers (0)