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

Former Member
0 Likes
1,292

Hi,

i created a table zfrv_deliv_date. Now i want to create a transaction zfrv_lead_deliv_date and this transaction should open the table in display mode.

Please tell me how to create a transaction for a table and display it in display mode.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,254

1.First u have to create Table Maintainance for that table from<b> se11</b>.

2.Create Parameter Tcode .( this option u will get when u create a Tcode in SE93 ).

u have to give

<b>Transaction SM30 and tick Skip first screen.</b>

<b>VIEWNAME YW2DEFBATCH(table name)

SHOW X</b>

Regards

Prabhu

12 REPLIES 12
Read only

Former Member
0 Likes
1,254

Hello,

There are two ways:

1) Try to create a maintenance view with only display permision.

2) Create an ALV report.

Hope this helps!!

Gabriel P.

Read only

0 Likes
1,254

Hi Gabriel,

how to crete a table maitenance with only display permission.

Read only

Former Member
0 Likes
1,255

1.First u have to create Table Maintainance for that table from<b> se11</b>.

2.Create Parameter Tcode .( this option u will get when u create a Tcode in SE93 ).

u have to give

<b>Transaction SM30 and tick Skip first screen.</b>

<b>VIEWNAME YW2DEFBATCH(table name)

SHOW X</b>

Regards

Prabhu

Read only

0 Likes
1,254

Hi Prabhu

the one which you suggested is working fine but what i need is i dont want to display the table maintanence just i want to display a table ( like when entred table name in se11 we get the table with fields) in display mode.

please suggest me to get that.

Read only

0 Likes
1,254

Take a look at transaction OB28 (for example): when you launch it, it shows directly table T001D.

You can simply copy this tcode in SE93, change the parameters that you want and save all.

Like this:

Skip first screen = 'X'

Default Values:

VIEWNAME: <your_view_name>

UPDATE: space

SHOW: X

Otherwise, if you don't want to use SM30 functionality, create a simple program that fetch data from your table and shows all in a ALV.

Link the program to a tcode and that's all.

Take a look to this snippet:

* Dummy screen for ALV Grid - Mandatory!
SELECTION-SCREEN BEGIN OF SCREEN 1001.
SELECTION-SCREEN END OF SCREEN.

DATA: fcat TYPE lvc_t_fcat,
layo TYPE lvc_s_layo,
itab TYPE TABLE OF <your_table>.
DATA: grid TYPE REF TO cl_gui_alv_grid.

SELECT * FROM <your_table> INTO TABLE itab.

CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
 I_STRUCTURE_NAME = <your_table>
CHANGING
 CT_FIELDCAT = fcat[].

layo-zebra = 'X'.
layo-cwidth_opt = 'X'.
layo-grid_title = 'MyTable'.

CREATE OBJECT grid EXPORTING I_PARENT = cl_gui_container=>screen0.

CALL METHOD grid->set_table_for_first_display
 EXPORTING
  is_layout = layo
 CHANGING
  it_outtab = itab[]
  it_fieldcatalog = fcat[].

CALL SELECTION-SCREEN 1001.

Hope this helps,

R.

Read only

Former Member
0 Likes
1,254

Hi shweta,

have you tried se93 ?.

goto tcode se93

select the first radio button program and screen.press enter and give the program name and screen number of the table in display mode that you have cretaed.

to find the program name and screen number ...goto system menu-status.

regards,

pankaj singh.

        • reward if it works

Read only

0 Likes
1,254

Hi Pankaj,

I followed your suggestion but now the problem is the transaction is opening the table maintanance but what i need is it should display the table in display mode.

please tell me how to do.

Read only

Former Member
0 Likes
1,254

1. go to se93

2. Create transaction of ( type with Parameter.)

3. Enter Transaction SM30 in the transaction , tick skip initial screen.

4. Then for eg. Enter the below values.

( the two parameters as below enter as default values ).

1. VIEWNAME V_TVAK ( Your table Name , it should have table maintenance allowed and also the table maintenance generated )

2.SHOW X

*-Reward if usefull.

Read only

Former Member
0 Likes
1,254

Hi,

go to se 93

Give the transation name .

Give the description .

select the last option in the radio button.

Enter the necessary field .

tick the "skip the initial screen " .

VIEWNAME table name

SHOW X

null

Read only

Former Member
0 Likes
1,254

hi shweta,

i can solve ur problem here.

In transaction SE11, in the attribute tab of your z table check table maintenance check box. Go to SM30 transaction, enter the ztable name and click on maintain button. Here you can enter new entries into the ztable .

Or

You can create a PARAMETER TRANSACTION for the transaction for SM30 .

Follow these steps :

1. go to transaction SE93 , give your own transaction code say ztran_tab, for maintaining your ztable.

2. Click on create button and check the radio button Transaction with parameters (PARAMETER TRANSACTION) and click on the tick button.

3. In the next screen enter default values:

transaction : SM30

check the check box skip initial screen

4. Scroll down you will find a table control for default values

-


Name of the screen field | value

-


VIEWNAME | your ztable name

SHOW | X

Save your work.

Now as you have created a custom transaction for maintaining your ztable this transaction can be called from any program with CALL transaction 'XXX'

I think it may help you.

with regards

magesh

Read only

Former Member
0 Likes
1,254

Hi shwetha.

i tried the same and even i am facing some problem with the method i told you..

i can suggest you to go for table maintenance if you have rights ..

goto sm30... or you can follow prabhu's suggestion --

Transaction SM30 and tick Skip first screen.

VIEWNAME YW2DEFBATCH(table name)

SHOW X

regards,

pankaj singh

Read only

Former Member
0 Likes
1,254

Thanks a lot to all and especially for Mangesh for such a detailed explanation