Printing a spool file
how can i print a spool file in which i have some data info on SunOS saved in SQL>
hope my question is clear
Thank you in advance
there you go :)
and 1 for the doctor for being funny
Ivo
Similar Messages
-
Need Spool file 255 characters for background HR Reports into Excel
We have been looking for a solution for problem this for more than 2 years now.
Problem:
1. Requirement is to run large HR reports either standard or with Ad Hoc Query in background mode in a company with more than 50,000 employees.
2. Nobody wants printed reports these days. We want to save the forests. Customers prefer to be emailed an Excel file so they can do further data analysis, filtering, pivot tables etc.
3. Reports are running OK in foreground for smaller sections of the organisation, where you send the output to Excel from ALV, or save as a local file in spreadsheet format.
4. But large reports for entire company are awkward, tie up your PCs resources, and complex reports accessing many tables can timeout before completion.
5. So scheduling these reports to run in background would be the ideal solution.
6. However when we access the report output from SP02, we find that most reports (say with more than 13 or so fields) have an output wider than 255 characters and the output of the spool file wraps to the next line in Excel. It is very tricky to then parse the data back into one row for each employee. And you have a problem if you output is for 50,000 or so employees, because then you file is 100,000 rows and will not load completely into Excel limit problem of 65,536 characters.
7. We simply want a spool file that does not wrap the data to the next line after 255 characters.
8. But how to explain this simple requirement to some technical people. It seems a lot of posts on SDN think we always want to print a spool file. NO remember the forests!
Possible Solutions:
I see a lot of posts here that refer to OSS note 186603, but they dont mention the target for the output of the spool is to import into an Excel File (i.e. spreadsheet format). Just search for 186603 or Spool request with more than 255 columns. There is also a reference to OSS note 313566. I am not sure if these will work?
I have also seen the suggestions that you need to define a customer printer format that does not wrap the output after 255 characters (create a new format type in transaction SPAD).
Can anyone help us!
John McKeeHi,
Can you please check whether you can use:
CONSTANTS C_LF TYPE X VALUE '0A'.
CONSTANTS C_CR TYPE X VALUE '0D'.
Regards,
Lakshmi. -
Output different with the spool file
Hi friends,
I have using this Tcode : S_ALR_87012301 to print GL account balances.
once executed, the system display correct information.
but once printed, in spool file, instead of showing the name of the company , the system displayed the environment e.g Production. If we try to print in DEV, the system will display Development.
Your advice is highly appreciated.Celtic Mom
Welcome to the Apple user to user discussion forums
While I was organizing my photos, I realized there are about 30 or so photos that have the same exact file name as another photo. Example: There are two IMG_1243.jpg, but they are different pictures. They were taken at different times, even different years. I have used more than one camera to import photos. I have changed the name of one of the photos in the Title area in the information section of iPhoto. When I try to put the newly named photo into a folder that has the other IMG_1243, I get a message that says" An older item named "IMG_1243" already exists. Do you want to replace it with the newer one you are moving?"
I want to have both IMG_1243.jpg photos in the same folder. How can I do this? Also, I have a few thousand pictures, so how can I tell exactly how many photos have the same file name as another photo?
It sounds like you are using the finder inside the iPhoto library - do not do that - you will corrupt your library and lose the edits, keywords, etc that you have
iPhoto does not care about duplicate file names - it handles it fine
changing the title of a photo does not affect the file name - although when you export the photo you can use the title for the file name as an option
What are you doing and what do you want to accomplish?
Remember do not ever make any changes in the iPhoto library using the finder or any other program
LN -
Decrease print spool file size generated by PS CS5 Mac OS 10.6.8?
Hi,
Certain big/hi-res Photoshop (CS5) documents - sent from a 2010 era Intel Mac to an older HP 1200dpi Laserjet (LJ 2100M/HPs PostScript, standard HP/Apple drivers) - were taking forever to print.
In one case, for example, a 6MB on disk, Grayscale 8 bit, 109MB/40MB "doc size" .psd, when printed from Photoshop, generated a 135833k spool file.
The same .psd opened with and printed from Preview, only a 3229k spool file - which printed out in a short time.
Am I missing something?
Thanks for any comments or suggestions.The plug-in is there but no twain interface for the scanner appears as an option under file import in PS
you answered your own question -- Adobe will point the finger at Epson, and Epson will call Adobe out for breaking their driver -- but the 1250 is how old
this question gets answered here a couple times a month, and there are many web articles explaining the problem in more detail...
the short answer is scan in the stand alone scanning software (ViewScan may solve your issue)
most notably, that approach keeps Ps running in 64 bit and keeps it freed up to continue working while that ancient scanner chugs away
PS: I am not trying to beat you up for using good hardware that is still working for you, I am just trying to add a second opinion what others have said -
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. -
Where is the printer spool file on my Mac ?
I have a Mac Pro with 10.5.2 - and I print with 3 large Epson printers.
I had a print that started to print (Photoshop CS3)- and I saw that it was not what I wanted. I canceled the print in the Epson icon (on the dock) - and I shut down the printer and reset it.
But, when I turned the printer back on, the print started again.
Where is the file that holds prints - the printer que or printer spool file - on the Mac?
I have looked everywhere, and I cannot find such a folder anywhere. Anyone know where it is??
I used the CUPS tool
http://127.0.0.1:631/printers
to finally get rid of it, but I still would like to know where that file is kept.
DickUnfortunately, even though when Apple announced Handoff and Continuity and said Bluetooth 4.X was required, not all Macs with Bluetooth 4+ are compatible with Handoff. If the checkbox in System Preferences -> General isn't there, your Mac isn't compatible with Handoff. You can confirm that by going to "About This Mac" under the Apple Menu and then selecting "System Report." Then select Bluetooth in the upper left and see if your Mac is Handoff compatible. I'm typing this reply on a 2011 MacBook Air with Bluetooth 4.3.1 and running Yosemite but it's not compatible with Handoff.
You still will be able to make and receive phone calls on your Mac as long as your iPhone is within Bluetooth range. You can set that up in the FaceTime preferences. That's part of Continuity.
I have seen some instructions + software on the Web to enable continuity on Macs with Bluetooth 4+ that otherwise aren't compatible with Handoff. You'll have to do a web search if that's something you're interested in learning about.
Wish I had better news. -
Where is my Printer Spool file ?
I have a Mac Pro with 10.5.2 - and I print with 3 large Epson pritners.
I had a print that started to print (Photoshop CS3)- and I saw that it was not what I wanted. I canceled the print in the Epson icon (on the dock) - and I shut down the printer and reset it.
But, when I turned the printer back on, the print started again.
Where is the file that holds prints - the printer que or printer spool file - on the Mac?
I have looked everywhere, and I cannot find such a folder anywhere. Anyone know where it is??
I used the CUPS tool
http://127.0.0.1:631/printers
to finally get rid of the print, but I still would like to know where that file is kept.
DickWhenever you print to a printer through Leopard, the printer you are printing to will show up in the dock. Click this icon and it will open you Printer Queue. You can also go to Print & Fax Preference Pane. Select your printer and then click Open Queue. Select the print job that is in the queue and click the delete button.
D. -
Printing existing PDF-File via SAP-Spool
Hi to all,
I'm looking for a solution to print existing PDF-Files (external Directory) via SAP-Spool, in order to create a set of documents in correct succession, where some of them are created within SAP and others beeing created externally (PDF-Files).
We use NW7.0 and have AdobeDocumentServices activated.
I don't want to create PDF-Files out of SAP-Spool-Requests.
Thank you for any helpful hint.
Best Regards
ChristianThanks for this, having a look through at the moment, just one question do I have to install this SDK just to automatically print an existing PDF document from a 3rd party application when I have only the Reader installed?
Thanks -
Spool file for Mass printing of smartforms
Hi all..
My requirement is as follows...
Once the selected population is established, the new program would select all those Development Plans and <b>create a spool file</b> of all the printable formats (using the same smartform as the individual form print). This spool file would then print to the printer selected by the user on the selection screen. This would need to be run in the background, as it is expected it would have a long run time.
can any body tel me clearly how to approach this requirement,
any sample code for spool file creation in this case../??
Regards,
Kalam A.Hi all..
My requirement is as follows...
Once the selected population is established, the new program would select all those Development Plans and <b>create a spool file</b> of all the printable formats (using the same smartform as the individual form print). This spool file would then print to the printer selected by the user on the selection screen. This would need to be run in the background, as it is expected it would have a long run time.
can any body tel me clearly how to approach this requirement,
any sample code for spool file creation in this case../??
Regards,
Kalam A. -
Printer spool files in v11 vs v8?
Why does Acrobat version 11 create spool files that are up to 10 times larger than version 8 for the same document? Version 11 is running on Mac )S 10.8.3, version 8 running on 10.5.8. Both print to a shared laser printer on a windows server, and usually the v11 file will never print - it just gets dumped.
Any clues?
ThanksThe same thing happened to me:
http://discussions.apple.com/message.jspa?messageID=662944#662944
But To be honest (and I dont know if this really had anything to do with it)... The tech support at apple said that the print server had to be stopped when you create a print queue. I hadn't, I shut the server down trashed and recreated my queues since then everything has been working lovely. -
Flash player object enters print spooler file
This just started, yesterday all was fine. when I try to print a pic from Picasa it won't print -- the print spooler file has a SHD file with a flash player object. I keep clearing the spooler and emplying the file, but they keep reappearing. I uninstalled all adobe programs, but it's still happening. Windows Vista system 32 HP all in one printer.
thanks so much for helping, but I need to fix this. Yes, I'm finding what seems to be the same wierd files each time I give the print command for a pic. problem is, I have to stop the print spooler, then delete the two files, but then I can onlly print a doc. if I try to print a pic, it happens again. the hp printer will not cancel the doc. and it will not let me print another until I clear the print spooler file. I tried resizing the pic, but the same thing happened again. I have deleted all adobe stuff from my c: disk, figure I'll down load it later. Any other ideas? I'm going to HP noiw, wish me luck.
-
Spool file does not contain any text when PDF is printed
When we print some PDF files via Adobe Reader, the printjob does not contain any text.
In Adobe Reader I can select the text but when you print it, it prints it as images (polygons records in EMF) instead of text (e.g. EMR_TEXTOUT).
Two questions:
How can we make sure that Adobe Reader always prints text?
On what is the decision based in Adobe Reader to print the PDF document as an image or as text?Well we are looking for this information, otherwise we would not have asked this question. I really hope to get in contact with a Adobe Reader printing specialist who could give us these answers.
There must be something that decides to print as image or with text.
E.g. Adobe Reader 9 often prints text compared where Adobe Reader XI doesn't print the text for the same PDF. -
Can't print scanned pdf files Xerox 3450 Adobe Pro and Reader 9
I have a user that cannot print PDF's made up of scanned images to a network printer.
The job goes to the printer and spools up but hangs at either 64kb or 255kb and then errors out.
Even if I print just one page, it does the same thing.
Folks with Acrobat Pro 8 or Reader 8 can print the same file to the same printer with no problems.
OS: XP
Network Printer: Xerox Phaser 3450 PS
Adobe: Reader 9.1.3 and Acrobat Professional 9.1.3
I have tried the following:
On the Xerox 3450 PS Printer:
- disabling Advanced Printing Options
- changing Post script options to: EPS, optimize for speed, optimize for portablity
- reloading the printer drivers
- unmapping/remapping the printer on the customer's system.
In the Reader and Acrobat Pro print options:
- print only Document rather than Document and Markups
- print as image
- unchecked 'convert to true type1'
- changed options to Send for each page, send by range,
- tried using Language level 2
- reinstalling Adobe Reader 9
This happens once the customer is upgraded to Adobe Reader 9. If I disable the 'Advanced Printer options' he can print OCR/Text PDF files but cannot print even a single page Scanned image PDF file. The spooler hangs at 255kb and then the print job errors out.
I confirmed this same issue on multiple machines and on other Xerox 3450 printers on multiple print servers. It is the same for Adobe Reader 9 and Adobe Acrobat Pro 9.
The machines and users are in different parts of the country on different print servers but the symptoms are the same: after being upgraded to Adobe Reader 9.1.3 or Adobe Acrobat Pro 9.1.3 they cannot send certain PDF files (so far just scanned image files) to a Xerox 3450 PS network printer.
Any suggestions on what to try next would be appreciated.This problem plagued me for several weeks, until I found a solution that has allowed me to print scanned documents as quickly as a text document.
I have confirmed this worked on several network X3450 printers using Adobe Reader 9.1.3 and Adobe Acrobat Professional v9.1.3
In the Reader and Acrobat Pro print options:
Click on the Advanced button and uncheck "Print as image" if it's checked.
Click on "Let printer determine colors" to enable this option
Click OK and Print.
After making this change, the document queued up and printed as fast a any text document printed.
I had a single page scanned text document which was about 19 KB, but when sent to the printer, the spooler grew from 10 MB to 50 MB to 80 MB, until an error occurred. Like you I tried many combinations until one worked. Then it was a matter of figuring out which setting was primarily responsible for allowing it to print quickly.
Most likely the problem is with the raster image processor (RIP) within Adobe Reader and Acrobat. By selecting the option to "Let the printer determine colors", it passes that part of the processing over to the RIP within the printer. Since the X3450 is not a color printer, the information is easily converted to grayscale and printed.
I'm still trying to absorb the information in the articles I have read so far, and I welcome any discussion about this from those more knowledgeable than I.
I hope this fix works for you as it did for me. I made a lot of happy customers once they were able to print since most of their documents are scanned rather than created with Acrobat. -
Error while printing (SAP spool error)
Hi,
I have configured a printer of type 'C : Direct Operating System Call'. On printing a page, an error occurs with the following log entries
SAP spool error log
=====================
Print request processing log
The host spool is reporting errors
Windows/NT error 1775: "A null context handle was passed from the client to the host during a remote procedure call."
Errors occurred processing this print request
Error during print request output. l_rc = 1
There may be no printout
Please. can someone help me out here.
Thanks!
Regards,
AngadOk I am upgrading from R/3 46C to ECC 6.0, on the 46c system the printers are configured as follow:
Device type HPLJ4 : HP Laserjet 4 series
Spool server sapprod1_PRD_00 sapprod1
Device class Standard printer
Host spool access method C: Direct operating system call
Host printer
srtroot03.startek.com\srt-dc-c4-sharp
Host name sapprod1
On the ECC 6.0 system the printers are configured as follows:
Device Type HPLJ4 : HP Laserjet 4 series
Spool Server srtsapeccdev1_DEV_00
Server Description
Host srtsapeccdev1
Device Class Standard printer
Host Spool Access Method C: Direct operating system call
Host printer
srtroot03.startek.co\srt-dc-c4-sharp
HostName srtsapeccdev1
The 46c system prints just fine, on the ECC 6.0 systems; I can not get the printers to work. I have made sure that the hosts file on the ECC server has the printer host address, and I get the following error back:
SAP spool error log
=====================
Print request processing log
The host spool is reporting errors
Windows/NT error 5 [
srtroot03.startek.com\srt-dc-c4-sharp]: "Access is denied."
Errors occurred processing this print request
Error during print request output. l_rc = 1
There may be no printout
The access to the Printer Host is wide open, what do I need to do to resolve this issue. -
Can a spool file be sent as an attachment in the decision step?
Hi,
I have z program that runs in background and produces a spool file. Normally, I can use tcode SP01 to display this file. At the end of this z program, I call SWW_WI_START_SIMPLE to send a workflow into SAP inbox. I want to know if I somhow can send the spool file along also? I read about attachment and SOFM object but still can't figure out what I need to do yet. Please help.
Thank you,
THHi Th,
Check this code if helpful.
FORM pdf_conversion.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = spoolno
no_dialog = ' '
IMPORTING
pdf_bytecount = numbytes
pdf_spoolid = pdfspoolid
btc_jobname = jobname
btc_jobcount = jobcount
TABLES
pdf = 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.
ENDFORM. " PDF_CONVERSION
FORM SPOOL *
FORM spool.
PERFORM display.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = 'LOCL'
immediately = ' '
new_list_id = 'X'
expiration = '9'
in_parameters = p_pripar
layout = 'X_65_132'
line_count = 65
line_size = 132
mode = 'DEFVALS'
no_dialog = 'X'
IMPORTING
out_parameters = p_pripar
valid = val
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
NEW-PAGE PRINT ON NEW-SECTION PARAMETERS p_pripar NO DIALOG.
PERFORM display.
NEW-PAGE PRINT OFF.
CLEAR t_filename_tx.
CONCATENATE 'c:\temp\' p_mat '.pdf' INTO t_filename_tx.
CONDENSE t_filename_tx.
SELECT * FROM tsp01 INTO TABLE t_tsp01
WHERE rqowner EQ sy-uname.
SORT t_tsp01 BY rqcretime DESCENDING.
LOOP AT t_tsp01.
spoolno = t_tsp01-rqident.
EXIT.
ENDLOOP.
IF sy-subrc EQ 0.
PERFORM pdf_conversion.
ENDIF.
sending that inernal to mail
FUNCTION z_p_traveler_workflow.
""Local interface:
*" IMPORTING
*" REFERENCE(V_FILE_PATH) LIKE RLGRAP-FILENAME
*" REFERENCE(DOKNR) LIKE CRVD_A-DOKNR
*" REFERENCE(DOKVR) LIKE CRVD_A-DOKVR
*" TABLES
*" PDF STRUCTURE TLINE
D A T A
DATA: w_gd_doc_data LIKE sodocchgi1.
internal table for body content of the email
DATA: t_message LIKE solisti1 OCCURS 0 WITH HEADER LINE.
internal table for receivers of email
DATA: t_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE.
internal table for attachment data
DATA: t_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE.
*internal table for Information about structure of data tables
DATA: t_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE.
internal tables for attachment data
DATA: t_xi_pdf LIKE tline OCCURS 0 WITH HEADER LINE,
t_xi_temp LIKE bapiqcmime OCCURS 0 WITH HEADER LINE,
t_xi_mime(255) TYPE c OCCURS 0 WITH HEADER LINE,
t_html LIKE solisti1 OCCURS 0 WITH HEADER LINE.
for splitting of the filepath
DATA : BEGIN OF t_split OCCURS 0,
row(50),
END OF t_split.
DATA: w_tab_lines LIKE sy-tabix,
w_subject TYPE so_obj_des, " for email header
w_file_path1 TYPE string. "file path
DATA : w_lines TYPE i,
w_temp(500) TYPE c,
w_offset TYPE p,
w_lineslen(2) TYPE p,
w_mimelen(2) TYPE p,
w_tabix LIKE sy-tabix.
DATA : w_len TYPE i,
w_index LIKE sy-index,
w_doc_type TYPE so_obj_tp,
w_filename TYPE so_obj_des .
internal table for gettting personal numbers of quality engineers
DATA: BEGIN OF t_ztptwf2 OCCURS 0,
pernr LIKE ztptwf2-pernr, "personal number
END OF t_ztptwf2.
internal table for gettting userids of quality engineers
DATA: BEGIN OF t_pa0105 OCCURS 0,
usrid LIKE pa0105-usrid, " user id of the quality engineer
END OF t_pa0105.
move file path to w_file_path
w_file_path1 = v_file_path.
*assign subject of the email
w_subject = text-006. "Travaler Document to Approve
refreshing the internal tables
REFRESH : t_objbin, t_packing_list, t_split.
CLEAR : t_objbin, t_packing_list, t_split.
CLEAR : t_xi_pdf, t_xi_temp.
REFRESH : t_xi_pdf, t_xi_temp.
CLEAR: w_temp, w_offset, t_xi_temp.
move attachment data to t_xi_pdf[].
t_xi_pdf[] = pdf[].
Reformat the line to 255 characters wide
DESCRIBE TABLE t_xi_pdf LINES w_lines.
DESCRIBE FIELD t_xi_pdf LENGTH w_lineslen.
DESCRIBE FIELD t_xi_temp LENGTH w_mimelen.
LOOP AT t_xi_pdf.
w_tabix = sy-tabix.
MOVE t_xi_pdf TO w_temp+w_offset.
IF w_tabix = w_lines.
w_lineslen = strlen( t_xi_pdf ).
ENDIF.
w_offset = w_offset + w_lineslen.
IF w_offset GE w_mimelen.
CLEAR t_xi_temp.
t_xi_temp = w_temp(w_mimelen).
APPEND t_xi_temp.
SHIFT w_temp BY w_mimelen PLACES.
w_offset = w_offset - w_mimelen.
ENDIF.
IF w_tabix = w_lines.
IF w_offset GT 0.
CLEAR t_xi_temp.
t_xi_temp = w_temp(w_offset).
APPEND t_xi_temp.
ENDIF.
ENDIF.
ENDLOOP.
*move data from t_xi_temp to t_xi_mime
LOOP AT t_xi_temp.
t_xi_mime(255) = t_xi_temp-line.
APPEND t_xi_mime.
CLEAR t_xi_mime.
ENDLOOP.
*move data from t_xi_mime[] to t_html[]
t_html[] = t_xi_mime[].
*move data from t_html[] to t_objbin.
LOOP AT t_html.
t_objbin-line = t_html-line.
APPEND t_objbin.
CLEAR t_objbin.
ENDLOOP.
*fill the body of email
t_message = text-005. "Mail with PDF attachment
APPEND t_message.
CLEAR t_message.
t_message = text-004. "Please double click the attachment to verify
APPEND t_message.
CLEAR t_message.
concatenate 'COPY FOR VIEWING ONLY-NOT TO BE'
'USED/PRINTED FOR PRODUCTION' into t_message separated by
space.
APPEND t_message.
CLEAR t_message.
IF NOT doknr IS INITIAL.
CONCATENATE text-001 "The Document
doknr
text-002 "and Version
dokvr
text-003 INTO "is changed
t_message SEPARATED BY space.
APPEND t_message.
CLEAR t_message.
ENDIF.
DESCRIBE TABLE t_message LINES w_tab_lines.
READ TABLE t_message INDEX w_tab_lines.
w_gd_doc_data-doc_size = ( w_tab_lines - 1 ) *
255 + STRLEN( t_message ).
w_gd_doc_data-obj_langu = sy-langu.
w_gd_doc_data-obj_name = 'SENDFILE'.
w_gd_doc_data-obj_descr = w_subject.
w_gd_doc_data-sensitivty = 'O'.
CLEAR t_packing_list.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
t_packing_list-doc_type = 'RAW'.
t_packing_list-body_num = w_tab_lines.
APPEND t_packing_list.
IF NOT w_file_path1 IS INITIAL.
w_len = strlen( w_file_path1 ) - 3.
w_doc_type = w_file_path1+w_len(3) .
TRANSLATE w_doc_type TO UPPER CASE .
SPLIT w_file_path1 AT '\' INTO TABLE t_split .
DESCRIBE TABLE t_split LINES w_index .
READ TABLE t_split INDEX w_index .
w_filename = t_split-row .
w_len = strlen( w_filename ) - 4.
w_filename = w_filename(w_len) .
DESCRIBE TABLE t_objbin LINES w_tab_lines.
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
t_packing_list-doc_type = w_doc_type.
t_packing_list-body_num = w_tab_lines.
t_packing_list-doc_size = w_tab_lines * 255.
t_packing_list-obj_descr = w_filename.
APPEND t_packing_list.
ENDIF.
fill the Receivers
SELECT * FROM ztptwf2 INTO TABLE t_ztptwf2.
IF NOT t_ztptwf2[] IS INITIAL.
SELECT usrid FROM pa0105 INTO TABLE t_pa0105 FOR ALL ENTRIES IN
t_ztptwf2 WHERE pernr = t_ztptwf2-pernr AND subty = '0001' .
LOOP AT t_pa0105.
t_receivers-receiver = t_pa0105-usrid.
t_receivers-rec_type = 'B'.
APPEND t_receivers .
CLEAR t_receivers.
ENDLOOP.
ENDIF.
IF NOT t_receivers[] IS INITIAL.
Call the FM to post the message to SAPMAIL
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = w_gd_doc_data
commit_work = 'X'
TABLES
packing_list = t_packing_list
contents_txt = t_message
contents_bin = t_objbin
receivers = t_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
ENDIF.
FREE: t_objbin,t_message,t_packing_list,t_receivers.
i hope this code will solve your problem.
Sankar
Maybe you are looking for
-
Hello, I'm creating a calculated field with a set currency for a business rule. I'm planning to use it as a deficiency criteria. I want the values to come from the currency conversion of another field. Can someone provide me the step by step procedur
-
hi i have got iphone 4s and my screen or lcd full of dark due to fall down floor and i can receive call ad whe i press to siri button it says" i am really sorry about it i can take any request ow please try again later" so can i repair my iphone in a
-
Different speed related issue than i've ever heard of ------PLEA​SE READ!
Ok so I've been paying for and receiving 3mbps for a few months now with no problems. I recently upgraded to the 4-7 plan because the central office says my house should receive 5mbps just fine. Well a week after asking for the upgrade I received an
-
Feature Request: Group episodes of a show in thumbnail view
So I've bought a couple episodes of Battlestar Galactica from the iTunes Music Store, and I've been busily converting episodes of Robotech from DVD to mp4 files in my library. I like to view video files in the shiny "thumbnail" view (or whatever it's
-
Usb midi devices do not appear on os10.4.10
i've seen some similar complaints about firewire audio devices, and usb harddrive on this forum; i've got a a few usb midi devices (m-audio oxygen8 and edirol ua-25) that do not show up anywhere on my computer (black macbook, os 10.4.10); i've checke