2007 Mar 06 3:42 PM
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.
2007 Mar 06 3:48 PM
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
2007 Mar 06 3:48 PM
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
2007 Mar 06 3:50 PM
as a follow-up to the above response..
Pl note that the csreen filed is <b>PNPBUKRS</b>.
~Suresh
2007 Mar 06 3:50 PM
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.
2007 Mar 06 4:02 PM
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
2007 Mar 06 4:09 PM
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.
2007 Mar 06 4:21 PM
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
2007 Mar 28 10:29 AM
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