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

display message

Former Member
0 Likes
1,023

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
951

Hi,

Debug the program and check if IFLOT-TPLNR is populated.

Regards,

Nupur

5 REPLIES 5
Read only

Former Member
0 Likes
951

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.

Read only

Former Member
0 Likes
952

Hi,

Debug the program and check if IFLOT-TPLNR is populated.

Regards,

Nupur

Read only

0 Likes
951

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

Read only

Former Member
0 Likes
951

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

Read only

0 Likes
951

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.