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

Displaying errors on popup

Former Member
0 Likes
984

Hello Everyone,

I am doing dialog programming for the first time and there is a table control on one screen. Based on what user enters information in the fields table control gets populated and that data is stored in internal table itab. I have to loop though the internal table and perform some validations and show the errors to the user maybe on a pouup screen. I want to accumulate all errors and show them in one shot on popup screen. Is there a function module or something that would let me do this? Please give me any suggestions you have becuase this is kind of urgent.

Thanks.

Mithun

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
951

Thanks Rob. What should be the structure of internal table. I have a table of type string and it is going to dump. Could you please send me an example code if you have it?

Thanks.

Mithun

6 REPLIES 6
Read only

Former Member
0 Likes
951

You could put all of your errors into an internalk table and then display that table with FM REUSE_ALV_POPUP_TO_SELECT

Rob

Read only

Former Member
0 Likes
952

Thanks Rob. What should be the structure of internal table. I have a table of type string and it is going to dump. Could you please send me an example code if you have it?

Thanks.

Mithun

Read only

0 Likes
951

Mithun,

Hi mithun,

DATA : gt_fieldcat type slis_t_FIELDCAT_ALV with header line,

GT_OUTTAB TYPE SFLIGHT OCCURS 0.

Prepare field catelog for this .Means error screen output field names.

gt_fieldcat-tabname = 'internal table name.'

w_fieldcat-fieldname = 'Fields Name'.

w_fieldcat-outputlen = '6'.

w_fieldcat-col_pos = '1'.

w_fieldcat-row_pos = '1'.

APPEND gt_fieldcat.

CLEAR gt_fieldcat.

Like above assign all fields

CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'

EXPORTING

  • I_SELECTION = 'X'

  • I_ZEBRA = ' '

  • I_SCREEN_START_COLUMN = 0

  • I_SCREEN_START_LINE = 0

  • I_SCREEN_END_COLUMN = 0

  • I_SCREEN_END_LINE = 0

  • I_CHECKBOX_FIELDNAME =

  • I_LINEMARK_FIELDNAME =

  • I_SCROLL_TO_SEL_LINE = 'X'

i_tabname = '1'

IT_FIELDCAT = gt_fieldcat[]

  • IT_EXCLUDING =

  • I_CALLBACK_PROGRAM =

  • I_CALLBACK_USER_COMMAND =

IS_PRIVATE = GS_PRIVATE

IMPORTING

ES_SELFIELD = GS_SELFIELD

E_EXIT = G_EXIT

TABLES

T_OUTTAB = GT_OUTTAB

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2.

IF SY-SUBRC <> 0.

MESSAGE I000(0K) WITH SY-SUBRC.

ENDIF.

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Mar 4, 2008 12:28 PM

Read only

0 Likes
951

Have you checked the FM documentation?

Rob

Read only

Former Member
0 Likes
951

hi,

Why don't u try with (MESSAGE IXXX) and pop up ur msg...

thanks

arunprasad.p

Read only

Former Member
0 Likes
951

Many thanks to everyone. I was looking for "outputlen"! Just one more quick question. Is there a way I can hide all those buttons on the popup? I just want to show only one button "checkmark" button. i rewarded full points.

Thanks.

Mithun