cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC

Former Member
0 Kudos

Hi Gurus,

I am a fresher working on IDOC adapters.......I need to write a code for the following logic..

Can anybody help me in doing this....

Full marks would be given for the right answer.

here is the logic..

Object : Method PO_ME_1060_Z1EDLHAD in the class ZVXX_CL_FILL_SEGMENTS

For Message Type ZSHPMNT_ASN

Read Idoc Data

Loop at Segnam E1EDL20

Loop at segnam E1EDL24

if E1EDL24- LFIMG ne 0 whereas E1EDL26-PSTVY ne ZPAL

Do nothing, stop further validation.

Else if E1EDL24- LFIMG eq 0 whereas E1EDL26-PSTVY ne ZPAL

Populate Z1EDLHAD-ZDELCUT with value "Y"

End if

End if

thanks in advance..

Accepted Solutions (0)

Answers (2)

Answers (2)

turmoll
Active Contributor
0 Kudos

Looks like you got to fill in fields of Z1EDLHAD segment of your custom (Z) message type/IDoc type ZSHPMNT_ASN that probably was already extended by the following Z1EDLHAD segment (or maybe you need to do it). Have a look at segment fields in tcode: WE31.

You need to write your logic in this method PO_ME_1060_Z1EDLHAD of the class ZVXX_CL_FILL_SEGMENTS. This is your company/customer specific and is not a part of standard IDoc.

Your pseudocode look like the following:

> Read Idoc Data

> Loop at Segnam E1EDL20

> Loop at segnam E1EDL24

> if E1EDL24- LFIMG ne 0 whereas E1EDL26-PSTVY ne ZPAL

> Do nothing, stop further validation.

> Else if E1EDL24- LFIMG eq 0 whereas E1EDL26-PSTVY ne ZPAL

> Populate Z1EDLHAD-ZDELCUT with value "Y"

> End if

> End if

Regards,

Jakub

Former Member
0 Kudos
if E1EDL24- LFIMG ne 0 whereas E1EDL26-PSTVY ne ZPAL
Do nothing, stop further validation.
Else if E1EDL24- LFIMG eq 0 whereas E1EDL26-PSTVY ne ZPAL
Populate Z1EDLHAD-ZDELCUT with value "Y"
End if
End if

use Standard Functions in Message Functions

EQUALS in Text Functions

Not in Boolean Functions...

do mapping for the same