Read Infotype with BEGDA as range
Hi Experts,
I have a requirement to read HR infotype data with Begda as range (low-high ex. 01.01.2008-01.06.2008) and Endda (Fixed 12319999).
I am using PNP LDB and Get pernr Event.
Any relevant suggestions will be appreciated..
Thanks,
Achyut
Hi,
Try this:
loop at PXXXX where begda GE 20080101
and begda LE 20080601
and endda EQ 99991231
endloop.
Regards,
Dilek
Similar Messages
-
PD Read Infotype Record - BEGDA/ENDDA format issue
Hi experts,
I'm calling IF_HRBAS_PLAIN_INFOTYPE~READ method in my business object class in an attempt to read a custom infotype on a postion:
When debugging or consuming this method from my main model class, the format of the dates in the returned table (lt_hrp9500) are as follows:
The dates are correctly formatted in the standard code until:
If I were to manually select the records from the tables it would appear normally.
Is there some form of conversion needed, a bug or user error?
Can anyone suggest a better interface to utilse for PD infotype actions?
Cheers,
SamLooks like you have wrongly defined <pnnnn> or <ls_hrtnnnn>. When you assign, the date field is spread across several columns.
Also, try if_hrbas_read_infotype instead. -
HR Programming - Reading Infotype with PNP or straightly from tables?
Hi there,
I was wondering what is the difference between accessing data from inftoype by using logical database PNP
GET PERNR ....
or by using
SELECT * FROM PAXXXX WHERE...
Thank you for your help!
ChristianUsing the logical database means using the SELECTs written & OPTIMIZED by SAP to get a whole lot of HR informations, transparently. Basically means reusing all their good work, in an instant (with a key word).
Ofcourse, if you need only small parts of HR infos, or you think you can write better selections than SAP (that is, ofcourse, very possible, but kind of hard when you don't have all that documentation "at your fingertips"), than you can, why not, write your own selections....
BR,
Bogdan -
Hi ,
i need to delete all the records with subty X1 for infotype p0019 . I should n't use the logical database instead i am using macro RP-READ-INFOTYPE to retrieve the valid data but here in case of P0019 the begda and endda of a record will be same and i need to delete the records even if they are in past . But the macro RP-READ-INFOTYPE is not going to work in this case as it checks against dates and the records are in past so it will not retrieve any data . So any thoughts on how to get the data for P0019 with subty X1 without using the logical database PNP.
Thanks,
Latha.Use HR_READ_INFOTYPE FM to retreive the desired result.........
Pass begda 01/01/1800 endda = '12/31/9999' and subtype you want.......
Not your infotype table will fill with all the data now you manipulate as you desired
Let me know if you need any further help!!!
Sas -
Hi experts i need realtime scenario for declaration of infotype with MODE N at TM in ABAP HR
hi experts i need realtime scenario for declaration of infotype with MODE N at TM in ABAP HR?? can anyone provide the brief explanation?
Hi bharathi.
Find the bellow code .
Tables: pernr.
infotypes: 0001,0002, 2001 mode n, 2007 mode n, 2013.
start-of-selection.
get pernr.
pr-read-all-time-ity pn-begda pn-endda.
write: p0001-pernr, p0001-bukrs, p0001-abkrs,
p0002-nachm, p0002-name1, p0002-vorna.
end-of-selection.
******** in the abouv code should be -ve TM.
for +ve tm we need to use hr_time_results_get.
based on this u can assume ur requirement .
Thanks
Venkat. -
Doubt reading Infotypes.
Good Morning Friends.
I'm working with ABAP - HR and it is my firts time with HR.
I'm working with a program and I heve a code:
lm_read_infty <ls_pa9002>-pernr '0002' lt_p0002 <ls_pa9002>-begda <ls_pa9002>-endda.
I,m reading the infotype with dates <ls_pa9002>-begda and <ls_pa9002>-endda.
The functional wants that i change the <ls_pa9002>-endda and insert '99991231'.
then i do:
lm_read_infty <ls_pa9002>-pernr '0002' lt_p0002 <ls_pa9002>-begda '99991231'.
Ok worked .
But now the functional wants that i read the infotype only with '99991231' and remove the <ls_pa9002>-begda.
if i write:
lm_read_infty <ls_pa9002>-pernr '0002' lt_p0002 '99991231'.
occurs errors of quantity of parameters:
How can I do this read only with '99991231'.?
Thanks for helpJust go for
lm_read_infty <ls_pa9002>-pernr '0002' lt_p0002 '00000000' '99991231'.
or
lm_read_infty <ls_pa9002>-pernr '0002' lt_p0002 sy-datum '99991231'.
That should do the trick. -
SAP Query to join action infotype with additional action infotype
We have created SAP Query on PA0000 which shows all actions that are executed for an employee.
The problem is that if two actions are exceuted on the same day then it shows only one action instead of showing both the actions.
As two actions are executed on the same day it will be stored in additional action infotype(0302).We tried to join PA0000(Action infotype) with PA0302(additional action infotype) in SAP Query by using joins(inner join/outer join) but it shows duplicate records.
Is there any way to get additional action along with records of action infotype without any duplication in SAP Query.All entries that are in PA0000 will be in PA0302, but not vice-versa so you just have to reverse what you are currently doing, i.e.: create a Query on PA0302 and join to PA0000, and then make sure your selection criteria is from PA0302 and not PA0000.
-
Create infotype with PM01+ field lenght in table
hello my HR friends, a friend of mine create an infotype with tcode PM01 so far everthing is ok but when she finished, i found an error and neither i or she knows how to solve it.
Picture of infotype: http://img197.imageshack.us/img197/8236/infotype1.jpg
and problem is, in field that have the rectangle, this field have this possible values:
http://img529.imageshack.us/img529/1887/infotype2.jpg
the problem is if a choose the first possible value, field stays like this:
http://img836.imageshack.us/img836/4494/infotype3.jpg and then when im going to save the system says that content doesn't exist in the table that is feeding that textbox.
Do anyone knows how to solve this problem or the solution is to put that possible values shorter or put text box bigger.
regards and thanks in advance for the help.
MárioInstead of INT use DEC or NUMC data types.
To know why INT cannot be used try searching with Hardware Restriction in terms of general computing. -
Put a default value in an infotype with a BADI ?
We want to put a default value in the administrators fields of the infotype 0001 (depending on the company code) when the user create/change it.
A standard feature exist but onluy for the administrator group.
Because we want to follow the technological evolution of SAP, we try to use a badi instead of a user-exit.
So, we found this badi definition: HRPAD00INFTY (method BEFORE_OUTPUT).
Problem: all the parameters (including the infotype value) are IMPORT parameters.
So we can't modify the infotype content...
Do anyone know how to modify the content of an infotype with a BADI ?
Or do we must continue to use user-exit in such cases ?If one was just learning about userexits, BAdIs and the new Enhancement Framework as well as infotype PBO and PAI, this can be a bit of a mountain to climb, but these two documents might be useful.
<a href="/people/sergey.korolev/blog/2005/03/14/the-time-for-me-to-have-a-badi-of-my-own time for me to have a BADi of my own</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/u/266">what the New Enhancement Framework Is For Its Basic Structure and Elements For Beginners (Five Parts)</a>
I "enhanced" the first article's solution with the second article's tutorial to cut my teeth on the new framework while providing myself with a means to use BAdIs for infotype PBOs/PAIs. Thank you very much to the authors! -
Hi Experts,
I have a requirement to create a custom infotype with subtypes. I have maintained all the fields + 'zzsubty' field (to store subtype no. - of type subty) in PSnnnn and also maintained infotype characteristics and Technical attributes (all the standard steps). But, I want only some of the fields to be displayed depending on the subtype entered. By using the current method, I see all the fields I created in the structure irrespective of the subtype. So, is there anything else that I need to work on to make sure that only the fields I want to be displayed will be visible depending on the subtype? If I need to work on the module pool, could you please be descriptive as I am new to it.
Thanks
SriHello,
Try using the user -exit EXIT_SAPFP50M_001 for ur requirement.
Cheers,
Manoj. -
Creating OM Infotype WITH text box
Hi all you clever people!
I am trying to create an OM Infotype WITH a text input like the description field on Infotype 1002. Problem is, I don't find any solution on the net nor in any training materials provided.
I have created the HRIxxxx and HRTxxxx structures before running PPCI for infotype xxxx, but the screens does not include the text box as it does for HRP1002.
Step-by-step instructions would be SO helpfull!
Thank you
CharmaineI haven't got access to a 4.6c so this is by what I recall-I may totally be wrong!
If you are not able to see data from fields that are longer than 132 characters, define local variables in your query and in the Pre-processing option read the contents of the field into the local variable and display the variable in your query.
hope this helps.
sanjay -
Multiple records for infotype with TC1
Hi all,
We have maintained use case A4 for mailing address in ESS.
Strangely, one of our end users, has two overlapping mailing address records! The user had a mailing address record which he edited in ESS. This edited record appears in the backend as a new record. So now the user sees two records in the backend - both with a different start date, but the same end date of 12/31/9999, instead of seeing the first record as delimited. And now when he tries to edit his mailing address in ESS, he gets an RFC error.
Ideally for TC1, a user cannot have two overlapping records and the first record gets delimited to accomodate the updated record as the current record.
Any idea, why this could be happening? We are unable to replicate this issue at our end as this scenario seems impossible for an infotype with TC1.
TIA!
Regards,
Dianaideally it should have delimited the records, but can check how the enduser created the record?
TC1 can use A1,A4,B1,B4
TC2 can use A1,A2,A3,A4,A5,B1,B2,B4,B5
TC3 can use A6,B3
Note this
A: A record can be created specifying the valid start and/or end date Multiple records can exist.. By default the ESS scenario's will allow you specify the start date as today or future date. If you wish to enable ESS scenario's to accept a start date in the past, Business Add-in "HRXSS_PER_BEGDA" can be implemented.
For more information, please refer to IMG activity "Change Default Start Date".
B: A record can be created without specifying the valid start and/or end date. Multiple records are not possible.
A4: Variant of A1, Difference to A1 being, "New <infotype/subtype>" button will always be available on the overview screen of the concerned scenario. E.g., suitable in Permanent address.
A6: Multiple infotype records of the same type (e.g. other bank) may exist for an employee at the same time. "New <infotype/subtype>" button will always be available on the overview screen of the concerned scenario. E.g., suitable in Other bank. -
Create InfoType with decimal field
Hi,
I would like to create an InfoType with some numeric, char and currency type in the structure
Then I run PM01, create the structure
http://img119.imageshack.us/my.php?image=ps9080ze4.jpg
activate it and go back to PM01 but when I click on GENERATE button, il get the following message :
msg type error : The infotype must not include an integer type or floating point no.field
I dont realy understand why this error occurs and why an IT couldn't have integer type in his structure...
Any idea ?
Thanks,
Ant.Instead of INT use DEC or NUMC data types.
To know why INT cannot be used try searching with Hardware Restriction in terms of general computing. -
Sd invoices posting with External number range
Hi,
i am a fico consultant and dont know the proceedure that how to post SD invoice thorugh Sales orders with external number range?
while posting it is giving error like use internal number range.how to over come this.help me
Thanks
PrathimaGood Afternoon Prathima.
Use tcode OBA7
Look for Doc type RV Billing Doc trn.
This doc is generally used for posting Billing doc to accounting.
Here you would find Number range as external.
Reason: As per standard, the Accounting doc number is similar to your the Billing account.So, that there would not be any difference in numbers of both, therefore for accounting doc - Billing doc trnsfer (RV) the number range is Internal number but the Billing doc type will havre internal number range.
And as you are FI consultant, I don't feel I need to explain why or purpose these numbers should be similar from accounting point of view.
Hope it solved your query. Kindly reward.
Take care. JP. -
How Create infotypes with both transaction pm01 and ppci
HI Gurus,
I need create custem infotypes by using the pm01 and ppci .
requirement is i need to create two custem infotypes with subtyeps in personal administration and personal planing .
1.can any provide step by step in to create the custem infotypes in pm01 and ppci.
2. how to create sub types also.
Regards
Ramesh.
Thanks in advanceSteps to create a HR 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 'Employee Infotype' radio button.
4) Select the 'PS Structure Infotype'.
5) Click on Create... A separate table maintenance window appears...
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 'All' push button. It takes a few moments.
10) Click on 'Technical Characteristics'. Infotype list screen appears
11) Click on 'Change'(pencil) button
12) Select your Infotype and click on 'Detail' (magnifying glass) button
13) Give 'T591A' as subtype table
14) Give 'T591S' as subtype txt tab
15) Give your subtype field as subtype field
16) Save and come back to PM01 initial screen
17) Click on 'Infotype Characteristics' ... Infotype list screen appears
18) Click on 'Change' (pencil) button
19) Click on 'New Entries'
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 Infotype's 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 requirement...
25) In the PM01 initial screen...Select 'Screen' radio button and give 2000 as the screen name, then click on edit.
26) In the next screen.. Select 'Layout Editor' and click 'Change'.
27) Screen default layout appears...here you can design/modify the screen..change the attributes of the fields..etc.
28) Save and activate. (Don't forget to 'Activate at every level)
Maybe you are looking for
-
Moving bought tv shows to new macbook
just bought a new macbook! loving it! ok, now i had bought some tv shows on my old pc. and since i found out that you can't save to tv shows that you bought onto a cd, how am i supposed to put them on my new mb so that i can put them on my video ipod
-
Hi, When we are creating OPP/ACT and when that replicates to CRM online we are getting an erorrs asking for 'sales group'. I checked the EMP sales org. We assigned the EMP to Sales Area and not to the sales group under sales area. Right now in he tab
-
Are multiple trunks possible on a 5508 WLC version 7.0.116.0
To date I have only ever deployed guest WLCs with one bundled channel to a neigboring switch. With tunneled guest traffic flow via one vlan on the trunk (management) and leaving on the guest VLAN going physcily back to the same switch. Everything I
-
App hangs on 1.4.1, ok on 1.3.1_03
My (swing based) app is compiled & runs fine with 1.3.1_03. It also runs fine with 1.4.1 on many Win2K Professional machines. It hangs at startup on a Win2K server. With -verbose switched on, the following trace is produced: .. Previously loaded clas
-
Airport express shuts down after december update firmware
can anyone advise me on AEXpress which shuts down very soon after powering up, all since i upgraded firmware earlier in december? this is a replacement model which i got new in summer 2010...out of warranty now. it was fine on XP as client mode conne