cancel
Showing results for 
Search instead for 
Did you mean: 

Selection screen: PNP database or other selection criteria

derk_bunders
Discoverer
0 Kudos

I received a specification of a new to be developed program where they defined a selection screen with a with 2 radio buttons:

1. Use the logical database PHP for data selection (rb1);

2. Use other criteria for data selection (rb2).

My question is, is this possible?

Or should I add the other criteria between the GET PERNR and the following code with?

Sample:

GET PERNR
  IF rb2 = ‘X’.
    [Check other criteria]
    IF sy-subrc <> 0.
      EXIT.
    ENDIF.
  ENDIF.

null

Accepted Solutions (1)

Accepted Solutions (1)

anncottens
Explorer
0 Kudos

When either pnp OR other selection :

Create program 1 with 2 radiobuttons ==> pnp-selection (rb1)or other selection (rb2). When rb1 is selected go to pgm1 with pnp ; when rb2 is selected go to pgm2 with other selection criteria. Copy pgm1 to pgm2 and add extra selections en delete pnp-statements.

When pnp WITH extra selections : 1 pgm can be used as you described.

Answers (0)