‎2010 Jan 17 11:13 AM
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.
‎2010 Jan 17 11:18 AM
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.
‎2010 Jan 17 1:40 PM
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
‎2010 Jan 21 5:55 AM