Program Variant: Popup by User

Guys,
I have copied some standard code to automatically assign a variant via the Initialisation section (see RIAUFK20).
However, the client wants a popup to display all variants for the user so that they can choose the appropriate variant before the selection-screen is displayed.
Is there a suitable function module for this?

Do you mean:
PARAMETERS   p_var LIKE disvariant-variant
                   DEFAULT '/STANDARD'.
DATA: g_variant          LIKE disvariant.
DATA: gx_variant         LIKE disvariant.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_var.
  PERFORM variant_inputhelp_f14 USING p_var.
*       FORM VARIANT_INPUTHELP_F14                                    *
FORM variant_inputhelp_f14 USING p_variant LIKE g_variant-variant.
  DATA h_exit.
  CLEAR gx_variant.
  CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
       EXPORTING
            is_variant          = g_variant
*           I_TABNAME_HEADER    =
*           I_TABNAME_ITEM      =
*           IT_DEFAULT_FIELDCAT =
            i_save              = g_variant_save
       IMPORTING
            e_exit              = h_exit
            es_variant          = gx_variant
        EXCEPTIONS
            not_found           = 1
            program_error       = 2
            OTHERS              = 3.
  IF sy-subrc IS INITIAL AND h_exit IS INITIAL.
    g_variant-variant = gx_variant-variant.
    p_variant         = gx_variant-variant.
  ELSE.
    MESSAGE ID sy-msgid TYPE 'S'
                 NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
ENDFORM.
Rob

Similar Messages

  • How to Run std program with a specific variant for specific user?

    Hi guys
    We have a std program which will be run by different users in the company. Now the requirement is to make sure that each user runs the report with a specific varaint. Can we control this if yes how?
    one options we thought about was to create a transaction in SE93 and define the program to run with a predefined varaint and assign the new custom tcode to the user profile. But we have many different users and we will end up with creating many transactions which we would like to avoid. Is there any other option to control the std program such that each user can run the program only with a pre-defined varaint and the one which only the user is suppoed to run. thanks in advance.

    We have a std program which will be run by different users in the company. Now the requirement is to make sure that each user runs the report with a specific varaint. Can we control this if yes how
    you can do this..
    You can create a Custom table
    userid     keyfield
    program  keyfield
    variant    keyfield
    programdesc
    Make the table Maintaintable(usnig table maintenance )
    Now create another Program
    It takes input of the Program name( using selection screen)
    LOGIC
    in side that place a logic ,
    Based on the user name  and program name Get the variant name from above table
    Now Submit the program with the variant you have selected above.
    Use Variant Addition when you use SUBMIT
    So now program executed based on user variant.
    Now you create a Transaction for this program.
    When use Runs the Transaction , user needs to input the Program name which he wants to execute.
    and Output will be shown based on the variants
    Regards
    Vijay Babu Dudla

  • Need user exit / screen exit for SE38 program variant save

    Hi ABAPers,
    Need user exit / screen exit for SE38 program variant save action to log addition details of variant changes done and relavent ticket details in z table.
    Currently table VARID table stores only latest change and not history.
    We need to avoid logging enabling for table VARID  and custom field addition in it.
    Please advice.
    -Nilesh

    HI Nilesh,
    I don't think any Exits available for this.
    Better u go for Implicit Enhancement.
    regards
    Sreekanth

  • When i try to download firefox i get a popup with user name administrator and looking for apassword

    when I try to download firefox I get as far as extracting then I get a popup saying that I may not have the necessary permission to access all the features of the program I get 2 choices 1 to run the program as the current user 2 I am given user name administrator and it looks for a password.When I try a password I get login failed bad password. When I try to run it as current use it will still not download

    SAVE the installer to your hard drive (do not use the "Run" option); save it to your Desktop so that you can find it. When the download is complete, close whatever browser you have open, click or double-click the file you downloaded and see if it installs without a problem.
    The downloader is a self-extracting archive and should not need or use 7-zip. I have 7-zip installed on my system and it does not interfere with nor is it used in the Firefox install process. Hopefully, you have not set the downloading of .exe files to be associated with 7-zip.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • Associate Print Parameters with Program Variant

    Is there any standard way to associate a particular set of print parameters with a program variant?

    i think it is possible ? try to make use of
    <b>
    Selection Variables
        The following three types of selection variables are currently
        supported:
        o   Table variables from TVARVC
            You should use these variables if you want to store static
            information. TVARVC variables are proposed by default.
        o   Dynamic date calculations:
            To use these variables, the corresponding selection field must have
            type 'D' (date). If the system has to convert from type T to type D
            when you select the selection variables, the VARIABLE NAME field is
            no longer ready for input. Instead, you can only set values using
            the input help.
            The system currently supports the following dynamic date
            calculations:
            Today's date
             From beginning of the month to today
             Today's date +/- x days
             First quarter ????
             Second quarter ????
             Third quarter ????
             Fourth quarter ????
             Today's date - xxx, today's date + yyy
             Previous month
         o   User-specific variables
             Prerequisite: The selection field must have been defined in the
             program using the MEMORY ID pid addition. User-specific values,
             which can be created either from the selection screen or from the
             user maintenance transaction, are placed in the corresponding
             selection fields when the user runs the program.
         The SELECTION OPTIONS button is only supported for date variables that
         fill select-options fields with single values.
    </b>
    but thing is u have to maintain para/selection options for ur report.
    Regards
    Prabhu

  • Creation of new Print Program & Variant for new Correspondence Type created

    Dear Friends,
    I have created 2 new Correspondence Types in SAP as SAP61 (Vendor Debit Note) & SAP62 (Vendor Credit Note) by copying SAP09 (Internal Document) properties like itu2019s Name of the print program - RFKORD30 & Name of variant - SAP09.
    We are facing problem when we execute print program in F.64 for SAP09 it is coming same like SAP61 or SAP62. Actual script & print values of SAP09 are replaced by SAP61 or SAP62.
    Please suggest us how we can differentiate both SAP09 & SAP61/62. Because we use these correspondences for different purposes like SAP09 gives the information for the Line items in the Document whereas SAP61/62 gives the information of vendor line item weather it is debit or credit entry.
    Your kind co-operation in this matter is highly appreciated.
    Thanks & Regards,
    Naveen Kumar.P

    "Assigned the from to the company code - progam in V_001F_B"
    Check 'Form ID' field in this IMG transaction against the program and form that you have created.
    I am assuming there are 2 lines with same entries but different form IDs.
    Or there are 2 lines with the same entries but different CoCodes (seem to remember that the CoCode is not taken into account as a key in certain programs - not logical i know but remembered a previous issue I had many moons ago - could be to do with the blank entry for CoCode field if there is one being picked up by the program before the entry that has your CoCode).
    Now check the variant attached and Form ID in step 'Created new program variants in SA38'
    Ensure the correct program and variant are attached in step OB78.
    My assumption is Form ID is the key.
    Hope this helps

  • Program Variant in Process Chain

    Hi All,
    I have to execute a program in a Process Chain. I have included a process variant to execute the program. Now, this program bring us to a screen, where we need to click on the execute button to run that program. I need to add a program variant for this i guess. Can any one give me the procedure how to do this?
    Points will be awarded.
    Thanks in advance,
    Anjum.

    The program that you have written should run in background.
    We use Variants for ABAP programs to be run in the Process Chain
    - Create an ABAP variant
    - Choose call mode "Synchronous", Called from "Local". Thats mostly the default we use. choose according to your requirement.
    - Choose "Program". Choose the program name & the variant n ame. Its better if you create the variant while testing the program in sa38. Later you can use the same variant in the Process Chain ABAp variant OR can create a new one. Set appropriate values.
    Please note that if in SA38, your program ran successfully with the variant, it should run here as well.
    That should do.
    Regards
    Anujit Ghosh
    Edited by: Anujit Ghosh on Jun 17, 2008 12:36 PM
    To create the program variant, first enter a name of your choice in the program variant field. Click Edit.
    - Choose Create New
    - Choose "Values". Click Change. In teh next screen, enter all the required parameters. Choose if its a SAP standard prog, or modified program.
    - Check the attributes as well. It will usually choose selection screen 1000 as default. Let it be.

  • Process chain program variant will not change from yellow...

    Hello,
    <b>Problem:</b>
    I have a process chain that has two branches with 3 process chain variants on each leg in a parallel configuration.  The process chain variants run different program variants.  I am using variant object called "ABAP Program with Success/Failure " which can have a yellow, green, or red status and has status arrows that can be either red or green that connect to other process chain variants.  The program executed with these variants is a customized BPS UPC_BUNDLE_EXECUTE program.  When I run this PC the first variant on each leg usually hangs indefinitley on the yellow status.  In the Backg tab log (double click PC variant in Log View) I can see the various SQL code that was ran.  The last line of the log is an SQL-END:...  Sometimes it will get past the first 2 varaints and hang on the next set of 2.  Other times it will just hang on the last variant of one leg.  It is very sporadic.
    <b>What I have observed and tried:</b>
    If I check my SM51 for the server the chain is running on I can see that the program in question is not running.  If I run the same program through SE38 that runs via a PC variant it runs sucessfully in an appropriate amount of time.  If I kill the process that has been running indefinitley through SM51 the process chain variant will go from a yellow status to a red as expected.
    I changed they way I ran the programs from running in parallel in 2 legs to running all of them in one leg serially.  That did not work.  At least one program variant will hang on the yellow status.
    I replaced all the variants using "ABAP Program with Success/Failure" to "ABAP Program" which has a red/green status but no red or green arrows, but black coming out of the variant forcing it to move down the chain on a sucess or failure.  The process chain variants also hung in the yellow status using the "ABAP Program" variant. 
    I have tried starting the process chain using both "Direct Scheduling" with "Immediate" and "After Event."  I have also kicked it off using "Start Using Meta Chain or API" so it was functioning as a sub process chain. Programs were still yellow in every case without changing to red or green. 
    I created new process chain variants for every single program/variant that I am using.  Still no luck.
    I have tried removing the chain from the schedule and re-activating and re-running and still no luck. 
    Thanks in advance,
    Gary Martins

    bump

  • Program with Back Ground User.

    Hi ,
    In my development we are sending data from MDM to R3 through XI.
    Here iam having the following issue:
    When sending IDOC's from XI to R3, some of the IDOC's are struck in Queue  with status 64 and, those not going to be processed at all. This is because of the unavailability of the work processes at that time. All this is done through the back ground user XIS_REMOTE.
    Iam trying to process the unprocessed IDOC's through a standard program, all the IDOC's are processed, but the data created under the Fore Ground user (i.e. my id).
    <b>I want to know is there any possibility to run or write the program using back ground user XIS_REMOTE</b> <b>so that all the unprocessed IDOC's will process and get the back ground user XIS_REMOTE.</b>
    Any inputs appriciated.
    Best Regards
    Shyam Reddy.

    ST05 you can trace SQL-statements and get expainings how these statements are being worked upon by the database. this is more a tool for investigating the performance of abaps on your 'special' database.
    since you posted your request in the security forum i will assume that you want to do an authority trace. use tx. ST01 instead of ST05. Set the filter options to the program and/or user you want to trace and flag the areas you want traced like 'authority check' 'database access' 'kernel commands' ...
    activate the trace using the matchlight-icon. run the background job to be traced. stop the trace after a sufficient time (or until the job hits the error you want to investigate). then press 'evaluation' and check the boxes for the lines to be displayed again ...
    if both my answers don't fit to your problem come back here and state a bit more precisely what your problem is, maybe we find another approach to it.

  • Variants created by user ID

    Is there any transaction to find out variants created by user ID or
    How to find out variants created by specific user ID?
    It is very difficult to visit each job & check variant.
    *It's very very uregent*
    Regards,
    Chetan

    Hi Chetan,
           Check the table VARID.
    Regards,
    Siva.

  • Assignment of Transaction variant to some users only

    Hi,
    I have created one transaction variant for T.code:MM02. With this some fields were made display mode. I want assign this Transaction variant to few of the users only not all users. That is for others the above are changeble.
    So I want to know how to assign this transaction variant to respective users only. If I activate this as standard variant, it is applicable to all. But I want to assign to few only.
    Reagrds.
    Veerappa
    Edited by: Chinna Veerappa on Oct 17, 2008 7:03 AM

    Hi,
    I tried this before posting the above. When I assigned some users, it is reflecting all users (Irrespective of users assignment, if I activated).
    Regards,
    Veerappa

  • How to auto populte selection screen for variant maintained in User Profile

    Hi,
    I have to auto populate selection screen of Custom Report , with the variant maintained in User profile of User .
    Helpful answers would be awarded .
    Thanks
    Umesh

    Hi,
    use the PARAMETER-ID clausole of the PARAMETERS / SELECT-OPTIONS instructions.
    See help for more informations.
    You have to know the parameter id of the field and also the parameters, must be tight to the right data element (example : parameters : p_mara like mara-matnr and NOT parameters : p_mara(18) ).
    Otherwise, use "get parameter id" in the initialization event to populate the selection screen.
    Bye
    Andrea

  • Defining Selection variables for program variant, TVARV table Help - urgent

    Hi All,
    Can anyone tell me, what is the transaction to create new variables in table TVARV to use them in my variant for fiscal year and WIP period fields in selection screen of SAPKKA07 program.I used STVARV and it creates variables in table TVARVC table not in TVARV table and moreover in creating a variant the selection variables are defaulted as variables from TVARVC table as input help but not the variables in TVARV table however I see and understand different from SAP Help. The following is the link
    http://help.sap.com/saphelp_47x200/helpdata/en/25/c966398ae5c13ae10000000a114084/frameset.htm
    for selection variable creation.
    Can anyone help me on this this is very urgent. Your help is highly appreciated
    Thanks in advance
    Kumar

    Thanks Appana,
    I know we can create the variable that way but, that is something hardway to do it. I want to go about it from transaction not meaning to update the table directly and moreover if I update the TVARV table directly as u said I still dont see the variable I created in the list I get on input help for selection variables while creating a program variant.
    I hope u can suggest me better now.
    Thanks
    Kumar

  • Managing Program Variants through program

    Hi,
    I used the function modules RS_VARIANT_CONTENTS to load the program variants and RS_CHANGE_CREATED_VARIANT to change the variants. The program is working fine but I have a problem with the length of the field. The VARI_CONTENTS table for the function modules has the fields LOW (CHAR 45) and HIGH(CHAR 45) which hold the values for the fields(parameter or select-options). But the value of the field being more than 45 chars is being truncated while saving the variants through these function modules.
    But when I change directly through GOTO->VARIANTS and then save the value, Its accepting the field value with more than 45 chars. Please do the needful at the earliest possible.
    Thanks in Advance.
    Regards,
    Raj.

    Hi,
    I used the function modules RS_VARIANT_CONTENTS to load the program variants and RS_CHANGE_CREATED_VARIANT to change the variants. The program is working fine but I have a problem with the length of the field. The VARI_CONTENTS table for the function modules has the fields LOW (CHAR 45) and HIGH(CHAR 45) which hold the values for the fields(parameter or select-options). But the value of the field being more than 45 chars is being truncated while saving the variants through these function modules.
    But when I change directly through GOTO->VARIANTS and then save the value, Its accepting the field value with more than 45 chars. Please do the needful at the earliest possible.
    Thanks in Advance.
    Regards,
    Raj.

  • Client copy error: Table logging in program RSCLXCOP disabled by user

    Hi,
    While doing client export from a system, I am getting the below error in test run:
    Table logging in program RSCLXCOP disabled by user
    Kindly advice.
    Thanks & regards,
    Kunal Patel.

    Hi
    Note 446485 - CC-ADMIN: Special copying options
    It would help you out, but do check double time.

Maybe you are looking for

  • Itunes Library and Windows 7

    Hey guys, Have a simple query that is not as such causing a problem. I was using a Windows XP machine and if I downloaded or imported a track a new folder would appear in my iTunes folder called the album name etc with tracks included, I would then h

  • Clearing Network field in shopping cart using BBP_PD_SC_GETDETAIL

    Hi, in  Doc_Change badi to clear out the Network value from BBP_PDS_ACC-NETWORK field whenever user enters some value using the Activity Search help. i think code has to be written using fm BBP_PD_SC_GETDETAIL but who can we clear network field based

  • Synching iPhone and iPad with new iMac - former pc user

    I'm trying to determine to most efficient way to set up iTunes and synching of my iPhone 4 and iPad on my new iMac. I am finally moving away from using a pc and am facing the issue of trying to preserve all the content on my devices as I set up the i

  • My iPhoto on my mac keeps force closing as soon as it begins to open.

    My iPhoto keeps closing. I have lots of videos and pics that i do not want to lose on there. Can someone please help me out on trying to solve this problem.

  • LR5 won't install in specified folder

    I have a custom folder setup as my default installation folder in my Adobe Application Manager but Lightroom 5 won't install there. Instead, it just installs in the default folder that all Adobe applications do, which is Program Files/Adobe/. All my