Variants in dynpro

hi all,
In my zprogram, it starts with screen 100,
in screen 100,  it displays alv list and some input box are also there in screen.
I just want to display variants at the top,.
I tried to copy status from sample program 'BCALV_TEST_GRID_REPREP', it wont work out.
how can i display variants or standard menu (like report program initial screen) on dynpro.
thanks and regards
Jose

hi,
Ok i have created screen variant for my screen 100 and program ZMGLRPT01.
after it, how can i use this variant while i run the program.
regards
Jose

Similar Messages

  • Save tabcontrol content in variant on dynpro

    Hi all,
    I've the following problem :
    I'm using a dynpro instead a selection screen. I had to do this because I'm using a Tabcontrol and we cannot use this element on an standard selection screen. I would like to have the possibility to fill the fields in my dynpro and save that as a selection variant. How can I manage that?
    I was looking the web and the forum to find a solution to my problem but didn't find one.
    thank you
    kind regards

    Frédéric,
    Not necessarily. You would be able display the table in control in your selection screen (as a subscreen in the selection screen). The drawback is that the variant would not save the values of the table control.
    Anyway, in the scenario you have described I don't see the point of saving a variant. If you would like to save the contents of the table control you should think in another aproach (like a Z table).
    And another thing. Imaginane that your user wants to paste 400 lines and in your table control and you are displaying, let's say, 40 lines. He will have to paste 40 lines, scroll down, another 40 lines, scroll down... a total of 10 times. That will be a pain for him. An editable ALV grid control would be more user friendly, as he would be able to paste the 400 lines in one pass.
    Kind regards

  • Save Variant Web Dynpro Select Options

    Hello experts, im working with select options in a WEB Dynpro.
    It is poosible to save select options varaint?
    I hope anybody had an idea to do this.
    THANKS!
    Markus

    Hi,
      After fetching the values from DB, here is the code snippet to pre fill them in the select option screen
    DATA: lt_range_table TYPE REF TO data,
          rt_range_table TYPE REF TO data,
          read_only TYPE abap_bool,
          typename TYPE string.
    * create a range table that consists of this new data element
      lt_range_table = lo_r_helper_class->create_range_table( i_typename = 'DATA_ELEMENT' ).
    FIELD-SYMBOLS: <tab> TYPE INDEX TABLE,
    <struct> TYPE ANY,
    <wa> TYPE ANY,
    <option> TYPE char2,
    <sign> TYPE char1,
    <high> TYPE ANY,
    <low> TYPE ANY,
    <wa_values> TYPE ANY.
    ASSIGN lt_range_table->* TO <tab>.
    APPEND INITIAL LINE TO <tab> ASSIGNING <wa>.
    ASSIGN COMPONENT 'OPTION' OF STRUCTURE <wa> TO <option>.
    ASSIGN COMPONENT 'HIGH' OF STRUCTURE <wa> TO <high>.
    ASSIGN COMPONENT 'LOW' OF STRUCTURE <wa> TO <low>.
    ASSIGN COMPONENT 'SIGN' OF STRUCTURE <wa> TO <sign>.
    <sign> = 'I'. "Default sign which you want to give
    <option> = 'EQ'. "Default option you want to give
    <low> = 'VALUE_LOW." pass your valriable name here
    *<high> = 'High_value'.
      " using this code snippet, you can prefill multiple rows too
    * add a new field to the selection
      lo_r_helper_class->add_selection_field( i_id = 'S_ID'
      i_description = 'Field 1'
      it_result = lt_range_table ).
       You can also find an useful e-learning for the same [here|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60474842-91ca-2b10-3390-d2fd30f335fd]
    Regards,
    Manne.

  • Variants without Selection Screen

    Hi,
    if i have a normal Dynpro Screen, and no selection screen, how can i then use the Variants of SAP? I found some FM like RS_CREATE_VARIANT but this does not work. The coding of these Variant helpers always try to read out the fields from the report. But my report has no fields, because it is a dynpro screen and no selection screen.
    Do you know if i can use variants for dynpros?
    Thanks

    Hi Johnny,
    You can create Transaction Variants using SHD0 transaction.
    Have a look at the below SAP link:-
    [Transaction Variants and Screen Variants  |http://help.sap.com/erp2005_ehp_03/helpdata/EN/5b/7bc3895d1111d295ad0000e82de14a/frameset.htm]
    Also Have a look at the below wiki :-
    [Creating variants for custom screens|Creating variants for custom screens;
    <removed by moderator>
    Regards
    Abhii
    Edited by: Thomas Zloch on Sep 1, 2010 5:56 PM - please leave this to the original poster

  • How to configure MS Loopback Adapter in Windows 7

    Hello all,
    I installed SAP NetWeaver 7.02 SP06 ABAP Trial Version mainly to teach myself some
    WebDynpro Programming for ABAP. Unfortunately this does not work correctly.
    I created a View in a Web Dynpro Component and the Layout Preview does not work.
    I activated the services suggested in
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/30129979-011c-2e10-fb9b-a60e0d704c1d&overridelayout=true
    and did use the report RSICF_SERVICE_ACTIVATION with the variants
    WEB DYNPRO ABAP
    WEB DYNPRO ABAP DESIGN TIME
    WEB DYNPRO ABAP TEST APPS.
    In Addition I have set the FQDN as described in the document. I think the problem is the
    MS Loopback Adapter. It is displayed with "No connection" in the Network and Sharing Center. I have no idea
    how to change this. I have set the IP Adress to the on suggested in the Installation Instructions (10.10.0.10, Subnet-Mask 255.255.255.0) but the Loopback Adapter is displayed with no connection.
    If I call a test webdynpro with the Hostname "localhost" it does work, so I think the webserver is running.
    Any ideas ?
    How do I set up the MS Loopback adapter under Windows 7 correctly ?
    Thank you in advance,
    Axel

    Hi Axel,
    Now that you know your local network works correctly for a computer not connected to internet or intranet, you have to do this:
    1- For "No Connection" error (it is not necessary for the sap system to work), it's normal.
    Create a local intranet with a 2nd computer if possible and make a configuration for home network after you will see "Connected"
    2-Use of Pc hostname
    You must configure the "profile parameters" by using transaction RZ10 and activate services (it's not easy, you have to take your time).
    3- Webdynpro
    To see the result of the webdynpro appli, you may know that not all web browser versions are compatible. The recent browsers don't work, use iexplorer8 or mozilla but not google ==> you will solve the problem of "timeout".
    After that:
    Activate the "internet communication framework" by using Transaction SICF. It takes you to "Maintain Services" and then fill Hierarchy Type ==>services, execute to reach at this step:
    default_host/sap/bc/gui and icf ( If you've installed sap java, you will see both sap and sap_java)
    do a mouse right click and select "Activate Service" and choose activate all.
    You can now test the sample via web browser by using locahost.
    Best regards.
    Edited by: Tchounkeu Magloire on Nov 1, 2011 3:48 PM

  • Setting  a variant in WEB-DYNPRO application

    Hi expert,
    I want to set a variant in WEB DYNPRO ABAP application so how it is possible could you give me a any example. ASAP.
    REGARD'S
    VIKASH

    HI Vikash,
    If your problem of variants is still there check this link for customize variant.......
    This is for creating variant.......
    /people/sharad.agrawal/blog/2008/08/25/creating-and-using-variant-in-select-options-with-web-dynpro-for-abap-2
    This is for getting variants.........
    /people/sharad.agrawal/blog/2008/08/26/creating-and-using-variant-in-select-options-with-web-dynpro-for-abap-3
    regards
    Pranav

  • Use of Variants in a Web Dynpro Screen?

    Hi, 
    Is there an easy way to simulate the use of variants in a Web Dynpro screen, like in R/3 for a transaction?

    Can you give me some example for storing text files on the Java server?
    An example to manage parameters for each user, for example :
    \[ZAPPLICATION\]
    EQUIPMENT=300056
    TYPE=ZE
    PRIORITY=1
    DISPLAY=True

  • Use button "save" in a dynpro to save "variants"

    Hello,
    I Have a dynpro. I activate the save button but it doesn´t let save a variant.
    How can I do it ?
    Thanks

    this program may be helpful for you
    Ref : Re: Save variant problem
    *   TABLES                                                        *
    TABLES: SPFLI.
    *   TYPE-POOLS                                                    *
    TYPE-POOLS: SLIS.
    *   INTERNAL TABLES                                               *
    DATA: T_RKEY TYPE STANDARD TABLE OF RSVARKEY WITH HEADER LINE,
          T_SELCTAB TYPE STANDARD TABLE OF RSSCR WITH HEADER LINE,
          T_VARI TYPE STANDARD TABLE OF RVARI WITH HEADER LINE,
          IT_EXTAB TYPE SLIS_T_EXTAB,
          WA_EXTAB LIKE LINE OF IT_EXTAB.
    *   VARIABLES                                                     *
    DATA: OK_CODE TYPE SY-UCOMM,
          W_VARIANT TYPE RSVAR-VARIANT,
          W_USER_VARI TYPE RSVAR-VARIANT,
          W_VARI_REPORT TYPE RSVAR-REPORT,
          SEL_VARIANT TYPE RSVAR-VARIANT,
          SEL_VARIANT_TEXT TYPE RSVAR-VTEXT,
          W_REPORT TYPE RSVAR-REPORT,
          VARIANT_EXISTS TYPE C.
    *   SELECTION-SCREEN                                              *
    SELECTION-SCREEN BEGIN OF SCREEN 101 AS SUBSCREEN.
    SELECT-OPTIONS: S_CARRID FOR SPFLI-CARRID,
                    S_CONNID FOR SPFLI-CONNID.
    SELECTION-SCREEN END OF SCREEN 101.
    *   INITIALIZATION                                                *
    INITIALIZATION.
    W_REPORT = SY-REPID.
    PERFORM VARIANT_EXISTS.
    *   START-OF-SELECTION                                            *
    START-OF-SELECTION.
      CALL SCREEN 0100.
    *&      Module  STATUS_0100  OUTPUT                               *
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS '100' EXCLUDING IT_EXTAB.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT                          *
    MODULE USER_COMMAND_0100 INPUT.
      OK_CODE = SY-UCOMM.
      CASE OK_CODE.
        WHEN 'SAVE'.
          PERFORM SAVE_VARIANT.
          PERFORM VARIANT_EXISTS.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
        WHEN 'GET_VAR'.
          PERFORM LOAD_VARIANT.
        WHEN 'DEL_VAR'.
          PERFORM DELETE_VARIANT.
          PERFORM VARIANT_EXISTS.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  SAVE_VARIANT                                        *
    FORM SAVE_VARIANT.
      T_RKEY-REPORT = SY-REPID.
      APPEND T_RKEY.
      CALL FUNCTION 'RS_VARIANT_SAVE_FROM_SELSCREEN'
           EXPORTING
                CURR_REPORT          = SY-REPID
                VARI_REPORT          = SY-REPID
           IMPORTING
                VARIANT              = W_VARIANT
           TABLES
                P_SSCR               = T_SELCTAB
                P_VARI               = T_VARI
           EXCEPTIONS
                ILLEGAL_VARIANT_NAME = 1
                NOT_AUTHORIZED       = 2
                NO_REPORT            = 3
                REPORT_NOT_EXISTENT  = 4
                REPORT_NOT_SUPPLIED  = 5
                OTHERS               = 6.
      T_RKEY-VARIANT = W_VARIANT.
      MODIFY T_RKEY INDEX 1.
      CALL FUNCTION 'RS_RWSET_SAVE_VARIANT'
           EXPORTING
                RKEY    = T_RKEY
           TABLES
                SELCTAB = T_SELCTAB.
    ENDFORM.                    " SAVE_VARIANT
    *&      Form  LOAD_VARIANT                                        *
    FORM LOAD_VARIANT.
      PERFORM CHOOSE_VARIANT CHANGING SEL_VARIANT.
      IF SEL_VARIANT NE SPACE.
        CALL FUNCTION 'RS_SUPPORT_SELECTIONS'
             EXPORTING
                  REPORT               = W_REPORT
                  VARIANT              = SEL_VARIANT
             EXCEPTIONS
                  VARIANT_NOT_EXISTENT = 1
                  VARIANT_OBSOLETE     = 2
                  OTHERS               = 3.
      ENDIF.
    ENDFORM.                    " LOAD_VARIANT
    *&      Form  DELETE_VARIANT                                      *
    FORM DELETE_VARIANT.
      PERFORM CHOOSE_VARIANT CHANGING SEL_VARIANT.
      IF SEL_VARIANT NE SPACE.
        CALL FUNCTION 'RS_VARIANT_DELETE'
             EXPORTING
                  REPORT               = W_REPORT
                  VARIANT              = SEL_VARIANT
                  FLAG_CONFIRMSCREEN   = 'X'
                  FLAG_DELALLCLIENT    = 'X'
             EXCEPTIONS
                  NOT_AUTHORIZED       = 1
                  NOT_EXECUTED         = 2
                  NO_REPORT            = 3
                  REPORT_NOT_EXISTENT  = 4
                  REPORT_NOT_SUPPLIED  = 5
                  VARIANT_LOCKED       = 6
                  VARIANT_NOT_EXISTENT = 7
                  NO_CORR_INSERT       = 8
                  VARIANT_PROTECTED    = 9
                  OTHERS               = 10.
      ENDIF.
    ENDFORM.                    " DELETE_VARIANT
    *       FORM CHOOSE_VARIANT                                       *
    FORM CHOOSE_VARIANT CHANGING L_SEL_VARIANT.
      CALL FUNCTION 'RS_VARIANT_CATALOG'
           EXPORTING
                REPORT               = W_REPORT
                MASKED               = 'X'
           IMPORTING
                SEL_VARIANT          = L_SEL_VARIANT
                SEL_VARIANT_TEXT     = SEL_VARIANT_TEXT
           EXCEPTIONS
                NO_REPORT            = 1
                REPORT_NOT_EXISTENT  = 2
                REPORT_NOT_SUPPLIED  = 3
                NO_VARIANTS          = 4
                NO_VARIANT_SELECTED  = 5
                VARIANT_NOT_EXISTENT = 6
                OTHERS               = 7.
    ENDFORM.
    *&      Form  VARIANT_EXISTS                                      *
    FORM VARIANT_EXISTS.
    CALL FUNCTION 'RS_VARIANT_FOR_ONE_SCREEN'
           EXPORTING
                PROGRAM        = W_REPORT
                DYNNR          = '0101'
           IMPORTING
                VARIANT_EXISTS = VARIANT_EXISTS.
      IF VARIANT_EXISTS EQ 'X'.
        CLEAR: WA_EXTAB, IT_EXTAB.
        REFRESH IT_EXTAB.
      ELSE.
        CLEAR: WA_EXTAB, IT_EXTAB.
        REFRESH IT_EXTAB.
        WA_EXTAB-FCODE = 'GET_VAR'.
        APPEND WA_EXTAB TO IT_EXTAB.
      ENDIF.
    ENDFORM.                    " VARIANT_EXISTS

  • Saving of variant Dynpro of the screen - does not work in version 6

    In the specified theme [/people/alvaro.tejadagalindo/blog/2007/05/22/save-a-variant-from-a-dynpro-screen|/people/alvaro.tejadagalindo/blog/2007/05/22/save-a-variant-from-a-dynpro-screen] examples on use of the module for preservation dynpro the screen are resulted. But the given action passes for programs in version 4,5
    In version 6 work FM successfully interrupts with an error "the Screen xxxx does not contain objects".
    Who or knows why &#1075;&#1077;&#1085;&#1077;&#1088;&#1080;&#1088;&#1077;&#1090;&#1089;&#1103; such error in other version? And how it to bypass? Or can be there will be another FM which correctly to work in version 6?
    Or... It is impossible basically?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • ALV Variant store / save for a dynpro subscreen

    Hello,
    Is it possible to store value in variant for subcreen dynpro and to reuse it at each time we launch the program ?
    Thanks all !
    Best regards,
    Aurélien

    It sounds to me that it would be better to use transaction variants for this (transaction SHD0).
    Otherwise, if you insist on creating this SAVE-button, look for the appropriate function modules from function group SHD0.

  • How to create Variants in Web Dynpro using ABAP

    Can anyone please tell how to create and save variants in a Web DynPro application using ABAP.
    Also state the steps involved in saving and loading the variants.

    hi,
    For calender control, there is Date Navigator under "complex tab". You can just click and drag it and provide calender control.
    One more easy way is to create a input field. In the context, create a node and attribute of type "D"(which means DATE). And bind the context to your input field under "values" in property window. While running the program, you will see an calender attached to lt on the input field.
    Regards,
    Jithin

  • Selctedcell variant use in abap web dynpro

    hi friends,
                    can anybody tell me why we used selectedcell variant in  table column under table in abap webdynpro???? please elaborate with any example if possible.
    regards,
    sunil sharma

    hi,
    Cell variant is used to change the cell properties dynamically.In the Table UI element we have a provision that we can add the cell variant directly to the column, where as in ALV it is not possible. So we will create cell variant and will assign this to the column.
    refer to the sdn article :
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f0e7461d-5e6c-2b10-dda9-9e99df4d136d
    rgds,
    amit

  • Web Dynpro ALV - get Columns of selected Variant

    hi folks,
    we use the personalization manager to set a start-up variant for displaying data in WD Abap ALV.
    However, now we need the possiblity to get the columns shown on the screen (of that variant).
    Using the functions like
      lr_column_settings ?= wd_this->go_table.
      lt_columns = lr_column_settings->get_columns( ).
    on my config-table i always get ALL columns in the order of the Table i submitted to the ALV component.
    What we need is as mentioned above to get the columns in order that are on the screen at the moment (or of that variant).
    does anyone has a hint for me how to do that.
    kind regards,
    oliver

    Thanks Oliver for the quick reply,
    I tried the below code I am getting the variant right, but not the columns associated with the variant.
    I get all the columns. Please check if I am missing anything,
          DATA lo_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
          lo_INTERFACECONTROLLER =   wd_this->wd_cpifc_em_list_alv( ).
          data: lo_api_interfacecontroller type ref to IF_WD_CONTROLLER,
                lo_pers TYPE REF TO if_wd_personalization,
                lt_pers_table_ref TYPE REF TO IF_WD_PERS_TABLE,
                lt_pers_table TYPE STANDARD TABLE OF WDR_PERS_DATA.
          lo_api_interfacecontroller = lo_INTERFACECONTROLLER->wd_get_api( ).
            CALL METHOD lo_api_interfacecontroller->get_personalization_manager
              RECEIVING
                pers_manager = lo_pers.
            DATA: ls_config_key type WDY_CONFIG_KEY,
                  ls_PERS_SCOPE TYPE WDR_PERS_SCOPE,
                  ls_loaded TYPE WDY_BOOLEAN,
                  ls_desc TYPE WDY_MD_DESCRIPTION.
            CALL METHOD lo_pers->GET_STATE
              IMPORTING
                CONFIG_KEY  = ls_config_key
                PERS_SCOPE  = ls_PERS_SCOPE
                IS_LOADED   = ls_loaded
                DESCRIPTION = ls_desc. -> Gives me the Variant info
          data: ls_param_in type if_salv_wd_table=>s_type_param_config_in,
                lv_s_param_out TYPE if_salv_wd_table=>s_type_param_config_out,
            LS_r_model type ref to cl_salv_wd_config_table.
          ls_param_in-action = if_salv_wd_table=>set.
          ls_param_in-config_key = ls_config_key.
          ls_param_in-is_model_requested = 'X'.
          lv_s_param_out = lo_interfacecontroller->get_config_data(
            s_param_in =  ls_param_in                    
        LS_r_model = lv_s_param_out-r_model.
          data: lr_column_settings type ref to if_salv_wd_column_settings,
                lt_columns TYPE STANDARD TABLE OF SALV_WD_S_COLUMN_REF.
          lr_column_settings ?= LS_r_model.
          lt_columns = lr_column_settings->get_columns( ). -> this gives me all columns, not columns associated to variant
    Regards,
    Prasad

  • Web Dynpro selection variant

    Hi
    is it possible to save in WebDynpro on the standard selection screen save something like selection variant in selection screens in standard ABAP?

    Hi,
    Check this thread for Thomas Jungs' reply -
    Variant Uploaded Directly
    Regards,
    Lekha.

  • Web dynpro      cell variant!!!!

    Hi everyone,
      I have a big problem in web dynpro UI development,How can I make it possible
    that there are two kinds of cell editor ,one is link to action the other is textview.
    because at run time , I need to change the cell property according to some variable's value.
    Thanks in advance.

    Hi everyone,
      I have a big problem in web dynpro UI development,How can I make it possible
    that there are two kinds of cell editor ,one is link to action the other is textview.
    because at run time , I need to change the cell property according to some variable's value.
    Thanks in advance.

Maybe you are looking for