‎2009 Apr 29 1:13 PM
Hi All,
I am trying to display both 'system user id'(SY-MSGV1) and 'function location no.' (IFLOT-TPLNR) in the task bar as a message but I am getting only the user id not function location.
I am using the following line of codes
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 IFLOT-TPLNR.
Can any one please help me.
Thanks
‎2009 Apr 29 1:20 PM
Hi,
Debug the program and check if IFLOT-TPLNR is populated.
Regards,
Nupur
‎2009 Apr 29 1:15 PM
Hi,
This may be because since SY-MSGV1 is asystem variable and hence it getting populated automatically.
For functional location,first you need to retrieve its value from database then store that in a variable and pass that to message.
Hope it hepls.
‎2009 Apr 29 1:20 PM
Hi,
Debug the program and check if IFLOT-TPLNR is populated.
Regards,
Nupur
‎2009 Apr 29 1:58 PM
Thanks
Actually I am using the IFLOT-TPLNR in a function module
i.e
-
form check_lock_fl.
CALL FUNCTION 'ENQUEUE_EZIFLO'
EXPORTING
MODE_IFLOT = 'E'
MANDT = SY-MANDT
TPLNR = IFLOT-TPLNR
X_TPLNR = ' '
_SCOPE = '2'
_WAIT = ' '
_COLLECT = ' '
EXCEPTIONS
FOREIGN_LOCK = 1
SYSTEM_FAILURE = 2
OTHERS = 3. .
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 IFLOT-TPLNR.
ENDIF.
endform. " CHECK_LOCK_FL
-
after debugging i am not getting the value of IFOT-TPLNR,
Actually in the selection screen I am passing NOTIFICATION NUMBER and function location TPLNR is coming automatically ( e.g when we pass notification no in IW52 it will generate function location automatically from the system) Now the question is how to get the value of TPLNR
and display into the message in task bar.
Thanks
‎2009 Apr 29 1:20 PM
Hi,
Concatenate both the fields into one variable
concatenate SY-MSGV1 IFLOT-TPLNR into w_var1
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH W_VAR1.
Regards
Krishna
‎2009 Apr 29 1:49 PM
Thanks,
I tried according to your logic, But i am not getting the result,
Also I just added/use
Data : w_var1(128) type n.
But I am not getting the result
Can help me again.
for this i will remain obliged to you.
Thanks again.