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

Debug technique - how to?

Former Member
0 Likes
1,344

Hi,

I would like to stop processing for debug in a function module, called in a way:

CALL FUNCTION 'My_Function_Module_Name' STARTING NEW TASK '0001'.

Is it possible? If yes - How?

Explanations: Calling FM

...CALL FUNCTION 'ENQUEUE_E_TRDIR'...

from my FM 'My_Function_Module_Name' I achieved starting of only 1 instance of my FM 'My_Function_Module_Name' at a time. If I call it without the addition 'STARTING NEW TASK...' everything behaves as expected, but I'm unable to check if the FM will behave correctly if I call it as expected - with mentioned addition.

Correctly means if there will be only 1 instance at a time.

Any help whould be highly appreciated.

Many thanks in advance.

Regadrs,

Ivaylo Mutafchiev

5 REPLIES 5
Read only

Former Member
0 Likes
773

Well, searching the forum sometimes gives the answer or idea

Ok, I think I found the scenario - it is to use entire power of parallel processing:

CALL .. STARTING NEW TASK PERFORMING someTaskInCaller ON END OF TASK

should do the trick and help me check what's going on in my 'parallel' task.

And I think, it's impossible to debug task started in parallel process, isn't it?

Thanks,

Ivaylo

Read only

0 Likes
773

Hi Ivaylo,

You can debug a function module being processed parallelly using system debugging. Set a breakpoint at the function call (the one using STARTING NEW TASK) and then switch on system debugging in the debug mode.

Read only

Former Member
Read only

0 Likes
773

>

> This Might help you:

No Not At All!!!

See the actual Date Of question.It been Close to 4 years before.

Read only

0 Likes
773

Sorry Again.....I didn't noticed that...Wl take care in future....I am surprised how it came into the current threads....