03-30-2010 12:10 AM
Hi all,
How to use SUBMIT statement for calling a print program/smartform?
03-30-2010 5:33 AM
03-30-2010 5:43 AM
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
03-30-2010 5:55 AM
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
03-30-2010 8:20 PM
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.
03-30-2010 8:21 PM
Hi Srinivas.
Thanks for the rpely.
CAn you please elaborate your reply as per my new post?Thanks.
03-30-2010 11:28 PM
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
11-03-2010 12:18 PM
Hi,
I also have to submit the driver program of smartform/adobi.
Can you please help.
Regards