2005 Mar 21 7:30 AM
Hi all
Is there any way ,by which i can delete a segement according to value of qualifier(first value of segment,if it is used more than once).
E1edka1 is the segment used thrice according to the qualifier.
E1edka1-Ag/SP(sold to party)
E1edka1-Lf (vendor)
E1edka1-We/Sh(ship to party).
So i don't think so that i can omit this Segment, completely.
I only need to omit this segment when the Qualifier equals to WE/SH(ship to party).
Hope you understand this requirement.
regards
2005 Mar 21 4:46 PM
Hi Satheesh,
I am assuming you are looping at the EDIDD records. If so here is what you can do.
LOOP AT edidd.
CASE edidd-segnam.
WHEN 'ABC'.
WHEN 'XYZ'.
WHEN 'E1EDKA1'.
MOVE edidd-sdata TO e1edka1.
CHECK e1edka1-qualf <> 'WE'.
ENDCASE.
ENDLOOP.
Hope this helps.
Srinivas
Hi all
Is there any way ,by which i can delete a segement according to value of qualifier(first value of segment,if it is used more than once).
E1edka1 is the segment used thrice according to the qualifier.
E1edka1-Ag/SP(sold to party)
E1edka1-Lf (vendor)
E1edka1-We/Sh(ship to party).
So i don't think so that i can omit this Segment, completely.
I only need to omit this segment when the Qualifier equals to WE/SH(ship to party).
Hope you understand this requirement.
regards
2005 Mar 21 4:46 PM
Hi Satheesh,
I am assuming you are looping at the EDIDD records. If so here is what you can do.
LOOP AT edidd.
CASE edidd-segnam.
WHEN 'ABC'.
WHEN 'XYZ'.
WHEN 'E1EDKA1'.
MOVE edidd-sdata TO e1edka1.
CHECK e1edka1-qualf <> 'WE'.
ENDCASE.
ENDLOOP.
Hope this helps.
Srinivas
2005 Mar 21 5:12 PM
Hi srinivas,
Thank you again, i remember you for answering me earlier.
wat you understand is correct, i am about to write the code and searching for User exit.
I dare to ask u, if you can help me, in this context.
regards
satheesh
2005 Mar 21 8:05 PM
Hi Satheesh,
Yes, I remember your name too. Which IDOC/Message type are you talking about? Is it inbound or outbound?
Depending on that I can help you on finding the user exit.
Regards,
Srinivas
2005 Mar 21 8:19 PM
I am using Orders05. I am trying to code in INBOUND.
E1Edka1,
Regards,
Satheesh.
2005 Mar 21 8:34 PM
Then start with the function module IDOC_INPUT_ORDERS. There are several user exits in there. Choose the appropriate one and put your code in there.
Srinivas
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |