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: 

Include Company code in Z Report

Former Member
0 Kudos

Hi Experts,  I am Developing a ZHR Report I am using logical database  PNP now my requirement is to put the company code in selection screen and also as a mandatory field. please help me.

this is my selection screen and to incorporate the company code in the selection screen ....

Moderator Message:  Hereafter please use a valid subject line

Message was edited by: Kesavadas Thekkillath

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Sankar,

I can see a Company code field in the PNP LDB already(Field name PNPBUKRS).

Are you hiding it in your report?

Search for the field in the LDB Selections.

Thanks,

Shambu

5 REPLIES 5

gouravkumar64
Active Contributor
0 Kudos

Hi,

Follow this step:

1)If u want to put company code in 2nd block,then find that block in standard program and

just write your code like s_co type or like pa0001-bukrs

or s_co for pa0001-bukrs(example) obligatory.

as per your requirement.

2)then add your logic in all the places where it is required....

gourav.

Former Member
0 Kudos

Hi Sankar,

I can see a Company code field in the PNP LDB already(Field name PNPBUKRS).

Are you hiding it in your report?

Search for the field in the LDB Selections.

Thanks,

Shambu

Former Member
0 Kudos

Hi sankar,

In your report attributes , once you mention LDB Name you will get the report category.
In that give your report category name or create a new report category.

in the report category leftside in  Allowable selection criteria

Check the check box for company code -> save .

Then you will get company code in your selection screen.

Regards,

Ramya R

0 Kudos

Hi Ramya Ramasamy,

How to create a report category where i can create it..............

0 Kudos

Hi Sankar ,

Go to se38

give your report name

select attributes

click on hr report category

create report category

in Allowable selection criteria you can give the fields which u want.

or you can copy standard category and make the changes.

Please refer this link for the steps

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/205dc514-f494-2e10-54a1-f6f62fe0a...

Regards,

Ramya R