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

Custom selection field using Logical database

Former Member
0 Likes
1,194

Hi All,

I have to create a program that would print out employee contracts from infotype 16.

I am using logical database PNPCE.

Is there a way to add "contract type" as a selection parameter in the screen that is generated by PNPCE?

Thanks,

~Mark

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
778

Hi,

Go to program attributes and click on report category . create it and in the F4 check if this field is there. this is the only way.

Regards,

Nishant

5 REPLIES 5
Read only

Former Member
0 Likes
779

Hi,

Go to program attributes and click on report category . create it and in the F4 check if this field is there. this is the only way.

Regards,

Nishant

Read only

Former Member
0 Likes
778

Hi,

Create CTTYP(Contract type) as input parameter in the program.

Then after GET PERNR.

write check stmt for that field like below.

PARAMETERS: p_cttyp type p0016-cttyp.

GET PERNR.

CHECK p0016-cttyp EQ p_cttyp.

Rewards points if helpful.

Regards,

Srinivas Ch

Read only

Former Member
0 Likes
778

Hi Mark

You cannot add "Contract Type" as the selection fields through PNPCE LDB. PNPCE or PNP only provides you the fields from IT0000 and IT0001 for selection screen. If you need the Contract Type from IT0016 then declare one in your program and then later filter the records on this field inside GET PERSA event.

Cheers

~ Ranganath

Read only

Former Member
0 Likes
778

Thanks for your replies guys.

How do I get to display the text of the field on the screen instead of just the field name.

Thanks.

Read only

Former Member
0 Likes
778

figured it out