‎2010 Oct 04 3:53 AM
Hi Friends,
I've created module pool program.working fine.
here my requirements is not i want to display error records(Already updated records) want to display.
Im trying to use WRITE/ itab-name1,itab-address.
But its not working .
I followed the coding like this.all error records will come to ITAB internal table.
MODULE USER_COMMAND_0100 INPUT.
when 'SAVE'.
loop at itab.
WRITE/ itab-name1,itab-address.
endloop.
ENDMODULE.
Please help on this.
Thank You,
Anu
‎2010 Oct 04 6:47 AM
‎2010 Oct 04 6:51 AM
HI,
In module pool you cannot display records by directly writing write . u have to use LEAVE TO LIST-PROCESSING
before write , check the F1 help on this u will get the full idea.
Regards ,
Madhukar Shetty
‎2010 Oct 04 7:38 AM
Hi Anitha,
I would suggest to use ALV for displaying error records. You can create one more screen in your program and show this errors in ALV(by creating container on screen) on this screen and call the screen according to your logic.
Regards,
Pawan
‎2010 Oct 04 10:41 AM
HI Anitha
first you need to check wether your table is having the error records or not?
then while applying loop to the table.
check one condition of error field.
like you must have a field which indicates a records is an erroneous record, check this field inside the loop.
like
loop at itab.
if itab-error = 'x' or whatever value for error.
then only display the fields.
endif.
endloop.
i hope by doing this you can do this.
of Best would be display your records in an ALV on the basis of that error field.
Thanks
Lalit Gupta
‎2010 Oct 04 11:57 AM
SUPPRESS DIALOG.
SET TITLEBAR '0200'.
SET PF-STATUS space.
LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
NEW-PAGE NO-TITLE.
loop at itab.
WRITE/ itab-name1,itab-address.
endloop.