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

Calling SM30 from a program (ALV)

Former Member
0 Likes
8,625

Dear all,

I have done an Interactive ALV Report, which has to take me to a Z transaction which displays details about a Z table. Z transaction is created through SM30. Now for the first row of my basic list contains Employee Code & Date which should be taken from there and the values corresponding to these Employee code & Date the values should be displayed in the SM30 (Z transaction) Screen..How can I go with this?? Kindly help!

Thanks & Regards

Ajai

1 ACCEPTED SOLUTION
Read only

former_member404244
Active Contributor
0 Likes
3,854

HI,

Try with another option..

Have a check box at each row and then check that check box and in the applocation tool bar specify a button named as <ur custom table>..When u click that call ur ztransaction for the table u will be taken directly to the table.

make sure u create a transaction for ztable in SE93 and the radio btton u need to select is (Transaction with paramters(paramter transaction).....and then

in the DEFAULT values For ->give SM30 and cehck the check box Skip initial screen

In the bottom Default values

specify name of the screen fiel d Value

VIEWNAME <ur custom table name>

UPDATE 'X'.

save it... The ztransaction will be created.

now when u push on the screen , call ur ztransaction.

Regards,

Nagaraj

6 REPLIES 6
Read only

Former Member
0 Likes
3,854

Use SET PARAMETER and set the values. (Important Note: Those two fields must associate with a Parameter ID ) then you can set them By Default. But you cannot skip this transaction selection screen.

Read only

Former Member
0 Likes
3,854

Hi,

You generate a miantaince view and then use belo given code.

CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
  EXPORTING
    action                               = 'S'
*   CORR_NUMBER                          = '          '
*   GENERATE_MAINT_TOOL_IF_MISSING       = ' '
*   SHOW_SELECTION_POPUP                 = ' '
    view_name                            = view_name
*   NO_WARNING_FOR_CLIENTINDEP           = ' '
*   RFC_DESTINATION_FOR_UPGRADE          = ' '
*   CLIENT_FOR_UPGRADE                   = ' '
*   VARIANT_FOR_SELECTION                = ' '
*   COMPLEX_SELCONDS_USED                = ' '
*   CHECK_DDIC_MAINFLAG                  = ' '
*   SUPPRESS_WA_POPUP                    = ' '
* TABLES
*   DBA_SELLIST                          =
*   EXCL_CUA_FUNCT                       =
 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

Read only

former_member404244
Active Contributor
0 Likes
3,855

HI,

Try with another option..

Have a check box at each row and then check that check box and in the applocation tool bar specify a button named as <ur custom table>..When u click that call ur ztransaction for the table u will be taken directly to the table.

make sure u create a transaction for ztable in SE93 and the radio btton u need to select is (Transaction with paramters(paramter transaction).....and then

in the DEFAULT values For ->give SM30 and cehck the check box Skip initial screen

In the bottom Default values

specify name of the screen fiel d Value

VIEWNAME <ur custom table name>

UPDATE 'X'.

save it... The ztransaction will be created.

now when u push on the screen , call ur ztransaction.

Regards,

Nagaraj

Read only

0 Likes
3,854

Dear all,

Thanks for all the prompt & immediate replies..Actually Mr.Nagaraj, the thing is that I have already created a Z transaction for the SM30 stuff what you have told..Now values corresponding to the selected row should be displayed in the SM30 transaction..not all values..So pls..help me with that..

Thanks

Read only

0 Likes
3,854

Hi ,

You just need to create a report which would do a BDC on transaction SM30 and also a filter on the data you want.

Then call this report using submit and return, when user clicks on your report.

Read only

0 Likes
3,854

Dear Mr. Dev Parbutteea,

Now that was what I was looking for..You just gave it right on the point..You are a genius Thanks a lot..

Thanks to all others who honestly replied..It was of great help from you all.. Problem Solved.

Thanks & Regards

Ajai