Smartform print program
hi all,
I have copied rlb_invoice in a zprogram.Iam getting my smartform in the print preview but it is empty . I want to know where to write the select statements.
thanx & rgds.
points will be rewarded.
Message was edited by:
abapuser
Message was edited by:
abapuser
Hi,
You have to write your select query in your print program(Coded using SE38 and type 1)
In that program once you have retrieved data using your select query pass that data to the function module generated by Smartforms.
If you are not clear please free to get back to me.
-B S B
Similar Messages
-
Smartform print program for order confirmation
Hi experts.
I am looking for a smartform print program for order confirmation.
The order confirmation in standard is a script with the name RVADOR01 and I tried to copy and change but I don't know which to eliminate and whcih to keep it.
If any body written the program already please provide me or provide the link to check.
Thanks in advance
Saithis is the processing form.
form processing.
data: lf_fm_name type rs38l_fnam.
data: ls_control_param type ssfctrlop.
data: ls_composer_param type ssfcompop.
data: ls_recipient type swotobjid.
data: ls_sender type swotobjid.
data: lf_formname type tdsfname.
data: ls_addr_key like addr_key.
data: document_output_info type ssfcrespd,
job_output_info type ssfcrescl,
job_output_options type ssfcresop.
perform get_data.
check retcode = 0.
perform set_print_param using addr_key
changing ls_control_param
ls_composer_param
ls_recipient
ls_sender
retcode.
*Get the Smart Form name.
if not tnapr-sform is initial.
lf_formname = tnapr-sform.
else.
message e001(/smb40/ssfcomposer).
endif.
determine smartform function module for invoice
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = lf_formname
importing
fm_name = lf_fm_name
exceptions
no_form = 1
no_function_module = 2
others = 3.
if sy-subrc <> 0.
error handling
retcode = sy-subrc.
if sy-subrc = 1.
message e001(/smb40/ssfcomposer).
endif.
if sy-subrc = 2.
message e002(/smb40/ssfcomposer) with lf_formname.
endif.
perform protocol_update.
endif.
call function lf_fm_name
exporting
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = ls_control_param
mail_recipient = ls_recipient
mail_sender = ls_sender
output_options = ls_composer_param
user_settings = ' '
is_nast = nast
is_vbdka = vbdka
is_addres = addr_key
importing
document_output_info = document_output_info
job_output_info = job_output_info
job_output_options = job_output_options
tables
it_vbdpa = tvbdpa "Item information
it_vbdpau = tvbdpau "Subitem numbers
it_vedpa = tkomservp "Contract Item Validity
it_vedka = tkomservh "Contract Header Validity
it_vedpn = tkomservpn "Contract Item Cancellation Data
it_vedkn = tkomservhn "Contract Header Cancellation DA
exceptions
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
if sy-subrc <> 0.
retcode = sy-subrc.
perform protocol_update.
get SmartForm protocoll and store it in the NAST protocoll
perform add_smfrm_prot.
endif.
endform. "processing -
Smartform print program to handle different mediums(1,2,5,6)
Hi ...
Iam writing a custom print program without copying any standard print program for a smartform..
This smartform will be configured for the mediums 1,2,5 and 6..
Can someone tell me like if other than normal code in the print program should we write any specific code to handle for different mediums (1,2,5 and 6) or else just the sameprogram that is used for medium 1 can handle all other mediums also...
Appreciate if someone can clearly state your views on this...
Thanks,
Kanthi..Hi Kanthi,
i dont think merely a Print program will be able to give the the functionality of mediums 2,5 & 6.. u need to write additional code for that... this u can chk by lookin into any standard print program say for PO u can look into sapfm06p in NACE, u may find that there may be separate programs for separate functionalities..
hope it helps.. -
Error in customization of smartform ,print program in OPK8
Hello All,
I am ABAP consultant .i created a new smartform in original language in FR and a print Zprogram.
while doing customization for smartform in the transaction OPK8 , the system is throwin an error saying that
the form is not availble in french .but form is there and in active state .
if i execute my program manually i am able to generate spool .
can any one please solve the problem or can any one sent the customization steps .
looking forward for good answers .
thanks
AneHi Shah,
Are you using any include texts in the smartform. You have to check the check box No error if no error exits.
If you are not using the texts,Put a hard code break point in program lines at different steps and see till which part of the code is executed successfully.
Thanks,
Vamshi. -
Hello,
Is there any method to find the name of the print prog of a smartform just from the name of the SFHi
Using the<b> NACE</b> tcode you can find it
If you know the application type and the related Output type for that Smartform/script to which it is used.
Or from the table<b> TNAPR</b> enter SF name and take the program Name
<b>Reward points for useful Answers</b>
Regards
Anji -
Payment program F110 - how to add second print program in customizing
Hello all,
i would like to add second (another print program after standard sapscript print program customized in table T042Z) print program in transaction F110. This second smartform print program should be customizable and triggered automatically within payment run.
Thanks, zd.Hi,
You can assign two forms in FBZP.
Payment methods per company code
Double click on payment method
In Form Data
You can assign Next Form
Both the forms should get printed when you run F110.
Thanks,
Ravi -
Standard print program & smart form for SALES ORDER
Hi,
I need
1. Print program &
2. SMART FORM
for "Sales Order".
and also please let me know how to migrate and do the required changes in smartform & print program.Hi Sameer,
Goto NACE tcode-> choose the application u want( like billing for invoice, PO)->output type->output type->processing routineon left side
Here u will find the standard program name and smartform .
Thanks,
Reward If Helpful. -
Hi Experts,
I am modifying an existing smartform print program,
after modifications, when I am clicking on printpriview button after selecting the zee Output Type
in order to test the form, I am unable to see the preview,
Can anybody tell me what are the points to check?.
I already checked the parameters passed to control structures.
They are fine. Even i am not able to see the printpreview.
Kindly help.
The sf is for Delevary
and the transaction i am using isVL03N
Regards,
Noor.hi,
Put break points in your program and execute it or else check for address nodes read_text fm
There may be some error in smartforms or driver program,
just make the break point and trying to debugg that
We can consider many checks in this case.
1. Check whether the Local printer exists or not.
2. If you are using any Address NOdes, check whether the Address number is holding a value.
3. Also check whether a record exists with your condition type/Delivery in the NAST table.
4. You can see the default local printer in SU3.
Use SFTRACE tcode to trace the error. -
Dear all,
Any one have the standard PO smartforms print program /SMB40/FM06P?? I can't find it on my ECC 6.0 system. Anyone can share it to me??
Regards,
KitHi,
I checked in ECC5o.
It's for PO only.
/SMB40/FM06P : Smart Form Print Program for Purchasing Documents.
Narasimha -
Standard print program for fi invoice smartform printing
Hi friend,
Is there any standard print program available for printing FI related invoice .
I want print program for printing smartforms.
I want to know any method for searching the standard print program for printing smartform in Fi module.
Thanks & Regards,
SathishHi,
FI related Forms will be configure in SPRO.
Goto SPRO and FI related applivcation.
There you will find the related forms and programs. -
Order confirmation Print Program and Smartform
Hi,
I found a smartform for the order confirmation.'/SMB40/SDORC_A'.I have searched the forums and found the print program to be the same.But we don't have it.We're on ECC 6.0Where can we download the program from?
Thanks..
Edited by: John G on Feb 4, 2008 5:19 PMHi John,
He has given some FM that is generated by that form. But that FM will vary from system to system . So thats very very wrong.
Some times smartforms will not be there in our system . You have to request your superiors to place the forms in place.
Reward points if useful
Regards,
Nageswar. -
Runtime error in print program of a smartform
Hi,
While trying to execute the print program of a smartform I am getting the following runtime error.
The reason for the exception is:
The call to the function module "/1BCDWB/SF00000288" is incorrect:
In the function module interface, you can specify only
fields of a specific type and length under "IT_BOOKINGS".
Although the currently specified field
"IT_BOOKINGS" is the correct type, its length is incorrect.
In the form interface of the smartform under tables parameters I have declared like this.
IT_BOOKINGS LIKE SBOOK
IT_SCHEDULE LIKE SPFLI
Can anyone tell me why do we get this error?
Regards,
HemaHello,
program to call smartform is really simple :
-> function SSF_FUNCTION_MODULE_NAME give you the name of the function link to your sapscript.
-> function WFMC_PREPARE_SMART_FORM help your to prepare your options to your smartform.
-> function xxx to call your smartform (find with the first function).
Sometimes you have to play with values of NAST (for ex) to find the language (set in control_parameters) or for example if you want to print without display (when it ask you for print / print preview and the name of the print device) .....
Frédéric -
Print program for the smartform for selecting the output type (email/fax)
Hi All,
Requirement :I have to create a print program for the smartform where the output type may be print out,email or fax ,so i need to put the condition for selecting the output type (like printout,email,fax).
can any body please let me know how to put the condition for selecting the desired output type ?
Thanks in advance
RahulHi
It is not the output type that has to be changed
it is the MEDIUM which you have to change and configure
for printout medium is 1
for FAX medium is 2
for MAIL it is 7.
so instead of printout change the medium to 2 or 7 for the same output type and attach to the same driver program and smartform/form.
Reward points for useful Answers
Regards
Anji -
Contents of a custom print program for a custom smartform
Hi...
Can you please tell me if we are writing a custom print program from scratch for a custom smartform for which there is no standard form available what are all the things that need to be coded in the print program..
My doubts on this are if we are configuring this form for output types of PO purchase order for mediums 1,2, 5 and 6 does any extra coding need to be done in the print program that is related to these mediums or is it just a configuration issue..
Apart from data retrieval part and call the function modules to send the data to smartforms what are the other things that we need to code in a custom smartform.. Anything that we need to code related to printing issues..
It would be great if someone can post a custom print program for any output type valid for mediums 1, 2, 5 and 6.
Also my last doubt is do we need to do anything in SE11 in designing a smartform and in what context do we need it...
Thanks and appreciate your help... Surely will reward for all the helpful answers..
Thanks again..
Kanthi..Hi,
yes you need to create your own print program. You need to catch printing information and to send data to your smartforms.
To send data to your smartforms you need to use structure describe in the data dictionnary.
This is a peace of code for sending information to a smartform that will be print used an external program (Esker)
DATA: it_data LIKE TABLE OF zssf_bl WITH HEADER LINE,
w_formname TYPE tdsfname ,
w_fm_name TYPE rs38l_fnam ,
is_output TYPE ssfcompop ,
is_control TYPE ssfctrlop ,
is_job_out TYPE ssfcresop .
* Récupère le nom du module fonction.
MOVE 'Z_BL_STT' TO w_formname.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = w_formname
IMPORTING
fm_name = w_fm_name
EXCEPTIONS
OTHERS = 3.
* Prépare les paramètres d'impression.
is_output-xsfcmode = 'X'.
is_output-xsf = 'X'.
is_output-xsfoutmode = 'S'.
is_output-xsfoutdev = 'DOCL'.
is_output-xsfformat = 'X'.
is_output-tdnoprev = 'X'.
is_output-tdnoprint = ' '.
is_output-tddest = 'DOCL'.
is_output-tdprinter = 'PLAIN'.
is_output-tdnewid = 'X'.
is_output-tdimmed = 'X'.
is_output-tddelete = 'X'.
is_control-no_dialog = 'X'.
is_control-preview = ' '.
is_control-no_open = 'X'.
is_control-no_close = ' '.
* Prepare le formulaire
CALL FUNCTION 'SSF_OPEN'
EXPORTING
user_settings = ' '
output_options = is_output
control_parameters = is_control
IMPORTING
job_output_options = is_job_out
EXCEPTIONS
OTHERS = 5.
* Appels du formulaire.
CALL FUNCTION w_fm_name
EXPORTING
control_parameters = is_control
output_options = is_output
is_bl = zbl_soustrait
TABLES
it_data = it_data
EXCEPTIONS
OTHERS = 5.
You need to catch information from the NAST table maybe
Rgd
Frédéric -
How to Import customized internal table to smartform from Print Program
Hi Gurus,
I want to Import customized internal table to smartform from print program, Can anybody tell me how it is possible.
With regards,
S.SaravananThere is no problem passing an internal table to a smarforms, smartforms have the same interface as a function module ([Defining the Form Interface|http://help.sap.com/saphelp_nw70/helpdata/en/1c/f40c5bddf311d3b574006094192fe3/frameset.htm] in [Smart Forms|http://help.sap.com/saphelp_nw70/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm]) so could you elaborate a little more on your requirement (is it a standard a custom forms, etc.)
Regards,
Raymond
Maybe you are looking for
-
Reset password, block or unblock user in a R/3 from the SAP GRC AC 5.3
Hello, I have 2 doubts. I want to know if a user can reset his password of the R/3 from the SAP GRC AC 5.3 automaticly. And can someone block or unblock a user using the GRC AC 5.3 automaticly too?. I know you can create a user automaticly from GRC,
-
White patch after removing row from JTable
I am working with JTable and removing item from table on clicking on button but after removing row there is white Patch on that row. I don�t want to show this white patch. I did repaint table but that is also not working. Any thoughts !!!!!!!
-
BI Export Library vs. ADS (Adobe Document Services)
Does anybody know why SAP added the Export Library as an alternative to ADS for BI? I mean, are there pros and cons to using one over the other? Right now we're using the Export Library and it seems to work fine for broadcasting and Print View in B
-
Possible to get higher quality dvd fit than auto transcoding?
After I drop a dynamic link sequence (2 hours long) into encore, I let it use the automatic transcoding to fill up the entire 4.7GB DVD5. Is the the best encoding I can get? Any idea how automatic transcoding choose the transcoding setting? What if I
-
We have the Vendor in Japan who ships the Finished product to Canada from Japan. PO is raised from US loaction. This is third party transfer. So somebody provide me with configuration settings and what will be process flow Thx