Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

modify version

Former Member
0 Likes
488

Hii ,

MODIFY dbtab VERSION vers.

what is the meaning of the above syntax. what the version in this context.

If any on know this giv me information.

Regards ,

Raju..

3 REPLIES 3
Read only

Former Member
0 Likes
460

Hi,

Inserts a new line or updates an existing line in a database table, the name of which is taken from the field version at runtime.

you can create versions..

you can see it in utilities.

Read only

Former Member
0 Likes
460

Hi refer this.

Inserts a new line or updates an existing line in a database table, the name of which is taken from the field vers at runtime. If no line exists with the specified primary key, an INSERT is executed. Otherwise, an UPDATE is performed. The database table must be defined in the ABAP/4 Dictionary and its name must conform to the naming conventions for R/2 ATAB tables. These stipulate that the name must begin with 'T' and may contain up to four further characters. The field vers must contain the table name without the leading 'T'. Only lines in the current client are inserted or updated. The line to be inserted is taken from the statically specified table work area dbtab or *dbtab.

SY-SUBRC is set to 0 if the line is successfully inserted or updated. SY-SUBRC <> 0 is not possible since any other result causes a runtime error.

Regards,

Madan.

Read only

matt
Active Contributor
0 Likes
460

Why not read the help text on modify?

Use the VERSION addition to specify the database table dynamically in the short form of the MODIFY statements if its name begins with "T" and includes five characters at most. The database table is acessed whose name is made up of "T" and the content of vers. For vers, a data object with four digits at most of type c must be specified. The line contents are still allocated to the table work area of dbtab or dbtab whose type is cast. The statement is not excecuted if the database table is not available or if it does not correspond to the naming convention specified above.*

It's obsolete and shouldn't be used in later version.

matt