cancel
Showing results for 
Search instead for 
Did you mean: 

FORM ENTRY USING RETURN_CODE US_SCREEN

Former Member
0 Kudos

Hi experts,

What does this part of code do in the driver program of each smart form if the output is triggered using some output type.Say If I go to a delivery and issue the output of the delivery the control comes to this part of code.I want to know the reason or rather the flow of control in this code.

FORM ENTRY USING RETURN_CODE US_SCREEN.

CLEAR RETCODE.

XSCREEN = US_SCREEN.

PERFORM PROCESSING USING US_SCREEN.

IF RETCODE NE 0.

RETURN_CODE = 1.

ELSE.

RETURN_CODE = 0.

ENDIF.

ENDFORM. "entry

Any pointers are welcome.

TIA

Abhishek

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I got apart of what i was looking for..So i will close this thread.

Former Member
0 Kudos

hi Abhishek,

Goto NACE transaction and select your application type and then select your output type.

after selecting output type double click on the Processing routines folder on the left hand side of the screen.

Then you will find something like this......

Medium Program FORM routine Form etc...

Print output RVADOR01 ENTRY RVORDER01

so according to this your output type is of medium Print Output and

Print Program : RVADOR01

SAP Script : RVORDER01

and you the other one is the FORM routine named ENTRY.

This statement states that then particular output type is executed it should go to the Print program and execute the form ENTRY first.

thanks,

satheesh.