difference between at selection-screen and at
selection-screen output?

Answer Posted / the abap

At selection screen is used to validate input..

at selection screen on output is used to set screen attributes

AT SELECTION_SCREEN OUTPUT
LOOP AT SCREEN.
if VIEW = 'X' " View radio button selects
IF SCREEN-NAME = 'PR1'.
screen-INPUT = 0.
modify screen.
ENDIF.
IF SCREEN-NAME = 'PR2'.
screen-INPUT = 0.
modify screen.
ENDIF.
ENDLOOP.
AT SELECTION-SCREEN.

*val....1 Variant check
* Once the user has entered variant, check about its existence
PERFORM CHECK_PVAR. "Using FM REUSE_ALV_VARIANT_EXISTENCE
*val....2 Sd do not exists
SELECT SINGLE VBELN INTO WA_HEADER-VBELN FROM VBAK WHERE VBELN IN
S_VBELN.
IF SY-SUBRC 0.
MESSAGE E010 WITH TEXT-010.
ENDIF.
*val.....3 Date of creation check
LOOP AT S_DOC.
IF S_DOC-LOW > SY-DATUM OR S_DOC-HIGH > SY-DATUM.
MESSAGE E011 WITH TEXT-011.
ENDIF.
ENDLOOP.
*VAL....4
if P_DOWN = 'X' AND P_PATH is initial.
MESSAGE E011 WITH TEXT-011.
endif.

if P_DW_RP = 'X' AND P_path is initial.
MESSAGE E011 WITH TEXT-011.
endif.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are Delivery classes? What data will you want to transport during client copy?

1206


Can we set page headers to details lists?

790


What is the function module to popup contents in the internal table?

800


what is bapi,badi,bdc,ale idocs?

1870


Explain the table, which contain the details of all the name of the programs and forms?

737


How to call a subroutine in sapscript?

823


What are the payroll related Infotypes

2029


What are the contents in technical specifications?

862


What is the difference of update types in call transaction method ? : abap bdc

889


Why is pretty printer user in abap?

890


Define abap/4 layer?

1036


How many main windows will be there in a page window?

770


What is the maximum number of structures that can be included in a table or structure

847


hi experts,,, what is meant by documentation? test casr preparation? documentation and preparation and Tcode for this? quality and releasing? test case scenario?

1983


What are uses of foreign key?

825