Skip to Content
-1
Oct 05, 2019 at 07:04 AM

How to logic correct append data

88 Views

Hi All.
I have some problem to append my data. and it's my syntac.

....

it_data is table to display result.

and this is my data when execute.

how to append it_data without yellow highlight like this capture. ( i dont need the yellow data )

SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #C0C0C0;
background: #16152B;
}
.L0S32 {
color: #FF00FF;
}
.L0S52 {
color: #009DE0;
}
.L0S55 {
color: #FF00FF;
}
.L0S70 {
color: #808080;
}
   LOOP AT it_idh.
    LOOP AT it_tcode WHERE tcode_grp EQ it_idh-tcode_grp

                       AND tmplt     EQ it_idh-tmplt.

      IF sy-subrc EQ 0.

        it_data-tcode = it_tcode-tcode.

        it_data-tdesc = it_tcode-descr.

      ENDIF.



      LOOP AT it_actvt WHERE tcode_grp EQ it_idh-tcode_grp

                      AND tcode_buzei EQ it_tcode-buzei.

        IF sy-subrc = 0.

          it_data-activity = it_actvt-actvt_descr.

        ENDIF.

      ENDLOOP.

      APPEND it_data.

      CLEAR it_tcode.

    ENDLOOP.
Append it_data.

Attachments

answer-sap.png (18.5 kB)