Application Development 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: 

I am not able to execute the following code....Help me ...I am a beginner

Former Member
0 Kudos
93

REPORT YCL_TEST1 .

tables : pernr.

data : pn_begda type p0001-begda,

pn_endda type p0001-endda.

infotypes : 0001, 0002, 0006.

get pernr.

provide * from p0001

  • from p0002 between pn_begda and pn_endda.

write : p0001-sprps, p0006-locat.

endprovide.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
63

Hi

When you use the Statement <b>get PERNR</b>. This referst to the Logical Database.

Define the Logical Database in the attributes of your program and you should not face this error.

Hope this helps and welcome to SDN

6 REPLIES 6

Former Member
0 Kudos
63

while creating prog. you have to define ldb name other wise it will not picked data

this may be the cause.

mukesh aggarwal

0 Kudos
63

I have given the LDB name as PNP in my program attributes..

Still it is not getting executed.

Former Member
0 Kudos
64

Hi

When you use the Statement <b>get PERNR</b>. This referst to the Logical Database.

Define the Logical Database in the attributes of your program and you should not face this error.

Hope this helps and welcome to SDN

Former Member
0 Kudos
63

hi sowmya,

Give the LDB name(PNP) in program attributes,

and u dont need to declare pn-begda and pn-endda.

write project stmt for all three infotypes

regards,

srinivas

valter_oliveira
Active Contributor
0 Kudos
63

Hi Sowmya.

There's nothing wrong in your code.

Perhaps you didn't mentioned PNP as the logical database in the program attributes.

Best regards.

Valter Oliveira.

former_member583013
Active Contributor
0 Kudos
63

Check this weblog....

<a href="/people/alvaro.tejadagalindo/blog/2006/02/19/how-to-deal-with-hr-payroll-reports to deal with HR Payroll reports</a>

Greetings,

Blag.