Difference between revisions of "SAP ABAP PSEUDO COMMENTS"

From SapWiki
Line 17: Line 17:
 
                       WHERE addrnumber = @p_adrnr.  "#EC CI_SEL_NESTED
 
                       WHERE addrnumber = @p_adrnr.  "#EC CI_SEL_NESTED
 
ENDFORM.</nowiki>
 
ENDFORM.</nowiki>
 +
 +
* Al actualizar
 +
<nowiki>
 +
  LOOP AT gt_tabla INTO wa_tabla.
 +
      update zt_tabla set habilitado = 'N'
 +
              WHERE rut_emp = wa_tabla-rut_emp. "#EC CI_IMUD_NESTED
 +
    COMMIT WORK.
 +
  ENDLOOP.
 +
</nowiki>

Revision as of 19:09, 26 February 2021

  • Local Nested Reading DB OP (SELECT) found
  SELECT * INTO TABLE @DATA(lt_t001) FROM t001.

  LOOP AT lt_t001 INTO DATA(ls_t001).
    SELECT SINGLE city1 INTO @DATA(l_city) FROM adrc WHERE addrnumber = @ls_t001-adrnr. "#EC CI_SEL_NESTED
  ENDLOOP.
  • NonLocal Nested Reading DB OP (SELECT) found
  LOOP AT lt_t001 INTO ls_t001.
    PERFORM form2 USING ls_t001-adrnr.
  ENDLOOP.

FORM form2 USING p_adrnr.
  SELECT SINGLE city1 INTO @DATA(l_city) FROM adrc
                      WHERE addrnumber = @p_adrnr.   "#EC CI_SEL_NESTED
ENDFORM.
  • Al actualizar
  LOOP AT gt_tabla INTO wa_tabla.
       update zt_tabla set habilitado = 'N'
              WHERE rut_emp = wa_tabla-rut_emp. "#EC CI_IMUD_NESTED
    COMMIT WORK.
  ENDLOOP.