Skip to Content

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

Start Routine from 3.5 Update Rule to 7 Transformation.

Hi, I am in a migration from a 3.5 Update Rule(DSO->DSO) to a 7 Transformation, and im having problems with the Start Routine, i have not ABAP skills, so i dont know what sentences i have to change because Routines on 7 are OO.

DATA: BEGIN OF t_x OCCURS 0.
        INCLUDE STRUCTURE /bic/cs8z022.
    DATA: END OF t_x.

data: begin of it_y occurs 0,
      /bic/z446 like /BIC/AZ02200-/bic/z446,
      /BIC/Z122 like /BIC/AZ02200-/BIC/Z122,
      /BIC/Z140 like /BIC/AZ2200-/BIC/Z140,
      end of it_y.


  select DISTINCT /bic/z446 /BIC/Z122 /BIC/Z140 into
  table it_y
   from /BIC/AZ2200.

  LOOP AT it_y.
      MOVE: it_y-/bic/z122 TO t_x-/bic/z122,
                  it_y-/bic/z140 TO t_x-/bic/z140,
                  it_y-/bic/z446 to t_x-/bic/z446.
      APPEND t_x.
  ENDLOOP.

  REFRESH DATA_PACKAGE.
  DATA_PACKAGE[] = t_x[].

Thanks in Advance.

Helpful Answer

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