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

Module Pool:Display Error Records

Former Member
0 Likes
610

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

5 REPLIES 5
Read only

Former Member
0 Likes
579

Try with the command

Leave to list processing

Read only

Former Member
0 Likes
579

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

Read only

Former Member
0 Likes
579

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

Read only

Former Member
0 Likes
579

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

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
579

    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.