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

Define batch input session?

776


What is the max no of match code id’s that can be defined for one match code object?

932


What are the different message types available in the abap/4 ?

766


What is the structure of the bdc table? : abap bdc

958


Rp_provide_from_last contains how many parameters ? : abap hr

1197


What are the requirements a dialog program must fulfill?

848


What is meant by write lock? : sap abap data dictionary

815


could anyone tell me what r real time questions been asked in interviews?i am in urgent need..thanks in advance

1676


If yes then why do we require logical database

2905


What does an EXEC SQL stmt do in ABAP? What is the disadvantage of using it?

995


Interactive Report that list purchase order details of a vendor. When the user double clicks on material number it shows detail list with fields matkl, meins, brgew, ntgew, gewei.The selection screen consist of sales organisation, distribution channel and material number. plz mention the detail coding Tahnks, Rahul

3481


Can we include customizing include or an append structure with pooled or cluster tables?

913


What is netweaver???what is the relationship with ABAP?

1840


I am uploading 100 records out of which say 59th record has error so what will happen if I am using synchronous or asynchronous method of bdc? Can we update the database using local update mode how? : abap bdc

3064


what is difference between (internal table types)standard table and sorted table in sap abap....

2139