Skip to Content
author's profile photo Former Member
Former Member

Regarding RSRT transaction Code

HI BW Gurur's,

I had created a customer Exit type variable. and written all the abap code. Inorder to debug the abap code, I used RSRT transaction code. When I selected the execute+debug option after giving the query name, it is displaying the following Message in the status bar....

"Query could not be opened! GENUNIID is invalid"

Is there any other alternative for debuggin the abap code???

Appretiate if any one let me know how to use RSRT transaction code as I am new to RSRT.

Thanks in Advacne,

Dilse...

Hash

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on May 04, 2005 at 06:22 AM

    Hi Thathi,

    If I'm not mistaken, break-point in user exit will force the system to enter debug screen during ordinary query run (not through RSRT). Just put the break-point into the proper place of the code.

    Best regards,

    Eugene

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Jürgen ,

      Thanks for the valuable suggession. Unfortunately the setting the external degugging option also did not work. Despite of setting it active I could not enter into the Debugging screen.

      is there any other alternative?

      Thanks in Advance,

      Dilse...

      Hash

  • author's profile photo Former Member
    Former Member
    Posted on May 04, 2005 at 04:40 PM

    Hi Hash,

    You get this error when the query is not selected properly, make sure you put "infoprovider/queryname" in the dropdown box and then press Execute + Debug.

    Let me know if it is resolved.

    Cheers,

    Kartheek

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Jkyle,

      Well the error message is bcoz of the wrong selection of variable type. I selected the type to be interval, In deed I should select the varible as select-options or multiple single values.

      Now the new problem is that I am able to execute the query successfully, but the resultant query values are incorrect. for example I had executed the query for the range of months[06/2004....to 01/2005]. The query result displays only for the months 07/2004, 09/2004, 10/2004, 12/2004. Some months are skipped.... More over only the results for the first month are accurate.....and for the remaining months are inaccurate.

      But in the result query I am able to see all last week of the months that are displyed[ i.e the variable is getting populated properly....and the months are displayed strangely].

      I have no clue why it is picking like that.

      Please check the code that I had written. Pay less attantion to the string manuplation and concentrate on the appending of the E_T_RAGE.

      WHEN 'ZLSTWEK'.

      DATA : WEEK1 LIKE SCAL-WEEK.

      DATA : WEEK4(7).

      DATA : VAL1 TYPE SY-DATUM.

      DATA : DAY1 LIKE SCAL-INDICATOR.

      DATA : DATE1 TYPE SY-DATUM.

      DATA : YEAR(4),

      DAY2(2),

      zero(1) value '0'.

      data: begin of date,

      j(4),

      m(2),

      t(2),

      end of date.

      data: day4(6),day3(6),LAST_DAY_OF_MONTH TYPE SY-DATUM.

      DATA : L_S_RANGE TYPE RSR_S_RANGESID.

      DATA : LOC_VAR_RANGE LIKE RRRANGEEXIT.

      IF I_STEP = 2.

      LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'ZSCLYRMT'.

      ENDLOOP.

      DAY4 = LOC_VAR_RANGE-high.

      DAY3 = LOC_VAR_RANGE-low .

      WHILE DAY3 LE DAY4.

      CLEAR L_S_RANGE.

      *- String Manuplations

      YEAR = day3+0(4).

      DAY2 = day3+4(2).

      DAY3+0(4) = YEAR.

      DAY3+4(2) = DAY2.

      concatenate DAY3 '01' INTO DATE.

      DATE1 = DATE.

      *- Function Module to return the last day of the Month

      CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'

      EXPORTING

      DAY_IN = DATE1

      IMPORTING

      LAST_DAY_OF_MONTH = last_day_of_month.

      *- Function Module to Fetch the week number of the year

      CALL FUNCTION 'DATE_GET_WEEK'

      EXPORTING

      DATE = last_day_of_month

      IMPORTING

      WEEK = week1

      EXCEPTIONS

      DATE_INVALID = 1

      OTHERS = 2.

      ENDIF.

      *- Function Module to get the day of the week

      CALL FUNCTION 'DATE_COMPUTE_DAY'

      EXPORTING

      DATE = VAL1

      IMPORTING

      DAY = DAY1.

      *- Manuplation on the Week number

      if DAY1 <= 3.

      week1 = week1 - 1 .

      endif.

      *- Updating the S_Range

      L_S_RANGE-SIGN = 'I'.

      L_S_RANGE-OPT = 'BT'.

      L_S_RANGE-LOW = week1.

      L_S_RANGE-HIGH = WEEK1.

      *-Appending the E_T_RANGE

      APPEND L_S_RANGE TO E_T_RANGE.

      CLEAR : VAL1, DAY1, WEEK1.

      *- Mauplation of the Date logic for incrementing the Low value

      IF DAY3+4(2) Lt 12.

      DAY34(2) = DAY34(2) + 1.

      IF STRLEN( DAY3+4(2) ) LT 2.

      CONCATENATE ZERO DAY34(2) INTO DAY34(2).

      ENDIF.

      ELSE.

      DAY3+4(2) = 01.

      DAY30(4) = DAY30(4) + 1.

      ENDIF.

      CLEAR: YEAR, DATE,DATE1,DAY2.

      ENDWHILE.

      CLEAR : DAY3, DAY4.

      ENDIF.

      I think that there might be a problem in appending the E_T_RANGE, is there any other way to populate the data in to E_T_RANGE....?????

      Thanks in Advance,

      Dilse...

      Hash

  • Posted on May 04, 2005 at 02:53 PM

    Hi,

    In my project in CMOD I entered a break-point just after

    WHEN 'MyVar'.

    IF I_STEP = 2.

    I activated all what was required. Then I opened BEx Analyzer, chose my query, executed it. And the system brought me to debug screen.

    Probably you tried it in web interface. Try it in Analyzer.

    Best regards,

    Eugene

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.