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

Table maintainance

Former Member
0 Likes
401

Hi friends,

When we try to assign transaction code for table maintainance generator..we are giving the <b>VIEWNAME = ztable</b> and

<b>UPDATE = X.</b>

May i know why we are givin this ...wats happend internally ?

wat is<b> viewname</b> and <b>update</b> ?

also pls tel me what is the difference in One step and two step table maintainace ?

<b>ur matchin answer wil b defintely rewarded......</b>

Thanks in advance ...

BALAJI

3 REPLIES 3
Read only

Former Member
0 Likes
366

in 2 step the first screen will display key fields and char fields while all other fields will be displayed in second screen.

now, if u go for 1 step all fields will be displayed in one screen which is a better view.

when you create a two-step maintenance, the first screen is made for giving only an overview to the user by presenting the key and some text. The second (detail-)screen shows the whole dataset.

However the generated screens have always had some kind of suggestional character. So a developer is invited to add or remove fields of his choice manually at the selected screen.

Assume your table has the fields KEY1; KEY2, F1, F2, and F2 has not been generated to the overview screen. After you have added Field F1 in the screen layout, just don't forget to add the appropriate field-statements to the flow logic like this:

process before output.

module liste_initialisieren.

loop at extract with control

tctrl_table1 cursor nextline.

module liste_show_liste.

endloop.

*

process after input.

module liste_exit_command at exit-command.

module liste_before_loop.

loop at extract.

module liste_init_workarea.

chain.

field table1-key1 .

field table1-key2.

field table1-f1.

field table1-f2. "<<<<<<<<<<<<<ADD

module set_update_flag on chain-request.

endchain.

field vim_marked module liste_mark_checkbox.

chain.

field table1-key1 .

field table1-key2.

module liste_update_liste.

endchain.

endloop.

module liste_after_loop.

Read only

Former Member
0 Likes
366

Hi Balaji,

wat is viewname and update ?

View name is nothing but table name for which u want to create t-code,

and update flag is for aloowing update the table.

For step 1 and step 2 as per above kishi suggestions exactly for that purpose we are using those two parameters.

Hope this helps you. Reply for queries, shall post the updates.

Regards.

Kumar

Read only

Former Member
0 Likes
366

Hi,

View name = ztable name --> this enables the user to correctly cal the particular ztable for which the tcode is created and table maintainence is done.

Update = X --> enables the user to give in new entries thro transaction SM31 when the table/its tcode is executed.

Diff betw one step and two step:

In 2 step the key fields and char fields wil b displayed in the first screen, while all other fields will be displayed in second screen.

but for 1 step all fields are simultaneously displayed in one screen.This 1 step is mostly preferred.

Hope this answer is helpful.

*****Reward points if so.

All the best