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: 

Problem when saving layout for a report

0 Kudos
836

Hi all,

When saving a layout for the standard report program IW58(RIQMEL20), the entry gets saved in LTDX table with the field HANDLE set to 'SERV'.

This standard report program is called from a custom report program of mine using SUBMIT PROGRAM by passing the layout which i have saved in the above step.

On debugging the standard program I found out that when calling the standard program from my custom program, layouts are fetched from the LTDX table where HANDLE = 'INST'.

But the layout i have saved has HANDLE set to 'SERV' and thus i am getting an error saying 'No layouts found'.

How should i be overcoming this error.

Is there a way to set the HANDLE to 'INST' when saving the layout?

Thanks,

Vignesh Sunkasi.K

1 ACCEPTED SOLUTION

0 Kudos
300

Hi all,

The problem has been solved.

When the program is executed from the T-code(IW58) and the layout is created, the HANDLE field is set to 'SERV'.

But when the program is executed from SE38 and the layout is created, the HANDLE field is set to 'INST'.

So i had to create the layout fro SE38 to resolve the issue.

Regards,

Vignesh Sunkasi.K

2 REPLIES 2

Former Member
0 Kudos
300

There is a point in the program where it assigns the handle based on the transaction code. I think all you can do is try to set sy-tcode to one that picks your handle (and set it back after).

Rob

0 Kudos
301

Hi all,

The problem has been solved.

When the program is executed from the T-code(IW58) and the layout is created, the HANDLE field is set to 'SERV'.

But when the program is executed from SE38 and the layout is created, the HANDLE field is set to 'INST'.

So i had to create the layout fro SE38 to resolve the issue.

Regards,

Vignesh Sunkasi.K