cancel
Showing results for 
Search instead for 
Did you mean: 

how to perform master data validation in selection screen fields

03-25-2023 8:58 AM
Nick__2849 Participant
1513 views 5 comments
0 Likes
SAP Managed Tags
Subscribe

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

0 Likes

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.
vulturas4
Explorer

I think you're wrong.

The keyword is OBLIGATORY.

Sandra_Rossi
Active Contributor

vulturas Thanks for the warning!

vulturas4
Explorer
0 Likes
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