2006 Feb 20 6:53 AM
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.
2006 Feb 20 7:31 AM
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.
2006 Feb 20 7:00 AM
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.
2006 Feb 20 7:02 AM
2006 Feb 20 7:31 AM
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.
2006 Feb 20 8:51 AM
Hi amit.
Thank you!!
But it takes an error "Bad parameter Error".
Is "do not pass any pamaeters" Correct?
regards.
kil-nam.
2006 Feb 20 8:55 AM
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.
2006 Feb 20 9:40 AM
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.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |