[52112] in SAPr3-news
Re: SAP HR
daemon@ATHENA.MIT.EDU (Aminovic)
Thu Nov 4 05:59:11 2004
To: sapr3-news@mit.edu
Date: 4 Nov 2004 02:59:08 -0800
From: aminovic@yahoo.fr (Aminovic)
Message-ID: <f237b2a8.0411040259.197943bd@posting.google.com>
the program should read the infotype 0002 for selected
pernr-pernr(matricule)
this are my includes:
*************************
*include Z_HR_TEST_FORM.*
*************************
FORM read_infotype TABLES P_ITAB_P USING VALUE
P_PERNR.
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
* TCLAS = 'A'
PERNR = P_PERNR
INFTY = VALUE
* BEGDA = '18000101'
* ENDDA = '99991231'
* BYPASS_BUFFER = ' '
* LEGACY_MODE = ' '
* IMPORTING
* SUBRC =
TABLES
INFTY_TAB = P_ITAB_P
* 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.
ENDIF.
ENDFORM. " read_infotype
*************************
*include Z_HR_TEST_DATA.*
*************************
tables:pernr.
tables : pa0002.
data itab like PA0002 occurs 0.
note: i already programmed alike program in other sap machines and it
works. what i want to no is why it does not work in this one.
******************
*
"Peter Zurfluh" <peter.zurfluh@swissonline.ch> wrote in message news:<cmbmrr$qb6$1@newshispeed.ch>...
> Hi
> I'm not ABAP programmer, but I suggest to analyse a SAP Standartprogramm.
> Like RPLMIT00 and you will find that a lot of programm coding is missing in
> your short ABAP.
> Between get pernr and write, SAP should have orders what he has to do....
>
> Might could be helpfull
>
> Peter
>
> "Jürgen Menges" <jmen@jmen-web.de> schrieb im Newsbeitrag
> news:cmaoad$e57$1@news.web.de...
> > nice try! But what is the content of the both includes??
> > Is pernr defined as a logical database? What should the program be able
> > to?
> >
> > Kind regards
> > --
> > Jürgen Menges
> > www.jmen-web.de
> >
> >
> > "Aminovic" <aminovic@yahoo.fr> schrieb im Newsbeitrag
> > news:f237b2a8.0411030502.261f2b0c@posting.google.com...
> >> hello
> >>
> >> i wrote a simple program and the problem is that when it gets pernr
> >> it jumps directly to the end of selection. i doens't process the code
> >> after get pernr
> >>
> >> the code:
> >> REPORT Z_HR_TEST no standard page heading.
> >>
> >> include Z_HR_TEST_DATA.
> >> include Z_HR_TEST_FORM.
> >>
> >>
> >>
> >> start-of-selection.
> >> write:/ 'hall'.
> >>
> >> get pernr.
> >>
> >>
> >> write:/ pa0002-pernr.
> >>
> >> * there is some perform here
> >> write:/ 'fall'.
> >>
> >>
> >> end-of-selection.
> >> *******************************
> >>
> >> the output is :
> >> hall
> >
> >