Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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.

ENDFORM.

FORM PROTOCOL_UPDATE USING SCREEN_OUTPUT.

CHECK SCREEN_OUTPUT EQ SPACE.

CALL FUNCTION 'NAST_PROTOCOL_UPDATE'

EXPORTING

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

EXCEPTIONS

OTHERS = 1.

IF SY-SUBRC <> 0. ENDIF.

ENDFORM.

-


Thanks

Tags:
Not what you were looking for? View more on this topic or Ask a question