Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2067

Validation error at selection screen output

$
0
0

Hi Experts ,

I have written code like below for downloading and uploading of dynamic table data in sap .

 

My requirement is based on the radio button selection filed should hide and should have to do the validation for the existing  field.

 

Here the issue by selecting the first radio button it is hiding P_file and validation is working fine.

 

after selecting second radio button the P_file is not unhiding and before it validation is trigger showing enter file name and path .

 

Please see the below code and advise me . Thanks in advance .

 

Selection screen .

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETERS: p_table TYPE dd02l-tabname OBLIGATORY.

SKIP 2 .

PARAMETERS : rb1     RADIOBUTTON GROUP grp1 DEFAULT 'X'  USER-COMMAND rg1,

                               p_file1 LIKE rlgrap-filename  MODIF ID rg3,

                              rb2     RADIOBUTTON GROUP grp1.

PARAMETERS: p_file LIKE rlgrap-filename   MODIF ID rg4.

SELECTION-SCREEN END OF BLOCK b1.

 

 

At selection screen output.

LOOP AT SCREEN .

     IF rb1 EQ 'X'.

       IF screen-group1 EQ 'RG4'.

         screen-active = '0'.

         MODIFY SCREEN .

       ENDIF .

 

     ELSEIF rb2 EQ 'X'.

       IF screen-group1 EQ 'RG3'.

         screen-active = '0'.

         MODIFY SCREEN.

       ENDIF.

 

     ENDIF.

 

   ENDLOOP .

 

At selection screen on filed P_file1

AT SELECTION-SCREEN on p_file1 .

   IF rb1 EQ 'X' .

     IF p_file1 IS INITIAL .

 

       MESSAGE 'Please select the file path'(009) TYPE gc_e.

     ENDIF.

   ENDIF.

 

At selection screen on filed P_file.

AT SELECTION-SCREEN on p_file .

   IF rb2 EQ 'X' .

     IF p_file IS INITIAL .

       MESSAGE 'Please select the file path'(009) TYPE gc_e.

     ENDIF.

   ENDIF.





Viewing all articles
Browse latest Browse all 2067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>