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

Isse withGET statement

amit_khare
Active Contributor
0 Likes
872

Hi All,

I have a reports using LDB PNPCE. It's a custom report.

The contrl is not going to GET statement in this. It's directly going to END-OF-SELECTION reading everything before GET statement.

Tables: PERNR.
NODES: PERAS.

START-OF-SELECTION.
**--Get first date & last date of month
  PERFORM get_first_last_date_month CHANGING w_strdate
                                             w_enddate.

**--Get Employees data
GET peras.
**--Code

END-OF-SELECTION

Please suggest.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
839

Hi Amit,

I think you will have to use GET PERNR instead of GET PERAS. PERNR is the main high level node in this ldb.

regards,

amit m.

7 REPLIES 7
Read only

Former Member
0 Likes
840

Hi Amit,

I think you will have to use GET PERNR instead of GET PERAS. PERNR is the main high level node in this ldb.

regards,

amit m.

Read only

0 Likes
839

Hi Amit,

Thanks for reply.

PERAS will work with PNPCE.

As use of the 'GET PERNR' event is forbidden in this case.

But don't know what the issue is here, its not going to that line.

Read only

Former Member
0 Likes
839

Hi again,

I just tried, and it is working fine.

The event sequence is;

start-of-selection.

get peras. -


multiple times

end-of-selection.

Just copy paste to get a feel of it.



report abc.

tables : pernr.
nodes : peras.


start-of-selection.
write :/ 'start of selection'.

get peras.
write 'peras event '.


end-of-selection.
write :/ 'end of selection'.

regards,

amit m.

Read only

0 Likes
839

Hi,

Yeah it wok fine and same is working on couple of reports other reports also.

Its only giving problem in this object. Can't do much as its a copy of a standard report.

Changing the code to read from PNP Logical Database.

Read only

0 Likes
839

Hello Amit,

Is the issue with the Subroutine???

Sas

Read only

0 Likes
839

No.

The control is going directly to END-OF SELECTION ihout going to GET statement.

Its reading everything written before GET in START-OF-SELECTION and after executing the last command before GET, control will go directly to END-OF-SELECTION.

Read only

0 Likes
839

Ok Let clarify 2 things...

1) Do you have selection-screen for that? If so what inputs are u giving?

2) Sometimes due to Authorisation issues it may happen ( The same happend once ) so try to check with other diff SAP- ID'S...

3) Is the issue with only this report using PERAS or any other reports are also having same issue when using peras??

Regards

sas

Amit Did you check things?????

Edited by: saslove sap on Jan 25, 2010 7:23 AM