Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

itab problem

Hi Experts

I have itabs like this

T_JEST

OBJNR                    STAT                               
<b>IEEE9000-04              I0099
IEEE9000-04              I0320</b>
IEEE9000-05              I0100
IEEE9000-05              I0320
IEEE9000-07              I0100
IEEE9000-07              I0320
T_ET

EQUNR   OBJNR		VKBUR   STAT

9AA	IEEE9000-04	9001	I0320
9BB	IEEE9000-05	9001	I0100
9CC	IEEE9000-07	9001	I0100

since T_JEST having double values i want to fill T_ET like this.

EQUNR   OBJNR		VKBUR   STAT

9AA	<b>IEEE9000-04</b>	9001	<b>I0099</b>
9AA     <b>IEEE9000-04</b>     9001    <b>I0320</b>
9BB	IEEE9000-05	9001	I0100
9BB	IEEE9000-05	9001	I0320
9CC	IEEE9000-07	9001	I0100
9CC	IEEE9000-07	9001	I0320

I have written select statements to get above values.

  SELECT EQUNR EQTYP EQART INBDT OBJNR VKBUR
       INTO CORRESPONDING FIELDS OF TABLE T_ET
       FROM V_EQUI
            WHERE EQTYP IN S_EQTYP AND
                   VKBUR IN S_VKBUR AND
                   INBDT LE P_INBDT.
    SELECT * FROM JEST INTO TABLE T_JEST
      FOR ALL ENTRIES IN T_ET
      WHERE OBJNR = T_ET-OBJNR AND
            INACT NE 'X'.

    SORT T_JEST BY OBJNR INACT.
    LOOP AT T_ET.
      READ TABLE T_JEST WITH KEY OBJNR = T_ET-OBJNR BINARY SEARCH.
      IF SY-SUBRC EQ 0.
        T_ET-STAT = T_JEST-STAT.
        MODIFY T_ET TRANSPORTING STAT.
      ENDIF.
    ENDLOOP.

Why iam not able to get T_JEST values into T_ET completely?

thanks

kaki

Tags:
Not what you were looking for? View more on this topic or Ask a question