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

Attach a selection screen to a Tcode before accessing the table Contents

Former Member
0 Likes
2,920

Hi All,

I have a requirement where when we access table from se16 we get a default selection screen...So the same selection screen should b displayed when that table is accessed directly with a transaction code attached to it..i mean the path is Tcode -->selection screen --> table/view contents.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,998

HI Srinivas,

go to se93

create tcode and select radio button transaction with parameter.

then provide the transaction as SE16

check skip selection screen checkbox

and scroll down..

give the default values...

select DATABROWSE-TABNAME and values is ur table name

and select all the GUI support check boxes.

save and execute the tcode u created...

Regards

Syed A

10 REPLIES 10
Read only

Former Member
0 Likes
1,998

I want to b more clear and the line of action is as follows..custom Tcode --> selection screen --> Table contents(Ztable).

Read only

Former Member
0 Likes
1,998

Hi,

i donot understand ur query.

But through report u can call as.........

*SET PARAMETER ID name FIELD fieldname

CALL TRANSACTION transaction name AND SKIP FIRST SCREEN*

it will call directly

Read only

Former Member
0 Likes
1,998

Hi srinivas,

first let us discuss about your requirement.when you go to transaction se16 and enter a table name and then when you press enter you will get a selection screen to cretae or view contents of that table.you want to get that selection screen by entering any tcode in command bar.

if this is your requirement please follow these steps.

1)go to se16

2)enter the table name and then press enter.you will get a selection screen for that table as we discussed

3)in the selection screen go to menu item

System->Status...

you will get another screen

4)in that screen you will see

in SAP data->in Repository data->Program(Screen)

note that program name

5)go to se93(to create a transaction)

6)enter a tcode which you like and press create

7) you will get another screen and in that screen select the radio button

Program and selectio screen(Report Transaction)

8)you will get create report transaction screen

9)in that screen in program text box enter the program name that you noted earlier

10)check all the checkboxes in GUI support

11)save,check and execute the transaction.you will get the selection screen that you get when you use se16 for that table.

please check the screen by entering the tcode that you created in teh command bar.

please reward points if useful.

Read only

Former Member
0 Likes
1,999

HI Srinivas,

go to se93

create tcode and select radio button transaction with parameter.

then provide the transaction as SE16

check skip selection screen checkbox

and scroll down..

give the default values...

select DATABROWSE-TABNAME and values is ur table name

and select all the GUI support check boxes.

save and execute the tcode u created...

Regards

Syed A

Read only

Former Member
0 Likes
1,998

Hi Syed,

we could achieve the desired output as per ur guidelines but the table contents should be displayed by default in Alv settings...Could u provide us with some more inputs

Read only

0 Likes
1,998

Hi Srinivas...

It depends on user selection of displaying contents..

in table selection screen

goto settings menuitem and user parameters and in Data Browser TAB u can select ALV list or ALV grid display.

and also u cna select u want the contents with field name or field label.

Regards

Syed A

Read only

Former Member
0 Likes
1,998

Thanks for the quick solution.

Read only

Former Member
0 Likes
1,998

Hi Syed,

I had one issue with regard to the above..That is the user should be able to change /create entries to the table instead of the *disp option getting disabled*

There must be an authorization check in the program on the authorization object S_TABU_DIS. The check must contain a check on the specific authorization group for the table. Authorization group &NC& is not allowed to be used.

Read only

Former Member
0 Likes
1,998

Hi All,

The exact issue is that when we access a table from sm30 and skip the inital screen we will be able to access the table entries directly....Now the point is that we had to attach a selection screen before these entries r displayed..in the same way as when we access the table from se16 we get a default selection screen.

Read only

Former Member
0 Likes
1,998

Additional issue has come up with the requirement