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

message class

Former Member
0 Likes
904

hi friends,

i need to print the information message of long text of say 90 characters is it possible? how? r else if so is there any FM for pop-up a window to have the text of 98 characters...

reply soon urgent.

advance thanks.

7 REPLIES 7
Read only

Former Member
0 Likes
861

hi, try this

TYPES: BEGIN OF LT_SVAL.

INCLUDE STRUCTURE SVAL.

TYPES: END OF LT_SVAL.

TYPES: T_IT_SVAL TYPE STANDARD TABLE OF LT_SVAL.

DATA: LIT_SVAL TYPE T_IT_SVAL.

DATA: LWA_SVAL TYPE LT_SVAL.

CALL FUNCTION 'POPUP_GET_VALUES'

EXPORTING

  • NO_VALUE_CHECK = ' '

POPUP_TITLE = 'RETURN VALUES FROM EAI'

  • START_COLUMN = '5'

  • START_ROW = '5'

  • IMPORTING

  • RETURNCODE =

TABLES

FIELDS = LIT_SVAL

EXCEPTIONS

ERROR_IN_FIELDS = 1

OTHERS = 2

.

reward points if helpful

regards,

venkatesh

Read only

Peter_Inotai
Active Contributor
0 Likes
861

Hi,

You can use the following FMs

BAPI_MESSAGE_GETDETAIL

WRITE_MESSAGE_NEW

MESSAGE_TEXT_BUILD

K_MESSAGE_TRANSFORM

or even easier to use the following statement:

message .. into.

then you can move the long text to a text98 field....of course it will be truncated.

Best regards,

Peter

Read only

0 Likes
861

friend,

this message is no way related to the tables to retrieve, just in a program using standard message class can i print the text of 90 characters.

thank u friend do this for me.

Read only

0 Likes
861

yes,

you can do this using message clas.

just create a class using se91 and specify it in your program.

in message class for messages maximum length could be 132 chars.........

regards,

ruchika

Reward if useful.........................

Read only

former_member188827
Active Contributor
0 Likes
861

HI

U CAN CREATE A MESSAGE CLASS AnD In DAT CLICK LONG TEXT BUTTO AD GIVE UR TEXT IN THAT.

RGDS

Message was edited by:

abapuser

Read only

Former Member
0 Likes
861

Hi Purna ,

You can use the FM , but you will have to split the text into 2 parts and pass it to the parameters TEXTLINE1 and TEXTLINE2 of the FM.

Regadrs

Arun

*Assign point if helpful

Read only

Former Member
0 Likes
861

Hi,

you can simply write s001.

if you will double click it will ask to create a text elemnt. you can create here maximum of 132 chars.

direct path is goto-text element-text symbols.

s is message type, like this you can also use e for error and i for information.

regards,

Ruchika

reward if useful...........