Hi is it possible to attach PDF as a attachment to the work item
hi is it possible to attach PDF as a attachment to the work item
Hi!
Maybe it help's u:
<a href="http://searchsap.techtarget.com/loginMembersOnly/1,289498,sid21_gci1076071,00.html?NextURL=http%3A//searchsap.techtarget.com/expert/KnowledgebaseAnswer/0%2C289625%2Csid21_gci1076071_tax299365%2C00.html%3Fbucket%3DETA">Attaching a .pdf file to a work item</a>
Similar Messages
-
Attaching a word document to the work item
Hello Everyone,
I want to send an attachment with the work item. My requirement is as follows.
Iam working on CRM. The Business Object which Iam using is BUS2000116. In this Activity, there is an attacment tab. Here the user will generate a word document which is populated with the values from the Activity.
I need to send this word document as an attacment through a work item when status gets changed.
I can send the work item. But in my BO BUS2000116, the attachment is not being shown. So I can't do any binding to the Container element Attach_objects.
Please let me know how to achieve this.
Regards
HariUse SAP_WAPI_ATTACHMENT_ADD function module.
or There is also a step type in 4.6 you can use in the workflow -Generate
Document from a template. You can create doc template (e.g. using
MS Word) and insert a placeholders in the text which would at
generation time be substituted with values from corresponding container
elements.
<inappropriate content removed by moderator>
Thanks
Yogesh Sharma
Edited by: Mike Pokraka on Jul 1, 2008 1:34 PM -
How to transfer GOS attachment to my work item
Hi Friends,
I have the following requirement. The user while creating a Appropriation request in tcode IMA1N will create an attachment using Generic Object Services(GOS). once he saves my workflow will trigger and it will go to approval. I need to show the attachment created using GOS in my Work item. How to achieve this. Please advice.I have some annotations:
The object type ARCHIVE is for archived Data Files from the DataArchiving. The object type for ArchiveLink documents is IMAGE
The default method is .Display to display the document.
The GOS-Attachment is not a SAP ArchiveLink document. This attachment is stored in SOOD and linked via the GOS-relationship table SRGBTBREL
The business object, that can be used here is: SOFM
The object instance needs to be found with a custom self-made background method, to find the correct link and create an object instance.
After that, this instance can be used as a secondary method in the work item's execution or attached to the ADHOCOBJECTS as already mentioned here.
Good luck,
Florin
P.S.: Similar reply cross-posted to SAP-WUG -
Hi Everyone,
Greetings!!!
I have a very peculiar question on List validation settings. I want to validate a list item whether user has attached a document to the list item or not? The list item should not be saved until a document is attached to it. Is it possible to perform this
validation for a list item in a list?
Please let me know.
Thanks,
Thiru
TirumalCan be done using java script as below
http://social.technet.microsoft.com/Forums/sharepoint/en-US/c93d7611-f634-4c03-ae0d-3b5ecfe5ca6a/how-to-make-attachment-required-field?forum=sharepointadminlegacy
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/5a3fe11a-75ea-44bd-aab9-80817640290f/how-to-make-an-attachment-required-field-in-a-custom-newform-sharepoint-2010-list?forum=sharepointcustomizationprevious
Dont think below is right
http://social.technet.microsoft.com/Forums/sharepoint/en-US/fba48bc1-8708-401c-8a37-bc00f77eeae3/making-attachments-required-in-a-custom-list?forum=sharepointadminlegacy -
Our team is using VS2013 and TFS 2013, and in our daily work we often open a TFS query, then we need to open a work item, and we often need to copy the ID, for example, to the email.
But currently the field is read only, and we often manually copy it.
So is there any convenient way to solve this? Any built in ways?
If no, is it possible to create such a plugin?
Regards,
Lei Yang
from MotorolasolutionsHi Lei Yang
You can try the following work around to copy work item ID
for VS 2013:
Right click on work item tab header in VS 2013 and click 'Copy Full Path' from context menu
When you paste it on notepad/email you will get work item ID at the end of the path:
http://sumiran-dev:8080/tfs/web/wi.aspx?pcguid=d855bc22-69a8-45a5-b6fc-25f096ade8f5&id=46
For Web Portal:
Right click on work item link at top and click 'Copy shortcut' from the context menu
When you paste it on notepad/email you will get work item ID at the end of the shortcut:
http://sumiran-dev:8080/tfs/DefaultCollection/TFS%20Scrum%20Demo/_workitems/edit/46
Thanks
Sumiran -
Couldn't open attachment of a work item in the business work plance
Dear Friend,
Any body so kind to help me resolve the following issue.
One of our user not open the attachment(Puchase order rejection reason) of a perticular work item in his business workplace(swap). However another user can able to open the attachment for the same work item.
For your kind information, both of the user have same authorization.
Regards,
sp sahuHi All,
Thanks you all for your kind reply.
However I am not yet find the solution the the above issue.
I noticed that the user can able to open the attachment like ALI (ABAP list document). However user not able to open the attachment with class RAW (SAP editor document).
Any body so kind to reply for this post.
Your effort should be highly appreciated.
Regards,
sp sahu -
Is it possible to sync PDFs with multiple computers using the same apple ID?
I have successfully synced these PDFs with one computer (iMac) and one iOS device (iPhone).
However, I can't figure out how to sync the PDFs with the second computer (Macbook Pro).
I added the PDFs to iTunes by dragging them into the books tab. I then set the iOS device to sync books via iBooks.
Does iTunes only sync books purchased from the iTunes store?
I am using iTunes v11.1 on both computers.If you have tow computers that wish to talk to each other then no matter what Buddy List you use you will need two accounts.
If this is a List that logs into the AIM servers it can be an old @mac.com name, the newer MobileMe name or an AIM name.
With a Jabber List it can be a Jabber ID or GoogleTalk ID
In a straight forward set up Jabber Lists (Jabber ID) can not talk to AIM Buddies or An AIM Buddy List (Screen Name) talk to Jabber Buddies
9:14 PM Sunday; July 20, 2008 -
Smartform as work item attachment
Hi,
I would like to have a smartform as an attachment in the work item. This is as part of User Decision step.
I had gone through one of the blogs by Ramakanth Reddy of creating attachment to work item but there was no clear description of SOFM object and what needs to be done to configure the same. Also it was a Adobe form...I need details as to how a smartform needs to be attached.
Could you help me out as to how to attach a smartform as an attachment in the work item.
There is a Z report in which the code to generate the smartform is written. I need to know how I can use this smartform as a work item attachment.
Thanks in advance for all the help.Hi,
I have checked the same and everything seems to be in order.
Lemme explain what I have done and maybe u mite throw some light on it.
I have created a new task. In this task I have called the report program that generates the smartform.
Submit Z_tr_form with pernr = object-key-employeenum
reinr = object-key-tripnumber
and return.
Inside this report, I have done the following :
IMPORTING
document_output_info = st_document_output_info
job_output_info = gt_otfdata
i_otf[] = gt_otfdata-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = v_len_in
bin_file = v_file
TABLES
otf = i_otf
lines = i_tline
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
OTHERS = 4.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
BUFFER = v_file
* APPEND_TO_TABLE = ' '
IMPORTING
OUTPUT_LENGTH = ZVAR1
TABLES
BINARY_TAB = it_solix_tab
if sy-subrc = 0 and not it_solix_tab[] is initial.
swc_set_table container 'IT_SOLIX_TAB' IT_SOLIX_TAB.
swc_set_element container 'ZVAR1' zvar1.
swc_set_element container 'ZTR_MGNT' obj.
export ZVAR1 to memory id 'ZVAR'.
CALL FUNCTION 'SWW_WI_START_SIMPLE'
EXPORTING
TASK = 'WS12500022'
TABLES
AGENTS = it_agents
WI_CONTAINER = container
Now after the submit statement I am importing the value of ZVAR1.
swc_get_table container 'IT_SOLIX_TAB' IT_SOLIX_TAB.
swc_get_element container 'WORKITEMID' WORKITEMID.
swc_get_element container 'ZVAR1' ZVAR1.
CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
EXPORTING
INPUT_LENGTH = ZVAR1
IMPORTING
BUFFER = ZXSTRING
TABLES
BINARY_TAB = IT_SOLIX_TAB.
ZSWR_ATT_HEADER-FILE_TYPE = 'B'.
ZSWR_ATT_HEADER-FILE_NAME = 'TRIPDET'.
ZSWR_ATT_HEADER-FILE_EXTENSION = 'PDF'.
ZSWR_ATT_HEADER-LANGUAGE = 'EN'.
CALL FUNCTION 'SAP_WAPI_ATTACHMENT_ADD'
EXPORTING
WORKITEM_ID = WORKITEMID
ATT_HEADER = ZSWR_ATT_HEADER
ATT_BIN = ZXSTRING
IMPORTING
ATT_ID = ZSWR_ATT_ID
swc_create_object lwa_bo_sofm 'SOFM' zswr_att_id-doc_id.
swc_set_element container 'SOFM' lwa_bo_sofm.
After this step in the workflow we have the User Decision. The binding from the WF container to the User decision as mentioned in Ramakanth's article has also been done.
I am not able to see the PDF output in the container also.
I have a question.....in the article that Ramakanth had given, the report program to generate the adobe form was run separately. In my case I am calling the same inside the task. Is that causing a hinderance as such....I am not able to figure out as to why I am unable to get the attachment.
Lemme know ur comments.
Thanks in advance for all the help.
All the bindings are also in place. I checked with the document that Ramakanth had written and checked all the bindings -
Attaching an attachment to Work item
Hi all,
I have req where I need to attach an attachment to the work item , I need to develop an FM which will do this .So could you please help me out ?
This is on very high priority so Correct ans would be definately rewarded.
Thanks .hi
good
go through the following link
/people/rammanohar.tiwari/blog/2005/10/10/generic-object-services-gos--in-background
u will get an clear idea of how to attach PDF as a attachment to the work item
or
you want to manually attach a file.. in the task you can check the "Confirm end of processing" option.
By doing this the agent executing the task has an option to attach a file on completing the task/workitem so that the next agent gets a work item with or without an attachment.
Alternatively - Create a task using object type SOFM, import the attachment (method : Import File) .Pass this attachemnt to your workitem through binding: Workflow Container element is AttachObjects.
Also refer : Re: Attachments in Send Mail step.
reward point if helpful.
thanks
mrutyun^ -
Convert XSTRING to PDF Format and Send it as an attachment with work-item
I have an Adobe Form data available in the ECC system in XSTRING format. In one of my ABAP methods (used by a custom workflow task), i want to convert the XSTRING data in PDF format and send it as an attachment with a work-item. How best can this be done?
Appreciate any ideas,
SaurabhHi Saurabh,
if u want to download pdf which is in xstring format to u r local system
u can try the following code.
data: data_tab type table of x255.
call function 'SCMS_XSTRING_TO_BINARY'
exporting
buffer = XString data
tables
binary_tab = data_tab.
cl_gui_frontend_services=>gui_download(
exporting
filename = filename
filetype = 'BIN'
changing
data_tab = data_tab ).
cl_gui_frontend_services=>execute(
exporting
document = filename ).
Regards,
Chandru -
How to attach a PDF document to work item .---urgent
Hi EXperts ,
I am wanted to know how to attach a PDF document to my work item which i will be geneating . Pls let me the Method coding to be done so that I can send the attachment also when the work item is generated ..
What is need to pass to Workflow container ...
Regards
AbhilashAh ok,
then the only way I know is to get hold of some one with skills in Smart Forms, and alley up with them. Or better yet, use it as an excuse to learn to do it your self
With a Smart Form, you can parse data into it, create the file, and then use the GOS functionality to attatch it to your BO. All this in back ground!
Kind regards
Mikkel -
Problem in sending Excel attachment on the SAI id.
Hi Experts.
i am using one function module to send one alv output in Excel format to sapid.
FORM SEND_MAIL TABLES T_AMS RECEIVERS_TAB.
CALL FUNCTION 'Z_MAIL_ITAB_AS_XLS_ATTACHMENT'
EXPORTING
I_MESSAGE_TITLE = SYST-TITLE
I_ATTACHMENT_TITLE = SYST-TITLE
I_STRUCTURE_NAME = 'ZAMT__ZBCAUTH0001'
I_INCLUDE_HEADER = 'X'
I_RECIPIENT_UNAME = P_UNAME
TABLES
T_MESSAGE = MESSAGE_TAB
T_DATA = I_TABLE
T_RECEIVERS = RECEIVERS_TAB
EXCEPTIONS
NO_DATA_TO_SEND = 01
UNABLE_TO_GET_NAMETAB = 02
UNABLE_TO_GET_DDTEXTS = 03
NO_HEADER_SUPPLIED = 04
MAIL_SENDING_FAILED = 05
OTHERS = 06.
IF SYST-SUBRC NE 0.
MESSAGE ID SYST-MSGID TYPE SYST-MSGTY NUMBER SYST-MSGNO
WITH SYST-MSGV1 SYST-MSGV2 SYST-MSGV3 SYST-MSGV4.
ENDIF.
ENDFORM.
now, my requirement is i had two internal table one for ITAB_FICO & ITAB_SD for FICO and SD module.AND BY CHECKING CONDITON I HAD TO SEND MAIL TO CORRESPONDING DIFFERENT PERSON.
I HAD DONE THE CODING AS GIVEN BELOW.
IF NOT itab_fico[] IS INITIAL.
RECEIVERS_TAB-RECEIVER = 'SAP_00021'.
RECEIVERS_TAB-REC_TYPE = 'B'.
RECEIVERS_TAB-EXPRESS = 'X'.
APPEND RECEIVERS_TAB.
PERFORM SEND_MAIL TABLES T_AMS RECEIVERS_TAB.
endif.
IF NOT itab_sd[] IS INITIAL.
RECEIVERS_TAB-RECEIVER = 'SAP_00022'. <------- its my sap id
RECEIVERS_TAB-REC_TYPE = 'B'.
RECEIVERS_TAB-EXPRESS = 'X'.
APPEND RECEIVERS_TAB.
PERFORM SEND_MAIL TABLES T_AMS RECEIVERS_TAB.
endif.
Now, what is happening is i am getting two mails,
one contains the attachement in Excel for ITAB_FICO. ( 3 ROWS)
SECOND mail contains two attachement one for ITAB_FICO ,second attachment contains the line items of ITAB_FICO + in the same excel the line items of ITAB_SD(2 ROWS).
So, for one time its working fine, but on sending mail second or third them its attaching the previous attachment also...... i tried to refresh everything but its not working....................
please help,,,,or if possible tell me some other SAP FM ...which can fulfil the requirements.
I will reward points for every suggestion.
thanksHi Saurabh,
IF NOT itab_fico[] IS INITIAL.
<b>REFRESH : RECEIVERS_TAB.
CLEAR : RECEIVERS_TAB.</b>
RECEIVERS_TAB-RECEIVER = 'SAP_00021'.
RECEIVERS_TAB-REC_TYPE = 'B'.
RECEIVERS_TAB-EXPRESS = 'X'.
APPEND RECEIVERS_TAB.
PERFORM SEND_MAIL TABLES T_AMS RECEIVERS_TAB.
endif.
IF NOT itab_sd[] IS INITIAL.
<b>REFRESH : RECEIVERS_TAB.
CLEAR : RECEIVERS_TAB.</b>
RECEIVERS_TAB-RECEIVER = 'SAP_00022'. <------- its my sap id
RECEIVERS_TAB-REC_TYPE = 'B'.
RECEIVERS_TAB-EXPRESS = 'X'.
APPEND RECEIVERS_TAB.
PERFORM SEND_MAIL TABLES T_AMS RECEIVERS_TAB.
endif.
Best regards,
Prashant -
How to get the image stored in archieve link as an attachment in work item.
Hi All,
through transaction OAWD we are storing scanned images.
Once this transaction is executed a workitem appears in the inbox of the initiator with the scanned invoice as attachment.
When the user executes the work item FV60 screen is displayed where the user enters the data based on the scanned invoice attachment.
After the user Parks the document the custom workflow triggers and a workitem appears in the inbox of an approver.
Our requirement is that the scanned image should also appear as the attachment.
Can you please suggest how to get the image stored in archieve link as an attachment in work item.
Regards
ShraddhaHi Martin,
with every parked document a scanned image is linked.
I need to create a link under objects and attachments in the work item, such that when the user clicks that link the image is displayed.
At present the following functionality is available.
The BO used is FIPP
Objects and attachments:
parkeddocument:AK0108500001252008.(via FIPP binding with WIOBJECT_ID)
On clicking the link below objects and attachments: the parked document AK0108500001252008 opens in display mode.
Now we want to have 2 links:
parkeddocument:AK0108500001252008.
image.
When we click on the link image then the scanned invoice linked to the document should get opened.
I am able to get the image id of the the image through SAP_WAPI_GET__OBJECTS,
export parameter leading_object provides the detail.
But I am not able to figure out how to use it in my workflow to display it as an attachment.
Hope this will give a better understanding of my question.
can you please suggest as to how I should proceed with it. -
Hi,
How do you send an attachment to a work item, at the time when the work item is created in the inboxanybody has worked on such a requirement?
-
API to get Work Item and Attached Information
Dearl all,
Is there any API to get the work items assigned to specific users and their attached information during runtime?
Thanks, JeromeHI Jerome,
This code will help you: API FM is " 'SO_NEW_DOCUMENT_ATT_SEND_API1'
DATA : w_name TYPE sos04-l_adr_name.
SELECT-OPTIONS :
Recipient address
s_name FOR w_name DEFAULT sy-uname NO INTERVALS.
START-OF-SELECTION.
E-mail Abap report
PERFORM f_send_mail.
Form f_send_mail
FORM f_send_mail.
Data Declaration
DATA:
l_datum(10),
ls_docdata TYPE sodocchgi1,
lt_objpack TYPE TABLE OF sopcklsti1 WITH HEADER LINE,
lt_objhead TYPE TABLE OF solisti1 WITH HEADER LINE,
lt_objtxt TYPE TABLE OF solisti1 WITH HEADER LINE,
lt_objbin TYPE TABLE OF solisti1 WITH HEADER LINE,
lt_reclist TYPE TABLE OF somlreci1 WITH HEADER LINE,
lt_listobject TYPE TABLE OF abaplist WITH HEADER LINE,
l_tab_lines TYPE i,
l_att_type LIKE soodk-objtp.
WRITE sy-datum TO l_datum.
List of Users According to Logon Date and Password Change
NOTE: Create ALI/OTF Document in Spool
MESSAGE ID 'ZWF' TYPE 'I' NUMBER '001'.
SUBMIT ZMM_MIR_RPT_FOR_WORKFLOW VIA SELECTION-SCREEN WITH valid = 'X'
WITH notvalid = space
WITH unlocked = 'X'
WITH locked = space
EXPORTING LIST TO MEMORY AND RETURN.
IF sy-subrc = 0.
ENDIF.
MESSAGE ID 'ZWF' TYPE 'I' NUMBER '000'.
Read list from memory into table
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = lt_listobject
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
Error in function module &1
MESSAGE ID '61' TYPE 'E' NUMBER '731'
WITH 'LIST_FROM_MEMORY'.
ENDIF.
IF sy-subrc = 0.
CALL FUNCTION 'WRITE_LIST'
TABLES
listobject = lt_listobject.
ENDIF.
IF sy-subrc = 0.
endif.
Because listobject is of size RAW(1000)
and objbin is of size CHAR(255) we make this table copy
CALL FUNCTION 'TABLE_COMPRESS'
TABLES
in = lt_listobject
out = lt_objbin
EXCEPTIONS
compress_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
Error in function module &1
MESSAGE ID '61' TYPE 'E' NUMBER '731'
WITH 'TABLE_COMPRESS'.
ENDIF.
NOTE: Creation of attachment is finished yet.
For your report, the attachment should be placed into table
objtxt for plain text or
objbin for binary content.
Now create the message and send the document.
Create Message Body
Title and Description
ls_docdata-obj_name = 'Outstanding MIR'.
CONCATENATE 'Outstanding MI-Report sent by' sy-uname l_datum "#EC *
INTO ls_docdata-obj_descr SEPARATED BY space.
Main Text
lt_objtxt = 'Outstanding MIR Report' &
'List of Outstanding Goods Receipts under inspection 103 movement'. "#EC *
APPEND lt_objtxt.
Write Packing List (Main)
DESCRIBE TABLE lt_objtxt LINES l_tab_lines.
READ TABLE lt_objtxt INDEX l_tab_lines.
ls_docdata-doc_size = ( l_tab_lines - 1 ) * 255 + STRLEN( lt_objtxt ).
lt_objpack-transf_bin = 1. " If u want to CLEAR inbox evrytime
lt_objpack-head_start = 1.
lt_objpack-head_num = 0.
lt_objpack-body_start = 1.
lt_objpack-body_num = l_tab_lines.
lt_objpack-doc_type = 'RAW'.
APPEND lt_objpack.
Create Message Attachment
Write Packing List (Attachment)
l_att_type = 'ALI'.
DESCRIBE TABLE lt_objbin LINES l_tab_lines.
READ TABLE lt_objbin INDEX l_tab_lines.
lt_objpack-doc_size = ( l_tab_lines - 1 ) * 255 + STRLEN( lt_objbin ).
lt_objpack-transf_bin = 'X'.
lt_objpack-head_start = 1.
lt_objpack-head_num = 0.
lt_objpack-body_start = 1.
lt_objpack-body_num = l_tab_lines.
lt_objpack-doc_type = l_att_type.
lt_objpack-obj_name = 'ATTACHMENT'.
lt_objpack-obj_descr = 'Outstanding MIR'. "#EC *
APPEND lt_objpack.
Create receiver list
LOOP AT s_name.
lt_reclist-receiver = s_name-low.
lt_reclist-rec_type = 'B'.
APPEND lt_reclist.
ENDLOOP.
Send Message
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = ls_docdata
put_in_outbox = ''
TABLES
packing_list = lt_objpack
object_header = lt_objhead
contents_bin = lt_objbin
contents_txt = lt_objtxt
receivers = lt_reclist
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.
IF sy-subrc = 0.
Document sent
MESSAGE ID 'ZWF' TYPE 'S' NUMBER '002'.
ELSE.
Document <&> could not be sent
MESSAGE ID 'SO' TYPE 'S' NUMBER '023'
WITH ls_docdata-obj_name.
ENDIF.
ENDFORM.
Thanks and Regards,
Prabhakar Dharmala
Maybe you are looking for
-
I am trying to get photos from a friends i pad to mine so that I can make a slide show for him. I tried using my i pad camera connection kit with a SDHC card in it and followed the instructions in the manual. I got to the part where it had me select
-
Can't set up and share a hard drive
I ' ve just purchased a new Airport extreme, I've set up the network ok, I pluged an external drive to the airport extreme, when to Airport utility disks, enable file sharing, secure sharing disks: with accounts and I don't know what to do next? Pl
-
"Redo" keyboard shortcut not working?
Since the most recent update in Premiere Pro CC my "Redo" keyboard shortcut (ctrl-shift-Z on PC) no longer works. I've check the keyboard shortcuts and it's still mapped there correctly, it simply doesn't work, and this is massively slowing down my w
-
Hi, I am curently using adobe CS3. I am facing this strange problem where my web pages are being saved with a .new extension when I am tryign to publish. Everytime I need to go and change the extension from .cfm.new to .cfm inorder to see the changes
-
Hello: I using Flash CS3 to design my flash banner, I have five images and many another layers as a masks, fps=90 but after image No. 3 it changes between 50 to 22, it was very slow, any body can help me?