05-26-2008 10:51 AM
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.
05-26-2008 11:03 AM
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.
05-26-2008 10:52 AM
HI,
You can create parameter transaction for your ztable and use that transaction for further requirement.
Regards,
bharathi.
05-26-2008 10:57 AM
what exactly is a parameter transaction? is it the same method as creating a normal Z-transaction?
Thanks !
C.K.
05-26-2008 10:59 AM
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.
05-26-2008 10:53 AM
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.
05-26-2008 10:57 AM
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.
05-26-2008 10:59 AM
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.
05-26-2008 11:02 AM
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.
05-26-2008 10:58 AM
http://www.sapdevelopment.co.uk/tips/tips_tabmaint_tcode.htm this is will be the answer.
05-26-2008 10:58 AM
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
05-26-2008 11:07 AM
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.
05-26-2008 11:09 AM
at the bottom of the screen after the screen that is shown in the link I sent before.
05-26-2008 10:58 AM
HI,
it is transaction type for the ztransaction for ztables...
Regards.
Bharathi.
05-26-2008 11:01 AM
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.
05-26-2008 11:03 AM
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.
05-26-2008 11:03 AM
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.