cancel
Showing results for 
Search instead for 
Did you mean: 

how to perform master data validation in selection screen fields

Junaidshaik284
Participant
0 Kudos

screenshot-2023-03-25-132654.png how to implement that in report and write any sample code so it will be helpful for me and I attached screenshot

Sandra_Rossi
Active Contributor
0 Kudos

Please embed the images instead of proposing hyperlinks, it's more user-friendly (allows reading without need of clicking and seeing images on separate screens).

Accepted Solutions (0)

Answers (2)

Answers (2)

Sandra_Rossi
Active Contributor

means that the field is required, so you need OBLIGATORY. (EDIT: fixed after Jürgen comment)

Concerning the search help of every field, you need to be experienced in SAP ERP and know the names of master tables for every field, e.g. for "material", it would be:

DATA: BEGIN OF dummy_select_options_for,
        matnr TYPE mara-matnr,
      END OF dummy_select_options_for.

SELECT-OPTIONS s_matnr FOR dummy_select_options_for-matnr.
vulturas
Explorer

I think you're wrong.

The keyword is OBLIGATORY.

Sandra_Rossi
Active Contributor

vulturas Thanks for the warning!

vulturas
Explorer
0 Kudos
SELECT-OPTIONS: foo FOR bar OBLIGATORY.

If you want to validate non-mandatory input fields, you should write a validation form/method/class.

Kind regards

Jürgen