Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

segment deletion as per Qualifier

Former Member
0 Likes
873

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
825

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 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

5 REPLIES 5
Read only

Former Member
0 Likes
826

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

Read only

0 Likes
825

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

Read only

0 Likes
825

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

Read only

0 Likes
825

I am using Orders05. I am trying to code in INBOUND.

E1Edka1,

Regards,

Satheesh.

Read only

0 Likes
825

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