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

HELP IN MESSAGE

Former Member
0 Likes
1,228

HI

i wrote this code when i want to show message

MESSAGE E888(SABAPDOCU) WITH TEXT-001 LV_PRODCODE_TMP TEXT-003 LV_TODATE.

the problme i get the message in this format:

The production code is incorrect fix to 62 The experation date is incorrect please fix it to 01.10.2006

i want that each message will be in seperate row

for example i want that this message will be like:

1. The production code is incorrect fix to 62

2. The experation date is incorrect please fix it to 01.10.2006

HOW CAN I FIX IT

THANKS

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,138
How about FM: JVA_POPUP_TO_DISPLAY_TEXT
Give two lines for two lines.

Sample Code:

data: l_line1 type string,
      l_line2 type string,
      l_title type string.

l_title = 'Information Message'.
move '1. The production code is incorrect fix to 62' to l_line1.
move '2. The experation date is incorrect please fix it to 01.10.2006'
to l_line2.


CALL FUNCTION 'JVA_POPUP_TO_DISPLAY_TEXT'
  EXPORTING
   TITEL              = l_title
    TEXTLINE1          = l_line1
   TEXTLINE2          = l_line2
*   START_COLUMN       = 25
*   START_ROW          = 6
          .

Kind Regards
Eswar

Message was edited by: Eswar Rao Boddeti

8 REPLIES 8
Read only

Former Member
0 Likes
1,138

Yossi,

Instead of MESSAGE use FM <b>POPUP_DISPLAY_MESSAGE</b>

~thomas

Read only

0 Likes
1,138

hi thomas

the problem that when i use this FM i get a long line of the message

and i want to seperated it

thanks

Read only

0 Likes
1,138

hi

i wrong and i need help.

The FM is great but it not work like MESSAGE i mean that the when i use the message after i press OK or NOT the foucs back to the screen that i was but when i use the FM i lose the foucs

maybe there is another FM that can help me

thanks

Read only

0 Likes
1,138

Yossi,

Why not <b>POPUP_CONTINUE_YES_NO</b> ?

~thomas

Read only

0 Likes
1,138
Hi Yossi

   Can you make your query more clear. I couldnt figure 
out the problem. 
   For me i can come back to the same screen.

Kind Regards
Eswar

Message was edited by: Eswar Rao Boddeti

Read only

0 Likes
1,138

I use the transction qe51n

and than i insert plant 1201 choose row and then press edit and than i get a scrren i changed some things in the screen and then i want a message if i change the mesaage to fm it not work and back to the main screen and not to edit screen.

thanks

Read only

0 Likes
1,138

Hi Yossi,

Immeadiately after the call to the FM, write the statement EXIT. and see if it makes any difference.

Regards,

ravi

Read only

Former Member
0 Likes
1,139
How about FM: JVA_POPUP_TO_DISPLAY_TEXT
Give two lines for two lines.

Sample Code:

data: l_line1 type string,
      l_line2 type string,
      l_title type string.

l_title = 'Information Message'.
move '1. The production code is incorrect fix to 62' to l_line1.
move '2. The experation date is incorrect please fix it to 01.10.2006'
to l_line2.


CALL FUNCTION 'JVA_POPUP_TO_DISPLAY_TEXT'
  EXPORTING
   TITEL              = l_title
    TEXTLINE1          = l_line1
   TEXTLINE2          = l_line2
*   START_COLUMN       = 25
*   START_ROW          = 6
          .

Kind Regards
Eswar

Message was edited by: Eswar Rao Boddeti