INITIALIZATION event of Tabstrips in Selection screens

Hello all.
I created a selection screen with 6 tabs. Each tab is a "standalone" transaction with it's own logic (i.e. tab1 will execute form 1, tab2 will execute form 2 and so on).
In the end each tab will display an ALV report.
The problem: after the display of the ALV or if no data was found (an error msg. is displayed), the screen goes through the INITIALIZATION event and the tabs are reset again into the first (default) tab. So if the user in in tab4 and no data was displayed - he get's the error msg. and the selection screen displays tab1 again. All the selection data the user has entered into tab4 is still kept in tab4.
Is there a way to bypass the INITIALIZATION event or control the activetab?
Thanks and regards...

May be to each subscreen you have given the First screen as next screen, that is why this is happening.....
change the screen numebr of next screen of subscreen to itself.. then u should not get this error
Regards.....

Similar Messages

  • Tabstrip on selection screen

    Hi All,
    I have created selection screen with 3 tab strips.
    i have 2 radios button in each tab strip. My problem is, when i have selected first radio button from 2nd tab strip and execute, then it is executing first tab strip radio button first and when i click on back button then my second tab strip radio button getting executed.
    So could you please do let me know, how to execute directly 2nd tab strip radio button directly wiht out executing first tab strip.
    Regards,
    Jo

    Hello,
    Assign a user command to each tab strip as follows.
    SELECTION-SCREEN BEGIN OF BLOCK sel .
    SELECTION-SCREEN SKIP.
    *---------------------------* TABSTRIP *-------------------------------*
    SELECTION-SCREEN BEGIN OF TABBED BLOCK tabb1 FOR 15 LINES.
    SELECTION-SCREEN TAB (40) title1 USER-COMMAND ucomm1 DEFAULT SCREEN 1001.
    SELECTION-SCREEN TAB (40) title2 USER-COMMAND ucomm2 DEFAULT SCREEN 1002.
    SELECTION-SCREEN TAB (40) title3 USER-COMMAND ucomm3 DEFAULT SCREEN 1003.
    SELECTION-SCREEN END OF BLOCK tabb1.
    SELECTION-SCREEN END OF BLOCK sel.
    *-------------------------* SCREEN 1001 *------------------------------*
    SELECTION-SCREEN: BEGIN OF SCREEN 1001 AS SUBSCREEN          .
    SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE title.
    PARAMETERS: radio_button1  RADIOBUTTON GROUP rad DEFAULT 'X'.
    "Insert all your other radio button in the first tabstrip here
    SELECTION-SCREEN: END OF BLOCK b1                            .
    SELECTION-SCREEN: END OF SCREEN 1001                         .
    *-------------------------* SCREEN 1002 *------------------------------*
    SELECTION-SCREEN: BEGIN OF SCREEN 1002 AS SUBSCREEN          .
    SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME TITLE titlex.
    PARAMETERS: radio_button2 RADIOBUTTON GROUP rad1.
    "Insert all your other radio button in the second tabstrip here
    SELECTION-SCREEN: END OF BLOCK b2                            .
    SELECTION-SCREEN: END OF SCREEN 1002                         .
    *-------------------------* SCREEN 1003 *------------------------------*
    SELECTION-SCREEN: BEGIN OF SCREEN 1003 AS SUBSCREEN          .
    SELECTION-SCREEN: BEGIN OF BLOCK b3 WITH FRAME TITLE titlexx.
    PARAMETERS: radio_button3 RADIOBUTTON GROUP rad2.
    "Insert all your other radio button in the third tabstrip here
    SELECTION-SCREEN: END OF BLOCK b3                            .
    SELECTION-SCREEN: END OF SCREEN 1003                         .
    In this case the first tabstrip has the user command UCOMM1, the second tabstrip has the user command UCOMM2 and likewise for the third and last tabstrip.
    Now in the START-OF-SELECTION event.
    Start by doing a case for active tabs before doing a check which radio button is selected as follows.
    CASE tabb1-activetab.
         WHEN 'UCOMM1'.  "First tabstrip
              CASE 'X'. "To check which radio button is checked
               "Here you do the processing upon the radio button selected.
              WHEN radio_button1. 
                   CALL TRANSACTION 'SE38'.
              ENDCASE.
         WHEN 'UCOMM2'.  "Second tabstrip
              CASE 'X'. "To check which radio button is checked
              "Here you do the processing upon the radio button selected.
              WHEN radio_button2. 
                   CALL TRANSACTION 'SE11'.
              ENDCASE.
         WHEN 'UCOMM3'.  "Third tabstrip
              CASE 'X'. "To check which radio button is checked
              "Here you do the processing upon the radio button selected.
              WHEN radio_button3.
                   CALL TRANSACTION 'SE09'.
              ENDCASE.
    ENDCASE.
    Hope it helps.
    Thanks and Kind Regards,
    Yovish.
    Message was edited by: Yovish Bissessur

  • TabStrip in Selection Screen

    Hi All,
    I have used tabstrip in selection screen of alv report. In tabstrip I have 2 tabs, one is "Initial Run" & second is "Incremental Run".
    I want to check active tab after start of selection and based on active tab my report gives output. Every thing runs perfect in foreground.
    But when I run same thing in background, at that time system uses my default tab (Initial Run) even though I have selected Incremental Run Tab.
    Please help me if I miss any thing in code.
    Regards,
    Meet Gohel

    Hi Meet,
    SELECTION-SCREEN: BEGIN OF TABBED BLOCK tabs FOR 10 LINES,
                      TAB (20) button1 USER-COMMAND push1
                                       DEFAULT SCREEN 200,
                      TAB (20) button2 USER-COMMAND push2
                                       DEFAULT SCREEN 300,
                      END OF BLOCK tabs.
    In the above code tabs is the name of the tabstrip. In your program a global structure with the same name will be created with a structure having three components: prog of type c with length 40, dynnr of type c and length 4, and activetab of type c with length 132. So from trhe value of the component dynnr and activetab of tabs you can know which tab is activated.
    For more details press F1 on the keyword TABBED.
    Regards
    Dillip Sahoo

  • Different Report Output based on different tabstrips on selection screen

    Hi all,
    I have a selection screen which has 3 tabstrips.
    The screen nos are 101,102  and 103.
    Now in each tab there are different input parameters and based on each tab there will be 3 different outputs.
    i.e when I click on tab1 and give the required inputs i will get 1 report output.
    similarly I will get different ouput in the other 2 tabs.
    Can any one suggest some solution how to achieve this.
    Thanks and Regards
    Nazmul Azad

    Look for documentation at [SELECTION-SCREEN - TABBED BLOCK |http://help.sap.com/abapdocu/en/ABAPSELECTION-SCREEN_TABBED.htm]
    Adapgt the sample provided, and in the START-OF-SELECTON event add a CASE/WHEN to execute whichever report you want based on mytab-dynnr value.
    Regards,
    Raymond

  • How to save varaint in a report program with tabstrip in selection-screen

    Hi Gurus,
    We have a custom report program and selection screen of this program has a tabstrip of 9 tabs. This program will run in background job and we are facing problem to save variant for this report program. 
    We saved one variant with 'TAB2' populated. But when we execute the report and select that variant and we are not navigated to 'TAB2' automatically. So, code for TAB2 is not triggerd and we are not getting desired output.
    When we set this program with variant in Job, program is not navigated to 'TAB2' as per variant setup.
    Is there any way to save variant for this kind of report ?
    Please help with your suggestions
    Thanks & Regards
    Chandan

    Thanks for your help.
    I found during debugging that it is holding the sy-ucomm of the first tab as default value.  So, I declared a new field in selection screen with No-Display option. When user will select a tab, this new field will hold the value of that sy-ucomm. As this field is in selection screen, it is getting stored in variant also.
    In start-of-selection of program I am checking this field value and accordingly set the TABSTRIP.
    Thanks again for your help.....
    Regards,
    Chandan

  • Include a dialog screen in tabstrip of selection-screen

    Hi All,
    Could anyone please tell me how to include a dialog screen into selection-screen? We have a normal selection screen for a report but now we need to add some more function and this requires to key in material number in first column and quantity in second column in a tabstrip subscreen(eg. screen 2000) and put current select-options(screen 1000) in another tabstrip to make user easily switch between new filters and previous filters. I've no idea if it's possible to have a dialog screen included in a tabstrip in the selection-screen. So please give me some suggestion. Thanks.
    Best Regards,
    Jeff

    Hi Jeff,
    In the selection screen you need to call a custom tab strip that would have two sub-screens 1000 and 2000. It is completely designing of tab strip and its code manipulation.
    Did you search for TAB STRIP IN SELECTION-SCREEN ?
    This will  help you in from start-up designing of tab-strip. It's not possible here in forum to explain all the steps in details.
    For your help you can refer the link
    [Sub-screen in Tab strip|Tabstrip and Subscreen;
    This link gives you a complete idea on Tab strip
    [Creating a Tab Strip Control|http://help.sap.com/saphelp_nw04/helpdata/en/04/10f2469e0811d1b4700000e8a52bed/frameset.htm]
    Still you can search and find more as per your requirement.

  • Tabstrip on selection screen and validations

    Hi,
    I need to validate the selection screen data which is entered in tab strips.
    I need help in writing the validation for the data as below:
    If the MATERIAL (on tab1) is blank then the fields on tab2 are mandatory.
    AND if the MATERIAL (on tab1) is blank then the fields on tab2 are NOT mandatory.
    The code is as follows
    REPORT  ztest123.
    TABLES kna1.
    TABLES : sscrfields, vbap.
    DATA  gv_activetab(6) TYPE c .
    SELECTION-SCREEN BEGIN OF SCREEN 001 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS p_matnr TYPE mara-matnr.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN END OF SCREEN 001.
    SELECTION-SCREEN BEGIN OF SCREEN 002 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    SELECT-OPTIONS:  so_kunnr  FOR kna1-kunnr NO INTERVALS NO-EXTENSION.
    SELECT-OPTIONS:  so_datum  FOR vbap-erdat NO-EXTENSION." DEFAULT sy-datum.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN END OF SCREEN 002.
    SELECTION-SCREEN BEGIN OF TABBED BLOCK tabb1 FOR 5 LINES.
    SELECTION-SCREEN TAB (15) tabs1 USER-COMMAND ucomm1 DEFAULT SCREEN 001.
    SELECTION-SCREEN TAB (15) tabs2 USER-COMMAND ucomm2.
    SELECTION-SCREEN END OF BLOCK tabb1.
    AT SELECTION-SCREEN .
      CASE sscrfields-ucomm.
        WHEN 'UCOMM1'.
          tabb1-prog = sy-repid.
          tabb1-dynnr   = 001.
          tabb1-activetab = 'TABS1'.
          gv_activetab = 'TABS1' .
        WHEN 'UCOMM2'.
          tabb1-prog = sy-repid.
          tabb1-dynnr   = 002.
          tabb1-activetab = 'TABS2'.
          gv_activetab = 'TABS2'.
      ENDCASE.
    START-OF-SELECTION.
      CASE gv_activetab.
        WHEN 'TABS1'.
          WRITE: 'Material ' .
        WHEN 'TABS2'.
          WRITE: 'Plant '.
      ENDCASE.

    you have to do 2 things
    1) set fields mandatory
    IF p_matnr IS INITIAL.
        LOOP AT SCREEN.
          IF screen-name EQ 'SO_KUNNR-LOW'.
            screen-required = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    2) ensure the program is not run without a value, because the point 1 will be done only if user goes through tabstrip 2
    AT SELECTION-SCREEN .
      IF sscrfields-ucomm EQ 'ONLI'.
        IF p_matnr IS INITIAL.
          IF so_kunnr-low IS INITIAL.
            sscrfields-ucomm = 'UCOMM2'.
          ENDIF.
        ENDIF.
      ENDIF.
      CASE sscrfields-ucomm.
        WHEN 'UCOMM1'.

  • Selection screen list values initiating problem

    Hi All,
    I have designed a selection screen with list and initiating that list in initialization event. When i run the report through se38 the list is populated with values. But if i run the report through T-CODE the list is not populated with values.
    why?
    Thanx in advance

    Hello,
    My understanding says that initialization event is triggered before selection screen gets generated.
    So, i would suggest you write the code in At selection screen Output.
    I have came across same problem and this thing worked in my case.
    Regards,
    Jacky.

  • 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

  • Reg: Selection screen tabstrip

    Hi all,
      I need to create a screen with tab strip and inside the tab it should hold a subscreen containing text element and checkbox and a  button.
    This is to be done using the selection-screen begin of screen method and not as a module pool.
    SELECTION-SCREEN BEGIN OF SCREEN 9000 TITLE title.
    SELECTION-SCREEN: BEGIN OF TABBED BLOCK mytab FOR 10 LINES,
                        TAB (20) button1 USER-COMMAND push1,
                      END OF BLOCK mytab.
    SELECTION-SCREEN END OF SCREEN 9000.
    I tried by above way but it's going to dump.
    Kindly help me on this by providing a sample code as to how to go about it.
    Thanks in advance,
    Krithika

    Hi
    Sample programs:
    DEMO_DYNPRO_TABSTRIP_LOCAL Tabstrip Control - Scrolling at SAPgui
    DEMO_DYNPRO_TABSTRIP_SERVER Tabstrip Control - Scrolling at Application Server
    DEMO_SEL_SCREEN_IN_TABSTRIP Selection Screen as Subscreen in Tabstrip
    DEMO_SEL_SCREEN_WITH_TABSTRIP Selection Screen with Tabstrips
    SELECTION-SCREEN: BEGIN OF TABBED BLOCK selec FOR 17 LINES,
                        TAB (23) button1 USER-COMMAND push1,
                        TAB (23) button2 USER-COMMAND push2,
                        TAB (23) button3 USER-COMMAND push3
                        DEFAULT SCREEN 1001,
                        END OF BLOCK selec.
      SELECTION-SCREEN BEGIN OF SCREEN 1001 AS SUBSCREEN.
      SELECTION-SCREEN END OF SCREEN 1001.
      SELECTION-SCREEN BEGIN OF SCREEN 1002 AS SUBSCREEN.
      SELECTION-SCREEN END OF SCREEN 1002.
      SELECTION-SCREEN BEGIN OF SCREEN 1003 AS SUBSCREEN.
      SELECTION-SCREEN END OF SCREEN 1003.
    Initialization
    INITIALIZATION.
      button1 = text-det.
      button2 = text-sup.
      button3 = text-mef.
      selec-prog = sy-repid.
      selec-dynnr = 1001.
      selec-activetab = 'BUTTON1'.
    Managing the keys
    AT SELECTION-SCREEN.
      CASE sy-ucomm.
        WHEN 'PUSH1'.
          selec-dynnr = 1001.
          selec-activetab = 'BUTTON1'.
        WHEN 'PUSH2'.
          selec-dynnr = 1002.
          selec-activetab = 'BUTTON2'.
        WHEN 'PUSH3'.
          selec-dynnr = 1003.
          selec-activetab = 'BUTTON3'.
      ENDCASE.
    2)  DATA flag(1) TYPE c.
    SUBSCREEN 1
    SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS: p1(10) TYPE c,
    p2(10) TYPE c,
    p3(10) TYPE c.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN END OF SCREEN 100.
    SUBSCREEN 2
    SELECTION-SCREEN BEGIN OF SCREEN 200 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
    PARAMETERS: q1(10) TYPE c OBLIGATORY,
    q2(10) TYPE c OBLIGATORY,
    q3(10) TYPE c OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN END OF SCREEN 200.
    STANDARD SELECTION SCREEN
    SELECTION-SCREEN: BEGIN OF TABBED BLOCK mytab FOR 10 LINES,
    TAB (20) button1 USER-COMMAND push1,
    TAB (20) button2 USER-COMMAND push2,
    TAB (20) button3 USER-COMMAND push3
    DEFAULT SCREEN 300,
    END OF BLOCK mytab.
    INITIALIZATION.
    button1 = text-010.
    button2 = text-020.
    button3 = text-030.
    mytab-prog = sy-repid.
    mytab-dynnr = 100.
    mytab-activetab = 'BUTTON1'.
    AT SELECTION-SCREEN.
    CASE sy-dynnr.
    WHEN 1000.
    CASE sy-ucomm.
    WHEN 'PUSH1'.
    mytab-dynnr = 100.
    mytab-activetab = 'BUTTON1'.
    WHEN 'PUSH2'.
    mytab-dynnr = 200.
    mytab-activetab = 'BUTTON2'.
    ENDCASE.
    WHEN 100.
    MESSAGE s888(sabapdocu) WITH text-040 sy-dynnr.
    WHEN 200.
    MESSAGE s888(sabapdocu) WITH text-040 sy-dynnr.
    ENDCASE.
    MODULE init_0100 OUTPUT.
    LOOP AT SCREEN.
    IF screen-group1 = 'MOD'.
    CASE flag.
    WHEN 'X'.
    screen-input = '1'.
    WHEN ' '.
    screen-input = '0'.
    ENDCASE.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    ENDMODULE.
    MODULE user_command_0100 INPUT.
    MESSAGE s888(sabapdocu) WITH text-050 sy-dynnr.
    CASE sy-ucomm.
    WHEN 'TOGGLE'.
    IF flag = ' '.
    flag = 'X'.
    ELSEIF flag = 'X'.
    flag = ' '.
    ENDIF.
    ENDCASE.
    ENDMODULE.
    START-OF-SELECTION.
    WRITE: / 'P1:', p1,'Q1:', q1,
    / 'P2:', p2,'Q2:', q2,
    / 'P3:', p3,'Q3:', q3.
    <b>Reward if usefull</b>

  • Tabbed selection screen with AT SELECTION-SCREEN ON events does not work

    I have a selection screen with 3 tabs fields on each tab have AT SELECTION-SCREEN ON field events.  
    If you are on tab 1 and select a variant that populates fields on all tabs and then click the execute button ABAP does not seem to recognize that the field has changed when it executes AT SELECTION-SCREEN ON field event unless you physically go to each tab.
    I can work around this by:
    1) moving all of the AT SELECTION-SCREEN ON field events in a AT SELECTION-SCREEN OUTPUT event.  This is not efficient and it potentially opens me up to other problems.
    2) changing the selection screen to remove the tabs and have all of the fields on 1 screen.  This makes for a very long screen.
    Is there any way to have ABAP check all tabs?
    Thanks,
    Jerry

    I finally got it to start.   Let it sit and tried and it wouldn't but then I tried again and it did.  How do I blow the dust out?   I think it must be something with the heat since that comes up alot. 
    I will do it, I love my Mac.

  • Enforcing event AT-SELECTION-SCREEN OUTPUT

    Hi Gurus
    Does anybody know how to force event AT-SELECTION-SCREEN OUTPUT ?
    What I'm aiming for is changing screen somewere outside of this event. For example.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_param.
      IF p_param = 'change'.
        changes_in_screen = 'X'.
        *???*   "forcing AT-SELECTION-SCREEN OUTPUT event
      ENDIF.
    AT-SELECTION-SCREEN OUTPUT.
      IF changes_in_screen = 'X'.
        LOOP AT SCREEN.
          "do something
        ENDLOOP.
      ENDIF.
    I would be grateful for any hints.

    One alternative to define two selection screens.  First selection screen (default selection screen of report #1000) having Client_type.  After user hits execute (F8) then show the second selection screen with corresponding parameters.
    PARAMETERS: p_client(1).
    SELECTION-SCREEN BEGIN OF SCREEN 9000 AS WINDOW.
    PARAMETERS: p_name(20),
                p_lname(20),
                p_cname(20),
                p_oname(20).
    SELECTION-SCREEN END OF SCREEN 9000.
    AT SELECTION-SCREEN OUTPUT.
      CHECK sy-dynnr = '9000'.
    *  Hide corresponding fields on second selection screen
    *  based on values of P_CLIENT.
    *  Also should make key parameters obligatory!
    START-OF-SELECTION.
      CALL SELECTION-SCREEN 9000 STARTING AT 5 5.
    Another alternative is to use a dialog/module pool program to handle this.  Such screen field controlling can easily be done in dialog programs because you have full PAI/PBO control, unlike report program selection screen 1000.  Unfortunately in a dialog program it is not easy to reproduce the functionality of a select-option.

  • How to prevent AT SELECTION-SCREEN event on second Selection Screen

    Hi All
    I have a program in which I am entering some parameters in a selection screen and also validating them in AT SELECTION-SCREEN events. After validating them the program shows another selection screen in which I have some push-buttons. I have some events on those push-buttons also.
    However I am facing a different problem now. When I execute the second selection screen I get the report, and when I click on back button then it again triggers the AT SELECTION SCREEN event of the first selection screen and displays the related messages.
    How to prevent this ? Is there any way where I can restrict the execution of selection screen events for a particular selection screen?
    Amol

    Hi,
        try this logic when Ist selection screen validation
         is done set a flag = 'X' .
          at selection-screen.
          if glag is initial
           *screen validation
               flag = 'X..     
          endif.
    regards
    amole

  • From ALV output list to selection screen

    Hi,
    I created one ALV report.
    After executing the program, it displays an ALV list.
    When I click on the back/exit/cancel buttons on the screen, it should take me to the selection screen.
    But that is not happening. it is taking to one screen which shows the report heading. IF i click back/cancel/exit buttons in this screen, it is taking me to the selection screen.
    I checked the program for any write statement, but therre are no write statements.
    Even i tried to remove the end-of-selection event in the program. but not working.
    Can any one help me on this how to overcome this issue.
    Thank you.
    Kumar

    hi check this example...
    REPORT zalv_sel_screen .TABLES: mara.DATA: BEGIN OF i_alv OCCURS 0,
          matnr TYPE mara-matnr,
          mtart TYPE mara-mtart,
          matkl TYPE mara-matkl,
          groes TYPE mara-groes,
          maktx TYPE makt-maktx,
          END OF i_alv.DATA: alv_container  TYPE REF TO cl_gui_docking_container.
    DATA: alv_grid       TYPE REF TO cl_gui_alv_grid.
    DATA: layout    TYPE lvc_s_layo.
    DATA: fieldcat  TYPE lvc_t_fcat.PARAMETERS: p_check.INITIALIZATION.  PERFORM get_data.AT SELECTION-SCREEN OUTPUT.  DATA: variant TYPE  disvariant.
      DATA: repid TYPE sy-repid.  repid = sy-repid.  variant-report = sy-repid.
      variant-username = sy-uname.  layout-zebra = 'X'.
      layout-edit_mode = 'X'.  CHECK alv_container IS INITIAL.  CREATE OBJECT alv_container
                  EXPORTING repid     = repid
                            dynnr     = sy-dynnr
                            side      = alv_container->dock_at_left
                            extension = 1500.  CREATE OBJECT alv_grid
             EXPORTING
                   i_parent          =  alv_container.*  ALV Specific. Data selection.
    Populate Field Catalog
      PERFORM get_fieldcatalog.  CALL METHOD alv_grid->set_table_for_first_display
        EXPORTING
          is_layout        = layout
          is_variant       = variant
          i_save           = 'U'
          i_structure_name = 'I_ALV'
        CHANGING
          it_outtab        = i_alv[]
          it_fieldcatalog  = fieldcat[].
    START-OF-SELECTION.
    FORM GET_DATA
    FORM get_data.  SELECT * INTO CORRESPONDING FIELDS OF TABLE i_alv
            FROM mara
              INNER JOIN makt
                ON maramatnr = maktmatnr
                       UP TO 100 ROWS
                   WHERE makt~spras = sy-langu.  SORT i_alv ASCENDING BY matnr.ENDFORM.                    "get_data***************************************************************
         Form  Get_Fieldcatalog - Set Up Columns/Headers
    FORM get_fieldcatalog.  DATA: ls_fcat TYPE lvc_s_fcat.
      REFRESH: fieldcat.  CLEAR: ls_fcat.
      ls_fcat-reptext    = 'Material Number'.
      ls_fcat-fieldname  = 'MATNR'.
      ls_fcat-ref_table  = 'I_ALV'.
      ls_fcat-outputlen  = '18'.
      ls_fcat-fix_column = 'X'.
      ls_fcat-key        = 'X'.
      ls_fcat-col_pos    = '1'.
      APPEND ls_fcat TO fieldcat.  CLEAR: ls_fcat.
      ls_fcat-reptext    = 'Material Type'.
      ls_fcat-fieldname  = 'MTART'.
      ls_fcat-ref_table  = 'I_ALV'.
      ls_fcat-outputlen  = '10'.
      ls_fcat-fix_column = 'X'.
      ls_fcat-key        = 'X'.
      ls_fcat-col_pos    = '2'.
      APPEND ls_fcat TO fieldcat.  CLEAR: ls_fcat.
      ls_fcat-reptext    = 'Material Group'.
      ls_fcat-fieldname  = 'MATKL'.
      ls_fcat-ref_table  = 'I_ALV'.
      ls_fcat-outputlen  = '12'.
      ls_fcat-col_pos    = '3'.
      APPEND ls_fcat TO fieldcat.  CLEAR: ls_fcat.
      ls_fcat-reptext    = 'Size'.
      ls_fcat-fieldname  = 'GROES'.
      ls_fcat-ref_table  = 'I_ALV'.
      ls_fcat-outputlen  = '30'.  ls_fcat-col_pos    = '4'.
      APPEND ls_fcat TO fieldcat.  CLEAR: ls_fcat.
      ls_fcat-reptext    = 'Material Description'.
      ls_fcat-fieldname  = 'MAKTX'.
      ls_fcat-ref_table  = 'I_ALV'.
      ls_fcat-outputlen  = '40'.  ls_fcat-col_pos    = '5'.
      APPEND ls_fcat TO fieldcat.ENDFORM.                    "get_fieldcatalog
    regards,
    venkat

  • Selection-screen logical database PCH

    Hello!!
       I need click a pushbutton (key date) on a selection screen of a logical database (PCH) before the programm is executed.
    Regards.

    For a ABAP I used this "quick and dirty" solution:
    *Add selectoption (or in your case button)
    SELECT-OPTIONS s_ssl FOR iooper-ssavd.
    INITIALIZATION.
    perform hide_selection_screen.
    AT SELECTION-SCREEN output.
    perform hide_selection_screen.
    FORM perform hide_selection_screen.
      LOOP AT SCREEN.
        IF screen-name CS 'S_WERK'.
          MOVE '0' TO screen-active.
          MODIFY SCREEN.
        ENDIF.
    ENDLOOP.
    ENDFORM perform hide_selection_screen.
    You can hide all required radiobuttons by adding them to the loop. The buttonclick can be catched at the previous mentioned event.

Maybe you are looking for

  • Want to upgrade from 10.7.5 on my MBP

    I want to upgrade the software on my MBP.  My current software is 10.7.5 and i want 10.8.2. I have the new download but my MBP wont let me install it as it says I Need 10.8 first. I have tried to find this but I'm struggling as i think i need another

  • Can I re-install OS X v10.5.8 on a Mac that's been updated to OS X 10.6.x?

    I'm looking to buy a used 2007 or 2008 imac. For some reason none of them seem to come with the orig. install discs, & most have been updated to either Snow leopard, or Lion. (It may sound odd to want to do this, but I have an Epson 545 printer, & th

  • Essbase secuirty

    Hi, We are having some users with write back functionality to cube through smart view. We created a group and did assigned the native user and Ldap user to the group and i did provisioned the group with filter access.and we did refresh security in EA

  • Star Wars Bundle?

    I preordered Star Wars episodes 4, 5, & 6. I wanted to do the bundle of all 6 movies that other people were providing but since I tunes would not let you preorder the bundle I preordered just the last 3 movies. Now iTunes is offering the star wars bu

  • Installing Lightroom 4 on a second laptop

    I purchased Lightroom 4 a few years ago and would like to install it on a second computer for my own personal use.  How can I do this?  I believe that I downloaded the program from the adobe website, so I do not have a disc.  Even if I did, I'm putti