Application Development and Automation 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: 
Read only

Want to debug Fm update Task .

former_member196331
Active Contributor
0 Likes
9,967

hi.

I am posting PGI Transaction.

In one of the custom object , class and method . I am executing below FM.
Here objtype and event are custom.

Before posting the transaction PGI.I enable /h , then

GO TO ->Settings-> change debug profile settings. then pressing the Execute button

PGI Posted and then below line my external break point is stopped,
here i am pressing F6 OR F7 Both tried. But after debug mode is end,
If i see in SM58 . Did not see any transaction. Do u think any thing I am missing.
even i tried. After pressing the F6 OR F7. There is no entry in SM58.

I am sure.. few days before.. I fallow the same steps, that time i can see entry in SM58. If i debug the entry. It is calling. one RFC. but now it is not working.
Now also. below FM will call that RFC. Definitely ,If u ask why i am confident means. there one ztable is updating. if i see the ztable in se11. after posting PGI. It is updating. this is the only place ,code written for updating the ztable.

while calling below FM. there is one more RFC will trigger. I want to debug that FM.(here i put external break point too no use).


11 REPLIES 11
Read only

FredericGirod
Active Contributor
0 Likes
9,579

If you set a trace using ST01 with both RFC / SQL did you see your table updated ?

Read only

former_member196331
Active Contributor
0 Likes
9,579

No i tried..

Read only

FredericGirod
Active Contributor
9,579

The bad way for understanding what is the issu, is to set a long wait in the code you would like to debug, go in SM50 and debug here

Read only

former_member196331
Active Contributor
0 Likes
9,579

Understood but it is in Q System.

Read only

FredericGirod
Active Contributor
0 Likes
9,579

A last chance, but regarding your function, I am not sure about RFC.

Sometime, you could configure specific user about RFC, so you need to specify in your debug profile (SE38) the user you would like to debug. This user must be dialog user

Read only

former_member196331
Active Contributor
0 Likes
9,579

It's my Userid only there..

Read only

luis_sismeiro
Participant
0 Likes
9,579
Read only

basantmhr
Participant
0 Likes
9,578

Hi Kali Charan,

Please Go to Utilities->setting and check the user name in Debugging tab, make sure the user is yours. Also, please ensure that you have kept an External Breakpoint within your FM which is being called.

Read only

0 Likes
9,578

I checked.. here... my name only exists..

Read only

Sandra_Rossi
Active Contributor
0 Likes
9,578

Update function modules can be debugged only via Update debugging (which is already set in your settings).

When the update task starts, the debugger opens and you can then add a Procedure Breakpoint on the function module you want to debug, click continue, and the debugger pauses on it.

More information in the Web:

update debug site:sap.com

Concerning RFC, that would imply specific information from you. Generally speaking, external debug usually works, but not all the time.

Read only

Sandra_Rossi
Active Contributor
0 Likes
9,578

I just realize that it's SWE_EVENT_CREATE_IN_UPD_TASK (Business Workflow event). The classic way is to run directly the object behind the event (SWO1, SE24, etc. depends on the object type behind the task related to the event).

Search:

debug workflow site:sap.com

NB: most of the answers won't talk about SWW_BREAKPOINT which seems to be the latest and most official way to debug workflow, unfortunately I never used it. See note 2197117 - Debugging of background work items.