Application Development 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: 

how to use messages in LSMW

Former Member
0 Kudos

I want display the messages according to condition in code lines of LSMW hw can i di it

1 ACCEPTED SOLUTION

Former Member
0 Kudos

HI ravi..

First declare an internal table in GLOBAL DATA section. Before skipping the record just populate the internal table with the required data.(dont append here).

In END_OF_RECORD append the internal table.

In END_OF_PROCESSING display the contents of the internal table.

loop at itab.

write:/XXXX.

endloop.

This will be displayed after u process the Convert Data step.

In background process display messages as

message s000 with 'test'.Only messages of type

S can be shown in log.

Hope this is helpful.

if it helps reward with points...

Regards Rk.

1 REPLY 1

Former Member
0 Kudos

HI ravi..

First declare an internal table in GLOBAL DATA section. Before skipping the record just populate the internal table with the required data.(dont append here).

In END_OF_RECORD append the internal table.

In END_OF_PROCESSING display the contents of the internal table.

loop at itab.

write:/XXXX.

endloop.

This will be displayed after u process the Convert Data step.

In background process display messages as

message s000 with 'test'.Only messages of type

S can be shown in log.

Hope this is helpful.

if it helps reward with points...

Regards Rk.