Skip to Content
0
Former Member
Aug 28, 2009 at 06:29 AM

Clear Fields Automatically instead of sscrfields-ucomm

208 Views

Hi Experts,

I am doing a normal report, using screen-groups and loop at screen where

the entered data will get updated in Ztable (dbtab).

IF SY-SUBRC EQ 0.      "If all my condition satsifies (coding).

insert  ZABC.

 IF SY-SUBRC = 0.

          UPDATE ZXYZ.

          IF SY-SUBRC = 0.
            MESSAGE : I002   WITH 'RECORD CREATED SUCCESSFULLY''.
          ELSE.
            MESSAGE : E003  WITH 'SYSTEM ERROR'.
          ENDIF.

         ENDIF.
      ENDIF.
    ENDLOOP.


AT SELECTION-SCREEN.

CASE SSCRFIELDS-UCOMM.         

    WHEN 'FC01'.                    " Refresh button

 CLEAR: FIELD1,FIELD2, FIELD3, FIELD4, FIELD5, FIELD6, FIELD7.

 ENDCASE.

Now my user don't want the refresh button, but he wants all the fields get cleared automatically.

After the POP-UP message ' RECORD CREATED'...( which will be displayed in seperate dialogue box )

all the fields should get cleared automatically.

Regards

Karthik

Edited by: Karthik R on Aug 28, 2009 12:00 PM