2021 Jul 07 3:35 AM
Hi experts,
when the text lw_output_api-message over long ,the message cannot display Incompletely.
I don't want to cut the message text into two or three parts, is there any alternative?


2021 Jul 07 5:21 AM
Please read the ABAP documentation.
If you use WITH, each of the four arguments is truncated to 50 characters: "They can have the same data type as a source field of the statement WRITE TO and they are formatted in accordance with the associated predefined formats with an output length of 50."
Instead, you may use this other syntax "without WITH":
MESSAGE |my { lw_output_api-message } text| TYPE 'E'.Note that defining full generic messages in message classes is considered bad practice (many people would agree). Instead, they should be something like "Quality of Handle Unit &1 must be checked".
2021 Jul 07 5:15 AM
Please paste text instead of image, otherwise people can't copy/paste your code to correct it.
2021 Jul 07 5:21 AM
Please read the ABAP documentation.
If you use WITH, each of the four arguments is truncated to 50 characters: "They can have the same data type as a source field of the statement WRITE TO and they are formatted in accordance with the associated predefined formats with an output length of 50."
Instead, you may use this other syntax "without WITH":
MESSAGE |my { lw_output_api-message } text| TYPE 'E'.Note that defining full generic messages in message classes is considered bad practice (many people would agree). Instead, they should be something like "Quality of Handle Unit &1 must be checked".
2021 Jul 07 5:32 AM
Hi YI SHEN,
You can simply show the message without using any message class as such if the requirement is to show everything at once without splitting it.
Message lw_output_api-message type 'E'. " Change type according to your requirenment.
"also ensure the compatability of lw_output_api-message variable.
But if you still want to use a message class then you must adhere to the limit of each placeholder value.
2021 Jul 07 7:08 AM