2006 Sep 07 6:19 PM
Hi,
My programer has code like following for an output conditon type; He also commented that "The program for the delivery file, you need to call the form ENTRY, using a RETURN_CODE and US_SCREEN."
May I know what is US_SCREEN here means?
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.
PERFORM SEND_CSV_FILE.
RETURN_CODE = 0.
ENDIF.
2006 Sep 07 6:30 PM
Hi
U should say us what's in routine PROCESSING, I can only suppose US_SCREEN ca be a work area where it's stored the SCREEN status of a certain field.
Max
2006 Sep 07 6:27 PM
US_SCREEN is a parmeter passed via the subroutine call. Double click on FORM & it should take you to the PERFORM statement.
~Suresh
2006 Sep 07 6:30 PM
Hi
U should say us what's in routine PROCESSING, I can only suppose US_SCREEN ca be a work area where it's stored the SCREEN status of a certain field.
Max
2006 Sep 07 6:34 PM
The processing routine has the following;Getting the delivery number from the NAST table.
FORM PROCESSING USING PROC_SCREEN.
XVBELN = NAST-OBJKY.
ENDFORM.
Thank you
2006 Sep 07 6:44 PM
Hi
I suppose you're updating a program to print a document so US_SCREEN means if the user want to print the document or to see it on the screen.
Infact in the dialog popup to choose printer data it can choose if to printer document really or to see it by preview.
If it chooses preview US_SCREEN = 'X'
Max