EXIT from the SMARTFORM without generating EMPTY PAGE

By Prakasam.B, Universal System Technologies India (P) Ltd

1.     Open the particular SMARTFORM

2.     Go to Global Settings – Global Definition – Initialization TAB

Please refer below screen shot

3.     At the Initialization part we get the condition check field value through select statement.  

SELECT SINGLE VAR1 FROM TABLE INTO LV_VAR1
 
WHERE Conditions.  

4.     Check the condition value.  

5.     If the condition satisfied you call the Function Module : 'SSFCOMP_CLOSE'

IF LV_VAR1 EQ 'VALUE' OR LV_VAR1  EQ 'VALUE'.

CALL FUNCTION 'SSFCOMP_CLOSE'
 
IMPORTING
   RESULT        = S_REF
 
EXCEPTIONS
   ERROR         = 
1
   
OTHERS        2.

ENDIF.  

6.     SAVE & Activate the SMARTFORM.

Through above steps we can EXIT from the SMARTFORM without generating EMPTY PAGE.

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image