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: 

How to EXIT the smartform without printing the layout

Former Member
0 Kudos

Hi ,

I have an requirement where i have to exit from the smartform without printing the layout.any pointers on this would be helpful. The smart form has few select statements if those statements fail i have to exit from the smartform.

Thanks

Sap Surfer

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Before calling the SMARTFORM with the Function module use the IF condition, Check whether these selects will return some values or not, if this selects will not return any values then do not call this Function module

Regards

Sudheer

5 REPLIES 5

Former Member
0 Kudos

Hi,

Before calling the SMARTFORM with the Function module use the IF condition, Check whether these selects will return some values or not, if this selects will not return any values then do not call this Function module

Regards

Sudheer

Former Member
0 Kudos

You should give value 0 in page selection criteria.

to do this print preview not available and after that u should back from smartform.

If not solved post the problem in detail.

0 Kudos

upper answer is useful to you.to use if condition.

Former Member
0 Kudos

Hi ,

IF tu have written the select queries in Smartform itself, you won't be able to do it, i.e if selection is not successful than also the layout will be blank but it will be printed. The only way i think to go around this requirement is to write a deriver program and not call smartform when the select query fails or in some if.. else condition.

Thanks and Regads,

Saurabh Chhatre

Former Member
0 Kudos

Thanks for your input