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

Similar Messages

  • 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

  • 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

  • Exception (colouring cells) in report output based on formula.

    Hi Gurus,
    I want to colour my cells in report output. But this coloring is not so simple. It has to be done based on a formula.
    Lets say i have material in rows and sales value by period in columns.
    .......................Jan'08......Feb'08.......Mar'08.....Apr'08
    Material A...........100..........120............105.........140
    If Feb'08 values is greater than 0,02*Jan'08 value than ---> Feb'08 has to be coloured as green. etc.
    Is it possible to define such a rule for the exception?
    Thanks
    S.P.

    Hi Reddy,
    I am using bex 7.0.
    I tried that also.
    I created another formula in columns with name "Difference" and it calculates the difference.
    Report looks like as below:
    Material.....Jan'08.......Feb'08.....Difference
    ABC............100............120.............0,2
    Now, I have to colour Feb'08 column, based on the value under Difference column. But it does not work.
    In Exception settings; from Definition tab, I selected Difference column (exception is based on).
    In Display tab, I select Feb'08 column.
    But it does not work.
    Any idea?
    Thanks
    S.P.

  • 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

  • Output list based on the input at selection screen by checkbox

    i have three fields  in the selection screen .each  one has  a checkbox and by default every checkbox is unchecked .based on the user's selection the output list will display the results.if he had selected two fields  the list will show him values pertaining to those fields.
    plz  revert back with the solution.
    <b><REMOVED BY MODERATOR></b>
    Message was edited by:
            Alvaro Tejada Galindo

    Check the below program :
    REPORT ZSAI1.
    parameters: p_check as checkbox default 'X',
                 p_check1 as checkbox default 'X',
    p_check2 as checkbox default 'X'.
    start-of-selection.
    if p_check = 'X'.
    write:/ 'First check box selected'.
    endif.
    if p_check1 = 'X'.
    write:/ 'Second check box selected'.
    endif.
    if p_check2 = 'X'.
    write:/ 'Third check box selected'.
    endif.
    Thanks
    Seshu

  • Report OutPut directly to  the printer by selecting in the selection screen

    Hi Guys,
    Can any one help,
    How to give Report output (ALV report ) directly to the printer by selecting the printer name in the selection screen .
    Sap Version is ECC 6.0.
    Thanks In advance
    praveen k

    hi,
    u can do it using submit statement.
    SUBMIT TO SAP-SPOOL
    Basic form
    SUBMIT rep ... TO SAP-SPOOL.
    Extras:
    1.... DESTINATION dest         ... COPIES cop
            ... LIST NAME name
            ... LIST DATASET dsn
            ... COVER TEXT text
            ... LIST AUTHORITY auth
            ... IMMEDIATELY flag
            ... KEEP IN SPOOL flag
            ... NEW LIST IDENTIFICATION flag
            ... DATASET EXPIRATION days
            ... LINE-COUNT lin
            ... LINE-SIZE  col
            ... LAYOUT layout
            ... SAP COVER PAGE mode
            ... COVER PAGE flag
            ... RECEIVER rec
            ... DEPARTMENT dep
            ... ARCHIVE MODE armode
            ... ARCHIVE PARAMETERS arparams
            ... WITHOUT SPOOL DYNPRO
    2. ... SPOOL PARAMETERS params
             ... ARCHIVE PARAMETERS arparams
             ... WITHOUT SPOOL DYNPRO
    3. ... Further parameters (for passing variants)
            are described in the documentation for SUBMIT
    The syntax check performed in an ABAP Objects context is stricter than in other ABAP areas. See Missing print parameters with SUBMIT.
    Effect
    Calls the report rep with list output to the SAP spool database.
    Additions
    ... DESTINATION dest(output device)
    ... COPIES cop(number of copies)
    ... LIST NAME name(name of list)
    ... LIST DATASET dsn(name of spool dataset)
    ... COVER TEXT text(title of spool request)
    ... LIST AUTHORITY auth(authorization for display)
    ... IMMEDIATELY flag(print immediately ?)
    ... KEEP IN SPOOL flag(keep list after print ?)
    ... NEW LIST IDENTIFICATION flag(new spool request ?)
    ... DATASET EXPIRATION days(number of days list
    retained)
    ... LINE-COUNT lin ( lin lines per page)
    ... LINE-SIZE  col(col columns per line)
    ... LAYOUT layout(print format)
    ... SAP COVER PAGE mode(SAP cover sheet ?)
    ... COVER PAGE flag(selection cover sheet ?)
    ... RECEIVER rec(SAP user name of
    recipient)
    ... DEPARTMENT dep(name of department)
    ... ARCHIVE MODE armode(archiving mode)
    ... ARCHIVE PARAMETERS arparams(structure with archiving
    parameters)
    ... WITHOUT SPOOL DYNPRO(skip print control screen)
    With the parameters IMMEDIATELY, KEEP IN SPOOL, NEW LIST IDENTIFICATION and COVER TEXT, flag must be a literal or character field with the length 1. If flag is blank, the parameter is switched off, but any other character switches the parameter on. You can also omit any of the sub-options of PRINT ON. mode with SAP COVER PAGE can accept the values ' ', 'X' and 'D'. These values have the following meaning:
    ' ' : Do not output cover sheet
    'X' : Output cover sheet
    'D' : Cover sheet output according to printer setting
    armode with ARCHIVE MODE can accept the values '1', '2' and '3'. These values have the following meaning:
    '1' : Print only
    '2' : Archive only
    '3' : Print and archive
    arparams with ARCHIVE PARAMETERS must have the same structure as ARC_PARAMS. This parameter should only be processed with the function module GET_PRINT_PARAMETERS.
    Effect
    Output is to the SAP spool database with the specified parameters. If you omit one of the parameters, the system uses a default value. Before output to the spool, you normally see a screen where you can enter and/or modify the spool parameters. However, you can suppress this screen with the following statement:
    ... TO SAP-SPOOL WITHOUT SPOOL DYNPRO
    You could use this option if all the spool parameters have already been set!
    reward points if hlpful.
    Note
    When specifying the LINE-SIZE, you should not give any value > 132 because most printers cannot print wider lists.
    Addition 2
    ... SPOOL PARAMETERS params(structure with print
    parameters)
    ... ARCHIVE PARAMETERS arparams(Structure with archive
    parameters)
    ... WITHOUT SPOOL DYNPRO(skip print parameters
    screen)
    Effect
    Output is to the SAP spool database with the specified parameters. The print parameters are passed by the field string params which must have the structure of PRI_PARAMS. The field string can be filled and modified with the function module GET_PRINT_PARAMETERS. The specification arparams with ARCHIVE PARAMETERS must have the structure of ARC_PARAMS. This parameter should only be processed with the function module GET_PRINT_PARAMETERS. Before output to the spool, you normally see a screen where you can enter and/or modify the spool parameters. However, you can suppress this screen with the following statement:
    ... WITHOUT SPOOL DYNPRO
    Example
    Without archiving
    DATA: PARAMS LIKE PRI_PARAMS,
          DAYS(1)  TYPE N VALUE 2,
          COUNT(3) TYPE N VALUE 1,
          VALID    TYPE C.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING DESTINATION           = 'LT50'
                COPIES                = COUNT
                LIST_NAME             = 'TEST'
                LIST_TEXT             = 'SUBMIT ... TO SAP-SPOOL'
                IMMEDIATELY           = 'X'
                RELEASE               = 'X'
                NEW_LIST_ID           = 'X'
                EXPIRATION            = DAYS
                LINE_SIZE             = 79
                LINE_COUNT            = 23
                LAYOUT                = 'X_PAPER'
                SAP_COVER_PAGE        = 'X'
                COVER_PAGE            = 'X'
                RECEIVER              = 'SAP*'
                DEPARTMENT            = 'System'
                NO_DIALOG             = ' '
      IMPORTING OUT_PARAMETERS        = PARAMS
                VALID                 = VALID.
    IF VALID <> SPACE.
      SUBMIT RSTEST00 TO SAP-SPOOL
        SPOOL PARAMETERS PARAMS
        WITHOUT SPOOL DYNPRO.
    ENDIF.
    Example
    With archiving
    DATA: PARAMS   LIKE PRI_PARAMS,
          ARPARAMS LIKE ARC_PARAMS,
          DAYS(1)  TYPE N VALUE 2,
          COUNT(3) TYPE N VALUE 1,
          VALID    TYPE C.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING DESTINATION            = 'LT50'
                COPIES                 = COUNT
                LIST_NAME              = 'TEST'
                LIST_TEXT              = 'SUBMIT ... TO SAP-SPOOL'
                IMMEDIATELY            = 'X'
                RELEASE                = 'X'
                NEW_LIST_ID            = 'X'
                EXPIRATION             = DAYS
                LINE_SIZE              = 79
                LINE_COUNT             = 23
                LAYOUT                 = 'X_PAPER'
                SAP_COVER_PAGE         = 'X'
                COVER_PAGE             = 'X'
                RECEIVER               = 'SAP*'
                DEPARTMENT             = 'System'
                SAP_OBJECT             = 'RS'
                AR_OBJECT              = 'TEST'
                ARCHIVE_ID             = 'XX'
                ARCHIVE_INFO           = 'III'
                ARCHIVE_TEXT           = 'Description'
                NO_DIALOG              = ' '
      IMPORTING OUT_PARAMETERS         = PARAMS
                OUT_ARCHIVE_PARAMETERS = ARPARAMS
                VALID                  = VALID.
    IF VALID <> SPACE.
      SUBMIT RSTEST00 TO SAP-SPOOL
        SPOOL PARAMETERS PARAMS
        ARCHIVE PARAMETERS ARPARAMS
        WITHOUT SPOOL DYNPRO.
    ENDIF.

  • Selection screen modification based on various buttons in selection screen

    Hi,
    I have 1 query related with Selection screen modification.
    In my Report Program,I have created GUI Status for my selection screen
    Now 2 buttons in application toolbar are coming on selection sceen.
    For this i used,'At selection screen output' event.
    And there are 2 blocks on selection screen.
    If user press button1 then block2 should not display.
    and if user press button2 then block1 should not display.
    but the problem is i m not getting reqd result and also while doing debugging its not showing me sy-ucomm value.
    Any pointers on this.
    Thanks,
    Mamta

    Hi Mamta,
       have it in a group then you can write code accordingly see sample example,
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS       : p_r1 RADIOBUTTON GROUP rad
                            USER-COMMAND clk DEFAULT 'X'.            " upload Radio Button
    SELECTION-SCREEN COMMENT 5(35) text-003.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN : BEGIN OF BLOCK 001 WITH FRAME TITLE text-001.
    PARAMETERS: p_upl       LIKE rlgrap-filename MODIF ID a           "Upload File
                             DEFAULT 'c:\temp\parbmat.xls',
                p_werks     like t001w-werks MODIF ID a,              "Plant
    PARAMETERS: p_rest      LIKE rlgrap-filename MODIF ID a           "Dwonload File Path
                             DEFAULT 'c:\temp\Success.xls'.
    SELECTION-SCREEN : END OF BLOCK 001.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : p_r2 RADIOBUTTON GROUP rad.
    SELECTION-SCREEN COMMENT 5(35) text-004.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN : BEGIN OF BLOCK 002 WITH FRAME TITLE text-002.
    PARAMETERS     : p_plant  LIKE marc-werks MODIF ID b.                "Plant
    PARAMETERS     : p_lgort  LIKE mard-lgort MODIF ID b.                "Storage Location
    PARAMETERS     : p_vkorg  LIKE mvke-vkorg MODIF ID b.                "Sales Organization
    PARAMETERS     : p_vtweg  LIKE mvke-vtweg MODIF ID b.                "Distribution Channel
    SELECT-OPTIONS : s_mat FOR  mara-matnr MODIF ID b.                  "Material No No
    SELECT-OPTIONS : s_dat FOR  mara-ersda MODIF ID b.                  "Date on Record Created
    PARAMETERS     : p_down LIKE rlgrap-filename MODIF ID b
                      DEFAULT 'c:\temp\Material Master.xls'.           "Download File Path
    SELECTION-SCREEN : END OF BLOCK 002.
    AT SELECTION-SCREEN OUTPUT.
    *Inactive Fields depending on the radio button
      LOOP AT SCREEN.
        IF p_r1 = 'X'.
          IF screen-group1 = 'B'.
            screen-active = 0.
          ENDIF.
        ELSEIF p_r2 = 'X'.
          IF screen-group1 = 'A'.
            screen-active = 0.
          ENDIF.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    Edited by: suresh suresh on Jul 28, 2009 12:42 PM
    Edited by: suresh suresh on Jul 28, 2009 12:42 PM

  • 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.

  • ALV - selecting the data based on layout set in selection screen

    Hi,
    I have an ALV report (Custom). I want to give layout selection at selection screen, so the user can create/select/manage layout at the time of selection screen and only these columns will be displayed in the final output. Instead user execute the report for all column and at the end user select the layout. I want this layout at the selection screen level like the standard reports.
    Thanks,

    You can do the following
    When the user clicks on download
    1.Use FM REUSE_ALV_LIST_LAYOUT_INFO_GET / REUSE_ALV_GRID_LAYOUT_INFO_GET to get the Fieldcat (since due to selection of layout on sel screen some columns are disabled. For the columns which have been disabled the resultant Fieldcat from the above FMs would have NO_OUT = 'X'. Delete columns from Fieldcat itab where no_out = 'X'
    2.create a dynamic itab using cl_alv_table_create=>create_dynamic_table( )  passing the above Fieldcat itab, get a handle of new itab
    3.loop over the original itab and fill the new dynamic itab
    hope this helps...

  • 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'.

  • MSS report not passing values from portal to selection screen fields

    Hello Gurus,
    We have a problem with Sickness Absences report in MSS which is a Z copy of the standard report RPTABS20.
    The problem is when the manager defines the selection criteria and selects the other period dates and under Organizational View - selects All Organizational Units and highlights one org unit and report results, then the report displays the employees which are currently not part of same org unit as selected in selection criteria. But these employees were present in this org unit in past when they took leave, which comes under the same period as given on selection screen. So in a way it seems to be right. But the requirement is to only display the employees which are currently present in this org unit.
    The report seems to be working fine in backend where we specified the same date range and org unit on selection screen.
    On our investigation in portal we came to know that the org unit field on selection screen PNPORGEH is not getting filled with org unit number selected on portal.
    On further investigation in debugging we came across the fm HRWPC_RPT_START_REPORT which calls fm HRWPC_RPT_FCODE_EXEC which in turn calls fm HR_HIS_EXECUTE and it executes the report with following code:
        SUBMIT (repos-repid)  AND RETURN
               USING SELECTION-SET repos-varit
               WITH pnpindex IN objid_ranges
               WITH pnptimed eq ' '
               WITH pnpbegps eq act_begda
               WITH pnpendps eq act_endda
               WITH pnpbegda eq act_begda
               WITH pnpendda eq act_endda
               WITH p_super  eq space.
    Looks like the standard code is not passing the org unit to the selection screen of the report.
    Request you to kindly guide if this is a SAP standard problem or the report is not configured properly ?

    Please check steps as mentioned here
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=199820849
    and report variant, check your evaluation paths if it is being refreshed correctly, click twice to refresh.
    check tje note 1431691
    When the report is launched from
    the portal, the program is reading the table:T77eo for the object
    type-'O' , since there are no entries for the object 'O' in the table,
    the switch INREL is not set, therefore the structure pchobjid is not
    filled while calling the report as shown below. Now I know the
    rootcause, but I don;t know the reason behind the table: T77EO not
    having entries for object "O".
    ==============================================================
        SUBMIT (fcode_rec-progname)
        USING SELECTION-SET fcode_rec-variant
        AND RETURN
                       WITH pchplvar EQ act_plvar
                       WITH pchotype EQ act_otype
                       WITH pchobjid IN pchobjid
                       WITH pchsobid IN pchsobid
                       WITH pchobeg  EQ act_begda
                       WITH pchoend  EQ act_endda
                       WITH pchbegda EQ act_begda
                       WITH pchendda EQ act_endda.
    try to use PNP database for seleciton only these paramters are passed to backend!

  • Submir Report "RSNAST00" and passing parametrs to the selection screen

    Hello ABAP,
    I have to code a Report/TA which gathers some info and then calls RSNAST00.
    The info gathering part is done.
    The info gathered shall be transferred to the report RSNAST00 or to it´s selection screen, tho the selection screen should not be visible. And then RSNAST00 shall do it´s normal job.
    Any hints how i can pass those parameters and make that selection screen not appear?

    Hi florian,
    1. We have to use the comand SUBMIT with the program name and some extensions.
       (please see F1 help on it)
    2. This will call the required program.
    3. We can also pass the required values using WITH Var1 = Val1
    4. we can use the extension AND RETURN so that the selection screen of RSNAST00 does not appear on screen.
    regards,
    amit m.

  • REPORT PAINTER - Add a field to a selection screen - custom report

    Hi,
    I'm trying to add a field to a selection screen to a CUSTOM REPORT that has been made in REPORT PAINTER (Y_DVL_xxxxxxx). How should I proceed to do so?
    Thanks a lot,
    Julien

    Hi Julien Girard ,
        Could you please check the below link :
    http://help.sap.com/saphelp_erp2005/helpdata/en/56/32e339b62b3011e10000000a11402f/frameset.htm
    Regards,
    S.Manu.

  • REPORT PAINTER - Add a field to a selection screen to a CUSTOM REPORT

    Hi,
    I'm trying to add a field to a selection screen to a CUSTOM REPORT that has been made in REPORT PAINTER (Y_DVL_xxxxxxx). How should I proceed to do so?
    Thanks a lot,
    Julien

    Hi Julien Girard ,
        Could you please check the below link :
    http://help.sap.com/saphelp_erp2005/helpdata/en/56/32e339b62b3011e10000000a11402f/frameset.htm
    Regards,
    S.Manu.

Maybe you are looking for

  • SLEEP/WAKE PROBLEM on my Macbook Pro 2.33GHz Intel Core 2 Duo

    Greetings! I love APPLE. So APPLE, please do try to help me out here... The first problem I encountered was a faded translucent bluish/grayish rectangular line stretching from top to bottom suddenly showing up. I've shown this to our local APPLE tech

  • 10.5.8 unusable after Garageband crash

    For whatever reason, 10.5.8 hung up on me about an hour ago while using GarageBand. It was a complete hang up with only the sound from GB playing. I was unable to access Force Quit or Activity Monitor to kill processes. The only recourse was to shut

  • How do I create a PDF document with a URL so that I can link it to my webpage?

    I am in the middle of creating a business website. Some of the words on a page I've highligted and set them as a link to other information. I've typed up a Word doc and saved it as a PDF and on my webpage I have: Click here to see a sample report. I

  • Grouping issue on Advanced DataGrid

    Hello, I've got an advanced datagrid with 5 columns, The number_Group column has data like this... 1-10 1-10 11-20 11-20 11-20 21-30 21-30 21-30 41-50 101-110 When I apply Grouping, it works as expected but the 101-110 group is displayed before the 1

  • Naming Abbreviation & Glossary Editor not working properly in Datamodeler

    Hi , I wuold like to work on Oracle SQL Developer Data Modeler 3.0 for my current project and now I am doing a PoC using OSDM (Oracle SQL Developer Data Modeler 3.0 tools) ,It is very good tools except Naming standard & Abbreviation. I am unable to a