[52123] in SAPr3-news
Re: SAP HR
daemon@ATHENA.MIT.EDU (Dennis W. Ashley)
Thu Nov 4 21:31:32 2004
To: sapr3-news@mit.edu
Date: Fri, 05 Nov 2004 02:31:27 GMT
From: "Dennis W. Ashley" <dwashley@comcast.net>
Message-ID: <3CBid.354911$MQ5.206224@attbi_s52>
Reply-To: "Dennis W. Ashley" <dwashley@comcast.net>
Aminovic,
Using the get command implies you are using a logical database(LDB). The
code behind the LDB will be stored in a separate program. Also, the GET
command is a program event like START-OF-SELECTION and END-OF-SELECTION. If
the LDB does not return any data at the level of 'PERNR' the code between
'GET PERNR.' and the next event will not be executed, because there is no
data to process. Check to ensure you assigned an LDB in the main program's
attributes. If so, the selection screen and other objects not in your code
will be pulled in when you execute your code.
Dennis
"Aminovic" <aminovic@yahoo.fr> wrote in message
news: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
> > >
> > >