Hi Pavan,
Please follow like this and this is the better option to implement your solution.
ENHANCEMENT 1 ZKIRAN_NH.
You have to call this open form in the enhancement based on the conditions
If check = 'X'. " it mean s if condition satisfied you need to call the open form with the new customized form
CALL FUNCTION 'OPEN_FORM'
EXPORTING
APPLICATION = 'TX'
DEVICE = 'PRINTER'
DIALOG = 'X'
FORM = 'customized form name'
IMPORTING
RESULT = RESULT
EXCEPTIONS
CANCELED = 1
DEVICE = 2
FORM = 3
OPTIONS = 4
UNCLOSED = 5
OTHERS = 6.
IF SY-SUBRC NE 0.
MESSAGE E888.
ENDIF.
elsif sy-surc = 0. " it means new calling form success full please exit the form to avoid to call the subsequent open form or standard form ( it will exit from defined routine)
exit.
endif.
ENHANCEMENT 2 ZKIRAN_NH.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
APPLICATION = 'TX'
DEVICE = 'PRINTER'
DIALOG = 'X'
FORM = 'J_1I_57F4'
IMPORTING
RESULT = RESULT
EXCEPTIONS
CANCELED = 1
DEVICE = 2
FORM = 3
OPTIONS = 4
UNCLOSED = 5
OTHERS = 6.
IF SY-SUBRC NE 0.
MESSAGE E888.
ENDIF.
I hope you understand!