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 Displaying Issue

Former Member
0 Likes
646

Hi All,

DO 6 Times.

Call Function Module '<Which Will Update Table>'.

If the Return parameter is Not Initial.

**********************

Cancatenate <Wage Type field> <Updation Failed> into Ls_Return separated by Space.

Else.

************************

Concatenate <Wage Type field> <Updation Successful> into Ls_return separated by Space.

Endif.

EndDo.

Here in this code the issues is the Message is Over writing in Every Do Enddo loop. Finally it is Displaying the Last Message only from the final loop.

But Actually i need the Messages with All the Wage type Status in the Final message.

Please correct my Code at the Earliest.

Regards,

Reddy.

3 REPLIES 3
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
579

Append Ls_return to et_return. " This is missing.

Your code will overwrite the previous values in the work area ls_return.

DO 6 Times.

Call Function Module '<Which Will Update Table>'.

If the Return parameter is Not Initial.

**********************

Concatenate <Wage Type field> <Updation Failed> into Ls_Return separated by Space.

Else.

************************

Concatenate <Wage Type field> <Updation Successful> into Ls_return separated by Space.

Endif.

append ls_return to et_return. "<------ Add this

EndDo.

Read only

Clemenss
Active Contributor
0 Likes
579

Hi Kumar,

it's time to start with[ application log|http://wiki.sdn.sap.com/wiki/display/Snippets/UsingApplicationLog].

If you feel good, create a class with methods create, add_message, display and save and use it the rest of your ABAP life.

Regards,

Clemens

Read only

Former Member
0 Likes
579

Thanx all i got the solution...