cancel
Showing results for 
Search instead for 
Did you mean: 

Placeholders in message_text.

Former Member
0 Kudos

Hi all,

I am using method

CALL METHOD lo_message_manager->REPORT_ELEMENT_ERROR_MESSAGE

                  EXPORTING

                    MESSAGE_TEXT       = 'No flights for &carrid &2 connid'

                    ELEMENT                   = lo_el_connection

                    PARAMS                     = itab

Before this method i am writing code as follows:

               wa-name = 'carrid'.                           * wa is work area

                wa-value = 'connid'.

                APPEND wa to itab.                             *itab is internal table

                wa-name = ls_connection-carrid.          *ls_connection has data which we are entering in the webdynpro view.

                wa-value = ls_connection-connid.

                APPEND wa to itab.


when i enter wrong data No flights for &carrid &2 connid' is displaying in place of carrid and connid i need to get the values.



Please suggest me where i went wrong.


Thanks & regards,

Narsireddy

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Narsireddy,

It should be:


"name is for the placeholder name and value is the value

wa-name = 'carrid'.

wa-value = ls_connection-carrid.

APPEND wa TO itab.

wa-name = 'connid'.

wa-value = ls_connection-connid.

APPEND wa TO itab.

Hope it helps. Cheers!

Answers (2)

Answers (2)

ramakrishnappa
Active Contributor
0 Kudos

Hi NarsiReddy,

As suggested, you need to populate the parameters table entries properly i.e. NAME should have the parameter name & VALUE should contain the screen field value.

Regards,

Rama

Former Member
0 Kudos

Hi..Narsi Reddy

this may be help you.

http://scn.sap.com/docs/DOC-36069