[9484] in SAPr3-news

home help back first fref pref prev next nref lref last post

Re: ABAP: Changing data in a table control

daemon@ATHENA.MIT.EDU (Christian Zschunke)
Fri Jan 8 20:17:20 1999

To: sapr3-news@MIT.EDU
Date: Sat, 09 Jan 1999 01:07:51 GMT
From: christian.zschunke@koeln.netsurf.de (Christian Zschunke)

Am Wed, 6 Jan 1999 16:32:24 +0100 gab uns "Jeroen Kloppers"
<J.Kloppers@grolsch.nl> folgendes zu Wissen:

>I use a table control to display data on a screen.
>Now, i would like to make it possible to change the data in this table
>control and save the changes.
>
>Maybe someone has some hints for me. Or maybe there is a standard
>functionality in SAP which handles with this.
>
>Regards,
>
>Jeroen Kloppers
>J.Kloppers@Grolsch.nl
>
>
>
Dear Jeroen,

in PAI there should be the lines
LOOP AT tablecontrol.
  MODULE MODIFY_TC.
ENLOOP.

MODULE MODIFY_TC.
  IF tablecontrol-CURRENT_LINE LE CNT_itab.
    MODIFY itab.
  ELSE.
    APPEND itab.
  ENDIF.
ENDMODULE.

CNT_itab is number of lines of internal table that can be obtained in
PBO by 
DESCRIBE TABLE itab LINES CNT_itab.

If you need a more detailed description please do not hesitate
contacting me.

Hope I could you,
Chris

home help back first fref pref prev next nref lref last post