Skip to Content
0
Former Member
Mar 14, 2007 at 11:57 PM

pay->read_result

32 Views

Hi Everybody,

I'm trying to get the SEQNR from the CU, I found the example code from SAP (EXAMPLE_PNP_GET_PAYROLL). This code use a call the the class CL_PAY.

For training purpose, I'm trying to use the same Object but without using the node PAYROLL. This is my code:

**********************************BOC*****************************

REPORT zcl_hr1.

tables: pernr.

infotypes: 0002.

DATA: my_list like pc261 occurs 0.

DATA: pay TYPE REF TO cl_pay.

GET pernr.

CREATE OBJECT pay.

CALL METHOD pay->read_result

IMPORTING

list = my_list.

******************************EOC******************************

Some comments: It seems that when I decide to not use the Selection Screen 900 (Program Attributes) it stopped fetching the results on the table my_list.

My question is: Does anybody know why this Object works only using the node: payroll and the Selection Screen 900?

Thanks!

CL