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: 

CAlling smartform

Former Member
0 Kudos

Hi all,

How to use SUBMIT statement for calling a print program/smartform?

7 REPLIES 7

Former Member
0 Kudos

Hi Experts,

Any suggestions?

anup_deshmukh4
Active Contributor
0 Kudos

Write a type 1 program i.e. report program say ZSMARTFORM and in report call the SSF_FUNCTION_MODULE_NAME to get the function module name for your form and then use Call function...!

and in your program use SUBMIT statement for the report.

SUBMIT ZSMARTFORM AND RETURN.

Hope it helps...!

Edited by: Anup Deshmukh on Mar 30, 2010 6:44 AM

0 Kudos

Hi,

I am giving an example here

tnapr-sform = 'YSFVFRM010'.

EXPORT tnapr-sform FROM tnapr-sform TO MEMORY ID 'SFORM'.

EXPORT w_vbeln FROM w_vbeln TO MEMORY ID 'SDOC'.

*-- Begin of change by Dhiman on 02.01.2007

PERFORM entry_connote IN PROGRAM yfvfrm016 USING ent_retco ent_screen.

*--Please write below statemnets in yfvfrm016

&----


*& Form ENTRY_CONNOTE

&----


  • ENTRY ROUTINE FOR SMARTFORM

----


FORM entry_connote USING ent_retco ent_screen.

IMPORT tnapr-sform FROM MEMORY ID 'SFORM'.

IMPORT w_vbeln FROM MEMORY ID 'SDOC'.

endform.

Regards,

Srinivas.

Edited by: Srininas on Mar 30, 2010 10:27 AM

0 Kudos

Hi Anup.

Thanks for the reply.

Let me explain you my query better:

I have a custom screen program wherein I have some custom buttons on clik of which I need to call some custom smartforms and their resp print programs .

Now in my custom screen program,how do I use the SUBMIT statement to call the custom smartforms and their print program?Do i still need to use the SUBMIT statement as you decsribed in your reply?Please confirm.

I hope you got my query right.

0 Kudos

Hi Srinivas.

Thanks for the rpely.

CAn you please elaborate your reply as per my new post?Thanks.

0 Kudos

SUBMIT ' Driver program name ''

WITH 'input field

e.g

SUBMIT ZREPORT

WITH VBELN = NAST-OBJKY.'

Edited by: shashank subhash on Mar 31, 2010 12:29 AM

manubhutani
Active Contributor
0 Kudos

Hi,

I also have to submit the driver program of smartform/adobi.

Can you please help.

Regards