Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

finding the exact point

Former Member
0 Kudos

Dear All,

pls help me on this issue.

How can I find the exact point in the abap program. When I click on a line in the table sometimes the button is enabled and sometimes it disabled.

I am trying to find out this point to understand why this is happening

We are working with NWBC. I have set some external breakpoints. In WebDynpro it is possible to find the

via right clicking but it is not possible to find out the point in the program where this takes effect. Please advise how can achive thi issue.

Regards

Alex

1 ACCEPTED SOLUTION

paul_bakker2
Active Contributor
0 Kudos

Hi,

Step 1. Find out which context element this button is linked to.

(There should be a binding that turns the button on and off.)

  • Open the WebDynpro in SE80, go to the relevant View, click on the button.
  • On the right-hand-side of the screen, look for the 'enabled' property.
  • Click on the green tick next to it.
  • This should show you a context element (for example 'ACTIVATE_FLAG')

Step 2. Search the webdynpro code for this context element name (ACTIVATE_FLAG)

(To do this you need to find the class name that holds the code.)

  • Click on the top-level Web-Dynpro Component
  • Choose menu WebDynpro Components > Check > Extended Check
  • This will show you a class name, eg /1BCWDY/P7WNAJXIQX3FPXKCT51F==CP
  • Go to SE24 and copy this name in (without the '==CP').
  • Do a search in this class for 'ACTIVATE_FLAG'
  • Set an (external) breakpoint on the interesting lines of code.

Enjoy!

Paul

6 REPLIES 6

GauthamV
Active Contributor
0 Kudos

Open this program and screen in SE51 transaction and keep a breakpoint in PAI module and check.

There must be some conditions there based on which this field in enabled or disabled.

Regards,

Gautham.

Former Member
0 Kudos

Hi Gautham,

please be aware, I am talking abou WebDynpro. SE51 is for Standard Dynpro.

Former Member

0 Kudos

Hello,

SCN guidelines recommend that you should not post a link without explaining briefly what you are linking to.

For example, in this case, if you wrote 'Here's how to set a breakpoint in WebDynpro', then we would know that it's not particularly relevant.

Alex said he already knows how to do that...

cheers

Paul

paul_bakker2
Active Contributor
0 Kudos

Hi,

Step 1. Find out which context element this button is linked to.

(There should be a binding that turns the button on and off.)

  • Open the WebDynpro in SE80, go to the relevant View, click on the button.
  • On the right-hand-side of the screen, look for the 'enabled' property.
  • Click on the green tick next to it.
  • This should show you a context element (for example 'ACTIVATE_FLAG')

Step 2. Search the webdynpro code for this context element name (ACTIVATE_FLAG)

(To do this you need to find the class name that holds the code.)

  • Click on the top-level Web-Dynpro Component
  • Choose menu WebDynpro Components > Check > Extended Check
  • This will show you a class name, eg /1BCWDY/P7WNAJXIQX3FPXKCT51F==CP
  • Go to SE24 and copy this name in (without the '==CP').
  • Do a search in this class for 'ACTIVATE_FLAG'
  • Set an (external) breakpoint on the interesting lines of code.

Enjoy!

Paul

Former Member
0 Kudos

Hi Paul,

I thank you very much. You've answered my very profissionell. I've noticed you have a lot of knowledge in Abap and Co. I have also noticed you are in terms of workflow very good as well.

Can you pls. take a look at this thread. You have maybe an idea/clue.


http://scn.sap.com/thread/3422926

As already said thank you many times.

Regards

Alex