Rp_provide_from_last infotype subtype pn-begda pn-endda.
Hi All,
Is there a way to find out if a subtype exists before using this macro. If a subtype does not exist then it crashes.
rp_provide_from_last infotype subtype pn-begda pn-endda.
Thanks,
~Mark
Mark,
Check the View V_T591A - Subtype Characteristics.
It will have all Subtypes maintained in your sytem for infotype.
Additionally if you want to Use the Macro for an Infotype without Subtype, Pass SPACE instead of Subtype.
RP_PROVIDE_FROM_LAST P0001 SPACE PN-BEGDA PN-ENDDA.
Hope this helps.
Vinodh Balakrishnan
Edited by: Vinodh Balakrishnan on Jan 15, 2008 3:19 PM
Similar Messages
-
Rp_provide_from_last p2001 space pn-begda pn-endda
Hi Guru's,
I am using PNP as LDB and after ,
My requirement is to fetch the records from p2001 for a specific time period mentioned in the selection screen.
Code :
Get Perner.
rp_provide_from_last p2001 space pn-begda pn-endda.
the output of the above is giving all the data from P2001 irrespective of the dates (Pn-begda & pn-endda.)
But i want the data with in the dates (Pn-begda & pn-endda.).
Plz suggest.
Thanks.Hi,
PROVIDE * FROM P2001
BETWEEN Pnpbegda AND Pnpendda.
write: p2001-pernr,p2001-begda.
ENDPROVIDE.
use this code..........
Regards,
vamshidhar .
Edited by: vamshi naini on Apr 23, 2008 2:06 PM -
HR - PNPbegda/PNPendda ......PN-begda/PN-endda
Hi,
I am going through some of the sample codes on internet. While querying on any infotype table I find that begin date/ end date on selection screen is referred as PNPbegda/PNPendda some times and PN-begda/PN-endda some times. Is there any some reason for this? what is the difference between use of these in two different ways?
Thanks
SDN POWEREDHi,
pnpbegda and pnpendda refer to the date fields on the selection screen.
when you use macros like RP_PROVIDE_FROM_FRST and
RP_PROVIDE_FROM_LAST you can see the pn-begda and pn-endda.
That means during the program pnpbegda and pnpendda are
assigned to pn-begda and pn-endda.
Ex: RP_PROVIDE_FROM_FRST p0001 space pn-begda pn-endda.
you can change pn- begda and pn-endda values.
Ex: pn-begda = '20080101'.
pn-endda = '20081231'.
Ex: RP_PROVIDE_FROM_LAST p0001 space pn-begda pn-endda.
you can directly use the dates even.
EX:RP_PROVIDE_FROM_LAST p0001 space '20080101' '20081231'.
For better understanding go through the programs
SAPDBPNP and SAPDBPNPCE. -
Updating HRP infotype's begda and endda fields using RH_PNNNN_MAINTAIN.
hi all,
I want to change the begda and endda fields in hrpXXXX infotype tables, but use the functiom module RH_PNNNN_MAINTAIN in dialog mode, the begda and endda fields can not be edited.
can we change these things using this FM?
or are there any other FMs can make this?
thanks,
Huai ZhiHello,
Use in this way
CALL FUNCTION 'RH_PNNNN_MAINTAIN'
EXPORTING
ACT_FCODE = ACT_FCODE
ACT_PLVAR = IPLOG-PLVAR
ACT_OTYPE = IPLOG-OTYPE
ACT_OBJID = IPLOG-OBJID
ACT_INFTY = IPLOG-INFTY
ACT_SUBTY = IPLOG-SUBTY
ACT_ISTAT = IPLOG-ISTAT
ACT_BEGDA = IPLOG-BEGDA
ACT_ENDDA = IPLOG-ENDDA
ACT_PNNNN = IPLOG
SUPPRESS_DIALOG = '1'
IMPORTING
ACT_OK_CODE = OUT_FCODE
ACT_PNNNN_OUT = IPLOG
EXCEPTIONS
INFTY_NOT_VALID = 01
NO_PLVAR = 02
OBJECT_NOT_DEFINED = 03
OTYPE_NOT_VALID = 04. -
Rp_set_data_interval 'P0014' pn-begda pn-endda.
Hi,
Could you please tell me the diffrence of data retrival of infotype p0014 by get prenr and by using the macro:rp_set_data_interval 'P0014' pn-begda pn-endda..
Thanks,
Suresh>
suresh kumar wrote:
> Hi,
>
> Could you please tell me the diffrence of data retrival of infotype p0014 by get prenr and by using the macro:rp_set_data_interval 'P0014' pn-begda pn-endda..
>
>
>
> Thanks,
> Suresh
Hi Suresh,
If you use this macro rp_set_data_interval 'P0014' pn-begda pn-endda'P0014' pn-begda pn-endda then the GET PERNR event only retrives the valid IT0014 records in the period pn-begda, pn-endda.
If you don't use the macro rp_set_data_interval 'P0014' pn-begda pn-endda then the GET PERNR event retrieves all the available IT0014 records even if they are not valid in the interval pn-begda and pn-endda.
Note: The macro rp_set_data_interval should be included in the START-OF-SELECTION event -
Dear experts,
I'm making HR reports and noticed that i could only retrieve data from the current month and year. I did some problemsearching and discovered that my begda and endda infotypes aren't present in my HeadCount and Personnel Actions cube in BW.
My question to you:
Is there a way i can still access these infotypes for my query?
or do i need to remake my cube?(if so, how?)Hi,
Thanks Atish...
I'm creating a custom infotype which has to be populated from more than one infotype..
So in that dynamic action i've to check the values of begda and endda in a module... for that i don't want to include the structures of all the infotypes from which the custom infotype is going to be populated.
I want to fetch the values of begda and endda from some other table..
Got it my friend? -
Rp-provide-from-last p0002 space pn-begda pn-endda.
Hello Gurus,
I need to know what is the sintax to get a particular person from PNP using
rp-provide-from-last p0002 space pn-begda pn-endda.
ThanksHello Enrique,
Check this code, if the sy-subrc as equal 2, employee is inactive:
*& Form check_pernr_exists
* Check if employee exists
* -->P_PERNR Personnel Number
* <--P_SUBRC Return code
FORM check_pernr_exists USING p_pernr TYPE any
CHANGING p_subrc TYPE sysubrc.
CLEAR p_subrc.
CALL FUNCTION 'RP_CHECK_PERNR'
EXPORTING
beg = sy-datum
pnr = p_pernr
* IMPORTING
* NAME =
* PERSA =
* BUKRS =
* KOSTL =
* MOLGA =
* PERSONNEL_SUBAREA =
EXCEPTIONS
data_fault = 1
person_not_active = 2
person_unknown = 3
exit_fault = 4
pernr_missing = 5
date_missing = 6
OTHERS = 7
IF sy-subrc <> 0.
p_subrc = sy-subrc.
ENDIF.
ENDFORM. "check_pernr_exists -
What are infotypes subtypes?
Hi,
what are infotypes subtypes? What is the difference between between two? Can any one give Payroll HR infotypes and payroll subtypes?
ThanksHi,
Infotypes are specific to HR.
They are used to store employee specific data in HR.
Subtypes comes in picture when there are requirement of storing more than one variant of information for that particular infotype.
e.g. ADDRESSS (0006), can store home address, office address, permanenet address, etc.
Check this link for information on infotypes -
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/HRINF/HRINF.pdf
As for your other query, payroll specific infotypes they differe from country to country.
Here are for US -
0000 Events
0001 Org assignment
0002 Personal info
0003 Payroll data
0007 Work time
0008 Basic pay
0014 Reoccurring pay
0015 1 X pay
0027 Cost Center
0041 Event Dates
0057 Membership dues
0165 Over ride to limits on deductions
0167 Health
0168 Insurance
0169 Savings
0170 Spending
0194 Garnishment reduction
0195 Garnishment order
0207 Residence Tax
0208 Work Tax
0209 Unemployment Tax
0210 Withholding
0216 Garnishment adjustment
0221 Adjustment
0267 Off cycle
2005 OT
2010 Catts direct to cluster
Regards,
Amit -
ESS/MSS Infotype, subtypes?
Hi,
I'm new to ESS/MSS customisation on EP7, I have a task to customise personal data screen and addresses screen by adding additional fields. I have posted another thread regarding how to customise for these changes but I hear the term infotypes, subtypes, tables to change and create.
Can someone please give an insight of what exactly these infotypes, subtypes and table related to ESS/MSS customization are? How are they related to Webdynpro models?
Thanks
PraveenDear Praveen,
Infotypes are nothing but places where HR master data sits.You can consider them as tables rather they are tables.For better picture go to PA20 and then put 2 against the infotype fiels.
Subtypes: For certain infotypes there are sub types available which allow you to classify the infotypes in better way.
for eg. in infotype 2006 which is for absence quota there are subtypes defined like sick leave , casual leave etc.
Web dynpro customization of the standard is a long process as it involves changes on both sides web dynpro side and the R3 side i.e the RFC (Remote Function Call) involved.
Hope this might clear a few things
Regards,
Geet -
Guiding WF agent into specific infotype/subtype from WF task
Hi all
I haven't found the answer for this one in the forum so I will ask you:
In my workflow I want the agent to hand out a laptop to a new employee. In other words I want the agent to go to infotype 40 and to the specific subtype (in my case 922) and enter the object on loan. Now, I do not want the agent to do all the browsing himself so I want the task (once executed) to open up infotype 40, subtype 922.
Problem is, as I have done so far, the task only takes the agent to the initial screen of transaction PA30 and is defaulting the input for onfotype and subtype. It just will not make the last create step and hence the agent has to do it. Does anybody kno how to make that last "create" action from my point?
The infotype and subtype are both container elements and just before executing the create event I have a container operation for each filling out default values.
The task itself is the standard TS90200007 "change employee". Maybe this is the problem?
Can anyone help me onwards on this one?I'm guessing your task either uses bus1065.edit, or method employeet.edit
These methods use parameters to fill a parameter id and then call pa30 and skip first screen.
you should either create your own task where you specifically pass the parameters present in the method
these are:
Infotype
Subtype
ValidityBegin
ValidityEnd
FunctionCode (either COP or INS)
Or you use a generic one. In the workflowstep you'll then pass the appropriate parameters to the task.
The agent will then have to click the save button.
If you want to do it fully automatically you'll have to create custom methods which will call either a BDC or make use of FM HR_INFOTYPE_OPERATION
Kind regards, Rob Dielemans -
Bank Infotype Subtype Not appearing in ESS
Hello all, I am working with a client who allows employees to create/maintain up to 3 bank accounts. Our PA person has set up the following:
Infotype 0009 with Subtype 0 as the MAIN bank
Infotype 0009 with Subtype 1 as OTHER bank (can specify % or $ amount)
Infotype 0009 with Subtype 91 as SECONDARY bank.
Everything appears to be set up properly in V_T7XSSPERSUBTYP as follows:
10 -> 0009 -> 0 -> B1
10 -> 0009 -> 1 -> B3
10 -> 0009 -> 91 --> B3
The PROBLEM is this: when viewing the bank information on ESS, the SECONDARY bank does not allow the user to specify % or $ amount. Our PA person created subtype 91 by copying subtype 1, and she sees the $ or % field in the bank end, but it is not appearing in ESS.
Any clues?
Thanks!
CassyThe reason is prety startight forward. These fields are been enabled via web dynpro coding for subtype '1'.
Just in if condition for subtype 1 in the web dynpro coding also include subtype 91
by adding a or condition.. I do not remember the exact view name but it is pretty easy to find the view name and the exact place where you need to do this by looking at the De velopment compnent in NWDS
regards
rajk
null -
Need in HR Infotyp Subtyp and a second Keyfield
Dear colleague,
I will use in a HR - Infotyp a Subtyp and a second Keyfield. The Subtyp defined the shape of the Infotyp und the second Keyfield is a foreign key from a other database table. The keyfield length is greater then 3 Bytes, so I can't use the standart fields OBJPS or SEQNR for the second Keyfield.
My question is:
Is it possible to use a keyfield outside of structur PAKEY. I want to set in this case the second Keyfield as Key in the transaction SE11 for this Infotyp. Will this Keyfield to be considered in all cases as "Time constraint" (Transaction PM01 / Infotyp charakteristics)
Thank you for your response
Frank DehleHi,
It is not possible to use the key field other than the PAKEY structure. When you try to create a infotype through PM01, system automatically inserts the PAKEY structure as the key for the corresponding transparent table created in the dictionary. Those fields entered by the user will be created as PSnnnn structure in the infotype.
regards,
sankar -
Dear All,
how to craete a subtype for an existing infotype (presently the infotype doesnt have any subtype)
can a subtype have a different screen(different screens for different subtypes)
regards
Chakravarthi NallaHi,
Go to transaction Code SM30 and give the Table/View name as V_T591A and click on u2018Maintainu2019.
Enter the Infotype number for which you want to add subtypes.
Now click on u2018New Entriesu2019 and enter the subtype and its Description.
Save and go to PM01 screen.
Now Select PS structure and click on u2018Editu2019.
Add a new field to it say u2018ZSUBTYu2019 with Data type as char and length 4 .
Thanks
Nitesh -
Hi,
Please let me know how to create a 'subtype' for an already existing Infotype.
Thanks.Hi,
To create a infotype
1) Go to Transaction PM01.
2) Enter the custom Infotype number which you want to create (Should be a 4 digit number, start with 9).
3) Select the u2018Employee Infotypeu2019 radio button.
4) Select the u2018PS Structure Infotypeu2019.
5) Click on Createu2026 A separate table maintenance window appearsu2026
6) Create a PS structure with all the fields you want on the Infotype
7) Save and Activate the PS structure
8) Go back to the initial screen of PM01.
9) Click on u2018Allu2019 push button. It takes a few moments.
10) Click on u2018Technical Characteristicsu2019. Infotype list screen appears
11) Click on u2018Changeu2019(pencil) button
12) Select your Infotype and click on u2018Detailu2019 (magnifying glass) button
13) Give u2018T591Au2019 as subtype table
14) Give u2018T591Su2019 as subtype txt tab
15) Give your subtype field as subtype field
16) Save and come back to PM01 initial screen
17) Click on u2018Infotype Characteristicsu2019 u2026 Infotype list screen appears
18) Click on u2018Changeu2019 (pencil) button
19) Click on u2018New Entriesu2019
20) Enter your Infotype number and short text
21) Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotypeu2019s infotype characteristics screen and use as the reference to fill yours)
22) Save your entries.
23) Now the Infotype is created and ready to use.
24) If you want to change the layout of the Infotype as per your requirementu2026
25) In the PM01 initial screenu2026Select u2018Screenu2019 radio button and give 2000 as the screen name, then click on edit.
26) In the next screen.. Select u2018Layout Editoru2019 and click u2018Changeu2019.
27) Screen default layout appearsu2026here you can design/modify the screen..change the attributes of the fields..etc.
28) Save and activate. (Donu2019t forget to u2018Activate at every level)
See the following document.
http://www.ies.state.pa.us/hr/lib/hr/BH0012_PA_Maintain_PA30_IT0105_Communication.doc
Regards,
Jagadish -
Allowed Namespaces for the infotype subtypes
Hi,
I am creating a subtype as RFID with a time constraint 2 for IT0105. When i was saving the same, the system prompted a message as : "Choose the key from the allowed namespace". It was just a prompt and the system allowed me to save the record successfully.
Would just lke to know if there will be any implications of this on any other functionality further. Can someone let me know the same.
Thanks in Advance.
SureshIt should not create any problem.......
This message is coming might be SAP has Repository Name space and this word is not available in that repository.
Standard Repository Name spave for PA is "/1PAPA/" .
Mohan
Maybe you are looking for
-
ASMlib keeps return "Instantiating disk: failed" while trying to create ASM disks. It happens on both Clariion and Symmetrix devices. [root@sgelxha198 ~]# uname -a Linux sgelxha198 2.6.32-100.28.5.el6.x86_64 #1 SMP Wed Feb 2 18:40:23 EST 2011 x86_64
-
Hi there, after updating to Yosemite the Finder does not show anymore office docs in recent history. Everything else ist displayed properly. I can see recent used apps or files but not the word files (which i use mostly) Any idea? Thanks :=)
-
HP Prme: Which functions only work in CAS mode???
I enter a simple substituion into Home mode: subst(Y^5,Y=2) and I get " Error: Bad Arrgument Type" I enter the same formula into the CAS mode after changing the letters to lower case and I get the result: 32 How does the user know which function
-
I just got done installing photoshop CS4 upgrade. Everything went fine installing and updating. Everything seems to be working fine. Registration screen poped up I completed it and clicked Register. Box poped up that said it would register next time
-
Usb music peripherals and mac sleep mode
I have a novation impulse keyboard and a scarlett 2i2 connected directly to my iMac via usb. They seems to stay awake even when the Mac's asleep. Is this usual and, if so, do I have to disconnect them before putting Mac to sleep? If so, do I do this