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 i
Hi 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.
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. -
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 -
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. -
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. -
Regarding at selection screen event
hi experts,
i m working on hr abap report with the help of pnp ldb i made my selection screen using report category 'PY_DEF' now what i want that i m not using the first selction screen which contains current period details etc but when i click on the payroll period button the second selection screen is coming no doubt... containing payroll area current period ,other periods etc here i m entering payroll area eq 'ka' and other periods from '012006' to '122006' ,,here i want to validate the user input that it sud be of one year that is from 1 to 12.....for this i know i will use at selection event but how can i use it for the second selection screen not for first screen......... plz help me....Do u realy need the first selection screen having the current period? If u don't need then u can hide the field in the report category, by passing only the payroll area with other period, in this case we can validate through selection screen..
Reward points ... if found helpful...
Regards,
Sowmen Das -
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 -
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. -
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 -
Reg: LDB& Selection screen
Hello All,
I have a question reg. selection screen associated with LDB. Iam developing a LDB for Hedge where there are nodes which have the same selection opt but
they are disjunct. But in LDB static slection screen , we associate Sel Opt with
a node and it would appear only for that node. In my case , i have two nodes for the same Sel Opt. How can i resolve this issue ? Kindly help.Hai Srivijaya
Go through the following Document
1. A logical database is in fact
a program only.
2. This LDB provides two main things :
a) a pre-defined selection screen
which handles all user inputs and validations
b) pre defined set of data
based upon the user selection.
3. So we dont have to worry about from
which tables to fetch data.
4. Moreover, this LDB Program,
handles all user-authorisations
and is efficient in all respects.
5. tcode is SLDB
good info about Logical Database. you can check the link.
http://www.geekinterview.com/question_details/1506
http://help.sap.com/saphelp_46c/helpdata/EN/35/2cd77bd7705394e10000009b387c12/frameset.htm
Re: How to Create and Use ldb in reports?
Re: Logical databases
http://help.sap.com/saphelp_46c/helpdata/en/9f/db9bed35c111d1829f0000e829fbfe/frameset.htm
Functions for displaying and changing logical databases:
Call Transaction SE36 or
Choose ABAP Workbench -> Development -> Programming environ. -> Logical databases
Interaction between database program and report:
During program processing, subroutines are performed in the database program and events are executed in the report.
To read data from a database tables we use logical database.
A logical database provides read-only access to a group of related tables to an ABAP/4 program.
advantages:-
The programmer need not worry about the primary key for each table.Because Logical database knows how the different tables relate to each other,and can issue the SELECT command with proper where clause to retrieve the data.
i)An easy-to-use standard user interface.
ii)check functions which check that user input is complete,correct,and plausible.
iii)meaningful data selection.
iv)central authorization checks for database accesses.
v)good read access performance while retaining the hierarchical data view determined by the application logic.
disadvantages:-
i)If you donot specify a logical database in the program attributes,the GET events never occur.
ii)There is no ENDGET command,so the code block associated with an event ends with the next event
statement (such as another GET or an END-OF-SELECTION).
1. transaction code SLDB.
2.enter name z<ldb-name>
3.create
4.short text
5.create
6. name of root node (here Ekko)
7. enter short text (f6)
8.node type -> data base table.
9.create
10 change logical DB
riht click on ekko and insert node
here node name ekpo
11.create
12. click on selections
13. press no Should the changed structure of Z<ldb name> be saved first.
14.select tables which you want to join.
15.transfer
16 now you have to o to coding part.
17. save
activate.
19.click to src code
double click on first include and activate
Regards
Sreeni
Maybe you are looking for
-
Reading XML file from server in BI Publisher
Hi All, Can any one help me how i can get the XML file from server to BI Publisher using data source. The file should transfer directly to BI Publisher with out storing it in any local directory in local system. Thank you Shalini.
-
How do I get CC on DVD media?
Hello all, For the last several weeks, I have been trying to get Adobe to send me a DVD that has the latest version of CC. I read from a Adobe blog saying that support agents will send out media for people who requires it. Source: http://prodesigntoo
-
Working with ExtensionData attribute (byte arrays)
Hello all, I am working with the ExtensionData attribute in PowerShell, which is in byte array form. What I am wanting to do is change a part of this ExtensionData attribute, but still keep the byte array form. What I am currently trying makes the ch
-
Expression Based Connection String Failing on Report Manager
Hello, i have this report, where i want it the language selection to be dynamic. And so implemented the below expression, to my surprise everything works fine on BIDS but when i deploy to report Manager it errors out! (report manager language is en-U
-
Safari save image to iPhoto library still broken?
I have also run across the problem where I choose (right click in Safari) to save an image to the iPhoto library and the only thing that happens is that iPhoto opens. The image is not saved. I have done this on 8 different machines now, all running 1