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

how to create client dependent reports?

Former Member
0 Likes
550

we know that reports are client-independent . but how to create client dependent reports?pls give some sample program

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
455

All report programs are client-independent. Which means that if you create the program in one client, it also exists in another client within the instance. Only the data which the report will output will be different as the data is client-dependent.

You can not create a client dependent program, function module, class, etc.

Regards,

Rich Heilman

Read only

suresh_datti
Active Contributor
0 Likes
455

If you are referring to client dependent data retrieval in a Report, then the SELECT would look like..

 SELECT SINGLE * FROM VBAK CLIENT SPECIFIED
       WHERE MANDT = SY-MANDT  "or whatever
       AND VBELN = OBJECT-KEY-SALESDOCUMENT.

~Suresh

Read only

Former Member
0 Likes
455

Hi,

If you are asking about how to restrict a report to be executed in specific clients...you can do it in the INITIALIZATION event. Check whether the current client is what you are looking for. If it then nothing to do otherwise give corresponding error message.... I guess that this can be done even using Authorization objects...

Regards,

Bharat.