Application Development 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: 

How to call SM30 through specific transaction code

Former Member
0 Kudos

Hi everyone !

I am developping a small program for end-users. I created a Z-table and would like users to be able to manipulate it just as if they were using SM30( because end-users should not access SM30 directly), how could I do a SM-30 clone within my Z-program ?

Answers will be appreciated and rewarded !

C.K.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

No need for any custom program for that purpose, you can just create a transaction for the purpose.

Generate your Z-table Maintenance.

Then create a transaction using se93, while creating a transaction select "Transaction with parameters" option the last one in the dialog screen. Then provide SM30 in the transaction field, check the checkbox skip initial screen.

Check chekcboxes for your GUI suppport ex:HTML & JAVA.

Below in the default values part:

Check the possible entries and select VIEWNAME in the "Name of the screen column" and give your Z-table name in the "Value" column.

Save your transaction then you are done. Execute the transaction you will be able to see your Z-table maintenance in the similar way to SM30.

If you want to create a program for that, then just call this Z-Transaction in your program.

Hope this will solve your problem.

15 REPLIES 15

Bharathi_j
Explorer
0 Kudos

HI,

You can create parameter transaction for your ztable and use that transaction for further requirement.

Regards,

bharathi.

0 Kudos

what exactly is a parameter transaction? is it the same method as creating a normal Z-transaction?

Thanks !

C.K.

Sm1tje
Active Contributor
0 Kudos

Parameter transactions allow you to preassign values to the fields on

the initial screen.

If you supply all of the necessary entries for the initial screen in

this way, you can suppress the screen when the transaction is executed.

This way you can enter (bottom of the screen) the name of the table to be called.

Former Member
0 Kudos

Hi,

Create a table maintenance program for this Z table. With this you can maintainn the data of ztable through

SM30 transacction code.

Hope this helps.

RSS.

Former Member
0 Kudos

Hi

Create table maintainence using the following steps

1) go to se11 check table maintanance check box under

attributes tab

2) utilities-table maintanance Generator->

create function group and assign it under

function group input box.

also assign authorization group default &NC& .

3)

select standard recording routine radio in table

table mainitainence generator to move table

contents to quality and production by assigning

it to request.

4) select maintaience type as single step.

5) maintainence screen as system generated numbers

this dialog box appears when you click on create

button

6) save and activate table

using sm30 you can create entries manually.

0 Kudos

Thanks for the answer, all this has been done already,

the problem is that we do not want end-users to access SM30 they have to you a Z-transaction to do exactly the same, I am trying to fin out how to call SM 30 within my Zprogram, how could I do that?

Thanks,

C.K.

0 Kudos

Like I said already above...via SE93.

At bottom of screen add a new line and use F4 help, Use View and enter the name of your view (z-table) Also define if it should be update or show or ... and use a flag (X) for that one.

former_member156446
Active Contributor
0 Kudos

Former Member
0 Kudos

Create a tcode for that table (maint table)by skiping the first screen...........

1.got to se93 give ur new tcodeand press create button...

2.choose parameter tranction

3.tick the skip initial

4. give the table name in the screen field....in the value

Viewname tablename....

update X

http://www.sapdevelopment.co.uk/tips/tips_tabmaint_tcode.htm

Edited by: Anbu B on May 26, 2008 11:59 AM

Edited by: Anbu B on May 26, 2008 12:01 PM

0 Kudos

I can't see the zone where I should enter the table name, what screen field are you talking about ?

many thanks for the answer !!!

C.K.

0 Kudos

at the bottom of the screen after the screen that is shown in the link I sent before.

Bharathi_j
Explorer
0 Kudos

HI,

it is transaction type for the ztransaction for ztables...

Regards.

Bharathi.

Bharathi_j
Explorer
0 Kudos

Hi ,

You need not access SM30 at all when u create ztransaction for your ztable.

please let me know do yu the seps to cretae the ztransaction for your ztable?

Regards,

Bharathi.

Former Member
0 Kudos

No need for any custom program for that purpose, you can just create a transaction for the purpose.

Generate your Z-table Maintenance.

Then create a transaction using se93, while creating a transaction select "Transaction with parameters" option the last one in the dialog screen. Then provide SM30 in the transaction field, check the checkbox skip initial screen.

Check chekcboxes for your GUI suppport ex:HTML & JAVA.

Below in the default values part:

Check the possible entries and select VIEWNAME in the "Name of the screen column" and give your Z-table name in the "Value" column.

Save your transaction then you are done. Execute the transaction you will be able to see your Z-table maintenance in the similar way to SM30.

If you want to create a program for that, then just call this Z-Transaction in your program.

Hope this will solve your problem.

Former Member
0 Kudos

Hi,

Use the FM

*Call the Function module

CALL FUNCTION 'VIEW_MAINTENANCE_CALL'

EXPORTING

ACTION = P_ACTION

CORR_NUMBER = ' '

GENERATE_MAINT_TOOL_IF_MISSING = ' '

SHOW_SELECTION_POPUP = P_G_POPUP

VIEW_NAME = G_VIEW

NO_WARNING_FOR_CLIENTINDEP = ' '

RFC_DESTINATION_FOR_UPGRADE = ' '

CLIENT_FOR_UPGRADE = ' '

VARIANT_FOR_SELECTION = ' '

COMPLEX_SELCONDS_USED = ' '

CHECK_DDIC_MAINFLAG = 'X'

SUPPRESS_WA_POPUP = ' '

TABLES

DBA_SELLIST =

EXCL_CUA_FUNCT = P_TB_FUN

EXCEPTIONS

CLIENT_REFERENCE = 1

FOREIGN_LOCK = 2

INVALID_ACTION = 3

NO_CLIENTINDEPENDENT_AUTH = 4

NO_DATABASE_FUNCTION = 5

NO_EDITOR_FUNCTION = 6

NO_SHOW_AUTH = 7

NO_TVDIR_ENTRY = 8

NO_UPD_AUTH = 9

ONLY_SHOW_ALLOWED = 10

SYSTEM_FAILURE = 11

UNKNOWN_FIELD_IN_DBA_SELLIST = 12

VIEW_NOT_FOUND = 13

MAINTENANCE_PROHIBITED = 14

OTHERS = 15

.

IF SY-SUBRC 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Regards,

Raj.