Get previous and latest salary from IT0008 Record
Hey guys, i am trying to develop a letter that needs to show an increment, i.e. grab the current and previous records from IT0008..
I have tried a few things:
CALL FUNCTION 'HR_READ_INFOTYPE'
>> this does not get the salary i need.. but gives me dates that i used in:
CALL FUNCTION 'RP_FILL_WAGE_TYPE_TABLE'
>> this is returning the current salary and future salarys (we have some postdated increments in the system) but does not get me the previous no matter what i put in for dates.
also tried:
CALL FUNCTION 'RP_FILL_WAGE_TYPE_TABLE_EXT'
>> same as above.
thoughts? i want to get the last two records as they appear in Pa20/30 for IT0008.
Thanks!
-Jason
Jason:
My suggestion
SELECT * FROM PA0008 WHERE INTO it_0008
PERNR EQ P_PERNR.
SORT it_0008 BY ENDDA DESCENDING.
READ TABLE it_0008 INDEX 1.
MOVE it_0008 TO WA_LAST.
READ TABLE it_0008 INDEX 2
MOVE it_0008 to WA_PREV.
Obvious, wa_last and wa_prev there are work area LIKE PA0008.
I think this can work fine.
Regards.
José Luis
Similar Messages
-
i chose an option which replaced 'bookmarks' in the menu with most visited, getting started and latest headlines. I want to go back to the default, simply 'Bookmarks' How do I do this?
<u>'''Can't see the Menu Bar'''</u> (File, Edit, View, History...Help)? Hold down the key ( key in OSX) and press the following letters in this exact order: V T M
The Menu Bar should now be displayed permanently, unless you turn it off again (View > Toolbars). Turning the Menu Bar on and off is a new feature in version 3.6.
See: http://support.mozilla.com/en-US/kb/Menu+bar+is+missing
<u>'''See other Toolbars'''</u> under View > Toolbars. Clicking on one of them will place a check mark (display) or remove the check mark (not displayed).
<u>'''To display the Status Bar'''</u>, View, then click Status bar to place a check mark (display) or remove the check mark (not displayed).
<u>'''Full Screen mode'''</u>
http://kb.mozillazine.org/Netbooks#Full_screen
Also see:
''' [[Back and forward or other toolbar buttons are missing]]'''
'''[[Navigation Toolbar items]]''' -
How to get max and min salary in a table
How to get max and min salary in a table
SQL> select max(sal),min(sal) from emp;
MAX(SAL) MIN(SAL)
5512 800
SQL> -
How do I get date and time component from a DATE object?
Hi All,
I need to get date and time separately from a DATE object, does
anyone know what function I should call? GetDate()? GetTime()?
I need this in a SELECT statement.
Thanks in advance and looking forward to your early reply.
Regards.
Gladywin
30/11/2001Hello,
See following SQL.
select to_char(sysdate,'dd/mm/rrrr') today_date,
to_char(sysdate,'hh24:mi') now_time
from dual
Adi -
Get PO and Item number from FI Cleared Items
Hi,
I need to retrieve PO and item numbers from FI cleared items.
So I retrieve the records for a particular GR/IR account from table BSIS. Based on FI document number, item number, fiscal year and company code, I get the PO and item numbers from table BSEG.
However, I cannot use BSEG in query i.e. SQ01.
What is the easiest way for me to retrive PO and items numbers?
Thanks.Hi,
First of all, cleared items live in BSAS. BSIS is for the items that are still open.
Goto SQ02 and make a direct table read to BSAS; click 'Extras' icon; on the right part of screen click 'Create' icon; give name BSEG and choose 'Additional table' radio button. The keys suggested by the system should be good.
Regards,
Ming -
How To Get FileType and MIME Type from a File
Hi,
I am using following ways to get FileType and MIME Type.
I am able to get file type, but I am getting MIME Type as */*
Can any one please let me know how to get MIME Type, but it should not be time consuming process.
For File Type I am using following Code:
private String getFileData(InputStream inStream) {
fileName = C:\temp\temp.tiff
String filePath = Util.createTempFile(fileName);
RandomAccessFile raf = new RandomAccessFile(filePath, "rw");
while (inStream.available() > 0) {
byte[] buf = new byte[inStream.available()];
inStream.read(buf);
raf.write(buf);
inStream.close();
raf.close();
File file = new File(filePath);
JFileChooser chooser = new JFileChooser();
String fileType = chooser.getTypeDescription(file);
file.delete();
//MIME Type I am getting from
DataHandler data = new DataHandler(new DocumentSource(inStream));
data.getContentType();
data.getContentType() is not working well in all cases.
Can any one help me on this.
Thanks in advance,
Ram.
Edited by: javausers07 on Apr 15, 2009 4:25 PMjavausers07 wrote:
Hi,
I am using following ways to get FileType and MIME Type.
I am able to get file type, but I am getting MIME Type as */*
Can any one please let me know how to get MIME Type, but it should not be time consuming process.
For File Type I am using following Code:
private String getFileData(InputStream inStream) {
fileName = C:\temp\temp.tiff
String filePath = Util.createTempFile(fileName);
RandomAccessFile raf = new RandomAccessFile(filePath, "rw");
while (inStream.available() > 0) {
byte[] buf = new byte[inStream.available()];
inStream.read(buf);
raf.write(buf);
inStream.close();
raf.close();
File file = new File(filePath);Why do you do all above?
JFileChooser chooser = new JFileChooser();
String fileType = chooser.getTypeDescription(file);
file.delete();
//MIME Type I am getting from
DataHandler data = new DataHandler(new DocumentSource(inStream));
data.getContentType();
data.getContentType() is not working well in all cases.That's because there's no way to get MIME type of all files on all filesystems.
Kaj -
What's the 'best practice' way to get email and fax number from vendor?
Hello *,
could anybody let me know what the 'best-practice' is to get the fax number and smtp address from the vendor master? Is there a preferred function module I should use?
Thanks a lot,
TorstenHi ,
try that:
TYPE-POOLS: szadr.
DATA adr_kompl TYPE szadr_addr1_complete.
DATA adr1 TYPE szadr_addr1_line.
DATA adtel TYPE szadr_adtel_line.
DATA admail TYPE szadr_adsmtp_line.
DATA adfax TYPE szadr_adfax_line.
CALL FUNCTION 'ADDR_GET_COMPLETE'
EXPORTING
addrnumber = lfa1-adrnr
IMPORTING
addr1_complete = adr_kompl
EXCEPTIONS
parameter_error = 1
address_not_exist = 2
internal_error = 3
wrong_access_to_archive = 4
OTHERS = 5.
* Mail
LOOP AT adr_kompl-adsmtp_tab INTO admail.
MOVE admail-adsmtp-smtp_addr TO atab-mail.
ENDLOOP.
* fax
LOOP AT adr_kompl-adfax_tab INTO adfax.
MOVE adfax-adfax-fax_number TO atab-fax_number.
ENDLOOP.
regards Andreas -
To get previous and current meter reading in Bill Doc
Hi ALL
To get current and previous meter readings in Bill Document, How to fill DBERCHZ2 table.
currently my billing scheme is not updating any line items into DBERCHZ2 to 8 tables.
could you please suggest any one...
Thanks in ADVANCE...........KKResloved my self
Thanks..............KK -
Get user and Oranization Attributes from portal channels
Hello,
I am trayin to retrieve some user and arganizational attributes from portal channels (2005Q1), but, with directive "<dtpc:getStringAttribute key="attribute"/>, i can not retrieve some importants attributes as "dn" and an custom attribute from the organization that contain user entry, for example, "orgIdSuscriptor".
i don't know how to retrieve in the same channel some attributes of user entry and some attributes from oraganization entry, any one know how?
Thank yu very much.Thanks that helpful in some ways, but I want to get the page_id. For example, if I create a page with the name PG_DEPT and the display name "Department Page". I need to know how to get the current PG_DEPT name from the API. Also, I will like to get the current URL from the page (http://portal/pls/portal/page=123).
-
I only get sound and no picture when playing sky sports through my air play , Help ?
apps can choose to block mirror
try restarting wifi router, ipad and appletv and try again if it still don't work maybe the app is blocking mirror -
Getting links and its names from a html file
Hi everyone
My problem about the a getting links with name from a html file. For example
İn a web page in this site ?SUN? when use click SUN the browser open http://java.sun.com
İ want both of them, so the links and name. I can succeeded the get link but i don t know how to get the link name.
For example :
<B>setRightComponent(Component)</B>
İn this code segment i want to get B tag. But how i don t know. To get A tag i used this code
List result = new ArrayList();
try {
// Create a reader on the HTML content
URL url = new URI(uriStr).toURL();
URLConnection conn = url.openConnection();
Reader rd = new InputStreamReader(conn.getInputStream());
// Parse the HTML
EditorKit kit = new HTMLEditorKit();
HTMLDocument doc = (HTMLDocument)kit.createDefaultDocument();
kit.read(rd, doc, 0);
// Find all the A elements in the HTML document
HTMLDocument.Iterator it = doc.getIterator(HTML.Tag.A);
while (it.isValid()) {
SimpleAttributeSet s = (SimpleAttributeSet)it.getAttributes();
String link = (String)s.getAttribute(HTML.Attribute.HREF);
if (link != null) {
result.add(link);
it.next();
İ can use B tag but i don t know hot to get its value because it has no prefix such as HREF....
i am sorry if i use a bad explanation style or incorrect word.import java.io.*;
import java.net.*;
import javax.swing.text.*;
import javax.swing.text.html.*;
class GetLinks
public static void main(String[] args)
throws Exception
// Create a reader on the HTML content
Reader reader = getReader( args[0] );
// Parse the HTML
EditorKit kit = new HTMLEditorKit();
HTMLDocument doc = (HTMLDocument)kit.createDefaultDocument();
doc.putProperty("IgnoreCharsetDirective", Boolean.TRUE);
kit.read(reader, doc, 0);
// Find all the A elements in the HTML document
HTMLDocument.Iterator it = doc.getIterator(HTML.Tag.A);
while (it.isValid())
SimpleAttributeSet s = (SimpleAttributeSet)it.getAttributes();
String href = (String)s.getAttribute(HTML.Attribute.HREF);
int start = it.getStartOffset();
int end = it.getEndOffset();
String text = doc.getText(start, end - start);
System.out.println( href + " : " + text );
it.next();
// If 'uri' begins with "http:" treat as a URL,
// otherwise, treat as a local file.
static Reader getReader(String uri)
throws IOException
// Retrieve from Internet.
if (uri.startsWith("http:"))
URLConnection conn = new URL(uri).openConnection();
return new InputStreamReader(conn.getInputStream());
// Retrieve from file.
else
return new FileReader(uri);
} -
Get OUTPUT and RETURN parameters from a stored procedure
I have a stored procedure (MS SQL Server 2008 R2) like the following example.
Using Database Connectivity I can get the OUTPUT parameters but I can't get de RECORDSET DATA and de RETURN value.
Does anybody knows how to do that?
CREATE PROCEDURE [dbo].[TS_Teste] (@T057_S_NOMEMAQUINA VARCHAR(20), @STATUS INT OUTPUT, @ERRO NVARCHAR(500) OUTPUT)
AS
BEGIN
DECLARE @TABLE TABLE(CODIGO INT, DESCRICAO VARCHAR(30))
INSERT INTO @TABLE VALUES (51, 'A')
INSERT INTO @TABLE VALUES (52, 'B')
INSERT INTO @TABLE VALUES (53, 'C')
SELECT * FROM @TABLE
SET @STATUS = 1
SET @ERRO = 'Nenhum erro!'
RETURN 0
END
Solved!
Go to Solution.
Attachments:
SQL SP Return.vi 29 KBI finaly found what was wrong... It was necessary an only aditional line in the stored procedure. It should be like that:
CREATE PROCEDURE [dbo].[TS_Teste] (@T057_S_NOMEMAQUINA VARCHAR(20), @STATUS INT OUTPUT, @ERRO NVARCHAR(500) OUTPUT)
AS
BEGIN
SET NOCOUNT ON; -- NEW LINE!!!
DECLARE @TABLE TABLE(CODIGO INT, DESCRICAO VARCHAR(30))
INSERT INTO @TABLE VALUES (51, 'A')
INSERT INTO @TABLE VALUES (52, 'B')
INSERT INTO @TABLE VALUES (53, 'C')
SELECT * FROM @TABLE
SET @STATUS = 1
SET @ERRO = 'Nenhum erro!'
RETURN 0
END -
Get old and new values from DBTABLOG table
Hi,
I am developing a report to display all changes to some fields of PKHD table over a date range. CDHDR & CDPOS do not capture the changes while DBTABLOG does. But the variable key field (LOGDATA) in DBTABLOG does hold encrypted values which need to be decrypted. Is there any FM or a way out to get them ?
Please let me know. Thanks a lot.
Regards
NeerajUse DBLOG_READ and then work with the data like in the following sample
* Constants (cf. SAP RSVTPTOP)
CONSTANTS: type_i4 LIKE x031l-fieldtype VALUE 'AC', "UF160698B
type_i2 LIKE x031l-fieldtype VALUE 'A8',
type_f LIKE x031l-fieldtype VALUE '88'. "UF160698E
* First - informations from directory
REFRESH fld_list.
CALL FUNCTION 'GET_FIELDTAB'
EXPORTING
langu = sy-langu
only = ' '
tabname = 'TEVEN'
withtext = 'X'
* IMPORTING
* HEADER =
* RC =
TABLES
fieldtab = fld_list
EXCEPTIONS
internal_error = 1
no_texts_found = 2
table_has_no_fields = 3
table_not_activ = 4
OTHERS = 5.
LOOP AT fld_list INTO fld WHERE keyflag = 'X'.
ADD fld-intlen TO keylen.
ENDLOOP.
* Then extract data log
REFRESH obj_list.
obj-tab = 'TEVEN'.
INSERT obj INTO TABLE obj_list.
CALL FUNCTION 'DBLOG_READ'
EXPORTING
from_day = s-aedtm-low
* FROM_TIME = '000000'
to_day = s-aedtm-high
* TO_TIME = '235959'
obj_list = obj_list
* ACCESS_DATABASE = 'X'
* ACCESS_ARCHIVES = ' '
* AUTO_ARCH_SEL = ' '
* USER_LIST =
CHANGING
log_list = log_list
EXCEPTIONS
archive_access_error = 1
no_archives_found = 2
OTHERS = 3.
* Extract data from returned tables
LOOP AT log_list INTO log.
LOOP AT fld_list INTO fld.
IF fld-keyflag = 'X'.
ASSIGN log-logkey+fld-offset(fld-intlen)
TO <hexa> TYPE 'X'.
ELSE.
fld-offset = fld-offset - keylen.
ASSIGN log-logdata+fld-offset(fld-intlen)
TO <hexa> TYPE 'X'.
fld-offset = fld-offset + keylen.
ENDIF.
CASE fld-inttype.
WHEN 's'.
f_type = type_i2.
WHEN 'I'.
f_type = type_i4.
WHEN 'F'.
f_type = type_f.
ENDCASE.
IF 'sIF' CS fld-inttype.
feld = <hexa>.
CALL FUNCTION 'DB_CONVERT_FIELD_TO_HOST'
EXPORTING
type = f_type
CHANGING
field = feld
EXCEPTIONS
wrong_param = 1
OTHERS = 2.
ASSIGN feld TO <hexa> TYPE 'X'.
ENDIF.
ASSIGN <hexa> TO <char> TYPE 'C'.
teven+fld-offset(fld-intlen) = <char>.
ENDLOOP.
* Here structure teven is filled
ENDLOOP.
Regards -
How to get Essential and additional qualifications ,From which table
Hi all,
In one of my requirement, the report should show the Qualifications and Essential qualifications columns in the output.
Requirement is :
1. I have brought qualifications of Applicant from PB0024 table.
2. I need to compare these with the Qualifications maintained in Job for the pernr.
3. There are two types of Qualifications namely essential Qualifications and additional Qualifications.
4.
How do we get the Qualifications maintained for a job/Position?
How can we distinguish between Qualifications and essential Qualifications maintained for a job at the database table level ?
Please reply ASAP.
Regards,
Rama.PHi Dilek Ersoz Adak,
How can we get the jobs assigned to a position ,from which table ?
Actually i am doing a custom recruitment report which displayes several fields along with the qualificaions and additional qualifications.
For the two fileds: in the spec it is given as:
14. Qualification (This is maintained in HRPE_PROFQ_TBJID-infotype 0024 of the employee. Thus, check Position maintained for the employee in P4002_OBJID, against this position check for Essential Qualification, related object type u2018Qu2019 HRPE_PROFQ_ESSENTIAL, compare this with the qualifications maintained for the employee in Infotype 0024, and display wherever these maintained.)
15. Additional Qualification (This is maintained in HRPE_PROFQ_TBJID-infotype 0024 of the employee. Thus, check Position maintained for the employee in P4002_OBJID, against this position check for Essential Qualification, related object type u2018Qu2019, compare this with the qualifications maintained for the employee in Infotype 0024, and display all qualifications for which HRPE_PROFQ_ESSENTIAL is not maintained.)
16. Proficiency (HRPE_PROFQ_PROFC_TEXT)
in clear :
1. Positions (Object Type S) are linked to Job through relationship A 007
2. In APDISCOM scenario, Qualifications (Object Type Q) are attached to Object u2018Jobu2019 (Object Type C) through Transaction Code PPPM
3. Now, for a Job there can two types of qualifications maintained Essential Qualifications (ii) Additional Qualifications
4. For essential qualifications: Against a Qualification we can maintain u201Cessential check boxu201D HRPE_PROFQ
5. For additional qualifications: Those qualifications for which HRPE_PROFQ is not maintained
6. Now, for an applicant, Qualifications are maintained in Infotype 0024, wherein the necessary qualifications would be selected.
7. In the report for field of u201Cessential qualificationu201D, check for qualifications maintained in Infotype 0024 and compare it with qualifications maintained in Job (through Position assigned to the applicant in P4002_OBJID)
8. Check for essential qualification HRPE_PROFQ maintained in Job and check whether the same Q is maintained in Infotype 0024 for the applicant, if yes, then generated Text of the Q
9. If there are any additional qualifications which are maintained in the job and not maintained in Infotype 0024, DONu2019T GENERATE ANYTHING IN FIELD
10. If there are any additional qualifications which are maintained in the job and if same are maintained in Infotype 0024, generate Q text under field of u201CAdditional Qualificationsu201D in the report
11. If there are any extra qualifications in infotype 0024, which are not maintained in Job, then generate Q text under field of u201CAdditional Qualificationsu201D in the report
Please provide the procedure.(For clarity copy and paste the text in a MS-word)
Please reply ASAP.
Regards,
Rama.P
Edited by: Rama Chary on Dec 9, 2009 1:28 AM -
Get path and file name from Bfile
Hi,
I'm using Bfile to store images in a database. Is there a way to get the path and file name of the image from Bfile, because I need to pass that information into an image processing function.
Many thanks.
SheldonCan you use FILEISOPEN in the DBMS_LOB package?
See http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96591/adl03prg.htm#281893
-- CJ
Maybe you are looking for
-
Troubleshoot recent overheating + immediate shutdowns (hard/software?)
Since last Friday, I've been experiencing frequent, instant shutdowns due to overheating. I've had these occur before, but generally when running intensive computations in R. I'd initiate a script at bedtime, and wake up to find my computer off (shut
-
Why is the iCloud greyed out in Settings?
Why is the iCloud in settings greyed out
-
Ijust saw the latest commercial. There is an app they are using where they drap images and the page reformats. If this is pages how do I setup up a template to do this?
-
Do external drive enclosures supporting Firewire 800 and 1TB drives require a brick power supply or can they be powered via Firewire 800 by the Mac Pro? Thanks! MikeR
-
i pluged my ipod in a friend's laptop and i wanted to sync music from his lap but it didnt appear in "music" in my ipod, it doesnt even sync!!!! what can i do!?