on 06-23-2009 8:19 AM
Hi Gurus,
In the text element of abap class I have defined the text as shown below with 2 place holders para1 and para2.
SYM TEXT
003 No Records found for search criterea &PARA1& &PARA2&
In my webdynpro abap code I have passed the place holders with the below code.
CALL METHOD wd_assist->IF_WD_COMPONENT_ASSISTANCE~GET_TEXT
EXPORTING
KEY = '003'
PARA1 = ls_flightinfo-carrid
PARA2 = ls_flightinfo-connid
RECEIVING
TEXT = errormsg
.
report message
CALL METHOD lo_message_manager->REPORT_ERROR_MESSAGE
EXPORTING
MESSAGE_TEXT = errormsg.
after execution I can see the error message but place holder is not replaced with the parameter which I have passed in PARA1 and PARA2.
Thanks in advanve
Regards,
Kiran Kumar K
I have resolved the issue.
In place of
PARA2 = ls_flightinfo-connid
take ls_flightinfo-connid in char variable of length 4.
i.e DATA: connidstr type c length 4.
PARA2 = connidstr
Regards
Kiran Kumar K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Punit,
How I have to create objects for the place holders. can you please provide me the steps I need to follow to create the object for the placeholders.
gettext method have para1 and para2 as the parameters of type CSEQUENCE.
Please, provide me the steps to create placeholders in text elements of assistance class and the way we can use them.
The steps I have followed is mentioned in my previous message.
Thanks in advance.
Regards,
Kiran Kumar
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.