Creating Spool from Smartform??
Hi
Can anybody tell how to get the spool from smartform?
Thanks in Advance
Davinder Singh
Hi Davinder,
After the execution of smartform function module the import parameter JOB_OUTPUT_INFO is populated with data. This is of type SSFCRESCL.
The component SPOOLIDS of JOB_OUTPUT_INFO contains list of spool id generated for smartform..
This spool id can be used to read spool request generated using any standard func module like RSPO_RETURN_ABAP_SPOOLJOB.
Hope this helps you....
Enjoy SAP.
Pankaj Singh.
Similar Messages
-
Create Spool from Internal table & converrt the spool to PDF
Hi All,
My requirement is take data from a table and find amount specific to each Vendors . So I took all the data into ITAB and do all the calculation. Later after calculation I have to create a spool from this ITAB and this spool have to convert to PDF. Later this PDF have to seend via email.
To convert the internal table to Spool , I used
LOOP AT t_summ INTO wa_summ.
w-amount = wa_summ-remittanceamount.
CONCATENATE wa_summ-vendorcode
wa_summ-controlnum
w-amount INTO wa_textdata SEPARATED BY space.
APPEND wa_textdata TO t_textdata.
ENDLOOP.
DESCRIBE TABLE t_textdata .
w-file_length = syst-tfill * 1022.
l_doctype = 'LIST'.
l_layout = 'X_POSTSCRIPT'.
CONCATENATE ' Listbill Summary Report for' syst-datum INTO
l_title SEPARATED BY space.
l_receiver = syst-uname.
* Create Spool
CALL FUNCTION 'RSPO_SR_OPEN'
EXPORTING
dest = 'LOCL'
* LDEST =
layout = l_layout
name = 'SUMREP'
* SUFFIX1 =
* SUFFIX2 =
copies = '1'
* PRIO =
* immediate_print = ' '
* AUTO_DELETE =
titleline = l_title
receiver = syst-uname "
* division = l_pri_params-prabt " abteilung
* authority = l_pri_params-prber "
* POSNAME =
* ACTTIME =
* LIFETIME = '8'
* APPEND =
* COVERPAGE =
* CODEPAGE =
doctype = l_doctype
* ARCHMODE =
* ARCHPARAMS =
* TELELAND =
* TELENUM =
* TELENUME =
IMPORTING
handle = l_spool_handle
spoolid = w-spoolid
EXCEPTIONS
device_missing = 1
name_twice = 2
no_such_device = 3
operation_failed = 4
OTHERS = 5
. "#EC DOM_EQUAL
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'SLVC_C1022_TO_C255'
EXPORTING
i_file_length = w-file_length
TABLES
it_c1022 = t_textdata
et_c255 = lt_spool.
l_length = w-file_length.
LOOP AT lt_spool INTO ls_spool.
l_length = l_length - 255.
IF ( l_length > 0 ).
l_line_length = 255.
ELSE.
l_line_length = l_length + 255.
ENDIF.
* Write contents to spool
CALL FUNCTION 'RSPO_SR_WRITE'
EXPORTING
handle = l_spool_handle
text = ls_spool
length = l_line_length.
ENDLOOP.
* Close Spool
CALL FUNCTION 'RSPO_SR_CLOSE'
EXPORTING
handle = l_spool_handle
pages = 1
FINAL = 'X'
EXCEPTIONS
handle_not_valid = 1
operation_failed = 2
OTHERS = 3
By this I can see the spool with data in SP02.
Then to conver to PDF, I used
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = w-spoolid
no_dialog = 'X'
DST_DEVICE = 'LOCL'
* PDF_DESTINATION =
IMPORTING
* PDF_BYTECOUNT =
* PDF_SPOOLID =
list_pagecount = list_pagecount
* BTC_JOBNAME =
* BTC_JOBCOUNT =
TABLES
pdf = t_pdf
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
* BIN_FILESIZE =
filename = 'D:\t\t.pdf'
filetype = 'BIN'
TABLES
data_tab = t_pdf
* FIELDNAMES =
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22
But later when I go and open the PDF, I am getting an error saying'Page cannot be open because it dont have any pages'
Please help me
Regards,
NikhilHi Nikhil,
<li>If you are still not able to find out the problem. You can an alternative way , which is used for the same purpose.
<li>Try this way. It creates spool and and same CONVERT_ABAPSPOOLJOB_2_PDF fm is used to convert spool to PDF. It works. Test this test program.
REPORT ztest_notepad.
DATA:g_val TYPE c,
w_pripar TYPE pri_params,
w_arcpar TYPE arc_params,
i_pdf TYPE TABLE OF tline,
spoolid LIKE tsp01-rqident,
l_no_of_bytes TYPE i,
l_pdf_spoolid LIKE tsp01-rqident,
l_jobname LIKE tbtcjob-jobname,
l_jobcount LIKE tbtcjob-jobcount.
DATA:it_t001 TYPE TABLE OF t001 WITH HEADER LINE.
START-OF-SELECTION.
SELECT * FROM t001 INTO TABLE it_t001.
"Read, determine, change spool print parameters and archive parameters
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
in_archive_parameters = w_arcpar
in_parameters = w_pripar
layout = 'X_65_132'
line_count = 65
line_size = 132
no_dialog = 'X'
IMPORTING
out_archive_parameters = w_arcpar
out_parameters = w_pripar
valid = g_val.
IF g_val NE space AND sy-subrc = 0.
w_pripar-prrel = space.
w_pripar-primm = space.
NEW-PAGE PRINT ON NEW-SECTION PARAMETERS w_pripar ARCHIVE PARAMETERS w_arcpar NO DIALOG.
ENDIF.
LOOP AT it_t001.
WRITE:/ it_t001.
ENDLOOP.
NEW-PAGE PRINT OFF.
CALL FUNCTION 'ABAP4_COMMIT_WORK'.
spoolid = sy-spono.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = spoolid
no_dialog = ' '
IMPORTING
pdf_bytecount = l_no_of_bytes
pdf_spoolid = l_pdf_spoolid
btc_jobname = l_jobname
btc_jobcount = l_jobcount
TABLES
pdf = i_pdf.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'C:\temp\test.pdf'
filetype = 'BIN'
TABLES
data_tab = i_pdf.
Thanks
Venkat. -
Creating Spool from function module
Hi friends,
I want to create a spool from my function module. I dont knw it is possible or not. Currently I am creating spool by submitting another report from my function module and exporting the values calculated in memory ID and importing in report which is not a good practise, kindly suggest some other way.
Thanks,
BrijeshNo. Spool is not possible from Function Module. You have to use that FM from one report/program.
Thanks
Subhankar -
Hi all,
Is there any way of creating a spool request or printing OTF data directly from an internal table.
Scenario is that I have read a spool request with multiple pages into OTF format and now have an internal table with OTF data. I have then split the spool data at page level into another internal table.
This table also contains OTF data . Is there anyway of printing this internal table directly to printer. If not is there any way of creating a spool request from this internal table?
Regards,
PreetMay be i can help to some extent. I will just tell you how to convert a internal table into spool. I have done the coding
REPORT zpmm_pdf .
TYPES : BEGIN OF itab,
name(20) TYPE c,
age TYPE i,
*** TYPE c,
END OF itab.
DATA : gt_itab TYPE STANDARD TABLE OF itab,
gw_itab TYPE itab.
DATA : counter TYPE i.
********************Data declaration for use in converting to pdf
DATA : pripar LIKE pri_params.
DATA : lw_space VALUE ''.
DATA : itab_pdf LIKE tline OCCURS 0 WITH HEADER LINE.
<b>*To get spool info</b>
DATA : rqident LIKE tsp01-rqident ,
rqcretime LIKE tsp01-rqcretime .
<b>DATA: spool_id LIKE tsp01-rqident.</b>
DATA : numbytes TYPE i,
cancel.
DATA : gv_filename LIKE rlgrap-filename VALUE 'C:\swet.pdf'.
********************END of Data declaration for use in converting to pdf
START-OF-SELECTION
DO 20 TIMES.
gw_itab-name = 'swetabh_shukla'.
gw_itab-age = counter + 1.
gw_itab-*** = 'M'.
counter = counter + 1.
APPEND gw_itab TO gt_itab.
CLEAR : gw_itab.
ENDDO.
<b>* Gt_itab is the internal table that we will write to spool</b>
*Start
SET PARAMETER ID 'ZPDF' FIELD lw_space.
<b>CALL FUNCTION 'GET_PRINT_PARAMETERS'</b>
EXPORTING
in_parameters = pripar
line_size = 255
layout = 'X_65_132'
no_dialog = 'X'
IMPORTING
out_parameters = pripar
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
<b>*********To write data in spool</b>
NEW-PAGE PRINT ON PARAMETERS pripar NO DIALOG .
RESERVE 5 LINES.
<b>*********From here data will be written in spool</b>
WRITE : 'Name',
'Age',
LOOP AT gt_itab INTO gw_itab.
WRITE : / gw_itab-name,
gw_itab-age,
gw_itab-***.
ENDLOOP.
<b>*****To switch off spool writing</b>
NEW-PAGE PRINT OFF.
************End of spool writing
<b>******To get the latest spool id of spool written by us</b>
SELECT rqident rqcretime FROM tsp01
INTO (rqident,rqcretime)
WHERE rqowner = sy-uname
ORDER BY rqcretime DESCENDING.
EXIT.
<b>******** It will just read the latest spool id and exit</b>
ENDSELECT.
MOVE rqident TO spool_id. <b>" We get the spool id here of the spool we wrote</b>
<b>*Now spool_id contains the spool id. We can convert this spool to pdf also as given *below</b>
****************************************************To convert spool to pdf
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = spool_id
NO_DIALOG =
DST_DEVICE =
PDF_DESTINATION =
IMPORTING
pdf_bytecount = numbytes
PDF_SPOOLID =
LIST_PAGECOUNT =
BTC_JOBNAME =
BTC_JOBCOUNT =
TABLES
pdf = itab_pdf
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
END-OF-SELECTION
To download the pdf file as local file
CALL FUNCTION 'DOWNLOAD'
EXPORTING
bin_filesize = numbytes
filename = gv_filename
filetype = 'BIN'
filetype_no_show = 'X'
IMPORTING
act_filename = gv_filename
filesize = numbytes
cancel = cancel
TABLES
data_tab = itab_pdf.
<b> I think i gave a lot of extra code, but i just gave it for proper understanding.
Only a few days ago i came across this concept. So had the ready made code.</b>
<b>Please do reward point if helpful</b>
Regards
swetabh -
Creating spool file for Mass printing of smartforms
Hi all
My requirement is Mass printing of Development Plans,
In this case is i need to select all the smartforms depending upon the selection screen data.& i need to pass all the smartforms to newly created spool file..
how should I use TSP01 & Function Module 'GET_PRINT_PARAMETERS' for this smartform spool.
so can any body explain me in detail..
How to create spool ID, ?
how to create spool file in this case..??
How to pass smartform data to that new spool file../??
Any sample codes for this ./??
Thanx in advance,
Regards,
Kalam A.Check the links -
Re: How to create a spool?
How to create a spool request
Regards,
Amit
Reward all helpful replies. -
How to create spool in an online report
Hi All,
I have a requirement where the ALV report output has customers and details related to it.For example My report output has three customers(with a check box against it) and each customer has 5 line items.The user will select first and the last customer and press a push button provided.Once he clicks this push button, I should get the customers which are selected by the users and the line items related to this customers.I am able to capture all this.Now the real problem here is that I have to create a pdf document for each customer along with line items and send it as an email.In effect, in this scenario I have to create two pdf documents since the user has selected two customers on the output screen and send it to the email of that particular customer.Is there any FM available to create spool in the background for each of these customers(along with line items data) and make use of this spool number to generate a pdf document using CONVERT_ABAPSPOOLJOB_2_PDF.Once I get this I can send the email.
Please help!
Thanks in advance
SandeepThe following steps shows how to download the output data in to PDF.
1.Provide Spool Parameters using following function module 'GET_PRINT_PARAMETERS'.
--This function module will provide the print parameters for creating the output in the spool; the required parameters are passed to the OUT_PARAMETERS import parameter.
2.Submit the report to generate the output in the spool.
SUBMIT (sy-repid) TO SAP-SPOOL WITHOUT SPOOL DYNPRO
SPOOL PARAMETERS wa_mstr_print_parms
WITH SELECTION-TABLE i_int_tab
AND RETURN.
--Submit the report to generate the output in the spool as i_int_table is an internal table with structure RSPARAMS. As variant allows you to set the names and contents of the parameter and selection options dynamically at runtime, we need to use the function module RS_REFRESH_FROM_SELECTOPTIONS to read the contents of the parameters and selection options of the current program into an internal table i_int_table with the structure RSPARAMS and pass that internal table in above manner.
3.To Find the spool number from the table TSP01
Data: l_rq2name LIKE tsp01-rq2name.
*Concatenate the report and User name as per the value available in the table
TSP01.
CONCATENATE f_repid+0(9)
f_uname+0(3)
INTO l_rq2name.
*Fetch the most recent spool from the TSP01 table
SELECT * FROM tsp01 WHERE rq2name = l_rq2name
ORDER BY rqcretime DESCENDING.
l_rqident = tsp01-rqident.
EXIT.
ENDSELECT.
4.Convert Spool to PDF using the FM : CONVERT_ABAPSPOOLJOB_2_PDF.
5.Download to local file by using the FM : DOWNLOAD
This function module returns an internal table data_tab contains the PDF formatted output.
Using above points your can create the output in the PDF from there you can send the email.
Hope your reqirement can met using the above five points.
Reward points please
Thanks,
Ravi Kanth -
How to print check box from smartform
Hi friends,
Any body help me ???
How can we print a check box in a layout from smartform.....Hi Shashi,
You can't directly print a checkbox as such in a smartform. But, there is a workaround.
Create two GraphicElements (for checked / unchecked). Assigned images to (for tick and untick) them.
In the conditions tab of GraphicElement enter conditions -
1. for checked - field = 'X'
2. for unchecked - field = ' '
To add images of tick and untick to system, Use transaction SO73.
Regards,
Manish Joshi -
Spooling from PL/SQL Block
Hi,
Is it possible to do spooling from a pl/sql block.The spool cannot be the first command because I want to give the spool file name in a loop and each time the spool name should change based on the value.
I tried all possiblities,but I couldn't can anyone give me some idea on how to do this.
I cannot use UTL_FILE option ,because the client agreed only for spooling.
Is it possible to write the spool data is excel format..
Please find below an example of my requirement..
DECLARE
CurSor Cur_Designation IS
Select Designation from tbl_Designation;
N_Desig Cur_Designation%RowType;
Cursor Cur_Emp(Desig Number) IS
Select Emp_no,Emp_name
From Employee Where Emp_Designation = Desig;
N_Emp Cur_Emp%RowType;
BEGIN
Open Cur_Designation ;
Loop
Fetch Cur_Designation INTO N_Desig;
EXIT WHEN Cur_Designation %NOTFOUND;
--Here I want to give the spool file name
Spool --Should be designation name
Open Cur_Emp(N_Desig.Designation);
Loop
Fetch Cur_Emp INTO N_Emp ;
EXIT WHEN Cur_Emp %NOTFOUND;
-- All employee details I need to come to log file
End Loop;
Close Cur_Emp;
End Loop;
Close Cur_Desingnation;
End;
Please advice me how to do this..
Thanks,
Bindu<< I cannot use UTL_FILE option ,because the client agreed only for spooling. >>
<< I want to use it in a PL/SQL Block.I have some variables to declare and some cursors to be used.
So where should I use the spool command.
I tried to given after a fetch command ,but it is not working. >>
you can't use SPOOL inside PLSQL
you may use dbms_output calls in PLSQL
so create a procedure test2 instead of sqlscript test2 and you will be fine
rem =========== procedure test2 ================
create or replace
procedure test2 (p_param number) is
begin
dbms_output.enable (1000000);
dbms_output.put_line('A' || chr(9) || 'B' || chr(9) || 'C' ) ;
FOR i_rec in (select a,b.c from xyz where a = p_param) LOOP
dbms_output.put_line (to_char(a) || chr(9) || b || chr(9) || c ) ;
END LOOP ;
end ;
REM ==================================================== -
How to create Spool through ABAP program
How to create spool request for Smartforms through program. So I can go in TCODE SP01 and see the output of my smartforms.
Include the below code in ur program .......
DATA: PRINT_PARAMETERS TYPE PRI_PARAMS,
VALID_FLAG TYPE C LENGTH 1.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
IMMEDIATELY = 'X' "C_IMMEDIATELY
*LAYOUT = 'Z_48_144'
*LINE_COUNT = '48'
LINE_SIZE = '255'
*NEW_LIST_ID = C_NEW_LIST_ID
NO_DIALOG = 'X'
RELEASE = 'X'
IMPORTING
OUT_PARAMETERS = PRINT_PARAMETERS
VALID = VALID_FLAG
EXCEPTIONS
ARCHIVE_INFO_NOT_FOUND = 1
INVALID_PRINT_PARAMS = 2
INVALID_ARCHIVE_PARAMS = 3
OTHERS = 4 .
G_PDEST = PRINT_PARAMETERS-PDEST.
NEW-PAGE PRINT ON PARAMETERS PRINT_PARAMETERS
NO DIALOG.
List of write statements to be output.......
NEW-PAGE PRINT OFF.
Reward if useful.............. -
Generating a spool from module pool
hi all,
i have a requirement to directly send output to a spool. the program type is module pool. is it possible to write the output in spool from module pool. please explain how to do that.
Thanks in advance.
Regards,
Lakshmi.What it the output of the program that needs to go to spool? Is it a list?
If its a list, try to write that as separate report program and you can submit that in the dialog program and the spool will be created.
SUBMIT report and RETURN.
Regards,
Ravi
Note - Please mark all the helpful answers -
Hi Gurus
I am using RSPO_R_RDELETE_SPOOLREQ to delete the spool after converting the spool from pdf and to email.
I am having a dump at
CALL 'RSPOARNS' ID 'ID' FIELD spoolid
ID 'FORCE' FIELD 'X'
ID 'RC' FIELD rc.
code of the FM. It say POSTING_ILLEGAL_STATEMENT, I have authorizations to delete the spool but, I am not finding a solution to delete the spool.
Do we have any other option to delete the spool?
Thanks
J@Y..Yes char10
DATA: delete_id TYPE tsp01_sp0r-rqid_char.
CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
EXPORTING
spoolid = delete_id.
I am getting the spool id from Smartform Interface job_output_info-spoolids[]
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB' for OTF
CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF' OTF to PDF
after sending the email
CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
Edited by: J@Y on Oct 13, 2009 10:16 AM -
ABAP class to create doc. from template
Hi all,
Does anybody know if is there any ABAP class which can call the "Create with template" functionality?
The idea is to create an action associated with the Service Ticket, which will create a document from template (Content Management functionality) when the Service Ticket is closed.
We could use SmartForms, but it seems to have some restrictions:
. Template maintenance is not so user frindly (the content management templates can be created/mantained in MS Word)
. The document is not stored within the Service Ticket context
Kind regards,
DoraHi Lance,
you are right. There's no "Create User from template" or "Copy User" Activity in the Integration pack for Active Directory in System Center SP1 or R2.
Perhaps, you can use "Get User" to get some settings from the template and subscribe the results to "Create User" Activity.
Regards,
Stefan
www.sc-orchestrator.eu ,
Blog sc-orchestrator.eu -
Tamper proof or noneditable PDF file creation from smartforms.
Experts,
We have requirement to create PDF file from smartforms that should be tamper proof.
As we know there any many PDF to word convertors tools are in market.
So PDF file should not be copied and not converted in word (should be tamper proof and non-editable).
So do we have solution with in SAP only to achieve above requirement ?
Please take your time answering, I'm not the kind of person that demands an answer really quickly, because that would be a bit rude.
Message was edited by: Matthew Billingham - "hurry up" text replaced.Dear Jelena,
True PDF is non-editable, but we can copy PDF content or even we can use tool to convert into word/docx format. for basically we are using information.
Orignal source will never change.
Let me explain you example.
Let say i have converted invoice (smartform) into PDF and send to X person.
Now X person can convert PDF into word format.
X person did some changes in word and converted back to PDF (miss use of orignal data/PDF file).
So requirement is that X person should not copy PDF content (Ctrl + C) and X person should be restrcited from converting to word.
Acrobat/Adobe has this feature but this is external (need to use some third pary tool)
Can this requirement accomplished within SAP only or include some Adobe package (class & method in SAP ). -
Creating spool before displaying output
Hi,
I want to create spool while executing the program in online ( NOT IN BACKGROUND OR BACTCH JOB) and before displaying out put ( list ).
Means before writing or displaying the output from final internal table. I want create a spool for final internal table.
Please provide sample code to create spool for normal report online report ( not background )
we required created spool number also
Thanks,
RajuHi Raju,
Use this sample code to solve your problem.
TYPE-POOLS: slis.
TYPES: BEGIN OF str_mara,
matnr TYPE mara-matnr,
ersda TYPE mara-ersda,
ernam TYPE mara-ernam,
laeda TYPE mara-laeda,
aenam TYPE mara-aenam,
vpsta TYPE mara-vpsta,
END OF str_mara.
DATA: i_mat TYPE TABLE OF str_mara,
wa_mat LIKE LINE OF i_mat.
DATA:params LIKE pri_params.
DATA: days(1) TYPE n VALUE 2,
valid TYPE c.
DATA: obj TYPE REF TO cl_salv_table.
SELECT matnr
ersda
ernam
laeda
aenam
vpsta
UP TO 10 ROWS FROM mara INTO CORRESPONDING FIELDS OF TABLE i_mat.
TRY.
CALL METHOD cl_salv_table=>factory
IMPORTING
r_salv_table = obj
CHANGING
t_table = i_mat.
CATCH cx_salv_msg .
ENDTRY.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = 'QAS'
list_name = 'ZTEST_VERTEX'
list_text = 'TEST'
no_dialog = 'X'
immediately = ' '
expiration = days
IMPORTING
OUT_ARCHIVE_PARAMETERS =
out_parameters = params
valid = valid
VALID_FOR_SPOOL_CREATION =
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
TRY .
NEW-PAGE PRINT ON PARAMETERS params NO DIALOG.
CATCH cx_sy_nested_print_on .
ENDTRY.
CALL METHOD obj->display.
NEW-PAGE PRINT OFF.
Regards,
Vijay -
How to save internal table data to file on local disk from smartforms?
Hi there,
I'm trying to save internal table data into .csv file on presentation server from within smartforms using GUI_DOWNLOAD function.
This function works fine from abap program, but when I call it from smartforms it does nothing. Form prints ok and there is no file created on local dick.
Is there a way to save smartforms internal table data to local disk?
Thanks in advance,
BaskeHi Jey,
Thanks for your prompt replay.
Unfortunately, Iu2019ve tried both your suggestions without success. Smartforms behaves just like in case of GUI_DOWNLOAD. There is no file saved on disk.
Do you have any other idea?
BR,
Baske
Maybe you are looking for
-
Mondo help on this one plz, i spent 20 minutes trying to find out solution
I had my iPod plugged into my powermac g5, I was putting songs onto it. Then I shut off my computer and went to sleep. I wake up and come to my iPod and there are NO songs on my iPod, NOTHING is there. And when I plug it in iTunes says: "iTunes canno
-
Link between output type and the email id in me22n ?
Hi, Can anyone plz explain the link between the output type and the email id maintained in the address data in ME22n ? The output type is configured fo rsending Email .Whenever i maintain the email id in the address data the outptu type gets trig
-
Where to find my Actions???
Totally a newbie and I'm starting from point A I have downloaded some actions and such and I'm trying to find out how i can get them to open with Elements 9? Please enlighten me..Thanks! Tammy
-
Question using numpad key commands on MacBook Pro
Hi, I'm using a MacBook Pro which does not contain the imbeded numpad. I am always using these key within Logic. Does anyone know a workaround for this or would I have to remapped certain keys? Many thanks. Ed
-
Cannot install Pages onn iPad 2?
I tried installing Pages on my iPad 2, and it says that the app required iOS 5.1. Do I not have the required software on the iPad 2? But here it says that the app works on all iPads...?