Parameter Transaction

Hi All,
I have created a Parameter transaction for SM30 by which I am able to maintain entries in my user-defined table. But, I would like to restrict the entries displayed (not using the conditions in SM30) by creating the selection screen where only the few fields of the user-defined table are presented for selection and based on that I get output. I want the full functionality of the parameter transaction(creation , deletion of the entries) though.
if some one has any ideas kindly let me know.
Thanks,
Manish

Hi Manish,
I don't know if a two-step maintenance is good for you as suggested in one reply here, but if your requirement is to give user a SM30 feature but have a selection screen of your own, then here is an example of how you can achieve that with a custom program. I don't think you can achieve that with just parametric transaction and without using conditions and without modifying the maintenance screens.
Let me know if you have any questions regarding this code. This program is for a Z table mainetnance which has two fields, a code and a description. Users are given a choice of entering their criteria for either the code or the description or both. This criteria is internally converted to a format that the table maintenance function module understands. The result is that users get to see and maintain only the records that they wanted.
REPORT test.
*                       DB TABLES AND STRUCTURES                       *
TABLES: sscrfields,
        z_group.
*                          INTERNAL TABLES                             *
*-- Internal table for seltab
DATA : i_seltab LIKE vimsellist OCCURS 0 WITH HEADER LINE.
DATA: BEGIN OF i_excl_tab OCCURS 0,
       pfkey LIKE sy-pfkey.
DATA: END OF i_excl_tab.
*                             VARIABLES                                *
*                             CONSTANTS                                *
*------------------------ Selection Screen ---------------------------*
*-- Maintain EOQ Tables: Initial Screen
SELECTION-SCREEN BEGIN OF BLOCK selscr WITH FRAME TITLE text-000.
SELECTION-SCREEN SKIP 1.
*-- Select the table you want to maintain
SELECTION-SCREEN BEGIN OF BLOCK program WITH FRAME TITLE text-001.
PARAMETERS : p_table LIKE dd02l-tabname DEFAULT 'Z_GROUP'.
SELECTION-SCREEN END OF BLOCK program.
SELECTION-SCREEN BEGIN OF BLOCK fursel WITH FRAME TITLE text-002.
*-- Selections for EOQ groups
SELECT-OPTIONS: s_group FOR z_group-group,
                s_descr FOR z_group-descr NO-EXTENSION
                                          NO INTERVALS.
SELECTION-SCREEN END OF BLOCK fursel.
*-- display or maintain options
SELECTION-SCREEN PUSHBUTTON: /10(20) update  USER-COMMAND upda
                                                 MODIF ID ind,
                              35(20) display USER-COMMAND disp
                                                 MODIF ID ind.
SELECTION-SCREEN END OF BLOCK selscr.
INITIALIZATION.
  PERFORM initialize_variables.
AT SELECTION-SCREEN OUTPUT.
*-- set the PF Status for the selection screen
  PERFORM set_sel_screen_pf_status.
  LOOP AT SCREEN.
    CHECK screen-name = 'P_TABLE'.
    screen-input = 0.
    MODIFY SCREEN.
  ENDLOOP.
AT SELECTION-SCREEN.
  CHECK NOT p_table IS INITIAL.
  PERFORM call_maintenance USING sscrfields-ucomm.
START-OF-SELECTION.
END-OF-SELECTION.
*--------------------- Routines used in the program -------------------*
*       FORM initialize_variables                                     *
FORM initialize_variables.
  MOVE: 'Update'(006)  TO update,
        'Display'(007) TO display.
ENDFORM.                  " initialize_variables
*       FORM SET_SEL_SCREEN_PF_STATUS                                 *
FORM set_sel_screen_pf_status.
  MOVE 'ONLI' TO i_excl_tab-pfkey.
  APPEND i_excl_tab.
  CLEAR i_excl_tab.
  MOVE 'SJOB' TO i_excl_tab-pfkey.
  APPEND i_excl_tab.
  CLEAR i_excl_tab.
  MOVE 'PRIN' TO i_excl_tab-pfkey.
  APPEND i_excl_tab.
  CLEAR i_excl_tab.
  MOVE 'DYNS' TO i_excl_tab-pfkey.
  APPEND i_excl_tab.
  CLEAR i_excl_tab.
  CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
       EXPORTING
            p_status  = '%_00'
            p_program = 'RSSYSTDB'
       TABLES
            p_exclude = i_excl_tab.
ENDFORM.                      " SET_SEL_SCREEN_PF_STATUS
*&      Form  call_maintenance
*       To display the maintenance of the table entered.
FORM call_maintenance USING action LIKE sy-ucomm.
  DATA: l_view_action.
  IF action = 'UPDA'.
    l_view_action = 'U'.
  ELSEIF action = 'DISP'.
    l_view_action = 'S'.
  ELSE.
    EXIT.
  ENDIF.
*-- prepare the select statement for the call
  PERFORM prepare_sel_statement.
  CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
    EXPORTING
      action                               = l_view_action
*   CORR_NUMBER                          = '          '
*   GENERATE_MAINT_TOOL_IF_MISSING       = ' '
*   SHOW_SELECTION_POPUP                 = ' '
      view_name                            = p_table
*   NO_WARNING_FOR_CLIENTINDEP           = ' '
*   RFC_DESTINATION_FOR_UPGRADE          = ' '
*   CLIENT_FOR_UPGRADE                   = ' '
*   VARIANT_FOR_SELECTION                = ' '
*   COMPLEX_SELCONDS_USED                = ' '
   TABLES
     dba_sellist                          = i_seltab
*   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
   system_failure                       = 11
   unknown_field_in_dba_sellist         = 12
   view_not_found                       = 13
   OTHERS                               = 14
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
ENDFORM.                    " call_maintenance
*       FORM prepare_sel_statement                                    *
FORM prepare_sel_statement.
  CLEAR: i_seltab, i_seltab[].
  PERFORM prepare_seltab_for_grp.
ENDFORM.                       " PREPARE_SEL_STATEMENT
*       FORM PREPARE_SELTAB_FOR_GRP                                   *
FORM prepare_seltab_for_grp.
  IF NOT s_group[] IS INITIAL.
*-- if any criteria is entered for the GROUP field
    CALL FUNCTION 'VIEW_RANGETAB_TO_SELLIST'
      EXPORTING
        fieldname                = 'GROUP'
*       APPEND_CONJUNCTION       = ' '
      TABLES
        sellist                  = i_seltab
        rangetab                 = s_group.
  ENDIF.
  IF NOT s_descr[] IS INITIAL.
*-- if any criteria is entered for the GROUP DESCRIPTION field
    CALL FUNCTION 'VIEW_RANGETAB_TO_SELLIST'
         EXPORTING
              fieldname          = 'DESCR'
              append_conjunction = 'AND'
         TABLES
              sellist            = i_seltab
              rangetab           = s_descr.
  ENDIF.
ENDFORM.                       " PREPARE_SELTAB_FOR_GRP
Hope this helps.
Srinivas

Similar Messages

  • How to create a variant used in SM30,View variant in Parameter transaction?

    Dear Team,
    I have a view V_TCURR. For which I would be creating a parameter transaction for transaction SM30 by filling the default Values section (VIMDYNFLDS-LTD_DTA_VR, VIEWNAME,TVIMV-VARIANT). The values for first two fields are obvious.
    The question is on TVIMV-VARIANT How can we create a variant which can be used in tcode SM30.
    Delving a  little deeper show that these variants Obsolete since R/3 Release 3.1I: Selection variant for a table or maintenance view.
    Since R/3 Release 4.0, there are view variants instead of selection variants.
    The field only exists for reasons of backwards compatibility.
    If thats is so, How do I use the same in parameter transaction..?
    I have tried creating a view variant and use it parameter transaction but in vain..
    Please help resolve my problem. I hope I am very clear. If still need any clarification, please get back to me.
    Thanks a lot in advance,
    Reagards,
    Sai.
    P.S. Though there are multiple quuestions on simlar subjects none of them has been either answered or is completely relevant to mine.

    Dear Suman,
    Thanks a lot for the answer. Actually the Tcode is getting created if I do what you have said me.
    But when I run the tcode which was created by view variant created, I am not getting the desired details .
    To be more clear..
    Previously there was a variant (TMIMV-VARIANT) created with follwing criteria..
    Table TMIMV.
    TABNAME    VARIANT AS4POS            VIEWFIELD NEGATION OPERATOR     VALUE         AND_OR      TABIX
    V_TCURR     ZTHB     1     KURST     NOT     EQ     M     AND     2          
    V_TCURR     ZTHB     2     KURST     NOT     EQ     DWBP     AND     2          
    V_TCURR     ZTHB     3     TCURR          EQ     THB     OR     4          
    V_TCURR     ZTHB     4     TCURR          EQ     USD     OR     4          
    V_TCURR     ZTHB     5     TCURR          EQ     US$          4     
    When we run tcode created by paramaeter transaction.. viewname as  V_TCURR, TMIMV-VARIANT. I am getting the desired records for updation.
    But if I do the same using View variant with the same selection criteria
    Table            Field name     Operator      Comaparison  AND/OR
                                                                   Value
    TCURR     KURST     NE     'M'     AND
    TCURR     KURST     NE     'DWBP'     AND
    TCURR     TCURR     EQ     THB     OR
    TCURR     TCURR     EQ     USD     OR
    TCURR     TCURR     EQ     US$
    And the run the tcode created by using the view variant .. I am getting No entries found that match selection criteria...
    Could you please help and let me know if I am missing any step.. Kindly also check from your side how this can be achieved.
    Thanks a lot in advance,
    Sai.

  • Parameter Transaction Code for Function Group based Tcodes

    Hi,
    I have created a function group for a single screen 1000 having only 2 screen fields with input/output enabled, one of them being a flag field. Have also created a Transaction code to point to the screen 1000.
    My requirement is to create another Tcode(Parameter Transaction Code) with the previous created Tcode and pass default values to the screens flag element. I have entered the below :
    Name of the screen field
    Value
    FLAG
    X
    Still i am not able to get the value of FLAG as X when i debug the program. I am confused what mistake have i done. It will be helpful if someone can guide on this. I know its simple and i believe me i have tried all possible ways to check my mistake. Couldn't find any.
    Thanks and Regards,
    Vadid Valiulla

    Yes, Basically i am calling TCODE1 from TCODE2.
    I am using the same Function Group and yes a global variable is defined for the screen fields.
    I actually do not want to go by the Parameter ID method. But still i can use it if that is easier. Currently there is no Parameter ID for the screen field as i wanted the Tcode2 also to be called independently.
    Thanks for your time Prakash
    Regards,
    Vadid

  • Authorization object for parameter transactions

    Hi all,
    I'm trying to restrict transaction VL10h for shipping point,this transaction is a parameter transaction and is not controlled by an authorization object directly.when I run a trace , transaction Vl10x shows up. The authorization object that is being checked is V_LIKP_VST.
    Note : The requirement is when the user executes transaction VL10h he/she should be able to display only those shipping points they are authorized to.
    Please advice.
    Thanks,
    Mohan.

    Hi Mohan,
    For transaction VL10H you can specify values for the following fields in authorization object V_LIKP_VST:
    -Activity:
    01     Create or generate
    02     Change
    03     Display
    04     Print, edit messages
    18     Deliveries from coll. proc.
    24     Archive
    25     Reload
    85     Reverse
    -Shipping point: Here you must set the restriction for each group of users that are allowed for the maintenance of the shipping points that are used for delivery processing.
    You can restrict the access through these fields.
    Regards,
    Leandro

  • Parameter transaction for table maintenance - multiple tables?

    Hello,
    I am very familiar with creating a parameter transaction to call SM30 for a specific Z-table of ours.
    However, I have 14 tables that a group of users will need to maintain. Rather than create 14 different transactions in SE93, what are my options?
    When creating a parameter transaction in SE93, I get the error that the field 'VIEWNAME' is used more than once. There has to be a way to achieve this with only one transaction.
    Thank you very much,
    Michael

    I dont think you can create a single transaction with multiple VIEWNAME's.Options I would suggest you is create a simple report with radio buttons for each table and call the FM "VIEW_MAINTENANCE_CALL" with the viewname based on user selection and create a single transaction to the report or create transaction for each and create a Area menu with all the 14 transaction.

  • Creating a parameter transaction

    Hi All,
    Can any one tell me how to create a parameter transaction of ztable?
    Tnx,
    Joe

    Hi,
    Parameter transactions allow you to preassign values to fields on the initial screen of a transaction.
    To create a parameter transaction, use the Transaction Maintenance transaction (SE93). Once you have entered a transaction code and short description, choose transaction type Transaction with parameters (Parameter transaction).
    You can hide the initial screen of a parameter transaction if you have specified values for all of its fields.
    Have a look to dis link[link|http://www.sapdev.co.uk/tips/tips_tabmaint_tcode.htm]
    regards,
    Archana
    Edited by: Archana Kumari on Aug 28, 2009 1:37 PM

  • Parameter ~TRANSACTION in webgui service

    Hi all,
    we plan to publish transaction PPMDT on our intranet using the SAP GUI for HTML.
    I copied the service "webgui" and tried to add the parameter ~TRANSACTION = PPMDT in "GUI Configuration", but it has no effect. When I call the service in a browser and log on, the usual start menu is displayed, not transaction PPMDT. I also set parameter ~WEBGUI_SIMPLE_TOOLBAR = 32 in the same place and it works fine.
    Can I only specify the ~TRANSACTION parameter in the URL? Or is there a possibility to specify the parameter somewhere in SICF?
    As I am not an ITS expert at all, I appreciate any help.
    Thank you, Michael

    Hello Michael,
    What you have done should work.  Just to be clear:
    1. create a new service that is the exact copy of WEBGUI
    2. in the GUI configuration area add ~transaction PPMDT
    3. save and test.
    Besides the "~transaction PPMDT" what else is in the GUI Configuration area for the new service that you created?
    Edgar

  • F1 documentation for a Parameter Transaction

    Hello
    I have a Parameter Transaction in a customer namespace and need to create F1 documentation for it. Is it possible?
    (Created in SE93 and linked to SM30).
    I can't find anything in the menus, online help or this forum.
    The transaction is part of an Area Menu and ideally I would like to provide some F1 help there.
    Thanks
    Graham

    Hi
    I looked in SE61 but there is no drop down menu item for Transaction.
    Balu:
    I have an Area Menu for example:
    TR1
    TR2
    TR3
    ......etc
    Transaction TR1 is linked to a report so I created docu for this and now the user can position the cursor on TR1 in the menu, press F1 and see a popup with the documentation.
    Transaction TR2 was created as a parameter transaction linked to a View via SE30 (selected as a dialog transaction). The user can start TR2 and gets a View where they can enter data and use F1 for the individual fields. Up to here everything works OK.
    What is missing is to allow the user to select TR2 and use F1 to see some documentation whilst still in the menu.
    Since TR2 isn't linked to a report or data element I can't find a way to create docu for it.
    Thanks
    Graham

  • SE93: Parameter Transaction for SE38

    Hello
    I want to create a parameter transaction to display my program in edit mode.
    i.e. Instead of going to SE38 and change my program.
    There are lots of websites describing how to call SM30 in edit mode for a particular View. I just wanted to know if it possible with SE38 also..
    I have entered the following screen-field values in SE93 but the new transaction stays on the initial screen of SE38, even though skip initial screen option is checked.
    Field: RS38M-PROGRAMM
    Value: ZTEST
    Field: RS38M-FUNC_EDIT
    Value: X
    I must somehow pass some additional value which would account for clicking the "Change" button.. but how?
    I know about Call Transaction, BDCs etc.. but really wanted to know if its possible via parameter transaction...

    Hi, Shrikaant
    Follow the Steps Bellow then you will understand with is Difference Between SE38 and SM30
    1. Run T-Code SM30
    2. Go to Menu Path System => Status
    3. From the System Status Box Double Click Screen 100
    4. It will bring you in Screen Painter Select Layout button
    5. On the you will see some Fields under buttons Display, Maintain and Transport
    6. These buttons are hidden for Screen SM30
    7. So you are setting this value in Parameter Transaction UPDATE = 'X'
    This option is not available in SE38 so you can't do the same for this Transaction.
    Hope you understand, Please reply if any confusion
    Thanks and Regards,
    Faisal

  • Regarding parameter transaction

    while  creating parameter transaction in se93,
    there is one column defalut values. there it is asking
    name of the screenfield and value. when i press f4 on screen field it gives some fields.
    1)where can i see the description of those fields.
    2) wht i have to give in those screenfield and value.
    plz clarify my doubt

    Assume if you are giving the Trasnaction as SM30,  then you go to SM30 and check.
    or
    If you are using START_REPORT as the transaction, then go to START_REPORT trasaction check .

  • Create Parameter Transaction.

    Hi,
    need some help, I am creating an Parameter Transaction to create display only view for an Table. But I need to restrict only certain fields for selection, but by default system is prompting to select Selection fields.
    thanks
    Lakhbir

    Execute Tcode SE93
    In the transaction code mention SM30 and check skip initial screen.
    In the Default values.
    Name of the screen field = VIEWNAME
    value = <Your table name>
    In the next line
    Name of the screen field = UPDATE
    value = 'X'
    Hope this will help you.
    Regards
    Aman

  • Parameter transaction for view maintenance

    Hi there, please help
    I've created a parameter transaction(ZTRN) for a view maintenance(ZVIEW) with the ff
    Skip initial screen = X
    VIEWNAME = 'ZVIEW'
    UPDATE = X.
    How can i change this transaction/view so that only 1 record can be maintained, i.e how/what
    parameters to provide before calling the transaction so that only one record can be maintained. With the above settings all records are displayed.
    I've tried using UPDATE_LTD = X but its not helping either.
    Thanks in advance

    I don't think this is possible in the way you want it to. What you could do is use the standard events provided by the maintenance view. In these event create a check that only one record can be changed or even displayed.
    I don't have a SAP system to give you an example but I can refer you to this:
    [Maintenance events|http://help.sap.com/saphelp_nw70/helpdata/EN/91/ca9f0ea9d111d1a5690000e82deaaa/content.htm]
    Edited by: Micky Oestreich on Aug 6, 2008 2:41 PM

  • Parameter transaction details

    Hi Everybody,
    I have a SAP query and I have assigned this to a Transaction.
    Transaction type is of Parameter transaction.
    and the default values I have provided are for transaction = "START_REPORT", Screen no = "blank"
    and Default values for screen fields  are
    Report Type = AQ ( SAP Query)
    Report = User group of the query
    Extended report = Query name.
    The Transaction is executing prefectly fine
    I need to find out where these information are stored. may be it might be stored in a table or view. Or if there is any function module to find out.
    Please help..its very urgent!!

    Hi Lokesh,
      TSTC   - SAP Transaction Codes
      TSTCT - Transaction Code Texts
      TFDIR  - Function Module
    With luck,
    Pritam.
    Edited by: Pritam Ghosh on Jul 10, 2008 1:37 PM

  • Providing authorization for parameter transaction

    hello all,
              I have created a parameter transaction for a table maintainance generator(table a z-table). the requirement is, we want to provide authorization only for few users so how can we go forward...
    with regards,
    sandeep akella.

    When you are parametrizing any TCoe then there is no changes happen in the Authorization checks from the original. So you need to take care this in the following way:
    1. Go to table TDDAT and find out the Authorization Group of that z-table. If nothing found, please create a Custom Auth group and assign the table to that grp in SE54.
    2. Now go to the role through which you want to provide access to that table to the users or create a new role and add the Parametrized Tcode in the menu of the Tcode.
    3. In authorization data, please assign the Authorization group for that particular table in S_TABU_DIS and provide the activity as per your requirement.
    4. Assign the role to the users.
    Regards,
    Dipanjan

  • Parameter Transactions?

    What are parameter transactions ?
    How can i know whether a given transaction is a parameter transaction or not?
    Thanks in Advance,
    Sandeep

    > What are parameter transactions ?
    SAP help is a good source for questions like this, in your case:
    [SAP Library: Parameter Transactions|http://help.sap.com/saphelp_nw70/helpdata/EN/43/0f955bc2086ff3e10000000a422035/frameset.htm]
    > How can i know whether a given transaction is a parameter transaction or not?
    Have a look at it in SE93.

Maybe you are looking for

  • Macbook air cannot shut down after upgrading to yosemite

    Hi all, I have a problem from my macbook air purchased at 2012 and current version is Yosemite 10.10. I upgraded my mac to Yosemite in Oct and it starts not able to restart or shut down. I try to update the software as I see in the App Store and I on

  • Looking for a particular offset

    Hello all, I have been forced to deal with a binary file in java that is 100MB+ made of 64 byte records. What I have done is to build a pointers hashtable to point out the various records in the file but what I want is to skip to that offset. I looke

  • Statistical WBS element posting - Asset

    Hi, From the SAP help on AS03 transcation field on Origin tab >Account Assignmnet for investment  - WBS element  , I see the following information. WBS element investment project Enter the WBS element here, if the system should automatically make sta

  • Reinstall OS9.2.2-CD start up freezes-cannot boot OS from CD to install

    I recently had to trash the main drive due to a massive failure on my G4. The second HD has 10.4.11 installed on it. I boot from there. It does not have 'classic' installed. Tried to start up and got the message to install OS 9. Got out the install C

  • How to validate a session object in jsp?

    Hi All, i am facing a problem.The problem is how to validate the session object object in jsp.I have written a java script by using a defined function as setInterval and has given 5 mintues if the user is idle and will show a pop up menu before time