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

Get the Process ID

Former Member
0 Likes
6,907

Hi all.

I want to get the Process ID in executing program.

In aRFC, It logs the PID. And I'll check in another program that the PID is active or inactive.

How to get the PID?

CF) I don't use "ON END OF TASK".

Thank you in advance!!

regards.

kil-nam.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,639

Hi kil,

1. use the FM TH_WP_DETAIL_INFO.

2. do not pass any parameters .

3.

In export parameters

WPINFO-WP_PID is the required field.

regards,

amit m.

Hi kil,

1. use the FM TH_WP_DETAIL_INFO.

2. do not pass any parameters .

3.

In export parameters

WPINFO-WP_PID is the required field.

regards,

amit m.

6 REPLIES 6
Read only

Former Member
0 Likes
3,639

hi,

see wheather tis is useful

MEMORY ID <pid> - uses a default value from the global SAP memory (SPA/GPA parameters). <pid> can be up to 3 characters long and must not be enclosed in quotation marks. You use the global SAP memory to pass values retained beyond transaction limits between programs. This memory is available to a user for the entire duration of a terminal session and any parallel sessions use the same memory. The SAP memory is thus more comprehensive than the transaction-bound Data Clusters in ABAP/4 memory. See the TPARA table ("Directory of Memory IDs") for all system Memory IDs. Parameters can be set user specific in the user's master records with the name <pid>. See also SET/GET PARAMETER.

regards,

padma.

Read only

hymavathi_oruganti
Active Contributor
0 Likes
3,639

in SM50 , u can see process overview, ther u can see PID

Read only

Former Member
0 Likes
3,640

Hi kil,

1. use the FM TH_WP_DETAIL_INFO.

2. do not pass any parameters .

3.

In export parameters

WPINFO-WP_PID is the required field.

regards,

amit m.

Read only

0 Likes
3,639

Hi amit.

Thank you!!

But it takes an error "Bad parameter Error".

Is "do not pass any pamaeters" Correct?

regards.

kil-nam.

Read only

0 Likes
3,639

Hi kil,

1. use like this (it won't give error now)

CALL FUNCTION 'TH_WP_DETAIL_INFO'

EXPORTING

WP = 'XX'

WITH_CPU = '10'

WP_INDEX = '0'

IMPORTING

WPINFO = wpinfo

  • DIAREC =

  • EXCEPTIONS

  • TH_BAD_PARAMTER_LENGTH = 1

  • TH_NO_PARAMETER = 2

  • TH_BAD_PARAMETER_VALUE = 3

  • TH_LIST_ERROR = 4

  • TH_INTERNAL_ERROR = 5

  • OTHERS = 6

.

regards,

amit m.

Read only

0 Likes
3,639

Hi kil,

1. Is ur problem solved

using the code which i mentioned

in the previous reply.

(or still parameter error is coming)?

regards,

amit m.