Calling SMARTFORM instead of SAPSCRIPT?
I've imported my SAPSCRIPT to my SMARTFORM. I got rid of all the syntax errors, and have my NACE/TNAPR config completed.
I know the Print Program will need revisions. I am trying to understand that when the Print Program's old code said:
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'TITLE'
window = 'TITLE'
EXCEPTIONS
element = 1
window = 2.
And, there is a window migrated from SAPSCRIPT to SMARTFORM called "TITLE". I know that I now call the SMARTFORM function Module. But I am not sure of the parameters to export to it. How do I get it to go to the window "TITLE" to print the text there? How will it know to go to "TITLE" window? Am I going to need more flow logic in the SMARTFORM for this, or is there a way for the Calling Print Program to go to the "TITLE" window and print what is there and return back to the print program at this point?
All the IF/ENDIF logic migrated to the SMARTFORM as TEXT elements, which should work, only I used the modular IF/ENDIF objecvts in previous new dev when needed.
Thank-You.
Edited by: TMM on Apr 28, 2009 1:34 PM
How will it know to go to "TITLE" window?
Smartform Processes the Windows in some defined Order based on the Windows type.
When we use the SAPScript, we need to call each Text Element to be able to print the text. In Smartform, we need to pass all the required parameters to the Form Interface and you need to use it into your text elements to print it.
Regards,
Naimesh Patel
Similar Messages
-
F110: Automatic payment supports the smartforms instead of script.?
Dear All,
I have a requirement on smartforms.
I want to configure the smartform instead of script in F110 at company code level.
Whether I need to do code changes on driver program RFFOUS_C, because this program supports only script.
Please let me know how to do it?
Thanks & Regards,
Bala.Bala Kumar,
SPRO => Automatic Outgoing Paymenst =>Payment Methods / Bank Selcetion for Payment Program => Set Up All Company Codes for Payment Transactions => Check for your Company Code => Go for Paying Company Code (Click It) => at the bottom you'll see Forms. Mention your form there.
In case if you wish to use Driver Program RFFOUS_C, i think you should make a z copy and alter as per smartform.
Anmol Saxena. -
How do we call smartforms in abap program or web services
how do we call smartforms in abap program or web services
How many types of smartforms are there?
points will be rewardedHi
See this sample program
Using the fun module smartform is called from the program
Calling SMARTFORMS from your ABAP program
REPORT ZSMARTFORM.
Calling SMARTFORMS from your ABAP program.
Collecting all the table data in your program, and pass once to SMARTFORMS
SMARTFORMS
Declare your table type in :-
Global Settings -> Form Interface
Global Definintions -> Global Data
Main Window -> Table -> DATA
http://sapr3.tripod.com
TABLES: MKPF.
DATA: FM_NAME TYPE RS38L_FNAM.
DATA: BEGIN OF INT_MKPF OCCURS 0.
INCLUDE STRUCTURE MKPF.
DATA: END OF INT_MKPF.
SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
MOVE-CORRESPONDING MKPF TO INT_MKPF.
APPEND INT_MKPF.
ENDSELECT.
At the end of your program.
Passing data to SMARTFORMS
<b>call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORM'</b>
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE: / 'ERROR 1'.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function <b>FM_NAME</b>
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
GS_MKPF = INT_MKPF
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
<b>Reward points for useful Answers</b>
Regards
Anji -
Has anyone had a problem with TapMedia File Manage installed on iPhone 5? I reported a WIFI functionality problem to the developer and asked for support. Instead the company has been very unprofessional by name calling me instead of logically evaluate and troubleshoot the problem
Hi AKE1919,
Welcome to the Support Communities!
The following information should help you with this:
How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
http://support.apple.com/kb/HT1933?viewlocale=en_US
Cheers,
Judy -
How to call smartform FM after using SSF_FUNCTION_MODULE_NAME?
Hi Experts,
How to call smartform FM after using SSF_FUNCTION_MODULE_NAME?
I mean, in driver program i called SSF_FUNCTION_MODULE_NAME to get the related FM for my smart form. after that How do I call it(smartform fm) . I tried to call by pressing PATTERN button in Report. but it is showing FM is not exist error.
Call function SSF_FUNCTION_MODULE_NAME
Export
formname = 'zsmartform'
import
fm_name = function_name.
function_name is stored the corresponding smartform fm. then How do i call it to process my smartform?
thanks in advance.hi,
Chk this sample.
DATA: p_output_options TYPE ssfcompop, "occurs 0 with header line
p_control_parameters TYPE ssfctrlop. "occurs 0 with header line
p_output_options-TDCOPIES = 3. "number of copies.
p_output_options-tddest = 'LP01'. "def
p_control_parameters-no_dialog = 'X'. "no dilog box
p_control_parameters-preview = 'X'. "no preview
DATA : v_form_name TYPE rs38l_fnam.
*---- Function to get the function module name of the ----
*---- specified Smart form. ----
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'GIVE YOUR SMART FORM NAME'
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
fm_name = v_form_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3 .
*---- Function Module to call the Smart Form ----
*step 1 - go to ur smart form
*step2 - take environment
*step3-take function module name
*copy that unique number.
*step4 -come back to ur driver program.
*step5 - place ur cursur here. take patter,.give that unique number.
*at that time u will get the below code.
*step6 - rename that unique number with 'v_form_name' in the code generated by pattern.
CALL FUNCTION v_form_name
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_PARAMETERS =
control_parameters = p_control_parameters
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
output_options = p_output_options
user_settings = ' '
* ARCHIVE_INDEX_TAB =
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
for any clarifiaction pls revert.
regards,
Reshma -
How to call smartform in me54n
Hai All,
Iam developing a smartform for PR print with ztcode,the user asked me that,he dont want seperate tcode,in me54n tcode itself he want
print.I have tried in the enhancement spot but it is not firing.
Regards,
Siva jyothi.Hi ,
The print button creates a spool number through which you can get ALV output of the ITEM details but cannot call smartform from that.
PR is just an internal document.There is no other way to do it(As far as i know).
You now have only two options to go for:
1) Create a subscreen with a pushbutton , and then call the driver program to print the smartform.
2) A Z transaction to print the PR , which you have already done.
Let me know if you find any other way to do it.
Br.
Giri -
Hi all,
i want to print the data that i have in Portal (WD) in a PDF via Smartforms,
can somebody tell me how can i do this?
Best Regardsget the Smartform function module
call smartform
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = '<Smartform name>'
IMPORTING
FM_NAME = LV_FUNC_MOD_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
IF SY-SUBRC <> 0 .
RETURN.
ENDIF.
call LV_FUNC_MOD_NAME with Control parameter NO_DIALOG,GET_OTF marking X
*convert the OTF to PDF using
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
IMPORTING
BIN_FILESIZE = LV_LENGTH
BIN_FILE = LV_XSTRING
TABLES
OTF = LT_RETURN-OTFDATA
LINES = LT_TLINE
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
RETURN.
ENDIF.
now use use runtime service method to push the PDF to browser client
CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE -
Calling Smartforms from Module pool: Most Urgent
Hi, Exeperts
how can I call smartforms from module pool.
I have done like below.
First Created a push button on screen and used
these code in user command through PAI
FORM CALL_SMARTFORMS .
DATA: V_FORM_NAME TYPE RS38L_FNAM.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZSMART'
IMPORTING
FM_NAME = V_FORM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
ENDFORM. " CALL_SMARTFORMS
now I am getting form name in v_form_name, but it is not executing.
Please help me out.
Regards
Rajiv singh.Well, as it's most urgent....
One you have a value in V_FORM_NAME you need to call this function module, passing the fields and strucures that make up the interface to your form.
Eg.
DATA: DEVICE TYPE SSFCTRLOP .
DEVICE-DEVICE = 'PRINTER'.
DEVICE-NO_DIALOG = 'X'.
CALL FUNCTION V_FORM_NAME
EXPORTING
CONTROL_PARAMETERS = device
USER_SETTINGS = 'X'
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
Regards,
Nick -
Problem while calling smartform in webdynpro
Hi Experts,
I am calling a smartform in webdynpro abap. It was working fine in development server. I have ported the same request to Quality Server, there it was not working.it is giving sy-subrc = 1 and it is displaying a blank screen
I m following the following steps for calling smartform in webdynrpo.
I am calling the smartform by
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORM_NAME'
importing
fm_name = fname
exceptions
no_form = 1
no_function_module = 2
others = 3
if sy-subrc 0.
Error MESSAGE
endif.
call function fname
exporting
control_parameters = lv_control_parameters
output_options = lv_output_options
user_settings = space
pernr = stru_input1-zpernr
reinr = stru_input1-zreinr
pdvrs = stru_input1-zpdvrs
importing
job_output_info = lv_ssf_output
exceptions
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5
if sy-subrc 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
But it is not passing otfdata and it is returning 1 in sy-subrc.
Please help me to solve this issue.I m not using any image.
I have checked through debug and the function module is not transfering any file to OTF table.
Please suggest me..
Edited by: zakirriyaz on Nov 4, 2011 9:47 AM -
Calling Smartform in WD application?
Hi,
Is it possible to call Smartform in WD application?
ThanksYes it is. Check out the thread [Displaying Smartforms in Webdynpro ABAP |Re: Displaying Smartforms in Webdynpro ABAP; and check the code as Vikrant Trivedi suggested.
Also check the SAP document [How to Display a Smartform as PDF document in Web Dynpro for ABAP|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785].
Hope it helps. -
How to avoid Priner prompt while calling smartform
Hi All,
I am calling smartform FM from my program. I am passing following settings in Output-Options and Control-Parameters:
wa_outputoptions-tddest = 'LP01'. "Printer name
wa_outputoptions-tdnewid = 'X'. "New request
wa_controlpara-device = 'PRINTER'. "Device
wa_controlpara-no_dialog = 'X'. "No dialog
Even after these settings I am getting prompt which asks printer name and other details.
Please tell me how I can avoid the prompt which asks printer name and other settings such as new spool request and print immediately.
Thanks in Advance.
Regards,
Vijayhi,
try this....
DATA : control TYPE ssfctrlop.
control-no_dialog = ''.
control-preview = ''.
control-no_open = 'X'.
control-no_close = 'X'.
CALL FUNCTION 'SSF_OPEN'
EXPORTING
ARCHIVE_PARAMETERS =
USER_SETTINGS = 'X'
MAIL_SENDER =
MAIL_RECIPIENT =
MAIL_APPL_OBJ =
OUTPUT_OPTIONS =
control_parameters =<b> control</b>
IMPORTING
JOB_OUTPUT_OPTIONS =
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
How to avoid printer name prompt while calling Smartform
Hi All,
I am calling smartform FM from my program. I am passing following settings in Output-Options and Control-Parameters:
wa_outputoptions-tddest = 'LP01'. "Printer name
wa_outputoptions-tdnewid = 'X'. "New request
wa_controlpara-device = 'PRINTER'. "Device
wa_controlpara-no_dialog = 'X'. "No dialog
Even after these settings I am getting prompt which asks printer name and other details.
Please tell me how I can avoid the prompt which asks printer name and other settings such as new spool request and print immediately.
Thanks in Advance.
Regards,
VijayHi Vijay,
Try like this.
CALL FUNCTION fm_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
<b> control_parameters = wa_controlpara</b>
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
<b>output_options = wa_outputoptions
user_settings = space</b>
IMPORTING
DOCUMENT_OUTPUT_INFO =
job_output_info = tab_otf_data
JOB_OUTPUT_OPTIONS =
TABLES
it_tab = itab[]
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
Regards,
SP. -
UNABLE TO SEE/ANSWER INCOMING CALLS. Instead, when there is an incoming call, there is a "call status" button in lower left hand corner of screen...if i try to select the "call status" button, it does not do anything. Is this a reception issue? Very strange.....please help!!!!
Post relates to: Treo Pro T850 (Sprint)yeah, that's pretty strange. i suggest to try soft reset first and then if it's still showing the same behavior. do a hard reset. that should help. however if it's still acting strange, you call the palm tech support hotline. 1-877-426-3777. they will help you with your sprint treo pro.
-
Error in Calling Smartforms-During FAX output
Hi experts
I am getting the following error while processing the FAX output type.....
Can you please advice how to proceed on this..
Error message
Error in Calling Smartforms
Processing log of the Output type
Object 0130001210
Output type: Delivery Note
Processing log for program RVADDN01 routine ENTRY
Error during reading T001G (Return code
Cannot process message, no route from userID to fax number
Advance thanks for your support
regards
RajaHi experts
I am getting the following error while processing the FAX output type.....
Can you please advice how to proceed on this..
Error message
Error in Calling Smartforms
Processing log of the Output type
Object 0130001210
Output type: Delivery Note
Processing log for program RVADDN01 routine ENTRY
Error during reading T001G (Return code
Cannot process message, no route from userID to fax number
Advance thanks for your support
regards
Raja -
Calling a window in sapscript based on some conditions
Hi all,
I want to call a window in SAPScript based on some conditions.Plz suggest how could i do that.
Regards,
Chinmay.Hi,
Use a text element in that window.
ie..
/E TEXT
&VBAK-VBELN&
in ur driver program
if vbak-vbeln is not initial. ( your condition)
call function 'write_form'
element = 'TEXT'
window = 'WINDOW_NAME'
Endif.
hope this helps
santhosh
Maybe you are looking for
-
Unable to Poll files in SFTP Location using FTP Adapter
Hi SOA Experts, I have an issue like soa composite is unable to poll files. I have done the below configuration . 1.created the jndi by giving values to properties host name,port,username,password,usesftp. 2. refered the same jndi in composite. 3. Af
-
Not working my facetime?
my facetime is not working
-
Hi Guys, I completed one exercise as File Sender to IDOC. After completing this one they asked me to check as monitoring in transaction SXMB_MONI.There i got struggled as i didn't get any output. When i execute that processed for XML messages
-
Custom MSS PCR scenario & fields
HI , I have successfully copied the Standard MSS pcr scenarios to Z scenario & forms , as per the guidelines in Development guide for PCR .All the form elements & PCR flow is working fine for Z scenario & forms .
-
DTW PO Import Item price incorrectly set
Hi, I am facing two issues in PO imports. 1. Lets say Item price is set to $10 in the Supplier Price List. I want to import PO with the Price set to $5. I set Unit Price = 5, Quantity =10 and The Purchase Order created is with Price $10 picked