Change PNP standard selection screen attributes
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.
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
Similar Messages
-
How to change standard selection-screen fields
hi i am kishore.
i have requirement.
i have to change selection-screen label purchase order to purchase docuement in request for quatation.
pls suggest that how to change the standard selection screen field labels.Hi.
This is possible.
Just try out this way.Heres is an example.
TABLES: pernr.
data: i_tab type standard table of RSSELTEXTS with header line.
initialization.
i_tab-name = 'PNPPERNR'.
i_tab-kind = 'S'.
i_tab-text = 'Employee ID'.
append i_tab.
CALL FUNCTION 'SELECTION_TEXTS_MODIFY'
EXPORTING
program = 'ZESO_TEST'
tables
seltexts = i_tab
EXCEPTIONS
PROGRAM_NOT_FOUND = 1
PROGRAM_CANNOT_BE_GENERATED = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks and regards,
Maheshwari.V -
Change Layout in Selection Screen for OO ALV-Grid
Hello everyone,
I got a problem regarding layouts for objectoriented ALV Grid. I want to make it possible that user can take the layout for ALV he wants to on the selection screen. So far thats no problem and it works. But there are some little problems which I do not know how to fix them. But first the facts:
(1) I got my parameter for layout
PARAMETER: p_vari TYPE disvariant-variant.
(2) I fill my global layout structure in initialization
INITIALIZATION.
* Variante vorbelegen
gs_variant-username = sy-uname.
gs_variant-report = sy-repid.
* Layout holen
CALL FUNCTION 'LVC_VARIANT_DEFAULT_GET'
EXPORTING
i_save = 'A'
CHANGING
cs_variant = gs_variant
EXCEPTIONS
wrong_input = 1
not_found = 2
program_error = 3
OTHERS = 4.
IF sy-subrc = 0.
p_vari = gs_variant-variant.
ENDIF.
(3) I got my handling for F4-value help on variant parameter
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vari.
CALL FUNCTION 'LVC_VARIANT_F4'
EXPORTING
is_variant = gs_variant
i_save = 'A'
IMPORTING
es_variant = gs_variant
EXCEPTIONS
not_found = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE text-m01 TYPE 'S'.
ELSE.
p_vari = gs_variant-variant.
ENDIF.
(4) I give back my parameters content into the variant structure at start of selection
START-OF-SELECTION.
gs_variant-username = sy-uname.
gs_variant-report = sy-repid.
gs_variant-variant = p_vari.
This works all fine but I got some problems when using default variants/layouts. For example I got a default variant only for me. When starting the selection screen it works fine that the default layout was written. It is displayed automatically in the variant parameter. But I want that if i I empty the content (blank it out) from my variant parameter, that report should start with "normal" layout how it was written in the report and NOT with default layout.
When I clear the gs_variant it works like I want it, but then the alv layout button looks like (without functions for layout), because I do not have the reference to my report.
So what to do? :-)
Regards
MichaelWow that was fast, works great, thanks :-)
I did not use this parameter in set table method but now I fill it dynamically.
Ok next problem, one step harder ;-)
Now I have one selection screen for one ALV-Grid, but four radio buttons which control with which data the ALV gets filled (four different fieldcats, data tables and so on). Each Grid got an own HANDLE so that the layouts can be separated in four categories.
Now I want that by changing the radio button the individual standard layout for the chosen alv grid is getting filled.
This works fine when using it in selection screen output.
AT SELECTION-SCREEN OUTPUT.
CLEAR gs_variant.
* Layout-Handles individuell für Klausel-Radiobuttons setzen
IF p_py IS NOT INITIAL.
gs_variant-username = sy-uname.
gs_variant-report = sy-repid.
gs_variant-handle = 'KLPY'.
ELSEIF p_rh IS NOT INITIAL.
gs_variant-username = sy-uname.
gs_variant-report = sy-repid.
gs_variant-handle = 'KLRH'.
ELSEIF p_aj IS NOT INITIAL.
gs_variant-username = sy-uname.
gs_variant-report = sy-repid.
gs_variant-handle = 'KLAJ'.
ELSEIF p_sr IS NOT INITIAL.
gs_variant-username = sy-uname.
gs_variant-report = sy-repid.
gs_variant-handle = 'KLSR'.
ENDIF.
* Layout holen
CALL FUNCTION 'LVC_VARIANT_DEFAULT_GET'
EXPORTING
i_save = 'A'
CHANGING
cs_variant = gs_variant
EXCEPTIONS
wrong_input = 1
not_found = 2
program_error = 3
OTHERS = 4.
IF sy-subrc = 0.
p_vari = gs_variant-variant.
ELSE.
CLEAR p_vari.
ENDIF.
But unfortunately selection screen output is getting passed by EACH changing in the selection screen. This means when I try to clear the default layout in my parameter field, it gets refilled automatically with default layout. If I do a condition around the filling (only if not initial) the default value filling does not work fine in every case, e.g. when clearing the parameters field and then change the radiobutton -> then it does not get filled automatically. -
Hi all,
I have written a Z program using LDB PNP. Usually we get a standard selection screen where in we enter begda and endda. However I am getting a different type of standard screen for selection when I execute it with KEYDATE on it. What do I have to do get standard selection screen with start date and end date on it.
Cheers,Thanks for the response.
The report category field is blank. -
How to disable a standard selection screen of LDB?
Hi Friends,
My requirement is to disable a standard selection screen of a standard LDB and use my own Selection screen instead.How to go about it?.
Prompt replies would be rewarded.
Regards,
Tamilarasan.Hi Tamilarasan,
U can hide LDB field, in the following way.
1.In tables statement remove the table name for the fields
you done require.
2.You can modify the screen fields. LOOP AT SCREEN
3.In the program attributes you can choose the SAP defined
selection screen if provided.
Add can add new field, in the following way,
1.If it is Customer program then as normal way like
SELECTION-SCREEN: BEGIN OF BLOCK 1
SELECT-OPTIONS:
SELECTION-SCREEN END OF BLOCK 1.
2. Goto SE36 and modify the selection views by creating 'CUS'.
All LBD will not have dynamic selection. If you want you can copy to Z* version and add the following statement to have dynamic selction
"SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE" XXXX
Regards,
Prabhu Rajesh. -
PCH ldb - hiding fields on standard selection screen
Hi,
I am using PCH ldb in my report. The standard selection screen which appears initially, does not show us the "object selection period" fields directly (it is hidden initially). It is displayed only after the "other period" button is clicked.
The requirement is that the "object selection period" fields should be displayed directly without requiring the user to click on the "other period" button.
When using PNP ldb, it is possible to create a report category and hence this can be achieved in PNP. But i am unable to find any solution for the same in PCH ldb.
Does anyone have some idea about implementing the same.Hi Vikram,
There are no report categories for PCH.
If you enter some values in the dynpro variables it will jump there automatically.
REPORT zmf_pch.
TABLES: objec.
INITIALIZATION.
pchobeg = sy-datum.
pchoend = sy-datum.
GET objec.
Regards,
Michael -
Button in standard selection screen...
hello All,
I am using PNP logical database and i have modified the standard selection screen for PNP.
But now there is a button that appears , although the rest is supressed as i wanted it to.
Our forums active contrubutor suresh datti has provided me a solution before to go to sytem then status and then click screen 100 then invisible the push button and activate and re-execute the program. The method seems to work fine. But surprisingly after some time the button appears again..
any idea..??
thanks,
Reena..then try to remove the button from there.
-
Add bottons on the application tool bar of the standard selection screen
Hi All,
I am having the standard selection screen in module pool programing. I wnat to add the bottons on the application tool bar of the standard selection screen.and hide the existing bottons (like std. execute and i bottons.)instead of these i want to give my won bottons like create and display.
pls help on this.Hi Sridhar,
Try the Code below. It places two buttons on the selection-screen along with the execute button.
TABLES sscrfields.
PARAMETERS: p_carrid TYPE s_carr_id,
p_cityfr TYPE s_from_cit.
SELECTION-SCREEN: FUNCTION KEY 1,
FUNCTION KEY 2.
INITIALIZATION.
sscrfields-functxt_01 = 'LH'.
sscrfields-functxt_02 = 'UA'.
AT SELECTION-SCREEN.
CASE sscrfields-ucomm.
WHEN'FC01'.
p_carrid = 'LH'.
p_cityfr = 'Frankfurt'.
WHEN 'FC02'.
p_carrid = 'UA'.
p_cityfr = 'Chicago'.
ENDCASE.
START-OF-SELECTION.
WRITE / 'START-OF-SELECTION'.
Just go to the table sscrfields to knoe the fields in it. I think this clears the issue.
Regards,
Swapna. -
How to manage obligatory parameters on standard selection screen.
Hi all,
How could I ensure settings some fields-parameters as obligatory on standard selection screen-dynpro1000. I would like to manage this according choosen block. On standard dynpro 1000 I have two blocks for two different selections. Checkboxes ensure which block of selection parameters I want to use. When I check first checkbox I need to set parameters in first block as obligatory and reversely in second block.
Thanks. zd.Another example...
report zrich_0003.
selection-screen begin of block b1 with frame .
parameters: p_check1 as checkbox user-command chk.
parameters: p_fielda type c modif id gp1.
parameters: p_fieldb type c modif id gp1.
parameters: p_fieldc type c modif id gp1.
selection-screen end of block b1.
selection-screen begin of block b2 with frame .
parameters: p_check2 as checkbox user-command chk.
parameters: p_fieldd type c modif id gp2.
parameters: p_fielde type c modif id gp2.
parameters: p_fieldf type c modif id gp2.
selection-screen end of block b2.
at selection-screen output.
if p_check1 = 'X'.
loop at screen.
if screen-group1 = 'GP1'.
screen-required = '1'.
modify screen.
endif.
endloop.
else.
loop at screen.
if screen-group1 = 'GP1'.
screen-required = '0'.
modify screen.
endif.
endloop.
endif.
if p_check2 = 'X'.
loop at screen.
if screen-group1 = 'GP2'.
screen-required = '1'.
modify screen.
endif.
endloop.
else.
loop at screen.
if screen-group1 = 'GP2'.
screen-required = '0'.
modify screen.
endif.
endloop.
endif.
Regards,
Rich Heilman -
Button on standard selection screen
HI experts , can any budy tell me , that, can we put a button on the standard selection screen , means on screen no 1000, PLease suggest ur ans, i have a requirement to create a button on the first selection screen by selection the check box on the standard selection screen , a button should be appear on the standard selection screen.
THanks in advance,
RahulHello,
What do you mean by "but ur second concept is wrong we can set our own pf-status then how can u say that set the status".
Read again what I wrote! I said that the solution for your problem is to create a PF status of your own and that one will substitute the STANDARD one. This is the reason for having to insert the Execute (F8) button on it. Otherwise, if you don't insert it, you wont be able to execute your report.
Also, plz reply if u know the exect ans? this is not nice to say, specialy when the answer is correct. I've inserted buttons in standard selections screen lot's of times.
Regards.
Valter Oliveira. -
PNP Report(Selection Screen)
hi,
i had attached the <b>Standard Selection screen</b> to my <b>ALV</b> report but i am not able to apply checks on the Selection screen to filter the data on my report and want to display accordingly..
can anybody help me on this...Hi Dinesh,
Even though I am not able to understand your query, just thought of sharing the idea which I used in one of the ALV.
CASE 'X'.
WHEN rad1.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_structure_name = 'ZSTOP_SALARY'
i_grid_title = ' MANUAL STOP SALARY REPORT'
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2.
WHEN rad2.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_structure_name = 'ZSTOP_SALARY'
i_grid_title = ' VACATION STOP SALARY REPORT'
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2.
ENDCASE.
Just check this... Hope this might help you out.
Best Regards
Renjan -
Including User selection criteria along with LDB standard selection screen
Hi
While creating a HR report, along with the standard selection screen, if the cusomer requires some more fields to be added, How to retrive the data from the DB?
Is it the way to retrive the data based on Standard selection criteria from the LDB and then filter it based on user criteria or any other way?
Please help me out in this regard.
Thank you.Yes thats the way. You get the data based on Selection screen of LDB (You can select Report Catogory you wish to) once you get data, You can put CHECK statement to see the data against PXXXX type to the filter value from you custom field on selection screen.
-
LDB FMF + supress standard selection screen
Hi,
I had developped a specific report using the LDB FMF, but i want to supress the standard selection screen.
i want to use my only own specific selection screen.
How to do that ?
Best regardsFind the link below:
[http://help.sap.com/saphelp_46c/helpdata/en/9f/db9bed35c111d1829f0000e829fbfe/frameset.htm] -
PNP and Selection Screen 900 and Authorization
We have used the combination of logical db PNP with selection screen 900 to write a few custom payroll reports. We noticed right away that this combination seems to ignore HR authorizations. Meaning, someone could read payroll results for employees they are not authorized to see. We had to add our own authorization checks.
Am I missing something or is something wrong with the 900 selection screen?Hi Kenneth,
The 900 selection screen is for evaluation of Payroll Results. The system checks whether the user who started the evaluation has the correct authorization for this evaluation. Since the data retrieval is from the Payroll Results and not Master data the regular Authorization checks might not be relevant here. Even if the User has no authorization to view the Employee's Master data, he/she might still be able to view the Payroll results via this selection screen if he /she has the evaluation authorization. You are probably right in having to put in your own authorization checks. I hope I am not wrong.
Regards,
Suresh Datti
Message was edited by: Suresh Datti -
Difference between standard selection screen and selection screen
hi guyz,
im asking this because in the table D010SINF there are two fields sdate and idate which has different dates in it for some programs and same dates for some..bit confused:(
thankshi BrightSide
standard Selection means
suppose if you are using parameters means system defaultly generate one screen under the Screen Number 1000
Selection Screen means you are creating a screen using
stament SElection-Screen begin of screen 100..
this is the difference whatever the screen other than '1000' is selection Screen, where as 1000 is Standard Selection Screen
Regards
Deva
Maybe you are looking for
-
Is there a way to change the color of the "cell pattern" in Premiere Pro? The color correction effects and even Paint Bucket dont work. The only way I was able to change the color was to put a colored image over the cell pattern and reduce the opacit
-
Data Protector 6.11 File Names Purge - Recovery.
Hi All; On reviewing our Data Protector today I am finding a lot of session, restore, and media files missing. I have found out that someone ran a cmd for DP:- Omnidbutil -purge -filenames Could this be a reason I am seeing missing information as abo
-
Need help in installing JSDK(please)
Hi guys I Am trying to implemente a servlet(my first servlet),So I downloded JSDK. But I can t find servlet in the package javax. I have put a copy of servlet.jar in jdk1.2.1\jre\lib\ext, but still nothing. can u please help me with that? thanks
-
Printing from Preview produces error message "The file couldn't be opened".
Hi, Ever since the upgrade to OS X 10.8, I get the error message "The file couldn't be opened" each time I want to print from Preview. I just have to click "OK" and then everything prints fine, but if anyone knows how to get rid of this message, it w
-
How can you tell how many user licenses you have available. I did a quick search and didnt come up with anything. Server now has 14 users, so I assume that it is the unlimited user license.. but I want to make sure that it isnt the 10 user... Thanks