Report writer Authorization on selection screen

Hi All,
In transaction GR55 (to execute the report group), when the user enters the selection criteria for the report group, I want to validate the
'Profit Center group' and 'Profit center values' fields. The way it should be validated is, it should check the entry for the 'profit center group' or 'values' entered against the 'user name' in a Ztable for that user. If there is no entry in the Ztable matching that 'User name' and 'profit center group or values' , it should give an error message. I have seen that there is a user exit 'EXIT_SAPFGRWX_001' (Authorization check on initial screen).
But my problem is, in this functional module (code is shown below), the table 'I_T_SELSCREEN_PARAMS' has only one filed for both 'Profit center Group' and 'profit center values'.
1. when I enter 'Profit center group' 'ABC' in my selection criteria, I_T_SELSCREEN_PARAMS has following values.
I_T_SELSCREEN_PARAMS - selname = '%8A-PCHI'.
I_T_SELSCREEN_PARAMS-low = '01061000ABC'.
2. When I enter 'Profit Center Values' as some '3001000' to '3001020' inn the selection criteria, I_T_SELSCREEN_PARAMS has following fields,
I_T_SELSCREEN_PARAMS-selname = '%8A-PCHI'
I_T_SELSCREEN_PARAMS-low = '0002$ZSLP&8A-PCHI'.
here ZSLP is the report group name.
I don't understand how to get the values '3001000' to '30001020' into my user-exit in case 2.
Is there any other way of doing this? has anyone used this user-exit? Please help me.
Thanks,
Krishna
FUNCTION EXIT_SAPFGRWX_001.

Hi Krishnakumar Ramadoss,
For your requirement to have authorization, SAP provides facility in report writer/painter to give authorization groups.
Go to GR52.
Input your report group name.
Click on Header (Cap symbol) or F5.
At this header screen , you can see a field where you can provide Authorization group.
Try this. It may help you.
As a note:
Report writer / Report painter reports are reports which are created with zero percent coding.
The SAP generated program (E.g: GP3ICYT39FHJLOYBA2025DBAE1V213) cannot be changed or modified.
The only coding that you can do in a report writer are the formula's and logic that you can write in variables of the report writer / painter.
Regards,
Subin John

Similar Messages

  • Restrict 'Executing report in background' from selection screen

    I want user to not to select option for executing report in background from Selection Screen of the program.
    i.e. 'Execute Program in Background' option in 1st menu bar tab should either be disabled OR if user clicks on it then he should get error message on selection screen itself.
    Thanks,
    Falguni

    Hi Falguni,
    Write the code based on function code SJOB in the event AT SELECTION-SCREEN. Write the following code :
    AT SELECTION-SCREEN
    CASE SY-UCOMM.
    WHEN 'SJOB'.
    MESSAGE E000 WITH 'You cannot schedule background job'.
    ENDCASE.
    Thanks & Regards,
    Faheem.

  • SUBMIT a report without showing the selection-screen

    hey guys,
      i want to submit a report(rep2) from my report.(rep1)
    rep2 has selection-screen.(it also has ldb associated).
    i am apssing all the data for selection-screen(of rep2) using an itab.
    but now i dont want selection-screen of rep2 to be displayed when rep1 is executed.
    how to go about?

    Dear Kumar,
    you can use the below specified variants
    SUBMIT <REPORT NAME>
    1. ... USING SELECTION-SET vari
    2. ... WITH p op f SIGN s
    3. ... WITH p BETWEEN f1 AND f2 SIGN s
    4. ... WITH p NOT BETWEEN f1 AND f2 SIGN s
    5. ... WITH p IN sel
    6. ... WITH SELECTION-TABLE seltab
    7. ... WITH FREE SELECTIONS texpr
    Eg.,
    CLEAR paramtrs.
        REFRESH paramtrs.
        PERFORM append_selection_table USING :
                      'SO_NUM' 'P' 'EQ' 123456
                      'ITEM'   'P' 'EQ'  abcdef,
                      'POS'    'P' 'EQ'  10.
        SUBMIT <abc>  WITH SELECTION-TABLE paramtrs AND RETURN.
    FORM append_selection_table USING fname ftype fopre fvalue.
      MOVE : fname  TO paramtrs-selname,
             ftype  TO paramtrs-kind,
             fopre  TO paramtrs-option,
             fvalue TO paramtrs-low.
      APPEND paramtrs.
    ENDFORM.
    where SO_NUM, ITEM AND POS  are the report abc's input selection screen.

  • Report which has four selection screens called in a specific order

    Hi All,
    In a report, how can I call multiple selection screens predefined, and  create BDC recording in the program based on the values entered in the selection screens. The selection screens are 4 in my scenario in a specific order. Please send across sample code which has the logic to call multiple selection screens and create BDC recording for sales order, delivery, PGI..Thanks
    Ricky

    If ur option is to creat multiple screens...go for tabstrip option in ur report and record it.
    selection-screen begin of screen 001 as subscreen.
    selection-screen begin of block b1 with frame title text-001.
    selection-screen begin of line.
    selection-screen comment 2(10) text-003.
    parameters:par1 type marc-matnr.
    selection-screen end of line.
    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.
    selection-screen begin of line.
    selection-screen comment 2(10) text-003.
    parameters:par2 type marc-matnr.
    selection-screen end of line.
    selection-screen end of block b2.
    selection-screen end of screen 002.
    selection-screen begin of tabbed block tabstrip for 10 lines.
    selection-screen tab (15) tabs1 user-command t1 default screen 001.
    selection-screen tab (15) tabs2 user-command t2 default screen 002.
    selection-screen end of block tabstrip.
    initialization.
    tabs1 = 'TAB1'.
    tabs2 = 'TAB2'.

  • ALV Report output as per selection screen

    Hi,
    I got a requirement. In selection screen there is field where i can entered 1 to 12 numbers. When i entered a number,  so that in output of an alv report should display that many fields
    for eg.
    if  i entered 5 in selection screen
    in out put 5 fields of alv report should display.
    Thanks....
    Moderator message : Spec dumping / Outsourcing is not allowed. Thread locked.
    Edited by: Vinod Kumar on Jul 15, 2011 11:34 AM

    hi,
    u sort the internal table by the materials in our variant.
    like sort itab by jtab
    itab consists of all materials
    jtab cosists of materials in variant.
    hope it may helpful,
    regards,
    chandu

  • To run a report in background in selection screen using a new button

    hi friends iam new member to this site
    nice to meet u all
    i want to run a report in background using the selection screen of the same report and i want to keep a button in application tool bar.
    after enter the values in the selection screen by clicking that button it should move to the screen which we get generally by menu option
    program-->execute in background
    and by entering the output device and start condition it should be scheduled in the background.
    with job_open,job_submit and job_close we need variants.
    for this i tried through bp_jobvariant_schedule and
    bp_jobvariant_overview but with this we can run with variants only
    but the user wants to enter the values in selection screen and need a button to run background
    ok friends i think u understood me
    please inform soon ok bye have a nice time

    Hi Jagadish
       There are two ways for you to handle the situation.
    1. Train the users to enter the values in selection screen and manually go for backgroung scheduling.
    2. Use At user command and within that basing on the option selection selected, use FM:JOB_OPEN with sy-repid get the job number, submit the program with the values on the selection screen and lastly executing FM: JOB_CLOSE with the job number from JOB_OPEN and SY-REPID.
    Note that you have to set 'X' for export parameter something like startimmed while calling FM: JOB_CLOSE for immediate execution. Am not on SAP to give you the exact parameter.
      Hope the above info helps you.
    Kind Regards
    Eswar

  • Report - parameter name in selection screen

    Hi,
    I am working with a report and in that I am using a parameter for my selection screen.
    Parameter : lifnr like lfa1-lifnr.
    My question is: when i execute the program i see in the selection sreen 'Lifnr'. How to get a text say 'Vendor no.' instead of LIFNR in selection screen.
    Thanks

    Hi,
    Go to the TEXT ELEMENTS of the program from the SE38 screen. Click on the SELECTION TEXTS tab, and you can give whatever desription you want for the selection screens here.
    If you want the description from the data dictionary just check the check box on the right hand side.
    Regards,
    Ravi
    Note : Please mark the helpful answers

  • Submit a report program with same selection screen with some values exclude

    Dear All,
    I have to  submit a stndard report program from a copied zprogram with same slection screen values ,
    and in some slect-options some values will be excluded depending upon the zprogram.
    How to make it.
    I mean when i submit , same selction screen values should go along with , depending upon some condions i have to exclude some values .
    for ex: selection screen from a to b
    posting date should go same
    but may be along with it i have to pass movem,ent type <> 202 to the submit screen ,.
    how to do this?

    Hi Rajendra
    >What if i have to pass the movement type also 200 to 250 , with 202 and 203 exluded .
    Use BT ( between ) operator for 200 to 250 :
    lr_move_type-sign = 'I'.
    lr_move_type-option = 'BT'.
    lr_move_type-low = '200'.
    lr_move_type-high = '250'.
    COLLECT lr_move_type.
    And use NE ( not equal )  operator to exclude 202 and 203 :
    lr_move_type-sign = 'I'.
    lr_move_type-option = 'NE'.
    lr_move_type-low = '202'.
    COLLECT lr_move_type.
    lr_move_type-low = '203'.
    COLLECT lr_move_type.
    It works just this way.
    > Secondly,
    >
    > If i have the selction sreen same in both the screen , is it possible to pass the same values as it is with out writing one by one selct-option and parameter?
    No I don't think there is way to do it without writing one by one
    but you may not specify for empty select-options.
    Edited by: Bulent Balci on Aug 21, 2010 11:46 AM

  • Report Painter - title for selection screen

    Hi
    I have created a report for PCA within GRR1/2 transactions. When I run the report, at the initial screen where I select the period for example, there is no title on the screen, it just comes up as ": SelectioN". However when the report runs, I actually see the name of the report.
    How do I add the name to the selection screen?

    Hi,
    I believe, the name of selection screen comes from the name of the Report Group, but I could be wrong...
    Regards,
    Eli

  • BI report not displaying Variable selection screen on UI

    Hi,
    We have recently upgraded our CRM to 7.0, but the strange thing is the BI reports are executing without giving the user the variable screen.
    Now the alternative to this is making the variables in BI section Mandatory and they show up in the report, but this is not the correct way.
    Are we missing some piece of configuration somewhere.
    Regards
    Lalan

    Hi Vinayak,
    Do you know how can I get the variable selection screen to display in BI analyzer when I execute the report from backend BW system and it launches BI analyzer. I know we can go into Add-Ins and from toolbar we can go into Change Variables Values icon, but I would like selection screen to display as default when user runs the report from backend.
    Thanks
    Divya

  • Authorization via selection screen

    Hi guys,
    is it possible to restrict an user to see just his
    authorized values in selection screen variable entry
    rather than all values when he uses F4 function.
    Thanks,
    Your help will be greatly appreciated

    Hi,
    No, It is possible with Authorization variable also .So, Make sure that the Variable has tick mark for "Rady for input".So there will be prompt for entering values for this variable. If the user selects F4 on this variable, he can see only alloted values through the role. If he typed something other than available in F4, he will get message that he is not authorized.
    With rgds,
    Anil Kumar Sharma .P

  • Running a report in background from selection screen input

    Hi,
    i had created one report and i want to sechedule it in background based on the condition that if a check box is checked it will run in background otherwise in foreground.

    Hi Raymond,
    you was quicker
    Didn't know this solution yet. Great.
    (Hint, you have tho check the SY-BATCH also, otherwise the Job wants to schedule itselfs again, tried it right now).
      IF sy-batch IS INITIAL.
        IF  sscrfields-ucomm EQ 'ONLI' AND checkbox = 'X'.
          sscrfields-ucomm = 'SJOB'.
        ENDIF.
      ENDIF.
    Regards, Uwe

  • Submit selection screen options of one report to another report

    hi ,
      My requirement is as follows . i have a report with a selection screen .The report fetches data from a ztable according to multiple parameters and select options in the selection screen. The mandatory parameters are two diffrent dates according to which the data is fetched. If one of the dates is the CURRENT date then the data  to be fetched is not present in the Ztable as the data is updated daily at midnight. What is required if the user enters the current date in one of the dates then my report should save the selection screen parameters present in therest of the select options and submit these parameters to the second report which updates the data into the table so that my report can fetch it accordingly. If i am getting a bit confusing i am sorry . This is the best i could explain .If any clarififcations are required please ask. Please could u help me with this problem and guide me how to do this . Thanks in advances and helpful answers will be rewarded.

    Hi,
    When you start an executable program, the standard selection screen normally appears, containing the selection criteria and parameters of both the logical database connected to the program and of the program itself. When you start an executable program using SUBMIT, there are various additions that you can use to fill the input fields on the selection screen:
    SUBMIT... [VIA SELECTION-SCREEN]
    [USING SELECTION-SET <var>]
    [WITH <sel> <criterion>]
    [WITH FREE SELECTIONS <freesel>]
    [WITH SELECTION-TABLE <rspar>].
    Ex.
    The following executable program (report) creates a selection screen containing the parameter PARAMET and the selection criterion SELECTO:
    REPORT REP1.
    DATA NUMBER TYPE I.
    PARAMETERS PARAMET(14).
    SELECT-OPTIONS SELECTO FOR NUMBER.
    The program REP1 is called by the following program using various parameters:
    REPORT REP2 NO STANDARD PAGE HEADING.
    DATA: INT TYPE I,
    RSPAR LIKE RSPARAMS OCCURS 10 WITH HEADER LINE.
    RANGES SELTAB FOR INT.
    WRITE: 'Select a Selection!',
    SKIP.
    FORMAT HOTSPOT COLOR 5 INVERSE ON.
    WRITE: 'Selection 1',
    / 'Selection 2'.
    AT LINE-SELECTION.
    CASE SY-LILLI.
    WHEN 4.
    SELTAB-SIGN = 'I'. SELTAB-OPTION = 'BT'.
    SELTAB-LOW = 1. SELTAB-HIGH = 5.
    APPEND SELTAB.
    SUBMIT REP1 VIA SELECTION-SCREEN
    WITH PARAMET EQ 'Selection 1'
    WITH SELECTO IN SELTAB
    WITH SELECTO NE 3
    AND RETURN.
    WHEN 5.
    RSPAR-SELNAME = 'SELECTO'. RSPAR-KIND = 'S'.
    RSPAR-SIGN = 'E'. RSPAR-OPTION = 'BT'.
    RSPAR-LOW = 14. RSPAR-HIGH = 17.
    APPEND RSPAR.
    RSPAR-SELNAME = 'PARAMET'. RSPAR-KIND = 'P'.
    RSPAR-LOW = 'Selection 2'.
    APPEND RSPAR.
    RSPAR-SELNAME = 'SELECTO'. RSPAR-KIND = 'S'.
    RSPAR-SIGN = 'I'. RSPAR-OPTION = 'GT'.
    RSPAR-LOW = 10.
    APPEND RSPAR.
    SUBMIT REP1 VIA SELECTION-SCREEN
    WITH SELECTION-TABLE RSPAR
    AND RETURN.
    ENDCASE.
    Regards,
    Bhaskar

  • Submitting of report using selection screen

    Hi,
                       My requirement is iam having one report so it is executed when we r given site and date it gives one excel file data so now iam having 150 sites so now I want to write the report as date as selection screen and I want to submit that report in this one (new report) so it wants to take the sites automatically from werks (t001w table) and it wants to execute in a loop upto 150 times then it gives 150 excel files so now how can I pass the sites and date to the submitting selection screen date as same for all but only the site wants to varry in the submitting report pls provide the coding ..
    Thanks & Regards,
    Mohan Reddy.

    Hello Mohan Reddy,
    I think we can try in this way
      data:     y_v_rspar_line    LIKE LINE OF y_v_rspar_tab,
                  y_v_rspar_tab     TYPE TABLE OF rsparams,
            y_lk_parm3 TYPE char5 VALUE 'SPERR'.  " Selection screen variable name
      y_v_rspar_line-selname = y_lk_parm3.
      y_v_rspar_line-kind    = y_k_p.
      y_v_rspar_line-sign    = y_k_i.
      y_v_rspar_line-option  = y_k_eq.
      y_v_rspar_line-low     = y_k_e.                "Excel file site value.
      APPEND y_v_rspar_line TO y_v_rspar_tab.
        SUBMIT Program name USING SELECTION-SCREEN '1000'
        WITH SELECTION-TABLE y_v_rspar_tab  AND RETURN.
    But try in 2different ways i.e
    1) Keep the submit program in the loop of the excel file internal table
       and take the site value in the variable and pass the value to this y_v_rspar_line-low
      and call submit program.
    2) Sort the excel file internal table then pass all the values to y_v_rspar_line-low and use the append statement in the same way and then call the SUBMIT program outside the loop.

  • How write a field to screen(report list) but don't display it ?

    Hi, All
        How write a value to screen(report list) but don't display it ?  Because i will use this value as the user click the current line ,but i don't want to expose this value to the user.

    Hi,
    U can Use the option NO-DISPLAY with PARAMETERS.
    Can write in the Selection screen statement with the syntax as
    Paramaters: <fieldname> type <data type>
                 value <value> no-display.
    -Rakesh

Maybe you are looking for

  • Ideas for SCM/APO in iPhone/Blackberry/Android

    Hi everybody! I would like to know your personal needs currently that could be solved by an mobile application. This application would be connected to a R/3 or APO backend system. What scenarios you can think of that could be very helpful  to you? Ex

  • HT2905 "Display Duplicates" in iTunes 11

    There doesn't seem to be a "Display Duplicates" item under Files in iTunes 11.  Anyone know where it might be found?  I love it when they change versions but don't change the Help answers.

  • Graphiccard - which one should i choose

    Hello! first of all: my english ist not very good and thats why i got problems to find the right place, where i can post my problem. if this forum is the wrong one, please put my topic in the right one or tell me, where i can drop it. here is the rea

  • Info IDoc received with status 8 infopackage hanging in yellow status

    Hi All, when I extract the Text data without data selection it is fetching the 14 record into BW and changing the status to green, however when I go with data selection it has No record for this selection in RSA3 as well in BW . when I do this data s

  • Kml file on google map on labview

    Hello there! I'm planning to add a Google Map into LabVIEW but this time, with a KML file. I made a KML file and I would like to also load it with the Google Map in LabVIEW. How can I do it? Thank you very much!  I really wish to become an Electronic