Identifying underlying BW reports, when executing a BO WebIntelligence repo

Hello Gurus,
Is there a transaction code in SAP BW to find out what are the underlying BW reports that get executed, whilst running a BO Web Intelligence report.
Thanks in advance.

Check  the universe, to find out the under lying queries used.
Duplicate post... same has been posted by u in Business Content and Extractors
Identifying underlying BW reports, when executing BO reports
Close any one thread... post the BO related queries under BO forums so that u can get the exact answer.

Similar Messages

  • Identifying underlying BW reports, when executing BO reports

    Hello Gurus,
    Is there a transaction code in SAP BW to find out what are the underlying BW reports that get executed, whilst running a BO Web Intelligence report.
    Thanks in advance.

    Hi,
    All the reports on which universe is built will get executed upon BO report execution. So you will have to check the reports on which your universe it built upon.
    Regards,
    Durgesh.

  • Error in report when executing pl/sql function body returning sql query.

    Hi,
    I have used the pl/sql function body returning sql query for creating a report. I have created a datepicker(
    P10_TASK_DATE) which can be submitted.The code is as below
    DECLARE
    v_sql varchar2(3000);
    BEGIN
    if :P10_TASK_DATE is not null THEN
    v_sql:='select
          * from tasks';
    return v_sql;
    else
    v_sql:='select * from discovery';
    return v_sql;
    END IF;
    END;if the date field is empty "select * from discovery" is executed and report is getting generated. But when we give a
    date using date picker the page is submitted and i get "report error: ORA-01403: no data found" even
    though the "tasks" table has data in it. Plz help
    Thanks,
    TJ

    hi
    Please try this
    1. Create 2 region
    1st region source=
    select * from tasks'
    go to the tab -> condition =
    item NOT NULL
    EXpression1 =:P10_TASK_DATE
    this will run whenever the item have any date
    2. open your 2 nd region source code= select * from discovery
    put the condition
    item is  NULL
    EXpression1 =:P10_TASK_DATE
    thanks
    Mark Wyatt

  • HTTP Error: 401 unauthorized when executing a costcenter report.

    Hi.
    I get this HTTP error when executing an costcenter report.
    The steps I do is following.
    Call upp the report Y_D02_77000xxx
    Under the "kostenstellen:Selection I Fill in this values.
    Controlling area
    Fiscal Year
    From Period
    To     Period
    Plan version
    and finally i enter the "Cost Center group"
    Then i press "execute" and get the result for differrent Cost Element, i get 2 lines "*Total" and
    "**Over/underabsorption"
    Now i doubleclick Over/underabsorption and select report "Cost Centers: Actual Line Items"
    Now i Should get a new window woth results but instead i get a blank screen with the errormessage:
    "HTTP error: 401 unauthorized"
    This procedure worked fine until a couple of weeks ago.
    Anyone have any ideas about what could be the problem?
    Regards Johan

    You might want to check all of your connections in SM59. When you get the 401 error, this is sometimes due to a connection failure (bad password and so on) in the RFC connections (this can also happen if you are using the Content Manager).
    Hope that helps.
    J. Haynes

  • Unknown error when executing MDX when refreshing Crystal Report with BEx

    Hello Experts,
    I have created a Crystal Report (Crystal 2008 SP1) with BEx Query (7.10) and have been able to refresh successfully when the SAP_ALL authorization is included in my user role. I don't want my end users to have SAP_ALL so I created a role and assigned the authorizations recommended in the SAP Integration Kit for BusinessObjects 3.1 Install Guide.
    When I run the report as one of the users assigned to my new role I get the following error in the trace file.
    ERROR: .\crdb_bwmdx_execution.cpp [200]: l_bapiGetStreamInfo failed with return code RFC_RC = 0 Exception:  BAPI Error: BAPI Error #:0
    Unknown error when executing MDX
    2188     6556     Caught DbError #1 with Message 'BAPI Error #:0
    Unknown error when executing MDX'
    2188     6556     Caught DbError #1 with Message 'BAPI Error #:0
    Unknown error when executing MDX'
    2188     6556     Caught DbError #1 with Message 'BAPI Error #:0
    Unknown error when executing MDX'
    I tried all the Fix Packs (ie 1.1., 1.2 and 1.3) for XI 3.1 Integration Kit to try resolving the error but it didn't work.
    The same query works fine in BEx Web when running as one of the users in the new role I created for Crystal Report users.
    Are there any other Authorizations that I need to include in the role?
    Cheers.
    Paul.

    We have been able to identify what causes the MDX driver to error and I will explain what we are trying to implement with the hierarchies.
    Firstly, we are creating reports of the HR cube Mutliprovider using the SAP MDX Driver which works well when there are no authorization analysis set on the cube. But with the authorization analysis set for on 0ORGUNIT for BEx Explorer Crystal returns the MDX error.
    Each of the Business Unit managers are assigned to an Organization Unit that will be used to restrict the employees that will be reported. To restrict the Managers to only see their Org Unit we have set the 0ORGUNIT object to use authorization ananlysis and a custom authorization variable to return only data for the Org Unit they belong too.
    In Crystal this works well when a manager has an Org Unit that is a head department of other Org Units. This scenario will give Crystal the NodeID and Parent NodeID to create the hierarchies in the report. But when a manager does not have any other Org Units beneath there own department then Crystal doesn't have a Parent NodeID to create the Hierarchies with the NodeID. In the RFC trace I can see an error when Crystal is trying to get the Parent NodeID but the user is not authorized to that Org Unit then it throws the error.
    We have got a temporary workaround which is to create the managers a dummy Org Unit below their own department. The workaround will do for now but shouldn't the MDX driver be able to recognise that it has returned the last level in the Org Unit Hierarchy and not return an error?
    The customer is looking for a product fix as they believe this should be handled by the driver. Is this a bug or a limitation of the product?
    Paul.

  • Performance Problem when executing the report for the first time.

    Hi,
    We have a Zreport...to improve the performance i created Index on few Data Base table..before my changes it used to take more than 15 minutes after the changes it taking less than 1 min for the same variant and for other variants also.
    But when executing the first in morning its taking the same time more than 15 min.Please let me know how to increase the performance when executing first time also,
    Thanks,
    Kiran.

    Hi all,
    Appreciate your valuable replies...
    @ Thomas: i do accept with your solution running a background job..but user is not accepting for it..thanks for your reply.
    @Siegfried Boes  : for testing purpose Im running this manytimes..but for user they may
    require when ever they need to know open oders.the volume of the data is barongs 300-350 at
    max.
    @Brad Bohn  : After creating the index the repose time reduced to half ...i hope  i have
    created a right index.
    Observation here...I executed the report in production system more than 5 times it took the
    same time, my changes are still in quality..so i think may be for selecting the right index
    its taking this much time.and for the next time is taking right index n doing it so it taking
    less.
    Do you accept it?.if so Please let me know how to explicitly say the select statement to
    use my index.
    Thanks,
    kiran.

  • Webi report throwing error when executed

    HI Experts,
    While executing a Webi Report we are gettign following error when executing with more than one characteristics -
    A Database error occured. The database eror text is : The MDX Query select { [Measures].[4225B1TBMEMOYKZGDKLVINMAW] } ON COLUMNS FROM [ZMEPSC01/ZMEPSC01_QRY_0001]
    failed to execute with the error Unknown error.(WIS 10901).
    We tried changing the Universe -> Parameter -> Control -> Limit size of result set to -> unchecked it.
    But still the error remains. Can u put some light over it.
    Thanks.

    Hello ,
    Just Check with the BI the people they might change the the column name or some thing else in the bex Query that s way It is showing error.
    Refresh the universe and generate the report then check it.
    Thanks
    Santhosh V

  • I ran a disk verify & disk repair on my macbook.. both said my system was fine. I keep getting the underlying task reported failure on exit when trying to do disk permission or repair permissions. Also get cant install files in "/applications error. Help

    m was fine. I keep getting the underlying task reported failure on exit when trying to do disk permission or repair permissions. Also get cant install files in "/applications error when ever trying to install a driver or update. Help

    Hi,
    Here's an article for that:
    http://support.apple.com/kb/ts1901

  • Report Output Changed when Executed in Background

    Hi Guys,
    I have generated a report,which when executed online displays
    four records.
    But when i am executing the same report in background by generating a spool,my output is changed,such as third record is missing and i am getting only three records.
    In the place of the third record an empty line is displayed.
    whats the reason for it?
    Can anyone help me in this regard.

    Hey Aparna,
    I have a report which has more than 400 characters in width. When I execute the report in background, I dont have a printing format of more than 255 characters. Therefore the generated spool has only 255 characters.
    How can I get the complete spool? Is there a way to define printing format or any other T-Code to print the generated spool?
    Regards,
    Anosh

  • Error when executing function in MSS launchpad report ???

    In MSS lanchpad report, we have the following problem:
    Error in Manager Sef-Service
    When calling the report, the following error occurred:
    System: HRP
    Error when executing function
    Basically in MSS report, I select employees in the first iView which calls another ABAP query in back-end to display back-end t-code inside iView of portal through ITS service. What could be the reason for it? please advice.
    Thanks,
    Anthony

    Please try converting the standadrd-delivered scenario RPT0, then check
    out the things.
    Also problem may be that your function code names contain
    the character '&'. This causes a problem when the selected function
    code is passed to the ITS-WebGUI as a URL parameter. Please use only
    standard characters (A..Z and _) when you define a function code.
    Then it should work.
    Please go through the following link also
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/3a/
    3198408d953154e10000000a1550b0/frameset.htm
    Please test in backend using Se38 > PWPC_RPT_START_REPORT_TEST
    The Reporting Iview in the portal has the Report category type, by
    the report category type is set to "RPT0". Therefore, when the
    application is launched, the reporting category type is also sent as URL
    parameter to the backend system. As of ECC 6.0 only the reporting
    category type "RPT0" is supported. ensure this is set for your custom reports if you are using own scenarion
    then set in the Iview property of reports as well
    ie example
    1)Change the Iview property "Scenario" of the Reporting iview from
    "RPT0" to your own "ZRPT", than this set of reports will work. however,
    the standard reports will not work.
    pwpc_convert_mdt_to_lpa >>
    The following list of reports have been converted.

  • Report Painter: Error RG102 when executing report

    Hi All!
    I need help with an error I'm facing with Report Painter...
    When executing a report with a large amount of variables and columns I'm receiving the error:
    Message no. RG102: Syntax error in GP3NDZHLG3MURI7VJEVF29KI876800, row 0
    If in the General Data Selection instead of using a Variable for the Version I use a fix value, it works OK. However, other reports are working properly with the same Gen. Data Selection.
    Does anyone has an idea of the cause of this report?
    Thanks!

    Hi All,
    I will try to clarify a little bit on my Issue.
    First of all, it's not a BW issue, but a Reporting Problem with the Report Painter for the Consolidation (EC-CS).
    The row is configured with a Set of Data regarding a Consolidation Item that includes all the P&L Accounts. It is configured to 'Expand'.
    Regarding the columns, I have a large number, between 40 and 50 mixing Ratio with Characteristics and Formulas. Within them, I'm using as well variables for Period, Consolidation Unit and so on.
    In the Selection Screen I have configured the following paramters
    Version - 100
    Dimension - T1
    Cons chart/acct - C1
    Ledger - US
    Cons group (Set and Variable) ZSETUNV
    Year for CG breakdwn (Variable) ZEJERAM
    Period for CG breajdw (Variable) ZPERAM
    With all the above-mentioned configurations the report works great. However, if in the Selecion Parameteres I try to replace the Version (Instead of having fix value 100, to have a variable ZVER) in order to deal with several versions in the same report when I save and execute I receive the posted error:
    Message no. RG102: Syntax error in GP3NDZHLG3MURI7VJEVF29KI876800, row 0
    Does anyone has an idea if there is a Maxium of Variables for Report Painter or any idea which may be the origin of this error?
    Thanks again!

  • How to display pop up in foreground when report is executing in background

    Hi All,
    The requirement is:
    My report is executing in background and I have to display a pop-up to end user in foreground.
    Is there any method to do this.
    it is urgent,
    Reward points will be awarded to correct answers.
    Thanks,
    Vishal.

    Thanks frnds,
    ok can we go in this way......I need to display the pop up when the "program -> execute in background" button is clicked or F9 is pressed....just at that time....later the report can be executed in back ground.
    Is there a way to do so......just displaying a pop up when one entry in menu bar ic clicked?
    Vishal.

  • Invalid Object Name When Executing from Report Manager

    I ran some code to create a modified view of ExecutionLog3 on a SQL Server 2012 instance.  The ReportServer and ReportServerTempDB were transferred from a 2005 instance and are still on that compatibility level. After creating the new view, I 
    created a report in SSDT and it runs fine.  I deployed the dataset followed by the report.  I went to Report Manager to test it and the report fails with the following:
    An error has occurred during report processing. (rsProcessingAborted)
    The execution failed for the shared data set
    'ExecutionLog'. (rsDataSetExecutionError)
    Query execution failed for dataset ''. (rsErrorExecutingCommand)
    Invalid object name 'ExecutionLog3_Modified'.
    The code for the view is below and it came from MSSQLTips.  Why does the report run fine from SSDT and fail in Report Manager?
    USE [ReportServer]
    GO
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE VIEW [dbo].[ExecutionLog3_Modified]
    AS
    SELECT
    EL.InstanceName,
    COALESCE(C.Path, 'Unknown') AS ItemPath,
    EL.UserName,
    EL.ExecutionId,
    CASE(EL.RequestType)
    WHEN 0 THEN 'Interactive'
    WHEN 1 THEN 'Subscription'
    WHEN 2 THEN 'Refresh Cache'
    ELSE 'Unknown'
    END AS RequestType,
    -- SubscriptionId,
    EL.Format,
    Parameters,
    CASE(EL.ReportAction)
    WHEN 1 THEN 'Render'
    WHEN 2 THEN 'BookmarkNavigation'
    WHEN 3 THEN 'DocumentMapNavigation'
    WHEN 4 THEN 'DrillThrough'
    WHEN 5 THEN 'FindString'
    WHEN 6 THEN 'GetDocumentMap'
    WHEN 7 THEN 'Toggle'
    WHEN 8 THEN 'Sort'
    WHEN 9 THEN 'Execute'
    ELSE 'Unknown'
    END AS ItemAction,
    EL.TimeStart,
    YEAR(EL.TimeStart) AS Start_Year,
    MONTH(EL.TimeStart) AS Start_Month,
    DATENAME(MONTH,EL.TimeStart) AS Start_Month_Name,
    DATENAME(DW,EL.TimeStart) AS Start_Day_Of_Week,
    DATEPART(WEEKDAY,EL.TimeStart) AS Start_Day_Number_of_Week,
    EL.TimeEnd,
    EL.TimeDataRetrieval,
    EL.TimeProcessing,
    EL.TimeRendering,
    CASE(EL.Source)
    WHEN 1 THEN 'Live'
    WHEN 2 THEN 'Cache'
    WHEN 3 THEN 'Snapshot'
    WHEN 4 THEN 'History'
    WHEN 5 THEN 'AdHoc'
    WHEN 6 THEN 'Session'
    WHEN 7 THEN 'Rdce'
    ELSE 'Unknown'
    END AS Source,
    EL.Status,
    EL.ByteCount,
    EL.[RowCount],
    EL.AdditionalInfo,
    C.Name,
    C.CreatedByID,
    C.ModifiedByID,
    C.Description,
    C.CreationDate,
    C.ModifiedDate,
    CASE
    WHEN C.TYPE=1 THEN 'Folder'
    WHEN C.TYPE=2 THEN 'Report'
    WHEN C.TYPE=3 THEN 'XML'
    WHEN C.TYPE=4 THEN 'Linked Report'
    WHEN C.TYPE=5 THEN 'Data Source'
    WHEN C.TYPE=6 THEN 'Model'
    WHEN C.TYPE=8 THEN 'Shared Dataset'
    WHEN C.TYPE=9 THEN 'Report Part'
    END AS Type_Description
    FROM
    ExecutionLogStorage AS EL
    LEFT OUTER JOIN Catalog AS C ON (EL.ReportID = C.ItemID)
    GO
    Lee Markum

    Hi Lee,
    According to your description, you can't process the dataset when viewing the report on report server. Right?
    In this scenario, as you can see the dataset name in error message is empty, and it says "Invalid Object Name". Because you have already created a view in your database. When you run this report again, this query be executed again so that you can
    not create another view with same name. So you just need to query the view directly when creating dataset. 
    Select * from ExecutionLog3_Modify
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Spool is Missing When a Report is Executed through a JOB

    Hi,
    I had a task in which I have to Pick the Session Log from SM35 and print it when a Report is executed .In the Report I Created a Session using the SUBMIT.I used Perfrom statemet from RSBDC_ANALYSE programe and picked the Log.I got the Exact result when I executed the Report in Foreground but when i tried to Execute in background I could not Get the SPOOL.
    Report Is executed as a JOB and in that Report  a Session will be Created and then it is Executed as a job I picked the Log from this Session.
    Can any one please kindly help me out with this issue.
    Thanks & Regard,
    Prasad.

    WAIT UP TO 3 SECONDS.
      DATA: Begin of PR_NEW,
             POSITIONSINFO(60),
             FEHLERTEXT(130),
            end of PR_NEW.
      DATA: wa_bseg TYPE BSEG,
            wa_knb1 TYPE KNB1,
            wa_kna1 TYPE KNA1,
            wa_bkpf TYPE BKPF,
            wa_xblnr(20) TYPE c.
      SELECT  * FROM APQI INTO CORRESPONDING FIELDS OF TABLE it_apqi
                              WHERE groupid = GROUP
                              AND   credate = sy-datum.
      READ TABLE it_apqi INDEX 1.
      SELECT * FROM APQL INTO TABLE logtab_temse
                            WHERE qid = it_apqi-qid.
      LOOP AT logtab_temse.
        clear bdcld.
        bdcld-temseid = logtab_temse-temseid.
        bdcld-lmand   = logtab_temse-mandant.
        bdcld-edate   = logtab_temse-credate.
        bdcld-etime   = logtab_temse-cretime.
        bdcld-luser   = logtab_temse-creator.
        bdcld-grpn    = logtab_temse-groupid.
        bdcld-quid    = logtab_temse-qid.
        bdcld-local_host = logtab_temse-destsys(8).
        APPEND bdcld.
      ENDLOOP.
      READ TABLE bdclm index 1.
      perform read_bdc_log_plain IN PROGRAM RSBDC_ANALYSE
       tables logtable
       using  bdcld-temseid bdcld-lmand.
      LOOP AT logtable.
        clear bdclm.
        bdclm-indate  = logtable-enterdate.
        bdclm-intime  = logtable-entertime.
        bdclm+14(352) = logtable-logmessage.
        if bdclm-mcnt > 0.
          bdclm-mcnt = bdclm-mcnt - 1.
        endif.
        if  bdclm-mnr = '312'.
          append bdclm.
        endif.
      ENDLOOP.
      LOOP AT bdclm.
        CLEAR wa_bseg.
        CLEAR wa_knb1.
        CLEAR wa_kna1.
        CLEAR wa_bkpf.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            INPUT  = bdclm-mpar+02(09)
          IMPORTING
            OUTPUT = wa_belnr.
        SELECT SINGLE * FROM BSEG INTO wa_bseg
                                  WHERE  belnr = wa_belnr
                                   AND   bukrs = bdclm-mpar+13(04)
                                   AND   buzei = '001'
                                   AND   gjahr = sy-datum+0(4).
        SELECT SINGLE * FROM BKPF INTO wa_bkpf
                                  WHERE belnr = wa_belnr
                                   AND  bukrs = bdclm-mpar+13(04)
                                   AND  gjahr = sy-datum+0(4).
        SELECT SINGLE * FROM KNB1 INTO wa_knb1
                                  WHERE kunnr = wa_bseg-kunnr
                                  AND   bukrs = wa_bseg-bukrs.
        SELECT SINGLE * FROM KNA1 INTO wa_kna1
                                  WHERE kunnr = wa_bseg-kunnr.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
          EXPORTING
            INPUT  = wa_bseg-kunnr
          IMPORTING
            OUTPUT = wa_bseg-kunnr.
        CONCATENATE 'Ref.doc.' wa_bkpf-xblnr INTO wa_xblnr SEPARATED BY space.
        PR_NEW-POSITIONSINFO+000(010) = wa_bseg-belnr.
        PR_NEW-POSITIONSINFO+011(19)  = wa_xblnr.
        PR_NEW-POSITIONSINFO+031(004) = wa_bseg-bukrs.
        PR_NEW-POSITIONSINFO+036(006) = wa_bseg-kunnr.
        PR_NEW-POSITIONSINFO+043(004) = wa_bseg-zterm.
        PR_NEW-POSITIONSINFO+048(004) = wa_knb1-zterm.
        IF wa_bseg-zterm NE wa_knb1-zterm.
          CONCATENATE 'Terms of payment of Customer' wa_bseg-kunnr wa_kna1-mcod1
                       'was changed from' wa_knb1-zterm 'to' wa_bseg-zterm
                       INTO PR_NEW-FEHLERTEXT SEPARATED BY space.
          WRITE: / PR_NEW-FEHLERTEXT.
          WRITE: / PR_NEW-POSITIONSINFO.
          WRITE: /.
        ENDIF.
      ENDLOOP.

  • Error when executing report due to 0FISCPER

    Hi All,
    I am using a customer exit in my query to calculate the year to date numbers for current Fiscal Period and prior fiscal year (via offset -12). When I execute the query it works fine but when I save it to my portal favorite and re-execute from the favorite, it throws an error: 
    Termination message sent
    ERROR BRAIN (648): Variable value  must be numeric
    ERROR BRAIN (599): For characteristic 0FISCPER, enter value in a permitted format
      MSGV1: 0FISCPER
      MSGV2: 200/001/
    ERROR BRAIN (599): For characteristic 0FISCPER, enter value in a permitted format
      MSGV1: 0FISCPER
      MSGV2: 200/005/
    ERROR BRAIN (648): Variable value  must be numeric
    ABEND RSBOLAP (000): Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
      MSGV1: SAPMSSY1
      MSGV3: UNCAUGHT_EXCEPTION
    Here is my customer exit code. Do you see any issues with the exit that is causing the above error?
    DATA: lv_cur_period(3) TYPE n,
              lv_cur_year(4) TYPE n.
       WHEN 'ZCC_FPER_YTD_INTERVAL'.
         IF i_step = '1'.
    Determine current fiscal period
           CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
             EXPORTING
               i_date               = SY-DATUM
               i_periv              = 'MR'  
            IMPORTING
              E_BUPER              = lv_cur_period
              E_GJAHR              = lv_cur_year
            EXCEPTIONS
              INPUT_FALSE          = 1
              T009_NOTFOUND        = 2
              T009B_NOTFOUND       = 3
              OTHERS               = 4
           IF sy-subrc <> 0.
           ENDIF.
    Enter interval into variable
           CONCATENATE lv_cur_year '001' INTO l_s_range-low.
           CONCATENATE lv_cur_year lv_cur_period INTO l_s_range-high.
           l_s_range-sign = 'I'.
           l_s_range-opt = 'BT'.
           APPEND l_s_range TO e_t_range.
         ENDIF.
    Thanks a bunch.

    Hi Venkat and Gaurav,
    Thanks for your replies. The format of Fiscal Period in the first variable screen is correct with the Concatenate statements that I originally had in the customer exit. It displays an interval of 001/2010 - 005/2010 which is what I want.
    CONCATENATE lv_cur_year '001' INTO l_s_range-low.
    CONCATENATE lv_cur_year lv_cur_period INTO l_s_range-high.
    I created another i_step = 2 variable with 'ready for input' unchecked and added it to the original i_step = 1 variable within the RKF. As I have limited knowledge of coding customer exists, I added the following code for the 2nd variable that I found on SDN as seen below. After applying this code and executing the "saved report on portal favorite", the original error message went away and I get to the variable screen but the format that displays now is 201/001/ - 201/005/.  Why does it work the first time it is executed and why does it mess up the format when executed from portal favorite, really confused.
       WHEN 'ZCC_FPER_YTD_INTERVAL_2'.
         IF i_step = '2'.
           READ TABLE i_t_var_range WITH KEY vnam = 'ZCC_FPER_YTD_INTERVAL' ASSIGNING
                          <input>.
    Determine current fiscal period
           CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
             EXPORTING
               i_date               = SY-DATUM
      I_MONMIT             = 00
               i_periv              = 'MR'  
            IMPORTING
              E_BUPER              = lv_cur_period
              E_GJAHR              = lv_cur_year
            EXCEPTIONS
              INPUT_FALSE          = 1
              T009_NOTFOUND        = 2
              T009B_NOTFOUND       = 3
              OTHERS               = 4
           IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
           ENDIF.
    Enter interval into variable
           CONCATENATE lv_cur_year lv_cur_period INTO lv_cur_fiscper.
           l_s_range-low = lv_cur_fiscper.
           l_s_range-high = <input>-low.
           l_s_range-sign = 'I'.
           l_s_range-opt = 'BT'.
           APPEND l_s_range TO e_t_range.
         ENDIF.

Maybe you are looking for