Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Make (LDB)PNP Fields obligatory on selection-screen

former_member181966
Active Contributor
0 Kudos

I am using LDB PNP.. I want to make some fields of PNP as obligatory. How Can I do that?

So far I am doing the following...

<b>Initialization.

PNPABKRS-LOW = '?'.

Append PNPABKRS.

At selection-screen.

if PNPABKRS-LOW is initial.

PNPABKRS-LOW = '?'.

Message e100(z01).

endif.</b>

What you suggest ?

Thanks

Message was edited by: Saquib Khan

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You have to do this way,


AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF SCREEN-NAME = 'PNPABKRS-LOW '.
      SCREEN-REQUIRED = 1.
      MODIFY SCREEN.
    ENDIF.
ENDLOOP.

1 REPLY 1

Former Member
0 Kudos

You have to do this way,


AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF SCREEN-NAME = 'PNPABKRS-LOW '.
      SCREEN-REQUIRED = 1.
      MODIFY SCREEN.
    ENDIF.
ENDLOOP.