Prefill LDB selection screen
Hi Guys,
Is it possible to prefill LDB PNP selection screen with required values like PERNR. If yes, how?
Thanks,
mini.
You can do it 2 ways
1. You need fill field name and other attributes thru transaction code SLDB
2. Other wise if you are using fm LDB_PROCESS then you can find tables SELECTIONS you need to fill up with initial values
a®
Similar Messages
-
Hello ,
In my program selection-screen is coming from LDB(logical database) and i want my own selection-screen in the top means before LDB selection-screen.
Pls solve this ASAP.
Thanks.Hi,
Create your own selection-screen in your report with Parameters and select-option and activate.
Then automatically it will come.
Regards,
N.L.Narayana -
Want to use ldb selection screen with select queries
I want to use ldb selection screen with select queries since ldb having performance issue .How can I use the fields of the dynamic selection of LDB in the select queries
Hi,
Check the code snippet below: Here 'XXXX' is the table for your select query.
DATA L_DS_CLAUSES TYPE RSDS_WHERE.
MOVE 'XXXX' TO L_DS_CLAUSES-TABLENAME.
READ TABLE DYN_SEL-CLAUSES WITH KEY L_DS_CLAUSES-TABLENAME
INTO L_DS_CLAUSES.
SELECT * FROM XXXX
WHERE field1 IN ...
AND field2 ....
AND (L_DS_CLAUSES-WHERE_TAB).
PUT XXXX.
ENDSELECT.
You can also try using the FM 'RS_REFRESH_FROM_DYNAMICAL_SEL' passing SY-CPROG in curr_report and 'M' for mode to get the dynamic selection screen values.
Regards,
Munesh. -
Is it possible to move the ldb selection screen?
Hi All,
I have a custom program which uses a logical db.
The selection screen from the LDb is displayed first and then my custom selection screen is displayed.
There is a requirement where the custom selection screen needs to displayed first - at top and then the selection screen from the LDB.
Is it possible to move down the selection screen from the LDB?
If so then please let me know how...Hi,
with LDB, you can just hide or display LDB selection screen elements,
but moving your custom selection screen above LDB selection screen is not possible, as upto my knowledge.
Thanks.
Raghav M. -
ORGEH ON HR LDB SELECTION SCREEN
hello,
I am using PNP LDB selection screen i am getting the results when i gave person number but i am unable to get the data for ORGANIZATIONAL UNIT (orgeh).
ANY ONE PLEASE SUGGEST ME HOW TO GET THE DATA FOR ORGEH.
THX IN ADVANCE
MUNNA.Hi,
Please follow
Go to transaction SPRO -> Personnel Management ->Human Resources Inforamtion system -> HIS -> Reporting ->
Adjust the standard selection screen -> Create Report Categories.
I hope if this meet your requirement, please award suitable points and close the thread.
Regards,
Irfan Hussain -
LDB selection screen field mandatory
hi,
In LDB selection screen i want to make other period field as mandatory.
how to do it? if anyone knows please help me.
thanks in advance.
Suchithra.Hi,
You can use following code to (AT SELECTION-SCREEN OUTPUT) in the LDB to make selection screen parameter mandatory.
AT SELECTION-SCREEN OUTPUT.
loop at screen.
if screen-name = 'PNPBEGDA'. "Give here the screen field name that you want make as manadatory
" to get the screen field name, press 'F1' on that field and get technical
"information
screen-required = 1.
MODIFY SCREEN.
endif.
endloop.
Hope this helps,
Shrinivas -
hi i have a unusual requirement
Presently in one of my HR reports I am using 'PCH' LDB.
In the selection screen we have the object ID which is defined in standard program with no-intervals like this.
SELECT-OPTIONS:
PCHOBJID FOR OBJEC-OBJID VALUE-REQUEST "ObjektId
MODIF ID $OB NO INTERVALS.
Now in my program I want to have it as regular select option. Can we change this in anyway.
I was able to modify the rest of the fields by using AT-SELECTION-SCREEN OUTPUT EVENT.
Please help me with this, points guaranteedHi rhaul,
1. I don't we can directly do as per ur requirement.
2. Bcos No-Intervals cannot be modified using Loop at screen.
3. Another option is to copy the standard Ldb and use it.
regards,
amit m. -
RE:pnp LDB selection screen problem
hi,
hi friends iam facing one problem regarding hr ABAP selection screen ,in my program iam using PNP LDB for bonus details report
i have using selection screen declaration present for single selection.
SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-006.
SELECT-OPTIONS: S_ABKRS FOR P0001-ABKRS NO INTERVALS NO-EXTENSION,
S_WERKS FOR P0001-WERKS NO INTERVALS NO-EXTENSION,
S_BTRTL FOR P0001-BTRTL NO INTERVALS NO-EXTENSION,
S_PERSG FOR P0001-PERSG NO INTERVALS NO-EXTENSION,
S_PERSK FOR P0001-PERSK NO INTERVALS NO-EXTENSION.
SELECTION-SCREEN END OF BLOCK B3.
based on this selection iam fetching the information from infotypes using macros.
now my requirement is iam fetch the information for multiple selections means like payroll areas z1,z2 and z3 payroll informations
should be fetching once. pls any body knows solution please give me reply.
thanks & regards,
mgrao.hi jain thanks for your reply, iam already created report category and assigned my report. here iam giving my report selection
declerations fully below.
S E L E C T I O N S C R E E N *
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001. " DECLEARED REPORT CODE LEVEL
SELECT-OPTIONS: S_DATE FOR SY-DATUM NO-EXTENSION. "Bonus for Financial Year
PARAMETERS: P_BDATE TYPE SY-DATUM OBLIGATORY, "Bous payed as on
P_WKDAYS TYPE CHAR6. "No.of Working Days
SELECTION-SCREEN END OF BLOCK B1.
*SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-006. " COMMENTED report level TAKING FROM LDB PNP
*SELECT-OPTIONS: S_ABKRS FOR P0001-ABKRS NO INTERVALS NO-EXTENSION, " Payroll area
S_WERKS FOR P0001-WERKS NO INTERVALS NO-EXTENSION, Personnel area
S_BTRTL FOR P0001-BTRTL NO INTERVALS NO-EXTENSION, Personnel sub area
S_PERSG FOR P0001-PERSG NO INTERVALS NO-EXTENSION,
S_PERSK FOR P0001-PERSK NO INTERVALS NO-EXTENSION.
*SELECTION-SCREEN END OF BLOCK B3.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002. "REPORT CODE LEVEL SELECTION
PARAMETERS: P_FORMCP TYPE PIN_RATE, " char6, "Form C %
P_FORMEP TYPE PIN_RATE, " char6, "Exgratia %
P_FORMBP TYPE PIN_RATE. " char6 . "Bonus %
SELECTION-SCREEN END OF BLOCK B2.
SELECTION-SCREEN BEGIN OF BLOCK B4 WITH FRAME TITLE TEXT-004.
PARAMETERS: L_REPORT TYPE ZHRD_FORMC AS LISTBOX VISIBLE LENGTH 40 OBLIGATORY . Report for list box 1 form c
SELECTION-SCREEN END OF BLOCK B4. 2 exgratia
the above selection is iam used first, now iam commented BLOCK B3 SELECTION PARAMETERS and taking the parameters from REPORT CATEGORY ASSINGN MENT.
MY PROBLEM is if i select one payroll area example z1 it showing all pay roll employees bonus details it is not filter the remaining payroll areas my requirement is what are the payrolls iam selecting those pay roll area details only displaying.
data fetching from INFOTYPES 0001,0002,0021 AND 9150 FOR BONUS DETAILS and out put is classical report format.
please kindly give the reply if you knows the solution.
thanks & regards ,
mgr. -
Can we debug the LDB PNP, if so how? How to change the selection screen of LDB.
Hi,
Please follow
Go to transaction SPRO -> Personnel Management ->Human Resources Inforamtion system -> HIS -> Reporting ->
Adjust the standard selection screen -> Create Report Categories.
I hope if this meet your requirement, please award suitable points and close the thread.
Regards,
Irfan Hussain -
How to remove multiple selections button in LDB selection screens
Hi Friends,
I am facing a problem while doing an HR object. I took an LDB with Selection screen '100'. i got the company code select-option in it. But i need to avoid multiple selection button so that i have to take only a single company code to print the ALV heading as the company Text. Please tell me quickly, how can i do it.
Regards,
Santosh.You may have to do something like below where S_BUKRS is your company code select option of the LDB.
REPORT zakstest1 NO STANDARD PAGE HEADING.
TABLES t001.
TYPE-POOLS: sscr.
SELECT-OPTIONS s_bukrs FOR t001-bukrs.
INITIALIZATION.
*-- Remove the the ranges option
PERFORM remove_ranges_for_sel_options.
*& Form remove_ranges_for_sel_options
* text
FORM remove_ranges_for_sel_options.
DATA: optlist TYPE sscr_opt_list,
restrict TYPE sscr_restrict,
*** TYPE sscr_***.
*-- Allow EQ only
CLEAR optlist.
optlist-name = 'EQ_ONLY'.
optlist-options-eq = 'X'.
APPEND optlist TO restrict-opt_list_tab.
CLEAR ***.
***-kind = 'S'.
***-sg_main = 'I'.
***-sg_addy = 'N'.
*-- Make S_BUKRS range to have only EQ
***-name = 'S_BUKRS'.
***-op_main = 'EQ_ONLY'.
APPEND *** TO restrict-***_tab.
CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
EXPORTING
restriction = restrict
EXCEPTIONS
too_late = 1
repeated = 2
selopt_without_options = 3
selopt_without_signs = 4
invalid_sign = 5
empty_option_list = 6
invalid_kind = 7
repeated_kind_a = 8
OTHERS = 9.
ENDFORM. " rem_ranges -
Regarding LDB selection screen
Hi All,
I copied a standard LDB program "RCATSCMP".
I have a date fields in selection screen.
When i debuged the standard program i am getting the date values PN-BEGDA and PN-ENDDA.
but when iam debugging my program iam not getting any values for these fields.
How to get these values.
Thanks in Advance
kiran iHi Kiran,
Please check the attributes of the copied program
and see whether it has logical data base 'PNP' is
there are not.
Thanks & Regards,
Siri. -
How to supress LDB selection screen
Hi All
I am using selection screen in report and LDB too.
Can anyone tell how to supress default selction screen of LDB?
Thanx
KamalHi kamal,
1. Just do not declare any structure / table
/ node
as defined in the ldb.
2. then the default selection screen won't come.
3. U can just code your own selection screen,
it will come by default.
regards,
amit m. -
URGENT( PNP LDB SELECTION SCREEN )
hiiiii,
can anyone tell about the field PNPDISBD of pnp LDB in sap-hr , and why it is used. Is There any field on selection screen related to this when we use pnp LDB.Hi,
PNPDISBD is nothing but a date.
Go to SE38 and open the report SAPDBPNP.
And search for the field PNPDISBD then you will come to know its functionality. -
Modification of LDB Selection screen
Hi All,
I am currently working on a HR report and I am using the LDB PNPCE, which provides a default selection screen with two blocks and my requirement is to hide the first block i.e., the Reporting Period block.
Can you please tell me how do I do that. And can I use report category to achieve the same ?.
Thanks in Advance.Hi,
The pnpce ldb gives a default hr report category.
You need to go the the attributes of the report: at the bottom of attribute screen you will see the hr report category.
Create a new hr report category and for the created hr report category remove the check box for the reporting period.
Also you will have to provide some entires on the selection screen like pnporgeh, pnppernr and so on and after creating the same dont forget to put the check box for first page.
Regards,
Divya -
In the LDB selection screen -Diff b/w Data selection / person selection
Hi Experts,
Want to know what is the difference between
Data Selection Period
Person Selection Period
in the other period , in the selection screen of the LDB PNP.
Thanx in Advance.
Regards,
IFFhi,
Please Refer to this link.
[abap hr question;
This will Help You.
Reward if helpful.
Regards
Sumit Agarwal
Maybe you are looking for
-
Does anyone have a view of why the following may not work? Problem: We want additional characteristics of the Sales Order presnet in our Sales Order Cube without having to drop and reload the data. Proposal: Store the sales order as master data and h
-
Occi is too bad,so can't use in projiect!!
Occi cann't get row number; Occi cann't move frond and move first,but oci can; Occi cann't get rowset value by column name and also can't get column name by column index. It's necessary to exist?
-
I have recently installed Flash Player 10.2 on Windows 7 64 bit. Flash Player no longer works. Everytime I visit a page that requires it I am asked to download it. If I do so I am asked to reboot. After this I am back to square 1 - FP does not wor
-
OS X (10.5.2) won't install
I have a two year old macbook that has :Processor Name: Intel Core Duo Processor Speed: 2 GHz Number Of Processors: 1 Total Number Of Cores: 2 L2 Cache (per processor): 2 MB Memory: 1 GB Bus Speed: 667 MHz Boot ROM Version: MB11.0061.B03 SMC Version:
-
Trial Download Links For SAP Netweaver 7.01 Invalid
The only available trial links for SAP Netweaver are for version 7.01. Both of these links are invalid and you receive a File not found error. https://downloads.sdn.sap.com/netweaver/abap/SAPNW7.01ABAPTrial.part1.rar https://downloads.sdn.sap.com/net