Upload and attach documents within dialog programs
Hi
I need to include an 'Add attachment" option on one of my screens. (I am busy developing a stand-alone labour relations system in R/3. The system is case number driven) The option should allow for the user to upload related documents which should be linked to a case number. The user should then be able to view these documents later during display mode.
Should I use one of the DOCU_* Function Modules to attach the document to the case number? Should the documents be uploaded to the server first?
Is this at all possible?
Your advise will be appreciated and examples are also welcome.
Hi
I think you should use the Services for Object: it's the tool allows to manage many functions to be linked to a document (object): to create note, add attachment and ....
In the standard the icon to run "Services for Object" is up on the left of the screen (see FB03 for example).
I've never used them, but I think it isn't very hard. I know you can create it for a custom transaction.
See SAP HELP:
http://help.sap.com/saphelp_46c/helpdata/en/24/370b374e4e7c64e10000009b38f839/frameset.htm
Max
Similar Messages
-
To upload and store documents in SAP
Hi,
Can anyone help me as to how to upload and store documents directly into SAP , something similar to attaching documents in standard SAP transactions.
Thanks,
Ketan.Hi,
Use tcode CV01N to create/CV02N (change)/CV03N to Display. U may require to do little bit config.
If helpful pl reward.
Cheers. -
Does allowing adobe flash player plug in on safari give access to websites the ability to upload and transfer documents and files(on the computer) without permission? Perhaps to their online server or somewhere where they designated them to transfer to?
It depends a bit on which version of Captivate you used to develop your modules and also which version of Flash Player you targeted when publishing your modules from Captivate. Say for example you use Captivate 5 and publish to Flash Player 10. Then your end user would need to have Flash Player 10 on their computer. It shouldn't matter if their version is 10.0.0 or 10.1.0 or 10.1.3 - just as long as it's a 10. If they only have Flash Player 9 then they will need to upgrade.
The "Access to Adobe.com is restricted" is most likely because the HTML that launches the Captivate SWF sees that you have targeted FP10 and the user only have FP9. Then it tries to direct a call to Adobe in order to present an "Upgrade to latest version of Flash" dialog for the user. This traffic is most likely denied by your IT department.
The first step is to find out which version of Flash Player is the most prevalent in your organization. If it is Flash Player 9 then simply select that when publishing from Captivate 5. If Flash Player 8 is the most used in your organization and you have CP5 or CP5.5 then you are in big trouble since FP8 is not supported from CP5 and CP5.5.
/Michael
www.cpguru.com - Adobe Captivate Widgets, Tutorials, Tips & Tricks and much more.. -
How do I upload and attach the file to Service Request
[This thread was migrated from the On Demand Developer Forum in the old Siebel Community]
drangineni
New Contributor
Hi,
I am trying to upload a file and add it to a Service object as an
attachement. I greatly appreciate if you could provide any code or
sample...
Thanks.
Daya
Product: CRM OnDemand
10-21-2006 10:58 AM
Re: How do I upload and attach the file to Service Request...
BigSlick
Valued Contributor
On Demand doesn't support adding attachments via web services. One
solution I've seen is depending on the scenario is to create a web link
field on an object that's based on a custom text field. Your web service
can populate that custom field and the web link can generate a dynamic
link to the file in On Demand's UI. However, this depends on where the
attachment is located and if the user needs some sort of firewall access.
Hope this helps
-BigSlick
10-23-2006 11:43 AM
==============================================================================
Click on the board or message subject at the top to return.Yes this still holds ture.
Bardo -
How to upload and share document from pages
how to upload and share document from pages app?
Hello dannafromfl,
Documents can be shared via File Sharing to iTunes or via Email.
Pages for iOS (iPad): Send and receive documents in email messages
http://support.apple.com/kb/PH3564
Pages for iOS (iPhone, iPod touch): Share documents by connecting to your computer
http://support.apple.com/kb/PH3598
Cheers,
Allen -
Upload and Attach file to Service Notificacion through Web Dynpro
Hi,
I need to upload and attach a file (Word, PDF, TXT ...) to Service Notificacion (TX - IW53) through Web Dynpro.
I have used the integration component "File Upload" to obtain the "fileName" atribute. Also, I have used the functions SO_OBJECT_UPLOAD, SO_INSERT_OBJECT and BINARY_RELATION_CREATE_COMMIT.
But have a problem, because the function SO_OBJECT_UPLOAD use the class "cl _ gui _ frontend _ services" and that clash with Web Dynpro.
My question is: how could I resolve that problem?
I look forward to your response.
ThanksIV_NAME Importing Type STRING
IV_CONTENT Importing Type STRING
IV_CONTENT_HEX Importing Type XSTRING
IS_LPORB Importing Type SIBFLPORB
IV_OBJTP Importing Type SO_OBJ_TP
RT_MESSAGES Returning Type BAPIRETTAB
method save.
data ls_message type bapiret2.
data:
filename type string,
filefullname type string,
mime_type type string,
size type i,
offset type i,
offset_old type i,
temp_len type i,
objname type string,
l_obj_type type so_obj_tp,
hex_null type x length 1 value '20',
l_document_title type so_text255,
file_ext type string,
lt_objcont type standard table of solisti1 initial size 6,
objcont like line of lt_objcont,
lt_ls_doc_change type standard table of sodocchgi1,
ls_doc_change like line of lt_ls_doc_change,
lt_data type soli_tab,
ls_data type soli,
lt_xdata type solix_tab,
ls_xdata type solix,
l_folder_id type sofdk,
ls_object_id type soodk,
l_object_id_fol type so_obj_id,
l_object_id type so_obj_id,
l_doc_info TYPE sofolenti1,
l_object_hd_change type sood1,
l_tab_size type int4,
l_retype type breltyp-reltype,
lt_urltab type standard table of sood-objdes.
get foler
l_folder_id = 'FOL29000000000004'.
call function 'SO_FOLDER_ROOT_ID_GET'
exporting
owner = sy-uname
region = 'B'
importing
folder_id = l_folder_id
tables
path_table =
if iv_objtp = gc_type_file.
size = xstrlen( iv_content_hex ).
get file name and extension
call method split_path
exporting
iv_path = iv_name
importing
E_PATH =
ev_filename = filename
E_PSERVER =
call method split_file_extension
exporting
iv_filename_with_ext = filename
importing
ev_filename = objname
ev_extension = file_ext.
ls_doc_change-obj_name = objname.
ls_doc_change-obj_descr = objname.
ls_doc_change-obj_langu = sy-langu.
ls_doc_change-sensitivty = 'F'.
ls_doc_change-doc_size = size.
offset = 0.
while offset <= size.
offset_old = offset.
offset = offset + 255.
if offset > size.
temp_len = xstrlen( iv_content_hex+offset_old ).
clear ls_xdata-line with hex_null in byte mode.
ls_xdata-line = iv_content_hex+offset_old(temp_len).
else.
ls_xdata-line = iv_content_hex+offset_old(255).
endif.
append ls_xdata to lt_xdata.
endwhile.
set object type relation type and other header info
l_retype = 'ATTA'.
l_obj_type = 'EXT'.
l_object_hd_change-objnam = ls_doc_change-obj_name.
l_object_hd_change-objdes = ls_doc_change-obj_descr.
l_object_hd_change-objsns = ls_doc_change-sensitivty.
l_object_hd_change-objla = ls_doc_change-obj_langu.
l_object_hd_change-objlen = ls_doc_change-doc_size.
l_object_hd_change-file_ext = file_ext.
prepare header
data lt_obj_header type standard table of solisti1.
data ls_header type solisti1.
concatenate '&SO_FILENAME=' filename into ls_header.
append ls_header to lt_obj_header.
clear ls_header.
ls_header = '&SO_FORMAT=BIN'.
append ls_header to lt_obj_header.
change hex data to text data
call function 'SO_SOLIXTAB_TO_SOLITAB'
exporting
ip_solixtab = lt_xdata
importing
ep_solitab = lt_data.
else.
for note
size = strlen( iv_content ).
objname = iv_name.
ls_doc_change-obj_descr = objname.
ls_doc_change-sensitivty = 'O'.
ls_doc_change-obj_langu = sy-langu.
put content into table
offset = 0.
if iv_objtp = gc_type_note.
it's a note
l_retype = 'NOTE'.
l_obj_type = 'RAW'.
l_object_hd_change-file_ext = 'TXT'.
read note content into table
while offset <= size.
offset_old = offset.
offset = offset + 255.
if offset > size.
temp_len = strlen( iv_content+offset_old ).
clear ls_data-line.
ls_data-line = iv_content+offset_old(temp_len).
else.
ls_data-line = iv_content+offset_old(255).
endif.
append ls_data to lt_data.
endwhile.
get title from content , if it's initial
if objname is initial.
read table lt_data index 1 into l_document_title.
while l_document_title+49 <> ' '.
shift l_document_title right.
endwhile.
shift l_document_title left deleting leading ' '.
ls_doc_change-obj_descr = l_document_title.
endif.
else.
it's url (not note)
l_retype = 'URL'.
l_obj_type = 'URL'.
if objname is initial.
split iv_content at '/' into table lt_urltab.
describe table lt_urltab lines l_tab_size.
read table lt_urltab index l_tab_size into ls_doc_change-obj_descr.
endif.
while offset <= size.
offset_old = offset.
offset = offset + 250.
if offset > size.
temp_len = strlen( iv_content+offset_old ).
clear ls_data-line.
ls_data-line = iv_content+offset_old(temp_len).
else.
ls_data-line = iv_content+offset_old(250).
endif.
concatenate '&KEY&' ls_data-line into ls_data-line.
append ls_data to lt_data.
endwhile.
endif.
ls_doc_change-doc_size = size.
l_object_hd_change-objnam = ls_doc_change-obj_name.
l_object_hd_change-objdes = ls_doc_change-obj_descr.
l_object_hd_change-objsns = ls_doc_change-sensitivty.
l_object_hd_change-objla = ls_doc_change-obj_langu.
l_object_hd_change-objlen = ls_doc_change-doc_size.
endif.
save object
call function 'SO_OBJECT_INSERT'
exporting
folder_id = l_folder_id
OBJECT_FL_CHANGE = OBJECT_FL_CHANGE
object_hd_change = l_object_hd_change
object_type = l_obj_type
ORIGINATOR_ID = OWNER_ID
OWNER = USER-USRNAM
importing
OBJECT_FL_DISPLAY = OBJECT_FL_DISPLAY
OBJECT_HD_DISPLAY = OBJECT_HD_DISPLAY
object_id = ls_object_id "l_doc_info-object_id
tables
objcont = lt_data
objhead = lt_obj_header
OBJPARA = OBJECT_PARA
OBJPARB = OBJECT_PARB
exceptions
component_not_available = 01
folder_not_exist = 06
folder_no_authorization = 05
object_type_not_exist = 17
operation_no_authorization = 21
parameter_error = 23
others = 1000.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 into ls_message-message.
ls_message-type = sy-msgty.
ls_message-id = sy-msgid.
ls_message-number = sy-msgno.
ls_message-message_v1 = sy-msgv1.
ls_message-message_v2 = sy-msgv2.
ls_message-message_v3 = sy-msgv3.
ls_message-message_v4 = sy-msgv4.
append ls_message to rt_messages.
return.
endif.
create relation
data l_obj_rolea type borident.
data l_obj_roleb type borident.
MOVE-CORRESPONDING wd_this->ms_lporb to l_obj_rolea.
l_obj_rolea-objkey = is_lporb-instid.
l_obj_rolea-objtype = is_lporb-typeid.
l_obj_rolea-logsys = is_lporb-catid.
l_object_id_fol = l_folder_id.
l_object_id = ls_object_id.
concatenate l_object_id_fol l_object_id into l_obj_roleb-objkey respecting blanks.
l_obj_roleb-objtype = 'MESSAGE'.
clear l_obj_roleb-logsys.
call function 'BINARY_RELATION_CREATE'
exporting
obj_rolea = l_obj_rolea
obj_roleb = l_obj_roleb
relationtype = l_retype
exceptions
others = 1.
if sy-subrc = 0.
commit work and wait.
wd_this->MV_UPDATE_FLAG = 'X'.
else.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 into ls_message-message.
ls_message-type = sy-msgty.
ls_message-id = sy-msgid.
ls_message-number = sy-msgno.
ls_message-message_v1 = sy-msgv1.
ls_message-message_v2 = sy-msgv2.
ls_message-message_v3 = sy-msgv3.
ls_message-message_v4 = sy-msgv4.
append ls_message to rt_messages.
return.
endif.
endmethod.
Edited by: Reyleene Hunt on May 26, 2009 10:05 AM -
Hi,
I'm new to jdeveloper was wondering if anyone knew of any great oracle online tutorial sites that show how to upload and retrieve documents using jedeveloper.Hi,
documents
http://download-east.oracle.com/docs/html/B25947_01/web_complex006.htm
http://technology.amis.nl/blog/?p=2297
http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/devguide/fileupload.html
you can access the SRDemo application through help--> check for updates. This application uses ADF Faces to upload documents to the middle tier server.
Frank -
Attach Documents to Custom Program Using Generic Object Services
Hi There,
I created Object type ZGOS and used in the custom program, when i try to attach documents it allows and then shows in attachment list.
But When I use that program next time that document attached is not available.
Is there any separate save Class or FM available for saving the document to the specified custom program.
I am using following code in the program,
CLEAR obj.
SET OBJECT TYPE TO 'ZGOS'
obj-objtype = objtype.
SET OBJECT KEY = REPORT NAME
SELECT SINGLE name
FROM trdir
INTO obj-objkey
WHERE name = sy-repid.
CALL GOS MANAGER WITHOUT CONTAINER (WILL BE DISPLAYED IN THE TOOLBAR)
CREATE OBJECT manager
EXPORTING
is_object = obj
EXCEPTIONS
OTHERS = 1.
Thanks in advance.Check the Naimesh Patel Blog he explain very well
http://help-abap.blogspot.com/2009/02/generic-object-services-gos-toolbar.html -
Sort order of files when opening a document within a program
When opening Explorer, files are correctly sorted in alphabetical order.
When opening a document (say within Word), if I search a folder then the files/folders are in a strange sort order - something like last used or modified. I don't know how this happened. I want them sorted alphabetically like in Explorer.
What do I need to do? I'm fed up of having to sort every folder each time I open it within a program.> Is there a way to change the way DW sorts the dirs and
files in the file list
> window (other than reversing it)?
have you expanded the Files Panel, made the sort by clicking
on the
headings, then collapsed it?
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/ -
Gui Upload and Line Feed within a CSV cell from Excel
Hi all,
I am facing the problem that my CSV file to be uploaded via GUI_UPLOAD is containing cells where the Excel user has split the line within the cell. So there are CRLF at the end of the CSV row and single LF within a cell between the field separators.
GUI_UPLOAD is not making a difference and splits the line within the cell.
Is there any solution for this?
Thanks in advance for hints.
AxelHi Axel,
I didn't know that it was considering CRLF and LF the same way. A workaround is to do the job yourself: call GUI_UPLOAD using BIN format (you'll get the characters as bytes), get the frontend encoding (cl_gui_frontend_services=>GET_SAPLOGON_ENCODING), then convert the bytes into characters using CL_ABAP_CONV_IN_CE class (see documentation), and split (statement SPLIT AT) the characters at cl_abap_char_utilities=>cr_lf to get each line, then split each line at cl_abap_char_utilities=>horizontal_tab.
BR
Sandra -
Attaching Documents within SAP
Hi Everyone,
When attaching documents to SAP, either through journal entries or sales orders or PO's, is there a best practice to use such as using Services for Objects -> Create -> Create Attachment or Store Business Document? Do they both archive? I noticed that I can't use Business Document everywhere since it greyed out such as in the PO. Is there a reason for it? Just looking for general ideas as to what to do and which approach would cause the least amount of space being taken from our server.
Any thoughts?
Thanks,
PetePete,
I am not aware if a BP exists, and believe a seperate serve/repositories will be configured to handle archiving documents. Please check with you basis team.
Please check the setting SAP NetWeaver >General Settings> Application Server> Basis Services > ArchiveLink
Regards,
Somar -
Listbox and data read in dialog program
Hi Experts
I want to display the data as listbox in the dialog program, the data has to be read from the database as we see some standard transactions.
How to display the data into listbox, whether we need to write coding or can we set the property of the field.
Pls advise me.
Regards
Rajarami am giving here sample code for list box.hope it helps.thank you.
TYPES : BEGIN OF ty_code,
code TYPE zcomp_ys-comp_code,
END OF ty_code.
TYPES : BEGIN OF ty_comp,
code TYPE zcomp_ys-comp_code,
language TYPE zcomp_ys-language,
comp_name TYPE zcomp_ys-comp_name,
country TYPE zcomp_ys-country,
END OF ty_comp.
DATA : it_code TYPE STANDARD TABLE OF ty_code WITH HEADER LINE,
it_comp TYPE STANDARD TABLE OF ty_comp WITH HEADER LINE.
SELECTION SREEEN
SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETER : p_code LIKE it_code-code AS LISTBOX VISIBLE LENGTH 10.
SELECTION-SCREEN : END OF BLOCK b1.
AT SELECTION-SCREEN OUTPUT
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_code.
SELECT comp_code FROM zcomp_ys INTO TABLE it_code.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = 'CODE'
PVALKEY = ' '
DYNPPROG = ' '
DYNPNR = ' '
DYNPROFIELD = ' '
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
value_org = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
callback_program = 'ZAL_REPT_LISTBOX_YS'
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
value_tab = it_code
FIELD_TAB =
RETURN_TAB =
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
START-OF-SELECTION
START-OF-SELECTION.
SELECT comp_code language comp_name country FROM zcomp_ys INTO TABLE
it_comp WHERE comp_code EQ p_code.
LOOP AT it_comp.
WRITE : / it_comp-code,
IT_COMP-COMP_NAME,
IT_COMP-LANGUAGE,
IT_COMP-COUNTRY.
ENDLOOP. -
Uploading and attaching files problem
Dear all,
Since a couple of weeks, I can not attach anything to a mail nor upload any image or file on any website (facebook, fileshare etc.).
The finder always freezes (no matter if it's Mail, Safari, Chrome or etc.) and I have to start the app again. I don't know where the issue comes from and I would appreciate any help on this matter.
I'm under OS X 10.9.2. (Macbook air 13")
Thanks for your help!
RossHistorically, if you wanted to send a UNIX folder via email, you would compress it into a foo.zip file. Apple understood this with Pages ’09 v4.n, when it took a Package (folder), compressed it, and renamed the .zip extension to .pages. All automatically, with general email and filesharing compatibility.
Along comes Pages v5+, with a totally new document architecture that is incompatible with prior Pages versions. To the Finder, it too looks like a file due to Package magic — and yet, in its natural state, is an uncompressed folder. To get this to play nice with Gmail webmail, and non-Apple filesharing services, you have to compress this document (folder) yourself before mail attachment, or placing on your preferred filesharing service. This is achieved by right-clicking the document icon, and choosing compress, which produces foo.pages.zip.
The other work-around is to simply not use Pages v5+, and resume using Pages ’09 v4.3. If you had Pages ’09 v4.3 previously installed, the new Pages installation moved it into /Applications/iWorks ’09. The trick here is that you cannot double-click on a document to open it as Pages v5+ will try to open it. You wil need the right-click contextual menu and Open With... Pages (4.3).
Yes, it is a PITA. -
Screen Customizations for Contract Upload and Attachment Upload Screens
Hello,
We currently have multiple screen customization to the Master Agreement screens using (Object Name: Master Agreement UI ID: contracts.contract.ui.buyside.default Parent Class ID:1004)
My question is about making screen customizations to (Contracts tab -> Upload Document) and Attachments screen (clicking the attachments icon). I cannot seem to make page customization on these screens. I tried (Object Name:Contract Document Transitional Bo UI ID: common.contractdocument.transitional.ui.buyside.default Parent Class ID:2002)
Any suggestions?
Thanks in Advance,
KyleCould not find a way to do this
-
Uploading and Downloading Document
Hi Experts,
I Have a requirement like Uploading the Document in a Module Pool Application(Custom), the document can be in any format like PDF,DOC,XLS,TXT with unpredictable format. While Creating the Document in the The Business person will Upload the Document and it need to save in the data base. The Document should be viewed in Display Mode.
Please Suggest that is it Possible By using normal ABAP or do i need to move the Development to Work flow/DMS (Document Management System).
Thanks in Advance.
Kranthi KiranHi Kiran,
Try FM, ARCHIVFILE_CLIENT_TO_SERVER.
This will enable us to upload file from desktop and store it in al11 path.
Or transaction CG3Z.
Thanks,
Anil
Maybe you are looking for
-
[new] webmin(-minimal)
Heya all, since there were quite some requests for this. I made a PKGBUILD for webmin. I have to say ... this wasn't an easy one for me. I choose for webmin-minimal so that peopel can add the modules they want. However, when you look at the code, you
-
I get a server error 504 message coming up from ical
hi every now and again, but more increasingly a message pops up saying server error 504. What does this mean I wonder? I'm given two choices Stay offline or Go Online. Any clues
-
VB6 - Confusion regarding Acrobat Version and supported methods
I've got an app, created in VB6, that uses the javascript method "addWatermarkFromFile". It works fine on my machine(s) with Acrobat 7 and 9.0. One of the machines that it has been installed on gets an "Object doesn't support this property or metho
-
Hey, after I remove my Ipod all my music is gone. However, according to Itunes, my Ipod still has all my songs on it? Is there any solution to this other than deleting everything and reloading them back on. Thanks. P.S. This is the second time I've h
-
Deploying applications w. Jar files
I'm experiencing extreme difficulties trying to deploy my application using a jar. I use a file and an image in my app, so I want to include them in the Jar file and I want my app to use the files from the jar. So my question is: how do I do this? An