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

hi very urgent

hi all,

can i execute an abap function code from within the abap editor.

like i want to execute a report at the same time i have to debug it when the code is running. it should not be manual like pressing F5, F6, or F7 should be done automatically (means withing the code ). and it should display the sy-subrc values. and these thing should be kept in an internal table. with line numbers where sy-subrc is recorded. this should work even when i give a report or function module or a bapi in the selection screen. the program should be run from top to bottom and should give all the sy-subrc values with line numbers. and the subroutine where it is occured.

internal table should contain

line no , sysubrc, and subroutine

this is an urgent requirement for our project to automate the quality testing. and for developers when debugging for long times.give me a solution proposal.

Thanks & Regards,

Poorna K

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 10:52 AM

    Hi Poorna,

    It is possible. As you already mentioned, you want the data to be stored in internal table. so u can actually store these info in the table. and in the end, you can see the output of the report

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi poorna,

      If you cannot simulate the F5 command of the debugger ( i don't know how to do it ), maybe one solution is to replace the break point by some code that exports the contents you want to check to a file. Then by the end of the transaction you can check the file and see the information you need.

      I hope this can help you.

      Regards,

      Paulo Sousa

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 12:06 PM

    Hi Poorna ,

    i am not sure how good is this idea , beacuse once you have the value of sy-subrc in the internal table ,then what next , if there are any error , then you will have to manually check the code and see where is error or you will have to debugg the program again.

    Could you please tell what do you do with the data in the internal table.

    Regards

    Arun

    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.