‎2008 Mar 03 11:00 PM
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
‎2008 Mar 03 11:23 PM
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
‎2008 Mar 03 11:06 PM
You could put all of your errors into an internalk table and then display that table with FM REUSE_ALV_POPUP_TO_SELECT
Rob
‎2008 Mar 03 11:23 PM
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
‎2008 Mar 04 3:37 AM
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
‎2008 Mar 04 1:52 PM
‎2008 Mar 04 4:00 AM
hi,
Why don't u try with (MESSAGE IXXX) and pop up ur msg...
thanks
arunprasad.p
‎2008 Mar 04 9:19 PM
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