on 08-04-2008 12:34 PM
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..
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
9 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.