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: 

HR field unknown in selection screen

Former Member
0 Kudos

Hi experts,

Have a problem with selection screen for an HR report. Here's the code:

selection-screen begin of block b2 with frame title text-002.

parameters:

payid like pc261-payid modif id spe. "pay identification

select-OPTIONS:

s_payty for pc261-payty." modif id spe. "pay type

selection-screen end of block b2.

I get this error message :" field pc261-payty is unknown."

Mind you, I don't get any errors if I put payty in parameters as I have done for payid. The structure pc261 can be acessed by double click, so it's obviously visible. Please advise.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Stanley,

Define this in your code.

TABLES pc261.

Regards,

Atish

5 REPLIES 5

Former Member
0 Kudos

Hi Stanley,

Define this in your code.

TABLES pc261.

Regards,

Atish

0 Kudos

Hi Stanley,

If pc261 is structure then you can also use

DATA pc261 type pc261.

Then you will not get this error.

Regards,

Atish

amit_khare
Active Contributor
0 Kudos

If you are using SELECT-OPTION, then declare the table name used for reference there in TABLE attributes.

Regards,

Amit

Reward all helpful replies.

Former Member
0 Kudos

solvd

Former Member
0 Kudos

solved