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: 

Change PNP standard selection screen attributes

Former Member
0 Kudos
771

Hi experts,

I need to change the standard PNP selection screen parameter BUKRS into "obligatory".

I know it can be done for all reports using PNP through SPRO, but I need it only for one customer report.

Best regards,

A. Cepa.

1 ACCEPTED SOLUTION

former_member181962
Active Contributor
0 Kudos
247

If it is a custom report, just handle that part in the code.

at selection-screen on bukrs.

if bukrs is initial.

message e001(zz) with 'Company Code is mandatory'.

endif.

Regards,

ravi

7 REPLIES 7

former_member181962
Active Contributor
0 Kudos
248

If it is a custom report, just handle that part in the code.

at selection-screen on bukrs.

if bukrs is initial.

message e001(zz) with 'Company Code is mandatory'.

endif.

Regards,

ravi

0 Kudos
247

as a follow-up to the above response..

Pl note that the csreen filed is <b>PNPBUKRS</b>.

~Suresh

0 Kudos
247

Hi Ravi,

I've already thought on that solution.

But I'm trying to find one more "standard" because I don't like to send a custom message.

Thanks anyway.

0 Kudos
247

None of the standard screens for PNP Report Category has BUKRS on the screen, it need to be choose from the Further Selection tab, or beed to change the screen itself.

As an alternative provide an extra parameter for BUKRS on screen as mandatory field and exclude it in your GET statement for all non matching records.

Regards,

Amit

0 Kudos
247

Hi Amit,

The user uses that field BUKRS from the selection screen. I can't pass through it.

Anyway, you can customize the fields you want to be shown by default for "all" the PNP standard selection screen.

Best regards.

0 Kudos
247

You can hide the standard field on the screen using this -

INITIALIZATION.

LOOP AT SCREEN.

IF screen-name = 'PNPBUKRS-LOW'.

screen-active = '1'.

screen-input = '0'.

screen-invisible = '1'.

ENDIF.

IF screen-name = 'PNPBUKRS-HIGH'.

screen-active = '1'.

screen-input = '0'.

screen-invisible = '1'.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

Regards,

Amit

Former Member
0 Kudos
247

Hi Angel,

You can add the following code and it will make the field PNPBUKRS mandatory.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME = 'PNPBUKRS'.

screen-required = '1'.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

Regards,

Richa