Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP coding

Shiva_Ram
Active Contributor
0 Likes
854

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
744

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

4 REPLIES 4
Read only

suresh_datti
Active Contributor
0 Likes
744

US_SCREEN is a parmeter passed via the subroutine call. Double click on FORM & it should take you to the PERFORM statement.

~Suresh

Read only

Former Member
0 Likes
745

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

Read only

0 Likes
744

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

Read only

0 Likes
744

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