Skip to Content
author's profile photo Former Member
Former Member

Modify Database table

Hi all

i have a int .table(T_ZVXX) that has a status field .

my code is

select *

from ZVXX (ZVXX has matnr, is key field)

into t_zvxx

where status is null.

now i have certain proceesing after thati m doing like that

concatenate 'Screen'


'Business Area'



into T_OUTPUT-line.

Append t_output

clear t_output

concatenate 'Message'





into T_OUTPUT-line.

Download T_OUTPUT to a unix file.

***Main problem is i have to update a table(set the Staus to X initialy it was null )for the records which is downloaded successfully.

How can modify the Data base table ZVXX for the successfully downloaded record.

since it is concatenation i can not detect the key fields bcoz i have different conditions for concatenate(i.e sequence of Concatenate changes always)


Saurabh Tiwari

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Sep 05, 2006 at 08:56 PM

    Hello Saurabh

    If I understand correctly you get for certain entries in T_ZVXX a corresponding concatenated entry in T_OUTPUT.

    To solve your problem I would define a third itab like that:

      ld_idx     TYPE sy-tabix,
      lt_index   TYPE TABLE OF sytabix.

    Every time that you process an entry of T_ZVXX you write its index into this itab:

    LOOP AT t_zvxx INTO ls_zvxx.
      ld_idx = syst-tabix.
      IF ( <condition is true> ).
    *   do concatenation into t_output
        APPEND ld_idx TO lt_index.  " collect indices

    Finally, loop over your index itab and modify the status of the corresponding entry in t_zvxx, then DB update.



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 06, 2006 at 07:23 AM


    after you give statement to modify your table,

    give 'Commit work' statement.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.