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

Creating Transaction which calls screen inside a function module

Former Member
0 Likes
560

Hi,

I want to create a transaction which calls standard function module SWX_FORMABS_CREATE. This function module has a screen inside it , which is screen number 0010.

I created a report which calls this function module, and this works perfectly, outputting the screen. Now when i try to create a transaction from the report, the transaction requires a screen number, and when i put 0010 there, it would not run the transaction and gave me a dump saying that the screen cannot be found. Does anybody know how this sort of a scenario can work ? I cant design the screen in the report as this is a standard function module that i want to call.

All help will be greatly appreciated.

Thanks,

Amit

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
502

While creating tcode --> choose with selection screen and give the selection screen as 1000 and the report name.

3 REPLIES 3
Read only

Former Member
0 Likes
503

While creating tcode --> choose with selection screen and give the selection screen as 1000 and the report name.

Read only

Former Member
0 Likes
502

hi,

1. create report like this.:

REPORT Z123.

parameters dummy no-display.

call function SWX_FORMABS_CREATE

.....

2. create report transaction with above program (z123) and selection-screen 1000

...

I hope it will solve your problem

regards,darek

Read only

Former Member
0 Likes
502

Guys,

Thank you for your reply, but the actual way to achieve this is absurdly simple.

AS u said correctly, the program and selection screen option needs to be selected. However, only the report name should be entered with no entry for screen, and the checkbox for SAPGUI for windows should be checked .

This will solve the problem