09-10-2008 8:08 PM
I am new to HR ABAP.
I am using PNP LDB and managed to supress all the LDB selections except Company Code & PERNR using Report category.
But now,
1. how do I know what are the names of these fields on selection screen
2. how do i default 1000 for bukrs.
Thanks
Kiran
09-10-2008 8:52 PM
1. how do I know what are the names of these fields on selection screen
Ans: Put a break point in ur prog.(say in event start-of-selection) and in debug mode check the screen table from menu path Goto->System Areas->Internal informations
2. how do i default 1000 for bukrs.
Ans: In the initialization event u can set the default value for company code.
09-10-2008 9:05 PM
I want to code and do some select 4m DB based on the selection-screen fields.
So i want to know the field names while coding itself.
Hope I am clear.
Thanks
Kiran
09-10-2008 9:11 PM
My previous answer was for LDB PNPCE not PNP. Sorry my bad.
You should not be doing selects from Infoype tables if you are using PNP LDB. All you need to do is use HR Macros.
Read the following link
http://help.sap.com/saphelp_45b/helpdata/en/60/d8bc17576311d189270000e8322f96/frameset.htm
Amandeep
09-10-2008 9:14 PM
Am sorry.I mean to say that i wanna select rec using macros only.
example: p_provide_from_last
p0000 space XX-begda XX-endda.
Now I need to know the field names to complete this.
Similarly I want to know that other field names of selection-screen by using PNP LDB.
So that I can use it in further data fetching.
tnx
kiran
09-10-2008 9:16 PM
If u want to know the LDB's selection screen field names then goto transaction SE36 give the LDB name and select the selection screen radio button and press display button.
09-10-2008 9:19 PM
I do it this way. From the selection screen i click on F1 and to go technical details and see the field name on the Selection screen.
OR go to the Structure PERNR and see the fields
A
09-10-2008 9:26 PM
When I look into se36, PNPBEGDA & PNPBEGPS are shown as begin date and end date.
But these are not populating in runtime.
But then, i referred some old program in our box and changed to pn_begps & pn_endps and data populating now.
Lots of confusion on this area.
can you plz guide completely.
when i click on pn_begps, it takes me to DBPNPCOM include.FYI.
thanks
kiran
Edited by: kiran dasari on Sep 11, 2008 1:57 AM
09-10-2008 9:37 PM
You don't have to go to SE36.
1. Got se38 in report attribute key in PNP as your LDB.
2. Start the Report as follows:
REPORT ztest.
NODES: pernr.
INFOTYPES: 0001. " Infotypes you want to select
START-OF-SELECTION.
GET pernr.
rp_provide_from_last p0001 space pnpbegda pnpendda. " use macros as per need / instead of pnpbegda you can eve use pn-begda and pn-endda
END-OF-SELECTION.
At runtime you can look at PERNR / PN structures in debug.
All the selct options on Selection screen are represented by PNP + name of field. for example
BUKRS on selection screen is PNPBUKRS.
to populate it use PNPBUKRS-LOW = '1000'. Append PNPBUKRS.
I hope this helps.
A
09-11-2008 12:12 AM
pn-begda & pn-pn-begps...
What is the difference between both of them?
Which one to use when?
Thanks
Kiran
09-11-2008 4:20 AM
09-11-2008 4:01 PM
you were and awarded you also.
but i didnot get proper answers for my queries.
If I am using an LDB, how do I know the fields names of that selection screen.
The second question was solved.Defaulting the company code.
Thanks
Kiran
09-10-2008 8:57 PM
1. To see all available fields go to the selection screen , click the 4th button from left (Cntrl + F2). You will get all available fields in a pop-up.
2. To Default the Value for company code on Selection screen do the following.
INITIALIZATION.
PNPBUKRS-LOW = '1000'. APPEND PNPBUKRS.
Hope this helps,
A
09-10-2008 9:04 PM