2012 Feb 09 9:15 AM
Hi Experts,
I have a program text lets say, T01 which has a value The &1 cannot be changed.
I need to use this program text as a question in the FM - POPUP_TO_CONFIRM.
How to fill the placeholder value before sending the program text to the FM - POPUP_TO_CONFIRM?
Awaiting for your reply.
Thanks in advance.
Best Regards,
Vignesh S
2012 Feb 09 9:41 AM
Hi Vignesh,
I guess we can't use place holders for program texts, they can be used in messages.
But if you have used a place holder as you said &1, then there is a way to fill it any time with your own string.
The reason why you can't use place holder is that the text length will get fixed and you cannot increase the length of T01 by replacing place holder, instead when you want to display message, copy your T01 text into another string and the use replace &1 in your copied string to your data that you want to replace the place holder and then pass that string to FM to show as a popup.
Hope this helps.
Regards,
-Sandeep
2012 Feb 09 9:41 AM
Hi Vignesh,
I guess we can't use place holders for program texts, they can be used in messages.
But if you have used a place holder as you said &1, then there is a way to fill it any time with your own string.
The reason why you can't use place holder is that the text length will get fixed and you cannot increase the length of T01 by replacing place holder, instead when you want to display message, copy your T01 text into another string and the use replace &1 in your copied string to your data that you want to replace the place holder and then pass that string to FM to show as a popup.
Hope this helps.
Regards,
-Sandeep
2012 Feb 09 9:45 AM
Create a message in SE91 using the place holder.
Now in your code
DATA lwa_bapireturn TYPE bapiret2.
MESSAGE ID pfd_msgid "Message Class
TYPE pfd_msgtyp "Simpley pass as 'I'
NUMBER pfd_msgno "Message No
WITH pfd_msgv1 "Place holder value T01
pfd_msgv2 "Place holder value
pfd_msgv3 "Place holder value
pfd_msgv4 "Place holder value
INTO lwa_bapireturn-message.
Now use lwa_bapireturn-message in your popup function.
Kesav