Attach external files (pdf) to sap tables .
I have made a report that uses 2 Z tables (header - item) . I have somewhere in my file server some pdf files that i want to connect with each record of my tables .
For example the first record has the 1.pdf the second the 2.pdf etc etc .
I thing that i must use the attachment functiontallity but i don't know how .
Thanks a lot ...
you just want to link it or store the attachment in SAP itself.
Raja
Similar Messages
-
How to convert the flat file data into sap tables . ?
how to upload flat file data into sap table . before upload mapping is also there in some filds . any one can give me some steps how to upload and mapping . ?
Hi
See the sample code
REPORT zmmupload.
Internal Table for Upload Data
DATA: i_mara like MARA occurs 0 with header line
PARAMETERS: p_file LIKE ibipparms-path. " Filename
At selection-screen on Value Request for file Name
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
Get the F4 Values for the File
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
IMPORTING
file_name = p_file.
Upload the File into internal Table
CALL FUNCTION 'UPLOAD'
EXPORTING
filename = p_file
filetype = 'DAT'
TABLES
data_tab = i_mara
EXCEPTIONS
conversion_error = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
OTHERS = 7.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Upload the Data from Internal Table
MODIFY MARA from TABLE i_MARA.
Regards
Anji. -
Where the attached files stores in SAP table
Hi All,
I have attached the DOC format file in FB03 document display transaction.. actually where it was stored in SAP tables.Hi,
Please check out the below thread:-
[Re: where will the attachments created in fb02 or fb03 get stored?;
Regards,
SDNer -
How to slipt fields in a row of an external file and store in Table
Hi Experts,
I need to proces an External file and store into a table. Here need to Split the fields in a row and write as multiple rows of a table.
here i am giving the data sample ..
outlet1 type1 type2 type3
outlet2 type1 type3 type4 typ6 type7
The table should be as below.
outlet1 type1
outlet1 type2
outlet1 type2
outlet2 type1
outlet2 type3
outlet2 type4
outlet2 type6
outlet2 type7
Please give your suggesions and code sample that you have
Thankshi,
try with the below code. This code is as per data given by u in your first thread.
DATA : it_string TYPE TABLE OF string,
wa_string TYPE string,
BEGIN OF it_itab OCCURS 0,
f1(7),
f2(5),
END OF it_itab,
fld TYPE TABLE OF string,
wa TYPE string,
wa1 TYPE string,
cnt TYPE i VALUE 1.
data lin TYPE i.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = 'C:\Documents and Settings\User\Desktop\abc.txt'
filetype = 'ASC'
has_field_separator = 'X'
TABLES
data_tab = it_string
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc <> 0.
* MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
* WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
BREAK-POINT.
LOOP AT it_string INTO wa_string.
cnt = 1.
SPLIT wa_string AT space INTO TABLE fld.
DESCRIBE TABLE fld LINES lin.
LOOP AT fld INTO wa.
cnt = cnt + 1.
IF cnt <= lin.
READ TABLE fld INTO wa INDEX 1.
IF sy-subrc = 0.
it_itab-f1 = wa.
ENDIF.
READ TABLE fld INTO wa1 INDEX cnt.
IF sy-subrc = 0.
it_itab-f2 = wa1.
ENDIF.
APPEND it_itab TO it_itab[].
ENDIF.
ENDLOOP.
ENDLOOP.
Thanks & Regards -
Integrating External File Server In SAP EP - Help Needed.
Hello All,
We have a EP 7.0 Running on HP-UX, can some one please tell me how I can integrate an External File Server or a Web DAV Folder into the SAP EP.
Any suggestion would be a great help.
Best Wishes,
John.
Message was edited by:
John BrayHi John,
This would be helpful for you for Webdav or external filesystems
<a href="http://help.sap.com/saphelp_ep60sp2/helpdata/en/ed/b334ea02a2704388d1d2fc3e4298ad/frameset.htm">Integrating Documents from a Windows System into KM</a>
Pls reward points if helpful
Regards
Vineeth -
Hello
I'm new to Adobe CS software and would like some advice please.
My company uses a CD with a flash interface that opens via an .exe or .app file. The original designer is on maternity leave at the moment but we need some content updates before she gets back and I’m deciding whether to redo the CD myself or to source a new designer.
So far I've been able to replicate most of the CD in Catalyst using the trial version but there is one thing stopping me from buying the software. I can't find a way to link external files (specifically pdf's) via the flash content. The CD is for instruction manuals so once the interface has been navigated the user needs to click on a button to open the desired pdf manual.
Is this possible in Catalyst or am I looking at the wrong software?
I can't write code and my experience is limited so I would appreciate help from someone who knows what they're talking about please and any software recommendation would also be great
If I need to outsource please tell me but bear in mind that I have been able to do all the design work and it's just linking the pdf's that I'm struggling with
Thanks in advance and for any helpHi Bear,
Thanks for your quick answer.
Flash Catalyst currently prefixes all links with "http://", so you would need to save your FXP in Catalyst, open the FXP in builder, and remove the "http" so that you're just loading the local pdfs.
I tried your suggestion but couldn't get it working so I'm probably doing something wrong since I'm not very familiar with Flash Builder.
I created the button > on click > go to url interaction in Catalyst and saved the project (tried it using a PDF saved on our server and also my PC).
I imported the FXP and opened to "project name / src / (default package) / main.mxml / button name"
After deleting "http" I selected "export release build" and opened the new SWF and also tried the HTML; the new button just opened to my homepage instead of the PDF
I also tried deleting "http:" and "http://" which deactivated the button completely (I expect some coders will laugh at that but I am a noob )
Unfortunately linking to online files isn't an option for me so do you see what I'm doing wrong please?
Thanks for your help -
Hola, necesito agregar un archivo PDF o JPG a un boton en Flash Catalyst... como lo hago???
Hello, i need to add a file (PDF, JPG) to a button in flash catalyst... how can i do that???Hello Saransoft84:
I saw that, my script not same as your script, but I do not know how I can write it as you, from where in action script I can found your command, as: but.onPress = function():Void
You attached same my file, I am very sorry as I trouble you in simple problem, but I did not found solution yet.
Regards -
How to attach a file (PDF etc.) to an email?
Hi
I need to attached a file to an email, how do I do this does anyone know?
Files such as pictures, pdf etc.Until a week ago I was using an 18 mth old HTC3600 with Windows Mobile. I had a bunch of files stored on the 2Gb SD card that I'd send clients... pdf, word, ppt, excel... using a standard POP email with Windows Mobile settings to send/receive every 30 min via 3G. I could also receive emails with an attachment, then bluetooth it to my laptop to read. I cant do any of this basic stuff with the iPhone. Unless the method is that different that I can't see it, the iPhone is no good for business on the go... especially considering I cant sync my tasks from Outlook 2007 either! Help, somebody... anybody!!!
-
When I launch an external file (PDF) my background music stops.
I'm launching a PDF file for reading using a button. Anyway to keep the beats going? I'd like to keep my readers awake.
Hi there
Are you launching the PDF in the same window as your Captivate? If so, that totally explains it. The Captivate is being unloaded and the window is replaced with the PDF.
Cheers... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7, 8 or 9 within the day!
Adobe Certified RoboHelp HTML Training
SorcerStone Blog
RoboHelp eBooks -
External files opening behind the projector
I have used 'baOpenFile' function to open some external files
(pdf, pps etc). In most computers everything works great, but in
some computers the file opens behind the projector (which is in
full screen mode), and user doesn't see that the file has opened.
To solve this problem I have used
'baWindowToBack(baWinHandle())' to send the projector window back
before the external file opens. It works, but it's ugly solution
(especially if there's many windows open on desktop). Does anyone
know why external files open behind the projector, and is there a
better way to fix the problem than the one that I've used?Instead of sending the Director window to the back, it may be
better to
bring the new window to the front. That will bypass the issue
of other
windows appearing over the Director window.
I do not know why this happens, and I have seen it in action
many times
myself. It is annoying, but easily worked around. -
How to save the pdf file or word doc into sap table
Hi Expertu2019s
I have a pfd file in my presentation server .Now I want to save the pdf file into sap table using module pool program. Whenever i need, I want to open that file from the table and show it in the Screen. Please any one tell me how I can save the file. What is the table name, guide me.
Regards,
S.Nehru.Hi,
Try the following code
FORM gui_upload.
DATA: lv_filetype(10) TYPE c,
lv_gui_sep TYPE c,
lv_file_name TYPE string.
lv_filetype = 'PDF'.
lv_file_name = <name of ur file>.
DATA: tb_file_data TYPE TABLE OF text4096.
* FM call to upload file
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = lv_file_name
filetype = lv_filetype
has_field_separator = lv_gui_sep
TABLES
data_tab = tb_file_data
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "gui_upload
I dont think you can save the data into sap tables in PDF format.
With the above code you can save data into an internal table.
Regards,
Manish -
Compression ratio of external file attachement
Dear All,
SAP is giving facility to attached a external files such as PDF,XLS,DOC,Autocad etc in ME21n, ME22N i.e. related to
purchase order.
I wanted to know is SAP compress thease files. If yes what is the compression ration?
e.g. PDF file is of 2 MB then how much space it consume in database?
Thanks in advance,
NiravDear All,
SAP is giving facility to attached a external files such as PDF,XLS,DOC,Autocad etc in ME21n, ME22N i.e. related to
purchase order.
I wanted to know is SAP compress thease files. If yes what is the compression ration?
e.g. PDF file is of 2 MB then how much space it consume in database?
Thanks in advance,
Nirav -
Smartform/Sap script output to Text file/PDF/WORD
Hi,
I need to download/transfer the output of smartforms/sap script to text file/pdf file or word file.How do i do that?
Do I need to create a new output device?
thnx in advance
chirantanHi,
Go through the following Code
Mail a sapscript
SAPscript: Autotmatically e-mail as PDF
How to convert sapscript(Purchage order) inot pdf format & send in mail
Check the following Code
REPORT ZRICH_0003.
DATA: ITCPO LIKE ITCPO,
TAB_LINES LIKE SY-TABIX.
Variables for EMAIL functionality
DATA: MAILDATA LIKE SODOCCHGI1.
DATA: MAILPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
DATA: MAILHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
DATA: MAILBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: MAILTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: MAILREC LIKE SOMLREC90 OCCURS 0 WITH HEADER LINE.
DATA: SOLISTI1 LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
PERFORM SEND_FORM_VIA_EMAIL.
FORM SEND_FORM_VIA_EMAIL *
FORM SEND_FORM_VIA_EMAIL.
CLEAR: MAILDATA, MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
REFRESH: MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
Creation of the document to be sent File Name
MAILDATA-OBJ_NAME = 'TEST'.
Mail Subject
MAILDATA-OBJ_DESCR = 'Subject'.
Mail Contents
MAILTXT-LINE = 'Here is your file'.
APPEND MAILTXT.
Prepare Packing List
PERFORM PREPARE_PACKING_LIST.
Set recipient - email address here!!!
MAILREC-RECEIVER = '[email protected]'.
MAILREC-REC_TYPE = 'U'.
APPEND MAILREC.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = MAILDATA
PUT_IN_OUTBOX = ' '
TABLES
PACKING_LIST = MAILPACK
OBJECT_HEADER = MAILHEAD
CONTENTS_BIN = MAILBIN
CONTENTS_TXT = MAILTXT
RECEIVERS = MAILREC
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
ENDFORM.
Form PREPARE_PACKING_LIST
FORM PREPARE_PACKING_LIST.
CLEAR: MAILPACK, MAILBIN, MAILHEAD.
REFRESH: MAILPACK, MAILBIN, MAILHEAD.
DESCRIBE TABLE MAILTXT LINES TAB_LINES.
READ TABLE MAILTXT INDEX TAB_LINES.
MAILDATA-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( MAILTXT ).
Creation of the entry for the compressed document
CLEAR MAILPACK-TRANSF_BIN.
MAILPACK-HEAD_START = 1.
MAILPACK-HEAD_NUM = 0.
MAILPACK-BODY_START = 1.
MAILPACK-BODY_NUM = TAB_LINES.
MAILPACK-DOC_TYPE = 'RAW'.
APPEND MAILPACK.
Creation of the document attachment
This form gets the OTF code from the SAPscript form.
If you already have your OTF code, I believe that you may
be able to skip this form. just do the following code, looping thru
your SOLISTI1 and updating MAILBIN.
PERFORM GET_OTF_CODE.
LOOP AT SOLISTI1.
MOVE-CORRESPONDING SOLISTI1 TO MAILBIN.
APPEND MAILBIN.
ENDLOOP.
DESCRIBE TABLE MAILBIN LINES TAB_LINES.
MAILHEAD = 'TEST.OTF'.
APPEND MAILHEAD.
Creation of the entry for the compressed attachment
MAILPACK-TRANSF_BIN = 'X'.
MAILPACK-HEAD_START = 1.
MAILPACK-HEAD_NUM = 1.
MAILPACK-BODY_START = 1.
MAILPACK-BODY_NUM = TAB_LINES.
MAILPACK-DOC_TYPE = 'OTF'.
MAILPACK-OBJ_NAME = 'TEST'.
MAILPACK-OBJ_DESCR = 'Subject'.
MAILPACK-DOC_SIZE = TAB_LINES * 255.
APPEND MAILPACK.
ENDFORM.
Form GET_OTF_CODE
FORM GET_OTF_CODE.
DATA: BEGIN OF OTF OCCURS 0.
INCLUDE STRUCTURE ITCOO .
DATA: END OF OTF.
DATA: ITCPO LIKE ITCPO.
DATA: ITCPP LIKE ITCPP.
CLEAR ITCPO.
ITCPO-TDGETOTF = 'X'.
Start writing OTF code
CALL FUNCTION 'OPEN_FORM'
EXPORTING
FORM = 'ZTEST_FORM'
LANGUAGE = SY-LANGU
OPTIONS = ITCPO
DIALOG = ' '
EXCEPTIONS
OTHERS = 1.
CALL FUNCTION 'START_FORM'
EXCEPTIONS
ERROR_MESSAGE = 01
OTHERS = 02.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
WINDOW = 'MAIN'
EXCEPTIONS
ERROR_MESSAGE = 01
OTHERS = 02.
Close up Form and get OTF code
CALL FUNCTION 'END_FORM'
EXCEPTIONS
ERROR_MESSAGE = 01
OTHERS = 02.
MOVE-CORRESPONDING ITCPO TO ITCPP.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = ITCPP
TABLES
OTFDATA = OTF
EXCEPTIONS
OTHERS = 1.
Move OTF code to structure SOLI form email
CLEAR SOLISTI1. REFRESH SOLISTI1.
LOOP AT OTF.
SOLISTI1-LINE = OTF.
APPEND SOLISTI1.
ENDLOOP.
ENDFORM.
Regards
Sreeni -
Attach external documents to SAP
Hi
we are planning to attach external documents to purchase order in ME22N screen. & every month 10gb files
I would like to know the below points
do we have any limitation for attachment?
what potential risks are involved using this functionality?
Will the transactions/SAP performance be impacted?
when do we need to go for DMS?
Thanks
RajuA DMS record points to a content server on which resides the attached document. If you wish not to use DMS, then attaching documents at PO will take some time, given the size of you attachments. I do not believe the performance will take a major hit, there should not be major problems with that. You can always assess the performance by attaching big size document with POs in your Development and Quality systems.
DMS is a centralized content management solution provided by SAP. It offers to store various kinds of documents such as drawings, designs, commercial/technical specifications, equipment specifications, etc. there is not a set formula as when to opt for DMS and when to not. You may explore the features of SAP DMS and if the business finds it a value addition, you can use it. -
Tab Delimited Text File to be Emailed (External Email ID) from SAP
Hi,
I have a requirement to email a tab delimited text file as an attachment to external email id from SAP. The text file is of line with type string and the length of each line is about 1024 char size. Can you please suggest me a suitable solution to this requirement? It looks like the FM: SO_NEW_DOCUMENT_ATT_SEND_API1 can handle a text file of 255 char length. I am not sure how to attach a text file of records with length more than 1025 char size.
Appreciate your help in advance.
Thanks,
KannanHi,
I have a requirement to email a tab delimited text file as an attachment to external email id from SAP. The text file is of line with type string and the length of each line is about 1024 char size. Can you please suggest me a suitable solution to this requirement? It looks like the FM: SO_NEW_DOCUMENT_ATT_SEND_API1 can handle a text file of 255 char length. I am not sure how to attach a text file of records with length more than 1025 char size.
Appreciate your help in advance.
Thanks,
Kannan
Maybe you are looking for
-
Why can't I open a long url in Instant messenger
I have a question for Instant messenger users . A friend of mine sent me a long url that took about 5 windows in instant messenger. I tried to open it, but it would not open. Are there any settings I need to set on my IPhone 6 or instant messenger to
-
My itunes window wont open at all..
there is no error message, no indication that there even is an itunes on my computer T_T i've tried redownloading it, restoring it, and even system restoring the whole computer. ..actually the problem all started when i system restored my computer in
-
Drag and Drop Photos in Design View?
Hey all, I feel like I'm going insane! I've used Dreamweaver for probably a decade now and the latest CC won't allow me to drop pictures into design view? I'm using MAC OSX Mavericks. Has this been disabled somehow?
-
Mapping Networkdrive using GPO and Item-Level Targeting - Same Letter in two groups
Hi. I'm using one GPO to Map networkdrives, we are using it with Item-Level Targeting which targets on Security Group, so a Member of "SecurityGroup" gets the Drive, we have several drives and we are using all the Letters that are available, now I'm
-
Save for Web & Devices Box Greyed Out
Hey everyone, I'm trying to save a Photoshop CS4 file for Web & Devices so I can have Photoshop compile the slices and the CSS so I can hand-design rollovers. Unfortunately, all of a sudden the dialogue box for Save For Web & Devices is greyed out...