cancel
Showing results for 
Search instead for 
Did you mean: 

Usage of place holders in text element of assistance class

former_member283828
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member283828
Participant
0 Kudos

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

Former Member
0 Kudos

This message was moderated.

former_member283828
Participant
0 Kudos

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