HR_READ_INFTY_NOTE' - get latest from infotype P0035
Hi all,
I am reading text in infotype P0035 using FM 'HR_READ_INFTY_NOTE' . for the same start date if there is more than one text available , then is there any function module to get the latest sequence number.
like
00009585 07 31.12.9999 02.11.2010 000 28.07.2009
00009585 07 31.12.9999 02.11.2010 001 28.07.2009 <------ to be selected
Note: I am using this logic to get some texts in my dynamic action Subroutine Pool . Here there is no option to specify the logical data base. So i am not able to use the marco 'rp_provide_from_last' also for infotype 00035.
Edited by: Misha Denis on Nov 22, 2009 9:25 AM
You can go for a select clause by fetching max( seqno) from table PA0035.
Similar Messages
-
Hello Experts!
I am a beginner in ABAP programming and I have problem with one of my task.
I would like to get all users first and last names from infotype p0002. I've created a class, and method but only thing I've found in the Internet was something like this:
DATA: lt_data TYPE REF TO data,
return LIKE sy-subrc.
FIELD-SYMBOLS: <table> TYPE STANDARD TABLE.
CREATE DATA lt_data TYPE STANDARD TABLE OF PA0002.
ASSIGN lt_data->* TO <table>.
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
pernr = '3'
infty = '0002'
begda = '18000101'
endda = '99991231'
IMPORTING
subrc = return
TABLES
infty_tab = <table>
EXCEPTIONS
infty_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
me_it = <table>.
ENDIF.
any suggestions how I can use it for all users and how to get data from the result? or is it useless for this task? help pleaseHi Andrew,
There is absolutely no problem with the query i.e. everyone have a beginning and it is upon us how we take it to final stage.
Leave things apart, the answer to your query is suggested below.
Structure:
TYPES: Begin of typ_pa0002,
pernr type pernr_d, "Personnel No.
begda type begda, "Begin Date
endda type endda, "End Date
nachn type PAD_NACHN, "Last Name
vorna type PAD_VORNA, "First Name
namzu type namzu, "Salutation
end of typ_pa0002,
typ_t_pa0002 type standard table of typ_pa0002 initial size 0. "Table Type Definition
Data: l_it_pa0002 type typ_t_pa0002, "IT for PA0002 " Internal Table Definiton
lv_pernr type pernr,
lv_begda type sy-datum,
lv_endda type sy-datum.
"Data Declaration
lv_pernr = '3'.
lv_begda =.'18000101'.
lv_endda = '99991231'.
"Data Retieval from PA0002 DB Table
select pernr
begda
endda
nachn
vorna
namzu
from pa0002
into table it_pa0002
where pernr = lv_pernr
and endda GE lv_endda
and begda LE lv_begda.
Please validate the same at your end and let me know in case you require any further inputs from my end.
BR/Thanks
Pranav Agrawal -
How to get wagetypes from infotype 0589
Dear Experts,
Is there any function to get all wagetypes along with respective amounts from infotype 0589.
Right now am using function 'HR_READ_INFOTYPE'
and read statement to get wagetypes.because it is stored various fields like lga01,lga02..
and bet01,bet02..
i want to club all those wagetypes and amounts under lgart and betrg.
plz let me is there any alternative..
Thanks in advance.
Regards
sivaassign PNP ldb in your programe attributes and code like following
tables : pernr,
infotypes : 0000, 0001,0002,0004 .
start-of-selection.
get pernr.
provide * from p000 between pn-begda and pn-endda
from p0001
put your condition like where <.........>
endprovide.
or you also can get data if you dont want to use LDB.
every info type will be associated with table
ex if infotype is 0001 table name is p0001.
so you can also write select statement .
Thanks -
Help to get "text" from infotype
Hi Everybody,
I need to read data from "maintain text" (PA20/PA30, Access path: Edit-Maintain text (function button - F9).) for some infotype.
So, Iu2019m using the piece of code below.
tables: pernr.
infotypes: 0657.
data: key like pskey.
data: begin of ptext occurs 200.
data: line(72).
data: end of ptext.
get pernr.
rp-read-infotype pernr-pernr 0657 '18000101' '99991231'.
sort p0657 descending.
read table p0657 index 1.
move-corresponding p0657 to key.
import ptext from database pcl1(tx) id key.
My problem is that I have sy-subrc = 4. u201CThe specified data cluster was not found.u201D
I also used the HR_READ_INFTY_NOTE and got the same problem, sy-subrc = 4 but I know that the pernr I use has text in his data, the field itxex = 'X'.(flag checked)
Please help me to find out what it can be???
Thanks a lot!
Sasha.Hi Sasha,
In the function module HR_READ_INFTY_NOTE
You have to give the key as the following,
PERNR
000XXXXX
INFT
0105
SUBT
0001
OB
nothing
S
nothing
ENDDA
enddate (check date format)
BEGDA
begin date (check date format)
SEQ
000
and Tclass as 'A'
I executed and got the text.
Please let me know if you are not able to.
thanks,
krishna
Edited by: krishna reddygari on Sep 17, 2008 5:13 PM -
Some files become 0 KB when a get latest is done from RoboSource
Hi,
Now whenever I do a get latest from RoboSource, some or all of the files become 0KB both in local and in the server. History of the all these files are also lost.
What could be the problem?
I have placed my online help in RoboSource Control Server that came with RH 7.
I have recently upgraded client from RH7 to RH8. I am using the Source Control Explorer that has come with RH8 but using the Source Control Server that has come with RH7.
Is this a compatibility issue?
Regards,
SajHi Saj and Peter. The word "server" may be confusing the issue here. If I'm not mistaken, Saj is not using RoboHelp Server. Rather, it's RoboSource Control "Server". If that's the case, there was no change in the version of RoboSource Control between RH 7 and RH 8.
Both are RoboSource Control 3.1 so there should be no compatibility problem there.
However, I wonder if there is an issue of how Saj initially upgraded the RH 7 project that was in RSC in RH 8 so that all the project files become compatible with the new RH 8 file formats? Did he open the entire project, so that it could be converted at once, or was it piecemeal? Also, Saj, have you made sure to install all the latest critical updates (8.0.1 and 8.0.2)?
http://www.adobe.com/support/robohelp/downloads.html
I only rarely use RSC, so rather than my speculating, perhaps Peter could move this post to the Source Control sub-Forum and let folks like Gravenstein, Elisa, MergeThis, take a look at it and offer some suggestions for best practices when upgrading from RH 7 to RH 8 when using RSC.
Meanwhile, I found this post by Amebr which speaks (somewhat) to the issue of upgrading which you may find useful.
http://forums.adobe.com/message/2591895#2591895
It's post #9 toward the bottom of the thread.
Thanks.
John -
Get data from more than 1 subtype using RP_PROVIDE_FROM LAST
Hi all,
I need to get data from infotype 2013 subtype 90 and subtype 91.
Currently the codes only allow me to use it one time for the same infotype. If I use it again for the same infotype, pnp-sw-found will equal to zero. Anyone have any idea on this?
Example:
Get pernr.
Start of selection.
rp_provide_from_last p2013 0090 pn-begda pn-endda.
IF pnp-sw-found = 1.
**--> Populate internal table
MOVE p2013-ktart TO ls_quota-ktart.
MOVE p2013-aedtm to ls_quota-aedtm.
MOVE p2013-uname to ls_quota-uname.
MOVE p2013-accnu to ls_quota-accnu.
MOVE p2013-accop to ls_quota-accop.
ELSE.
REJECT.
ENDIF.
End of selection.Using RP_PROVIDE_FROM_LAST you can only use for one infotype and one subtype. For reading data for IT2013 with subtypes 90 and 91....you have to use following....
Get pernr.
Start of selection.
rp_provide_from_last p2013 0090 pn-begda pn-endda.
IF pnp-sw-found = 1.
**--> Populate internal table
MOVE:
p2013-ktart TO ls_quota-ktart,
p2013-aedtm to ls_quota-aedtm,
p2013-uname to ls_quota-uname,
p2013-accnu to ls_quota-accnu,
p2013-accop to ls_quota-accop.
ELSE.
rp_provide_from_last p2013 0091 pn-begda pn-endda.
IF pnp-sw-found = 1.
**--> Populate internal table
MOVE:
p2013-ktart TO ls_quota-ktart,
p2013-aedtm to ls_quota-aedtm,
p2013-uname to ls_quota-uname,
p2013-accnu to ls_quota-accnu,
p2013-accop to ls_quota-accop.
ELSE.
REJECT.
ENDIF.
ENDIF.
End of selection.
Hope this answer is helpful -
Get Latest Version extremely slow
Hello,
When we do a "Get Latest Version" for a project containing about 450 subfolders this operation shows the "Contacting server to get list of items to update..." for a very long time. Eventually it will come up with an error "HTTP code 500: Internal Server Error". The event log indicates a time out. I have already increased the executionTimeout values for the various .config files used by the Web Services. This increases the time it takes for this error to appear (this can take up to 2 hours) but the error still appears. These subfolders each contain about 20 files with a total size in each folder of 180KB.
While the "Get Latest Version" is active the server CPU is not busy at all, it stays at 1-2%. It does not matter if we do the get latest from a client or on the server itself, the result is the same. It looks as if Team Foundation is blocked on something.
When we do "Get Latest Version" on a smaller project (2250 files, 272 folders, total size of all files 134 MB) the operation also takes a long time, but it completes successfully.
I've only been able to retrieve all files successfully by creating a .cmd file which contains a get command for each individual sub folder:
tf get Folder1 /force /recursive
tf get Folder2 /force /recursive
tf get Folder3 /force /recursive
etc.
The execution of this command file takes about 20 minutes. During this time the TF server shows a much more substantial CPU load.
We are running our Team Foundation Server (single-server deployment) on a Dell PoweEdge SC440 server (3.0 GHz, 1 GB RAM, Server 2003 R2 Standard Edition SP1).
I have searched the forums for hints on these performance problems, but haven't found anything except instructions to look at the network configuration (half duplex/full duplex/auto detect). This can not be the issue since the issue also appears locally on the server.
Any help would be appreciated, we really need to improve the performance of the system to make it usable for us.
Regards,
Henk.I'm sure there is a problem with our domain controller setup. When I had problems installing Team Foundation I found a post which advised to run a dsquery statement which does something similar to what the Team Foundation installation tries to do. When I tried this statement it failed with an error, at that point I decided to switch to using Workgroup accounts for the setup.
Having said that, I had no problems logging on to the Team Foundation server system using a domain account, but it does appear other parts of the Active Directory functionality are not working correctly. We do not have much Active Directory expertise at the moment, it's something we will look into later.
Henk -
How to get latest added file from a folder using apple script
Hi..
I am trying to get a latest added file from a folder..and for this i have below script
tell application "Finder"
set latestFile to item 1 of (sort (get files of (path to downloads folder)) by creation date) as alias
set fileName to latestFile's name
end tell
By using this i am not able to get latest file because for some files the creation date is some older date so is there any way to get latest file based on "Date Added" column of a folder.If you don't mind using GUI Scripting (you must enable access for assistive devices in the Accessibility System Preference pane), the following script should give you a reference to the last item added to any folder. Admittedly not the most elegant solution, but it works, at least under OS X 10.8.2.
set theFolder to choose folder
tell application "Finder"
activate
set theFolderWindow to container window of theFolder
set alreadyOpen to exists theFolderWindow
tell theFolderWindow
open
set theInitialView to current view
set current view to icon view
end tell
end tell
tell application "System Events" to tell process "Finder"
-- Arrange by None:
set theInitialArrangement to name of menu item 1 of menu 1 of menu item "Arrange By" of menu 1 of menu bar item "View" of menu bar 1 whose value of attribute "AXMenuItemMarkChar" is "✓"
keystroke "0" using {control down, command down}
-- Sort by Date Added:
set theInitialSortingOrder to name of menu item 1 of menu 1 of menu item "Sort By" of menu 1 of menu bar item "View" of menu bar 1 whose value of attribute "AXMenuItemMarkChar" is "✓"
keystroke "4" using {control down, option down, command down}
-- Get the name of the last item:
set theItemName to name of image 1 of UI element 1 of last scroll area of splitter group 1 of (window 1 whose subrole is "AXStandardWindow")
-- Restore the initial settings:
click menu item theInitialSortingOrder of menu 1 of menu item "Sort By" of menu 1 of menu bar item "View" of menu bar 1
click menu item theInitialArrangement of menu 1 of menu item "Arrange By" of menu 1 of menu bar item "View" of menu bar 1
end tell
tell application "Finder"
set current view of theFolderWindow to theInitialView -- restore the initial view
if not alreadyOpen then close theFolderWindow
set theLastItem to item theItemName of theFolder
end tell
theLastItem
Message was edited by: Pierre L. -
How to get the report to relaionship from infotype 1001.
Hi,
Could any one just let me know regarding how to get reports to relationship for the particular employee number from infotype 1001.
What exactly are the aprameters involved.
Thanks in Advance ,
Irfan HussainHi Irfan,
SELECT abkrs
pernr
ename
gsber
begda
persg
persk
werks
btrtl
plans
kostl
orgeh
INTO TABLE it_0001
FROM pa0001
loop at it_0001.
CLEAR: l_plans, l_sobid, l_sobidx, l_pernr.
SELECT SINGLE sobid INTO l_sobid
FROM hrp1001
WHERE otype = 'S'
AND objid = it_0001-plans
AND plvar = '01'
AND relat = '002'
AND endda = '99991231'.
IF sy-subrc EQ 0.
l_plans = l_sobid.
SELECT SINGLE sobid INTO l_sobidx
FROM hrp1001
WHERE otype = 'S'
AND objid = l_plans
AND plvar = '01'
AND relat = '008'
AND endda = '99991231'.
IF sy-subrc EQ 0.
l_pernr = l_sobidx.
SELECT SINGLE ename INTO <b>it_0001-repto</b>
FROM pa0001
WHERE pernr = l_pernr.
IF sy-subrc EQ 0.
MODIFY it_0001 INDEX l_index TRANSPORTING repto.
ENDIF.
ENDIF.
ENDIF.
endloop.
Regards,
Raj -
I get this from system log using latest version of Firefox:
[32282.000367] firefox:2114 freeing invalid memtype c02f2000-c0302000
What kind of problem is this?
Anyway Firefox seem to be working correct. I would like to be sure that it'snt a security problem.Thanks a lot for your swift response. And sorry if it was a bit too hectic to go through my detailed query (which I did because it was misunderstood when I asked previously). As I've mentioned above, I was informed that updating to 5.0.1 would '''require''' me to '''delete''' the current version and then install the new one. And doing so will involve losing all my bookmarks. I guess I should have been more specific and detailed there. By losing, I didn't mean losing them forever. I'm aware that they're secured in some place and deleting and installing the software doesn't harm its existence. What I meant that if I install the new version, I'd have to delete the old one. And after installing the new version, I'd have to transfer them (bookmarks) back from wherever they are. Get it? When it updated from 3.6.9 to 3.6.13, and from 3.6.13 to 3.6.18, I didn't need to follow that process. They were already present on their own.
BTW, I'm having no problems with 3.6.18 but after learning about the existence of version 5.0.1, I'm a bit too eager to lay my hands over it.
Thanks for your help; hope this wasn't extremely long. -
help! I recently upgraded my iphone to the latest IOS but my GPS seems to have a problem... I am unable to get directions from one point to another ... how do I solve this problem?
If using the built-in Maps app, directions are not available everywhere. Read here:
http://www.apple.com/ios/feature-availability/#maps-directions
If that's your problem, download the Google Maps app. -
Yesterday I have upgraded my itune and icloud on my PC, now I notice my photo stream in my PC doesn't get latest picture I took from my iphone 4s (IOS 7.0.4). Whenever I open icloud photo, my PC prompts me the message below. Please advice what to do?
Hello
Try restoring the device and setting up as new.
If it is still shows an iCloud activation lock, then it's on an iCloud account
The wrong device was removed from an iCloud account.
Check any other Apple IDs you might have at
iCloud.com
Get signed into them and remove that device.
I wish this was the first time I seen this.
Best of Luck -
I use OverDrive to get audiobooks from my library to listen on my ipod. Does not work since latest update of ipod. Converts the WMA and acts like it is putting it on the ipod but then it isn't there.
Downgrading the iOS is not supported by Apple.Have yo tried:
- Backing up and restore from backup. See:
iOS: Back up and restore your iOS device with iCloud or iTunes
- Restore to factory settings/new iOS device.
- Go to the OverDrive support site -
How to get PERNR from employee search(teamviewer) iView in to a WD-4-ABAP.
Hello All,
I had developed a new Web Dynpro for ABAP (WD4A) component for updating a custom Infotype. This application is meant for the manager to maintain some specific data through portal for his employees in the team.
WD4A application is built based on the employee number it receives from the portal.
How could I get PERNR from employee search(teamviewer) iView in to my WD4A component?
In portal I had developed a test page by copying the standard page from MSS com.sap.pct.erp.mss.general_information, and added my WD4A application through an iView into this page.
Then I hided all the other iVews in the page except (1) employee search and (2)my WD4A iVew. On the preview everything appears fine.
During the preview of this page it triggers the WDDOINIT of WD4A component main view and then the WDDOMODIFYVIEW. When I select an employee from the employee search, then it triggers only WDDOMODIFYVIEW in the WD4A application and not the WDDOINIT anymore.
In my WDDOMODIFYVIEW I had inserted the following code:
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_portal_manager TYPE REF TO if_wd_portal_integration.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_portal_manager = lo_api_component->get_portal_manager( ).
DATA lo_api_controller TYPE REF TO if_wd_view_controller.
lo_api_controller ?= wd_this->wd_get_api( ).
CALL METHOD lo_portal_manager->subscribe_event
EXPORTING
portal_event_namespace = 'urn:com.sap.mss.employeesearch'
portal_event_name = 'selection_changed'
view = lo_api_controller
action = 'GET_SELECTED_PERNR'.
And in the action: 'GET_SELECTED_PERNR'
METHOD onactionget_selected_pernr .
DATA lv_str_pernr TYPE string.
DATA lv_strlen TYPE i.
DATA lv_pernr TYPE pernr_d.
DATA lv_offset TYPE i.
wdevent->get_string(
EXPORTING
name = 'PORTAL_EVENT_PARAMETER'
RECEIVING
value = lv_str_pernr ).
lv_strlen = STRLEN( lv_str_pernr ).
lv_offset = lv_strlen - 8.
lv_pernr = lv_str_pernr+lv_offset(8).
ENDMETHOD.
This is not functioning form me. The action is not getting trigged with the code in WDDOMODIFYVIEW.
I had gone through several threads in u2018SDN say:
Pass pernr to WebDynro
MSS - General Information - Related Activities Links persnr.
SAP Note: 1112733.
Most of the threads are answered but incomplete. In some threads people shared document personally which had been helpful.
I am stuck with this scenario of handling the employee number from employee search iView. Helpful suggestions will be rewarded for sure.
Thanks in advance.Do i understand you correctly that you are not getting the portal event ?
This can be several reasons ?
Both portal system and WDA server has to be in same domain and same proptocol to communicate with Portal event.
Please check in that direction and search posts on this topic. -
Three agent UR versions gets installed from gateway - SCOM 2012 SP1 UR4
Hi,
We have a SCOM 2012 SP1 UR4 installation with several gateways that servers connect to and get installation from.
We noticed that when the agent get installed on a client server it gets first the agent itself, then UR1, UR2 and last UR4.
From the XML-section in the task that has installed the agent one can read the following:
SoftwareUpdateInstalled KB2784734-amd64-Agent.msp;KB2826664-amd64-Agent.msp;KB2880799-amd64-Agent.msp; SoftwareUpdateInstalled
Below is from the application log of a newly installed server that got the agent installed.
The question I have is if this is correct? Why are all three UR installed?
Shouldn't it be enough with the latest version of UR? Are they not cumulative?
Can I simply delete the older versions in the agent directory of the Gateway?
Regards S-E
Windows Installer installed the product. Product Name: System Center 2012 - Operations Manager Agent.
Product Version: 7.0.9538.0. Product Language: 0. Manufacturer: Microsoft Corporation.
Installation success or error status: 0.
Windows Installer installed an update. Product Name: System Center 2012 - Operations Manager Agent.
Product Version: 7.0.9538.0. Product Language: 0. Manufacturer: Microsoft Corporation.
Update Name: System Center 2012 - Operations Manager SP1 UR1 Update Patch.
Installation success or error status: 0.
Windows Installer installed an update. Product Name: System Center 2012 - Operations Manager Agent.
Product Version: 7.0.9538.0. Product Language: 0. Manufacturer: Microsoft Corporation.
Update Name: System Center 2012 - Operations Manager SP1 UR2 Update Patch.
Installation success or error status: 0.
Windows Installer installed an update. Product Name: System Center 2012 - Operations Manager Agent.
Product Version: 7.0.9538.0. Product Language: 0. Manufacturer: Microsoft Corporation.
Update Name: System Center 2012 - Operations Manager SP1 UR4 Update Patch.
Installation success or error status: 0.
Windows Installer installed the product. Product Name: Active Directory Management Pack Helper Object.
Product Version: 1.1.0. Product Language: 1033. Manufacturer: Microsoft Corporation.
Installation success or error status: 0.Hi,
This should be normal, as we can see in the below two articles. When applying Update Rollup 2, UR1 is listed there, and when applying Update Rollup 3, UR1 and UR2 is listed there also.
http://blogs.technet.com/b/kevinholman/archive/2013/04/11/applying-update-rollup-2-ur2-to-opsmgr-2012-sp1.aspx
http://blogs.technet.com/b/kevinholman/archive/2013/09/27/applying-update-rollup-3-ur3-to-opsmgr-2012-sp1.aspx
For example, UR3 can be applied to System Center Operations Manager 2012 SP1 (as released) or a SCOM 2012 SP1 deployment that has had UR1 or UR2 already applied.
Regards,
Yan Li
Regards, Yan Li
Maybe you are looking for
-
Reinstall windows 7 and then back to windows 8
Hi would like to reinstall windows 7 for the programs I missed. What happen to me was I installed files for windows 7 not 8 and a720 crashed and when I installed windows 8 again some things were gone that I wanted to keep. The f2 key will not work af
-
What are the userid,password, and host name for oracle 9i?
HI Guys. I am a research student at the University and the I recently downloaded Oracle 9i for my research. But the problems is also with seting it up. Please could you show me the userid, password, and host name for oracle 9i. Thanks in advance for
-
HT4061 my iPad mini is asking for a pass code to open and i did not have one what are my options
My i pad mini is asking for a psscode and i did not have one what are my options as it has locked me out
-
Can I change HREF of an image onMouseOver?
Hi, Is there a way to mouseOver an image (A) and have DW change the HREF attribute of a different image (B)? I am trying to accomplish the following: 1. (This works now). mouseOver one of the dots in the top left and change the main image as well as
-
Can't Open .aif File in SoundTrack
I posted this in the SoundTrack forum, but didn't get any bites, so I thought I'd try it here. (I hope I'm not breaking protocol.) I assembled a multi-track soundtrack in ST. It's great, but now I need to make a few modifications. When I try to open