Problem solve Get help with specific problems with your technologies, process and projects.

Data Validation - Effectively

In reports,if we want to validate the selection screen entries, We handle it in 'AT SELECTION-SCREEN' event.

In reports,if we want to validate the selection screen entries, we handle it in 'AT SELECTION-SCREEN' event. If...

we do any action in selection screen (like press enter or go for further selection) this event will be triggered. It will take more time to enter data. To avoid it, we can check the SY-UCOMM, and process the validation. We can skip the data validation, if we run the program in background. It may be helpful in some scenarios.


TABLES: SSCRFIELDS, BUKRS.

SELECT OPTIONS: S_BUKRS FOR T001-BUKRS.


AT SELECTION-SCREEN.

IF SSCRFIELDS-UCOMM EQ 'ONLI'.
 SELECT SINGLE * FROM T001 WHERE BUKRS IN S_BUKRS.
  IF SY-SUBRC NE 0. 
    SET CURSOR FIELD 'S_BUKRS-LOW'.  
 MESSAGE E001(XX) WITH S_BUKRS-LOW.
  ENDIF.
ENDIF.
This was last published in December 2001

Dig Deeper on SAP Basis administration and NetWeaver administration

PRO+

Content

Find more PRO+ content and other member only offers, here.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close