RETURNCODE fail in samrtfroms.
Hi All ,
i have developed a custom smartform and a custom Pritprogram . while executing form the transaction it is showing the form but in the OUTPUT type it is showing redbutton . in the processinglog it is giving message "Processing routine ENTRY in program ZZ_SDSH_PALLET_MANIFEST does not exist "
But in my print program i have a routine ENTRY .
while debugging i found that after exeqution of FORM sy-subrc = 0 and after that in Function module PROGRAMM_AUFRUFEN , i am getting the RETURNCODE = 999 .
If i give the return code = 0 . then Output type is displaying in green button .
sample code of Print program :
FORM ENTRY USING RETURN_CODE TYPE I SCREEN_OUTPUT TYPE C.
doing some code and calling Form function module.
FORM PROTOCOL_UPDATE USING SCREEN_OUTPUT.
CHECK SCREEN_OUTPUT EQ SPACE.
CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
MSG_ARBGB = SYST-MSGID
MSG_NR = SYST-MSGNO
MSG_TY = SYST-MSGTY
MSG_V1 = SYST-MSGV1
MSG_V2 = SYST-MSGV2
MSG_V3 = SYST-MSGV3
MSG_V4 = SYST-MSGV4
OTHERS = 1.
IF SY-SUBRC <> 0. ENDIF.