Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

GET pernr statement help

Former Member
0 Likes
1,192

Hi,

I am a very much a beginner to ABAP.

Can anyone explain me the logic with which pernr statement works?

This is my understanding so far.

i think it is working as a loop.

At first loop it gets the record of first pernr number into an internal table. If muliple records exists they are added into the internal table.

This goes on for all pernrs.

Is this correct?

Also i think there is a table where pernr number is stored globally. This is because i get a pernr number while using get pernr but that number is nowhere in any table.

Can any1 tell me that table name.

Thanks in advance,

Bala

1 ACCEPTED SOLUTION
Read only

JozsefSzikszai
Active Contributor
0 Likes
1,094

>

> Can anyone explain me the logic with which pernr statement works?

> This is my understanding so far.

> i think it is working as a loop.

> At first loop it gets the record of first pernr number into an internal table. If muliple records exists they are added into the internal table.

> This goes on for all pernrs.

> Is this correct?

correct!

>

Also i think there is a table where pernr number is stored globally. This is because i get a pernr number while using get pernr but that number is nowhere in any table.

> Can any1 tell me that table name.

PA0001

8 REPLIES 8
Read only

Former Member
0 Likes
1,094
Read only

Former Member
0 Likes
1,094

Hi,

Table PERNR-PERNR

GET PERNR is a kind of loop

Edited by: Neenu Jose on Oct 24, 2008 8:29 AM

Read only

0 Likes
1,094

hello,

PERNR is a structure and not DB table .

Rgds,

Sandeep

Read only

Former Member
0 Likes
1,094

Hi,

Check

table:P0002

Read only

0 Likes
1,094

Hi All,

I am using logical database pnp here.

Thanks,

Bala.

Read only

0 Likes
1,094

Hi,

Check

http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/content.htm

GET PERNR:used in logical database PNP

If you are using LDB PNP, try the below code

tables : pernr.

infotypes : 0001.

start-of-selection.

get PERNR.

end-of-selection

Edited by: Neenu Jose on Oct 24, 2008 8:38 AM

Edited by: Neenu Jose on Oct 24, 2008 8:39 AM

Edited by: Neenu Jose on Oct 24, 2008 8:42 AM

Read only

JozsefSzikszai
Active Contributor
0 Likes
1,095

>

> Can anyone explain me the logic with which pernr statement works?

> This is my understanding so far.

> i think it is working as a loop.

> At first loop it gets the record of first pernr number into an internal table. If muliple records exists they are added into the internal table.

> This goes on for all pernrs.

> Is this correct?

correct!

>

Also i think there is a table where pernr number is stored globally. This is because i get a pernr number while using get pernr but that number is nowhere in any table.

> Can any1 tell me that table name.

PA0001

Read only

0 Likes
1,094

Thank you very much eric....

You helped me a lot in learning abap so far....

Thanks again from my heart

With lots of thanks,

Bala.

Edited by: Bala Shanmuga Priyan on Oct 24, 2008 9:03 AM