Attachment in workflow
Hi,
Can anybody tell me, if any attachment (any pdf file) is with the workflow, where exactly this attachment is stored in SAP during runtime? means which memory it will occupy..
Regards,
Smit
Hi ,
Attachment objects are stored in SAP memory with logical/physical ids or Object Keys .
you can refer to tables like
SOATT
SOFFPHF
SOFM etc.
just get F4 help in se11 for SO* in tables field. you wil find relevant tables.
Similar Messages
-
Attachment in workflow user decision
Hi All,
Can anybody let me know how to use attachment in workflow user decision box? My requirement is I have one internal table and I want to display the data of the internal table as an attachment.
Thanks,
Salil.HI,
Go thru thi link
http://help.sap.com/saphelp_nw04s/helpdata/en/8d/25f131454311d189430000e829fbbd/content.htm
Thanks
Sunil -
How to Send mail woth pdf attachment through workflow
Hi SDNer's,
I have a problem with pdf attachment through workflow. Please anybody help me to get solve my issue.Hi Suresh,
I just tried this thing in my systtem and it is working... BADI is trigerred everytime there is a change in the PO... even when you release there is a change in the PO so this BADI will be triggerred....
I suggest you should implement BADI in your dev system and place a break point in the POST method...
After that create a PO and release it using ME29N... thereafter when you save the PO... this method will trigger and you will have access to PO details...
PS: Remember this BADI wont work for transaction ME29...
Regards
Gautam -
Re-attaching old workflow to document library
Hello,
I've recently switched my sharepoint site to a new work environment (different DNS), but my custom workflows that were associated to my document libraries are no longer "attached" anymore. They still exist in the site itself, but they can not be
associated to any list or library. Unfortunately, they are not reusable workflows due to having specific content that related to each library and their columns, so that option is out the window. Is there a way to reattach them to a library/list if the workflow
is already created? Any help would be great.
Thanks!Hi,
According to your post, my understanding is that you wanted to re-attaching old workflow to document library.
To migrate list while keeping workflow associations, you can save a site as a template and "include content”.
Here is a similar thread for your reference:
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/e8f6aef7-008e-4cf1-811b-11358922cbe4/migrate-list-while-keeping-workflow-historyassociations?forum=sharepointgeneralprevious
In addition, you can migrate workflows between test SharePoint 2010 farms and production farms, in particular with workflows attached to lists.
For more information, please refer to:
HOWTO Move or Migrate SharePoint 2010 List-based Workflows between Sites and Site Collections
Solved: Moving SharePoint 2010 Designer Workflows between Sites
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Attachment in Workflow approval
Hi,
We are using SAP standard workflow for approving Appropriation Request
through object BUS2104.
Applicant gets mail after request is approved or rejected.
In this process, Approver adds his remarks as attachment in workflow.
We want to send these attachments to Applicant alongwith approved/rejection mail.
Can you help in getting these attachments ?
Regards,
SATYAJITHi Viji,
Thanks for quick reply.
I am added some more information here... so that you can help me ...
1. The mail is going to SAP id's inbox. And it is going through activity ( task TS00300053 ) .
There is no container item "attachement", only AttachObjects is there.
I tried to link AttachObjects with AttachObjects.
But it did not work.
2. I added a new mail step with task as TS00300053.
In binding i linked AttachObjects with Attachment.
Recipient type = U
Address = (hardcoded as my external address).
Still the mails are not going.
It is giving following error.
The work item "Appropriation request HYD-0076 was approved!" (ID
000000905122) of type B has the status ERROR.
Initiate a correction measure so that the respective workflow (ID
000000905116) can be continued.
Can you help ?
Regards,
SATYAJIT -
Attach the workflow process to portlet pages
Hi,
I would like to know the steps to attach the workflow process to portlet pages.
-- BabuWhat do you mean by "attach the workflow process to portlet pages"
if you mean to have approval withing pages this can be done using teh approvals and notifications functionality built in within portal and if you mean attaching external workflows from oracle portal or BPEl, that can also be done. -
Help in sending mails with attachment from workflow
Hi Experts,
I have a document in my local PC. Can anyone tell me how to send it like an attachment from workflow.
Thanks in advance.Hi,
when u want to send the attachment along with document created, then u can see the Service Object in left hand top corner. There u can attach your file. So that it will go with the document.
Regards,
JMB -
How to send a text file or a excel file as an attachment in workflow
Hi all,
I would like to send an e-mail containing an attachment in text or excel format in oracle workflow.Can anyone tell me or give me an example as how it can be done.
My e-mail id is [email protected]
Thanks in Advance.
Regards,
pavanHi,
I am embedding a CLOB message document attribute to my Notification
Message Body.
Everything works fine when I check my notifications in the "workflow worklist"
i.e. Oracle Apps. <Notifications> tab.
but the emails are not going to the users and below message is displayed in the
status monitor. (eventhough it displays below error - I can able to respond the notifications using the worklist and can able to COMPLETE the workflow process
successfully)
Please help me to resolve the below error, so that the Same notification which I am able to see using the workflow worklist should be sent to the user in email as embedded text.
NOTE: there is no problem with the Package XXDB_OKC_CONTRACTS_WF_PKG, as it is not changed and I even verified it before and after this error that this package is indeed in VALID status.
Workflow Errors: XXDBCAPR, SDA-10314
Failed Activity Send Approve_Reject Responce Notification
Activity Type Notice
Error Name WF_ERROR
Error Message [WF_ERROR] ERROR_MESSAGE=3835: Error '-20002 - ORA-20002: 2018: Unable to generate the notification XML. Caused by: 2020: Error when getting notification content. Caused by: ORA-04061: existing state of has been invalidated ORA-04061: existing state of package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" has been invalidated ORA-04065: not executed, altered or dropped package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" ORA-06508: PL/SQL: could not find program unit being called Wf_Notification.GetAttrClob(18841, MESSAGE_BODY, text/html) Wf_Notification.oldGetAttrC' encountered during execution of Generate function 'WF_XML.Generate' for event 'oracle.apps.wf.notification.send'. ERROR_STACK= WF_MAIL.GetLOBMessage3(18841, WFMAILER, 2020: Error when getting notification content. Caused by: ORA-04061: existing state of has been invalidated ORA-04061: existing state of package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" has been invalidated ORA-04065: not executed, altered or dropped package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" ORA-06508: PL/SQL: could not find program unit being called Wf_Notification.GetAttrClob(18841, MESSAGE_BODY, text/html) Wf_Notification.oldGetAttrClob(18841, MESSAGE_BODY, text/html) WF_NOTIFICATION.GetFullBody(nid => 18841, disptype => text/html) WF_MAIL.GetLOBMessage3(nid => 18841, r_ntf_pref => MAILHTML), Step -> Getting text/html body) WF_XML.GenerateDoc(oracle.apps.wf.notification.send, 18841) WF_XML.Generate(oracle.apps.wf.notification.send, 18841) WF_XML.Generate(oracle.apps.wf.notification.send, 18841) Wf_Event.setMessage(oracle.apps.wf.notification.send, 18841, WF_XML.Generate) Wf_Event.dispatch_internal()
Error Stack
thanks,
Shashi
NOTE: there is no problem with the Package XXDB_OKC_CONTRACTS_WF_PKG, as it is not changed and I even verified it before and after this error that this package is indeed in VALID status. -
Pdf attachment through workflow
Hi SDNers,
I need to attach a PDF to send mail in my workflow. Workflow triggers whenever PO changed or release at ME22N or ME21N.
Which PO has been changed, data PO details need to display in PDF.
For this I created a smarform by passing PO number. I created attribute for emailaddress, in this i written code. But, when executed manually it is going. but I changed or release from ME22N or ME21N just a body mail is going butwithout attachment.Please suggest me. Here is the code which I have written in the attribute.
FORM SELECT_TABLE_ADR6 USING SUBRC LIKE SY-SUBRC.
TYPES: BEGIN OF ty_ekko,
ebeln TYPE ebeln,
lifnr TYPE lifnr,
END OF ty_ekko,
BEGIN OF ty_lfa1,
lifnr TYPE lifnr,
adrnr TYPE adrnr,
END OF ty_lfa1.
DATA: it_ekko TYPE STANDARD TABLE OF ty_ekko INITIAL SIZE 0,
it_lfa1 TYPE STANDARD TABLE OF ty_lfa1 INITIAL SIZE 0,
wa_ekko TYPE ty_ekko,
wa_lfa1 TYPE ty_lfa1.
DATA: gv_form_name TYPE rs38l_fnam,
gv_bin_filesize TYPE i,
gv_pos TYPE i,
gv_len TYPE i,
gv_tab_lines TYPE i.
DATA: gc_text(11) TYPE c VALUE 'Form Output',
gc_tst(3) TYPE c VALUE 'TST',
gc_testing(20) TYPE c VALUE 'PURCHASE ORDER'.
DATA: gs_docdata TYPE sodocchgi1,
gs_ctrlop TYPE ssfctrlop,
gs_outopt TYPE ssfcompop,
gs_otfdata TYPE ssfcrescl,
gs_reclist TYPE somlreci1,
gs_copy type somlreci1,
gs_pdf_tab TYPE tline,
gs_objbin TYPE solisti1,
GS_OBJTXT TYPE SOLISTI1,
gs_objpack TYPE sopcklsti1.
DATA: gt_reclist TYPE TABLE OF somlreci1,
gt_copy type table of somlreci1,
gt_pdf_tab TYPE TABLE OF tline,
gt_otf TYPE TABLE OF itcoo,
gt_objbin TYPE TABLE OF solisti1,
GT_OBJTXT TYPE TABLE OF SOLISTI1,
gt_objpack TYPE TABLE OF sopcklsti1.
DATA: G_SMTP_ADDR type AD_SMTPADR.
DATA: p_plist(40) type C,
gc_c type C,
gc_u type C.
CLEAR : gv_form_name,
gs_ctrlop,
gs_outopt,
gs_otfdata,
gv_bin_filesize,
gv_pos,
gv_len,
gv_tab_lines.
IF OBJECT-_ADR6-CLIENT IS INITIAL
AND OBJECT-_ADR6-ADDRNUMBER IS INITIAL
AND OBJECT-_ADR6-PERSNUMBER IS INITIAL
AND OBJECT-_ADR6-DATE_FROM IS INITIAL
AND OBJECT-_ADR6-CONSNUMBER IS INITIAL.
SELECT ebeln lifnr FROM ekko INTO TABLE it_ekko
WHERE ebeln = object-key-purchaseorder.
SELECT lifnr adrnr FROM lfa1 INTO TABLE it_lfa1
FOR ALL ENTRIES IN it_ekko WHERE lifnr = it_ekko-lifnr.
READ TABLE it_lfa1 INTO wa_lfa1 INDEX 1.
SELECT SINGLE * FROM ADR6 CLIENT SPECIFIED
WHERE CLIENT = SY-MANDT
AND ADDRNUMBER = WA_LFA1-ADRNR.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZMMF_PUR_DOMESTIC001'
IMPORTING
fm_name = gv_form_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
gs_ctrlop-getotf = 'X'.
gs_ctrlop-device = 'PRINTER'.
gs_ctrlop-LANGU = SY-LANGU.
gs_ctrlop-no_dialog = 'X'.
gs_outopt-tddest = 'LP01'.
gs_outOPT-TDIMMED = 'X'.
gs_OUTOPT-TDRECEIVER = SY-UNAME.
gs_OUTOPT-TDNOPREV = 'X'.
CALL FUNCTION gv_form_name
EXPORTING
control_parameters = gs_ctrlop
output_options = gs_outopt
user_settings = us_screen
user_settings = ent_retco
customer = customer
bookings = bookings
connections = connections
i_ebeln = object-key-purchaseorder
IMPORTING
job_output_info = gs_otfdata
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4.
CLEAR gt_otf.
gt_otf[] = gs_otfdata-otfdata[].
Convert the OTF DATA to SAP Script Text lines
CLEAR gt_pdf_tab.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 200
IMPORTING
bin_filesize = gv_bin_filesize
TABLES
otf = gt_otf
lines = gt_pdf_tab
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
OTHERS = 4.
Data : Order(50) type c,
sep(10) type c value ' / '.
CLEAR gs_docdata.
gs_docdata-obj_name = gc_tst.
CONCATENATE gc_testing sep 'test mail' into order.
gs_docdata-obj_descr = order.
CLEAR : gt_reclist, gs_reclist.
REFRESH: GT_RECLIST, GT_OBJPACK, GT_OBJBIN.
clear: gt_copy, gs_copy.
IF internal mail id
gs_reclist-receiver = ADR6-SMTP_ADDR.
GS_RECLIST-REC_TYPE = 'U'.
APPEND gs_reclist TO gt_reclist.
APPEND gs_copy to gt_copy.
CLEAR : gs_objbin, gs_pdf_tab.
LOOP AT gt_pdf_tab INTO gs_pdf_tab.
gv_pos = 255 - gv_len.
IF gv_pos > 134. "length of pdf_table
gv_pos = 134.
ENDIF.
gs_objbin+gv_len = gs_pdf_tab(gv_pos).
gv_len = gv_len + gv_pos.
IF gv_len = 255. "length of out (contents_bin)
APPEND gs_objbin TO gt_objbin.
CLEAR: gs_objbin, gv_len.
IF gv_pos < 134.
gs_objbin = gs_pdf_tab+gv_pos.
gv_len = 134 - gv_pos.
ENDIF.
ENDIF.
ENDLOOP.
IF gv_len > 0.
APPEND gs_objbin TO gt_objbin.
ENDIF.
Filling the details in SAPoffice: Description of Imported
DESCRIBE TABLE gt_objbin LINES gv_tab_lines.
CLEAR gs_objbin.
READ TABLE gt_objbin INTO gs_objbin INDEX gv_tab_lines.
IF sy-subrc = 0.
gs_objpack-transf_bin = 'X'.
gs_objpack-head_start = 1.
gs_objpack-head_num = 0.
gs_objpack-body_start = 1.
gs_objpack-body_num = gv_tab_lines.
gs_objpack-doc_type = 'PDF'.
gs_objpack-obj_name = 'ATTACHMENT'.
gs_objpack-obj_descr = 'test'.
APPEND gs_objpack TO gt_objpack.
ENDIF.
IF p_plist IS NOT INITIAL.
gs_reclist-receiver = p_plist.
gs_reclist-rec_type = gc_c.
APPEND gs_reclist TO gt_reclist.
CLEAR gs_reclist.
ENDIF.
Populating the reciever list
gs_reclist-receiver = p_plist.
gs_reclist-rec_type = gc_c.
APPEND gs_reclist TO gt_reclist.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = gs_docdata
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
IMPORTING
SENT_TO_ALL =
NEW_OBJECT_ID =
TABLES
PACKING_LIST = gt_objpack
OBJECT_HEADER =
CONTENTS_BIN = gt_objbin
CONTENTS_TXT =
CONTENTS_HEX =
OBJECT_PARA =
OBJECT_PARB =
RECEIVERS = gt_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.
SUBMIT rsconn01
WITH mode EQ 'INT'
and return.
ENDIF.Hi-
You need to convert the smartform's OTF data to PDF and then create a SOFM instance. Now bind this SOFM instance to workflow container 'ATTACH_OBJECTS' in your email step and your smartform will be showed as a PDF attachment
Vinoth -
Attachment and workflow overview - GOS
Hello All,
I have a new custom BO. No delegation to another object.
And new applications using this BO.
I want to include the "Generic Object Services" -> Workflow Overview & attachment
and display this on the transaction just like VA0x to display the WF.
I need a starting point!
I have document Generic Object Services (BC-SRV-GBT).
Not sure how to add this functionality.
Please help asap.
Thanks & Regards,
SangeetaHello Sangeeta,
I am too facing the same kind of issue.
I developed a workflow and linked the BO ZBUS2081. This is sub type of standard BO BUS2081. I am using the custom event INVOICEBLOCKED to trigger the workflow. The workflow is triggered propely when the invoce is created (with block) thru MIRO and I can see the workflow in SWEL or SWI6 or SWI14.
But, the workflow is not listed in the services for objects button of the invoice display using MIR4.
If I use the standard event 'BLOCKEDQUANT' as starting event, the workflow is triggered and I can view it in services for object.
In the table SWW_WI2OBJ has all entries about the workflow triggered using standard event or custom event.
How can I make the services for object in invoice list my workflow that was triggered using custom evet?
I tried this solution but, still not working.
Can you please tell me what needs to be done to make this working?
Regards
Siva S -
Business object attachment to workflow
Hi all,
I have a workflow for BO BKPF (accounting document - journal entry). The book "Practical Workflow for SAP" implies I can attach a reference to an SAP Business Object (page 91).
For example, in my workflow for accounting document 1000459516, I'd like to attach accounting document 1000459475 (since there are business reasons why the two documents are related). When I click on the "Create Attachment" button, I presume I need to attach an object of class OBJ, but then I'm not sure what to do next to find 1000459475.
Any direction you can give will be greatly appreciated.
Ron K.Hello,
I believe you can create a method in your custom business object (ZBKPF, delegated to standard one) & include your custom code in there to create a new instance with another document number using following procedure:
1. Create a variable for the object reference. Use the following command to do this:
DATA <Object> TYPE SWC_OBJECT.
2. Create the object reference. Use the following command to do this:
SWC_CREATE_OBJECT <Object> <ObjectType> <ObjectKey>.
3. Write the object reference into the container using the following macro instruction:
SWC_SET_ELEMENT <Container> <ContainerElement> <Object>.
Then this will allow you to have an instance of another document in workflow container & then you can use it as an attachment in any of the steps of workflow you want.
I hope it helps.
Regards,
Shaurya Jain -
Adobe form as a attachment in workflow
Hi,
i have attached adobe form in my workflow as a attachment in decision step .the requirement is he will open the adobeform and he will edit some values and that form i have to save that values and update the database.. my problem is he will open the attachment and make changes to that how can i able to get the edited form into workflow this is a 3 level approval process at every stage approvers will edit the adobe form so any one please suggest me..Hi,
Your adobe forms opening in the T.code IQS2 right.
Create a method, call this T.code & pass the notification number using the call transaction Method.
Assign this method in the workflow via task and send it to the approver.
Regards,
Surjith -
How to send Z Component as an attachment in workflow
Hi Experts,
I have created a custom component( Z component ) in UI and I want to send this as an attachment in worktask in workflow.
For this I created a custom business object( Z object ) and by default 'Display' method is created in it.
When I send my custom component( Z component ) as attachment I want to see my Z component, which is not happening. Although in GUI this works well. But in UI I want to see my component.
Any help will be highly appreciated.
Regards,
VikasHi Experts,
I have created a custom component( Z component ) in UI and I want to send this as an attachment in worktask in workflow.
For this I created a custom business object( Z object ) and by default 'Display' method is created in it.
When I send my custom component( Z component ) as attachment I want to see my Z component, which is not happening. Although in GUI this works well. But in UI I want to see my component.
Any help will be highly appreciated.
Regards,
Vikas -
Sapscript as PDF-Attachment in Workflow
Hi Experts,
I am trying to create a new workflow for releasing purchase orders.
If the workitem passes all the controlling steps of the management, it should be sent automatically as PDF via email to our vendor.
The problem is, how to get the PDF as an attachment? We are using SAPscript for our PO formular (and of course the PDF-Attachment should look like the printed version).
I was already looking in the internet for a solution, but it is really hard to find some answers for this problem.
Many thanks for your help,
ChristophHi all,
many thanks for your help.
The workflow should run in this way. The purchaser creates an order --> supervisor gets a SAP Mail (workflow user decision step) to accept it --> the supervisor of the supervisor then gets a SAP mail to accept it --> PDF is sent to the vendor (only if everybody signed this PO before).
I will try following now: I will create a new workflow task to execute a method (for getting the PO as a PDF attachment) and a new workflow container item to store the attachment.
As next WF step I will use the standard send mail step.
Are I am right with this soulution (nothing programmed yet, still not so sure how to do it - but hope to find a solution to manage this).
Many thanks for your help again.
Chris -
FBV0 Screen Attachment through workflow to external mail address
Hi,
i have a requirement to create approver for parked documents i found workflow ws10000055 to set the release status,
now this screen is comming in SAP Business inbox at started workflow tab.
but this FBV0 screen should go as attachment in mail for external mail id.
guide me .
Thanks & Regards,
Srinivasan.RHi,
To send it as attachment, bind the standard Business Object FIPP to the custom container of your activity in workflow. This will automatically give you the attachment as Display is the default method set for this BO.
Try this. And let me know if you need any further inputs.
Regards
Guddan -
Document attachment with Workflow
Dears,
We are using SAP 4.7 R3 and currently we are configuring workflow just for alerts purposes for example we will send an alert to external server whenever logistics invoices verification document will be parked. We will send text to external emailer system and will be received by MS-outlook. We want to attach that document with my text . How can I do that?
Regards,
FRHi,
In an background activity step send a mail using 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
Hope this link helps --> http://wiki.sdn.sap.com/wiki/display/Snippets/Sending%20mail%20with%20attachment
Regards
Narin
Maybe you are looking for
-
When I plug my iPod into the computer, it is not updating with iTunes. The software version on iTunes is 1.2.1 and is the same on my iPod. I did have a relapse last evening, as my iPod got confused. It stalled, so I had to drain the battery and recha
-
T-code : FF7A - grouping issue
Dear all, As shown in the image below,for transaction FF7A, where can i define the new grouping criteria or change the existing grouping since we added one more bank account( the one where the red arrow pointed ) ? please advise. Thank you <a href=
-
Hey i'm using logic pro 9 on 2010 macbook pro and its connected to an Acer P26H LCD through the HDMI port, and randomly the monitor will crash, which will then cause the macbook to crash. I have no idea what the problem is, I thought it was maybe the
-
Howdy. I am caught in a conundrum: Why is it that you can: MyObject[] = (MyObject[])request.getAttribute("myOb") (provided that "myobj" was originally an array of type MyObject) But you cannot: MyObject[] = (MyObject[])vector.toArray(); It is precise
-
ITunes 7.0.2 won't start on OS X 10.4.8
iTunes 7.0.2 won't start on G4 iBook running OS X 10.4.8. Apple error report dialogue fires up when the app fails to start. From iTunes crashlog; Exception: EXCBADACCESS (0x0001) Code[0]: 0x0000000a Code[1]: 0xa8ba8b9c Anyone else experienced similar