cancel
Showing results for 
Search instead for 
Did you mean: 

ANSI 856 ASN Hierarchy level Mapping - problem with HL segments

christian_pichler
Participant
0 Kudos

Hello!

Referring to a previous post () I would like to ask if someone has an idea how to solve the problem with the structure of the HL segments in 856 messages.

We would need the following (...-O-P-I-P-I-...) output:

.....

HL+2+1+O

PRF+223223+++20160503

HL+3+2+P

MAN+SM+10001

HL+4+3+I

LIN+1+BP+1111111+VP+33333

SN1+1+10+EA

PID+F++++item text

HL+5+2+P

MAN+SM+10002

HL+6+5+I

LIN+2+BP+2222222+VP+44444

SN1+2+6+EA

PID+F++++item text

.......

With the standard message we can only create the following (...O-P-P-I-I...) output:

.....

HL+2+1+O

PRF+223223+++20160503

HL+3+2+P

MAN+SM+10001

HL+4+2+P

MAN+SM+10002

HL+5+3+I

LIN+1+BP+1111111+VP+33333

SN1+1+10+EA

PID+F++++item text

HL+6+4+I

LIN+2+BP+2222222+VP+44444

SN1+2+6+EA

PID+F++++item text

.......

Any help is appreciated!

Best Regards,

Christian

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member237514
Participant
0 Kudos

Hi Christian,

You need to maintain the condition for header level means in HL level segment for(Order,pack,item )

then only it will come order format,kindly check the condition what u maintain in mapping level.

Thanks

Kavitha

christian_pichler
Participant
0 Kudos

Hi Kavitha,

thanks for your reply!

What do you mean with "condition"?

Thanks

Christian

former_member237514
Participant
0 Kudos

Hi Christian,

Condition means:in IDOC data u have order,pack,item level details so in EDI side we are duplicating HL segment for order,pack,item level.

in idoc segments some fields having pack and item details,so based on that segment put the condition like if that filed have the particular data then only need to generate the target field

for example :sample scenario

christian_pichler
Participant
0 Kudos

Hi Kavitha,

thanks again for your reply and the screenshots.

The HLs for "S" and for "O" are not a real problem (as long as there is only 1 order contained in the delivery...).

But how would you map it if you have 2 packs in the IDoc? The customer expects the following structure:

HL_S

HL_O

HL_P(=Pack1)

HL_I(=Item of Pack1)

HL_P(=Pack2)

HL_I(=Item of Pack2)

Thank you!

Regards,

Christian

former_member237514
Participant
0 Kudos

Hi Christian,

Plz share ur payload data if its possible

christian_pichler
Participant
0 Kudos

The IDoc payload?

former_member237514
Participant
0 Kudos

yes input payload

christian_pichler
Participant
0 Kudos

Hi Kavitha,

attached you can find the payload. It's a Shipment05 IDoc.

All information needed for HL_P and HL_I is contained in the IDoc segment E1EDL24.

Regards,

Christian

former_member237514
Participant
0 Kudos

Hi Christian,

Sorry i am nt able to do the testing through ur input payload ,y because my idoc is different and ur idoc is different.

we have the same scenario but i am using different idoc, using that idoc i can able to achieve the ur requirement.

christian_pichler
Participant
0 Kudos

Hi Kavitha,

which IDoc did you use for the mapping?

Regards,

Christian

former_member237514
Participant
0 Kudos

DESADV.DELVRY01

christian_pichler
Participant
0 Kudos

Could you please send me a screenshot to see how you mapped the HL_P and HL_I segments?

I guess that you will use IDoc segments E1EDL24 (SH_I), E1EDL41 (SH_O) and E1EDL43 (SH_P).

former_member237514
Participant
0 Kudos

i am nt able to send the word document

former_member237514
Participant
0 Kudos

Hi

kindly check the below screen shots

christian_pichler
Participant
0 Kudos

Hello Kavitha,

first of all - thank you very much for your efforts!

Is it possible for you to send me a screenshot with the output with S-O-P-I-P-I (2 packs)?

Best Regards,

Christian

former_member237514
Participant
0 Kudos

Hi Christian,

Currently i don't have input payload data  as per ur requirement

christian_pichler
Participant
0 Kudos

Hi Kavitha,

I don't think that it's possible to create a 856 message with 2 packs (S-O-P-I-P-I) with your message mapping. In my opinion the 2nd package is ignored due to the constant on L_HL level. I think the only possible output with your mapping is S-O-P-I.

Am I wrong?

Regards,

Christian

former_member237514
Participant
0 Kudos

Hi Christian,

if u know pack level details in idoc level segment we can map to that segment instead of constant

former_member237514
Participant
0 Kudos

Hi Christian,

for pack level and item level header we map with E1EDL41 segment with some business condition .so u can try for that .i mean u can map eiedl41 to pack and item level header level