HR Workflow Attachment Query
Hi,
I have the following query to retrieve attachment data for complete HR workflows:
select distinct paa.assignment_number
, pap2.full_name selected_person
, pap.full_name created_by
, fad_l.creation_date attachment_creation_date
, wav.display_name
, fl_l.file_name
, fdt_l.description
--, fl_l.file_data
, fl_l.file_id media_id
, pssh.activity_id
, wpa.activity_name
, pssh.pk1
, pssh.transaction_history_id
from fnd_attached_documents fad_l
, fnd_documents fd_l
, fnd_documents_tl fdt_l
, fnd_document_categories_tl fdct_l
, fnd_lobs fl_l
, pqh_ss_transaction_history psth
, pqh_ss_step_history pssh
, per_all_assignments_f paa
, per_all_people_f pap
, per_all_people_f pap2
, wf_process_activities wpa
, wf_activities_vl wav
where 1 = 1
and fad_l.document_id = fd_l.document_id
and fad_l.document_id = fdt_l.document_id
and fdct_l.category_id = fd_l.category_id
and fd_l.media_id = fl_l.file_id /* Release 12 */
and fad_l.pk1_value = psth.transaction_history_id
and psth.assignment_id = paa.assignment_id
and psth.creation_date between paa.effective_start_date and paa.effective_end_date
and psth.creator_person_id = pap.person_id
and psth.creation_date between pap.effective_start_date and pap.effective_end_date
and psth.selected_person_id = pap2.person_id
and psth.creation_date between pap2.effective_start_date and pap2.effective_end_date
and psth.transaction_history_id = pssh.transaction_history_id
and pssh.activity_id = wpa.instance_id
and wpa.process_name = wav.name
and sysdate between wav.begin_date and nvl(wav.end_date,sysdate + 1)
and fad_l.entity_name = 'PQH_SS_ATTACHMENT'
and fad_l.creation_date > '28-AUG-2012'
and pssh.approval_history_id = 1
order by attachment_creation_date desc;However, for certain types of workflows, e.g. absence, the pqh_ss_step_history.activity_id value is null, meaning that I can't link to wf_process_activities to get the workflow type.
Instead there is a numeric value in pqh_ss_step_history.pk1, but I cannot find where this links to.
Does anyone have any ideas?
Many thanks,
Hazel
In case anyone finds this thread in the future, I found the answer to my question here: what is the PK1_VALUE in FND_ATTACHED_DOCUMENTS for HR SIT Transactions
So for absence related attachments pqh_ss_step_history.pk1 = per_absence_attendances.absence_attendance_id.
Similar Messages
-
Workflow attachment Displayed differently in different SAP User Id
Hi
I have a very strange issue with Workflow attachment. When I open the attachment from One user it is showing the correct attachemnt and with another user it is a complete different attachment. Please note that it is happening for a set of users only. There might be settings that is causing or some refresh that is not taking place for the set of USER Id: Please note that I am doing it in R/3
Thanks
ArghadipHi,
This can probably happen due to two reasons firstly Authorisation issue, secondly it could be some user parameter setting.
BR,
Prashant. -
Dear expert,
Anyone of you know what is the name of the table that store workflow attachment?
Thanks.
Regards,
BryanHello,
I mean (and this is the case all over SAP) that names of tables can change, things can be stored in different areas, from version to version. That's why it's better to use the SAP-standard functions because then they'll update them between versions and you don't have to.
regards
Rick Bakker
Hanabi Technology -
Workflow attachment link issue
Hi Friends,
We have a query-
An attachment is sent in workflow to a person.
There are three reminders to the manager but he misses all and now when he looks into the workitem he can see the workflow but when he clicks on the link for an attachment(attachment is displayed as link) he is not able to open the page for attachment.
Can you tell me what may be problem or how to rectify the problem.
Please note that the workflow can still be seen in process but the reminders are missed, the only problem is with attachment link which cannot be opened by user.
we can see the attachment in R/3 but not on portal why is it only for 1 user.
Awaiting your response at earliest.
Regards,
AmeetHi,
Try out Tcode SWUI_VERIFY there are sample workflows which may help u to get the answer as I got the same from there.
Regards,
Ameet -
Workflow Attachment Issue after UTF8 conversion
I have custom worklow with an html attachment. It worked fine until UTF8 conversion is done. Now the attachment is missing from the email message at all.
Any suggestions you may have would be greatly appreciated. Thanks in advance!Default HTML Attachment
I am not sure if UTF8 conversion has anything to do with the HTML attachment missing. If you are on 11.5.9, the HTML attachment with the e-mail notification is driven by the Notification Preference that the user has. Following are the possible notification preferences that a user can select.
MAILHTML - HTML mail with attachments
MAILHTM2 - HTML mail
MAILATTH - Plain text mail with HTML attachments
MAILTEXT - Plain text mail
SUMMARY - Plain text summary mail
QUERY - Do not send me mail
SUMHTML - HTML summary mail
If the user has MAILHTM2, the default HTML attachments are not sent. You need to have MAILHTML to receive default HTML attachments.
Custom Attachment
If you had written your own PLSQL Document API to generate a HTML attachment to the notification, you will have to check if the web-based notification accessible from Self-Service is visible. Check the workflow definition if the Document Type attribute for the HTML attachment is still available in the DB and that the Attach Content check box is checked.
Hope this helps
Vijay -
Workflow attached document name
i upload a document in portal with workflow. the other user opens worklist that has a attached document. if the user want to download the file , can't see the name of file.
for example : i upload this file. (newtext.doc) and the other user download the file like that name (mis_attached.doc) .
i want to download the file as a orginal name. but i could not. pls help urgent.if we add this codes in loop we can easily the name of document when we download the file.
owa_util.mime_header(r1.mime_type,false);
htp.p('Content-disposition: filename='||substr(v_filename, instr(v_filename,'/')+1));
owa_util.http_header_close; -
Hi All,
I have a situation, SPEmailEventReceiver and WorkFlow is attached to same library, WorkFlow is configured to run after item is updated, but soon as the email is received in library the workflow
is getting triggered, We have a action to create folder with subject and date and put the attachment with the date folder in SPEmailEventReceiver e.g: once a mail is received in library the SPEmailEventReceiver will create a folder with Subject and then Folder
with Date and then put the attachment in the date folder so hierarchy will be subject folder/Date folder/attachment
I have tried to alter the SquenceNumber attribute in Feature Element file to 1 and make the Synchronization as synchronous but no luck.Hi,
Here are some articles for your reference:
Programmatically creating Folders within SharePoint List
http://www.mindfiresolutions.com/Programmatically-creating-Folders-within-SharePoint-List-487.php
How to use SPEmailEventReceiver?
http://kkryczka.wordpress.com/2010/11/05/how-to-use-spemaileventreceiver/
Attachments disappear with custom email event handler
http://blogs.msdn.com/b/malag/archive/2009/05/13/attachments-disappear-with-custom-email-event-handler.aspx?PageIndex=2
Thanks,
Dennis Guo
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Dennis Guo
TechNet Community Support -
How to improve the performance of the attached query, Please help
Hi,
How to improve performance of the below query, Please help. also attached explain plan -
SELECT Camp.Id,
rCam.AccountKey,
Camp.Id,
CamBilling.Cpm,
CamBilling.Cpc,
CamBilling.FlatRate,
Camp.CampaignKey,
Camp.AccountKey,
CamBilling.billoncontractedamount,
(SUM(rCam.Impressions) * 0.001 + SUM(rCam.Clickthrus)) AS GR,
rCam.AccountKey as AccountKey
FROM Campaign Camp, rCamSit rCam, CamBilling, Site xSite
WHERE Camp.AccountKey = rCam.AccountKey
AND Camp.AvCampaignKey = rCam.AvCampaignKey
AND Camp.AccountKey = CamBilling.AccountKey
AND Camp.CampaignKey = CamBilling.CampaignKey
AND rCam.AccountKey = xSite.AccountKey
AND rCam.AvSiteKey = xSite.AvSiteKey
AND rCam.RmWhen BETWEEN to_date('01-01-2009', 'DD-MM-YYYY') and
to_date('01-01-2011', 'DD-MM-YYYY')
GROUP By rCam.AccountKey,
Camp.Id,
CamBilling.Cpm,
CamBilling.Cpc,
CamBilling.FlatRate,
Camp.CampaignKey,
Camp.AccountKey,
CamBilling.billoncontractedamount
Explain Plan :-
Description Object_owner Object_name Cost Cardinality Bytes
SELECT STATEMENT, GOAL = ALL_ROWS 14 1 13
SORT AGGREGATE 1 13
VIEW GEMINI_REPORTING 14 1 13
HASH GROUP BY 14 1 103
NESTED LOOPS 13 1 103
HASH JOIN 12 1 85
TABLE ACCESS BY INDEX ROWID GEMINI_REPORTING RCAMSIT 2 4 100
NESTED LOOPS 9 5 325
HASH JOIN 7 1 40
SORT UNIQUE 2 1 18
TABLE ACCESS BY INDEX ROWID GEMINI_PRIMARY SITE 2 1 18
INDEX RANGE SCAN GEMINI_PRIMARY SITE_I0 1 1
TABLE ACCESS FULL GEMINI_PRIMARY SITE 3 27 594
INDEX RANGE SCAN GEMINI_REPORTING RCAMSIT_I 1 1 5
TABLE ACCESS FULL GEMINI_PRIMARY CAMPAIGN 3 127 2540
TABLE ACCESS BY INDEX ROWID GEMINI_PRIMARY CAMBILLING 1 1 18
INDEX UNIQUE SCAN GEMINI_PRIMARY CAMBILLING_U1 0 1Hello,
This has really nothing to do with the Oracle Forms product.
Please, send the SQL or/and PL/SQL questions in the corresponding forums.
Francois -
How to improve performance of the attached query
Hi,
How to improve performance of the below query, Please help. also attached explain plan -
SELECT Camp.Id,
rCam.AccountKey,
Camp.Id,
CamBilling.Cpm,
CamBilling.Cpc,
CamBilling.FlatRate,
Camp.CampaignKey,
Camp.AccountKey,
CamBilling.billoncontractedamount,
(SUM(rCam.Impressions) * 0.001 + SUM(rCam.Clickthrus)) AS GR,
rCam.AccountKey as AccountKey
FROM Campaign Camp, rCamSit rCam, CamBilling, Site xSite
WHERE Camp.AccountKey = rCam.AccountKey
AND Camp.AvCampaignKey = rCam.AvCampaignKey
AND Camp.AccountKey = CamBilling.AccountKey
AND Camp.CampaignKey = CamBilling.CampaignKey
AND rCam.AccountKey = xSite.AccountKey
AND rCam.AvSiteKey = xSite.AvSiteKey
AND rCam.RmWhen BETWEEN to_date('01-01-2009', 'DD-MM-YYYY') and
to_date('01-01-2011', 'DD-MM-YYYY')
GROUP By rCam.AccountKey,
Camp.Id,
CamBilling.Cpm,
CamBilling.Cpc,
CamBilling.FlatRate,
Camp.CampaignKey,
Camp.AccountKey,
CamBilling.billoncontractedamount
Explain Plan :-
Description Object_owner Object_name Cost Cardinality Bytes
SELECT STATEMENT, GOAL = ALL_ROWS 14 1 13
SORT AGGREGATE 1 13
VIEW GEMINI_REPORTING 14 1 13
HASH GROUP BY 14 1 103
NESTED LOOPS 13 1 103
HASH JOIN 12 1 85
TABLE ACCESS BY INDEX ROWID GEMINI_REPORTING RCAMSIT 2 4 100
NESTED LOOPS 9 5 325
HASH JOIN 7 1 40
SORT UNIQUE 2 1 18
TABLE ACCESS BY INDEX ROWID GEMINI_PRIMARY SITE 2 1 18
INDEX RANGE SCAN GEMINI_PRIMARY SITE_I0 1 1
TABLE ACCESS FULL GEMINI_PRIMARY SITE 3 27 594
INDEX RANGE SCAN GEMINI_REPORTING RCAMSIT_I 1 1 5
TABLE ACCESS FULL GEMINI_PRIMARY CAMPAIGN 3 127 2540
TABLE ACCESS BY INDEX ROWID GEMINI_PRIMARY CAMBILLING 1 1 18
INDEX UNIQUE SCAN GEMINI_PRIMARY CAMBILLING_U1 0 1duplicate thread..
How to improve performance of attached query -
How to improve performance of attached query
Hi,
How to improve performance of the below query, Please help. also attached explain plan -
SELECT Camp.Id,
rCam.AccountKey,
Camp.Id,
CamBilling.Cpm,
CamBilling.Cpc,
CamBilling.FlatRate,
Camp.CampaignKey,
Camp.AccountKey,
CamBilling.billoncontractedamount,
(SUM(rCam.Impressions) * 0.001 + SUM(rCam.Clickthrus)) AS GR,
rCam.AccountKey as AccountKey
FROM Campaign Camp, rCamSit rCam, CamBilling, Site xSite
WHERE Camp.AccountKey = rCam.AccountKey
AND Camp.AvCampaignKey = rCam.AvCampaignKey
AND Camp.AccountKey = CamBilling.AccountKey
AND Camp.CampaignKey = CamBilling.CampaignKey
AND rCam.AccountKey = xSite.AccountKey
AND rCam.AvSiteKey = xSite.AvSiteKey
AND rCam.RmWhen BETWEEN to_date('01-01-2009', 'DD-MM-YYYY') and
to_date('01-01-2011', 'DD-MM-YYYY')
GROUP By rCam.AccountKey,
Camp.Id,
CamBilling.Cpm,
CamBilling.Cpc,
CamBilling.FlatRate,
Camp.CampaignKey,
Camp.AccountKey,
CamBilling.billoncontractedamount
Explain Plan :-
Description Object_owner Object_name Cost Cardinality Bytes
SELECT STATEMENT, GOAL = ALL_ROWS 14 1 13
SORT AGGREGATE 1 13
VIEW GEMINI_REPORTING 14 1 13
HASH GROUP BY 14 1 103
NESTED LOOPS 13 1 103
HASH JOIN 12 1 85
TABLE ACCESS BY INDEX ROWID GEMINI_REPORTING RCAMSIT 2 4 100
NESTED LOOPS 9 5 325
HASH JOIN 7 1 40
SORT UNIQUE 2 1 18
TABLE ACCESS BY INDEX ROWID GEMINI_PRIMARY SITE 2 1 18
INDEX RANGE SCAN GEMINI_PRIMARY SITE_I0 1 1
TABLE ACCESS FULL GEMINI_PRIMARY SITE 3 27 594
INDEX RANGE SCAN GEMINI_REPORTING RCAMSIT_I 1 1 5
TABLE ACCESS FULL GEMINI_PRIMARY CAMPAIGN 3 127 2540
TABLE ACCESS BY INDEX ROWID GEMINI_PRIMARY CAMBILLING 1 1 18
INDEX UNIQUE SCAN GEMINI_PRIMARY CAMBILLING_U1 0 1duplicate thread..
How to improve performance of attached query -
Attach Query Report to Purchase Report.
Hello Xperts....
I have executed a query report regarding purchase orders. Now I want to attach that query report in my purchase Reports(Modules -> Purchase A/P -> Purchase Reports) but not in My Menu.
Plz reply...Thanx..Hi Papil.....
You can not only import the query report on Main Menu Purchase report.
If you have SAP 8.8 then you have to create a Crystal report and then from Administration> Setup> General--> Report and layout --> Import.
Regards,
Rahul -
Web Dynpro ABAP Workflow Attachment Problem in UWL
Hi,
I am writing a custom application.
A workflow is supposed to start by a Web Dynpro ABAP Application.
The user can attach files to it.
A superior is supposed to review the files and either approve or reject the request.
I tried the following in Web Ddynpro ABAP:
CALL FUNCTION 'EWW_WORKFLOW_START'
EXPORTING
X_TASK = 'WS90000074'
IMPORTING
Y_WORKFLOW_ID = lv_WF_ID
TABLES
X_CONTAINER = lv_IT_CONTAINER
EXCEPTIONS
then followed by:
CALL FUNCTION 'SAP_WAPI_ATTACHMENT_ADD'
EXPORTING
WORKITEM_ID = lv_wf_id
ATT_HEADER = lv_swr_att_header
ATT_BIN = Item_FILENAMEATTACHED
DOCUMENT_OWNER = SY-UNAME
LANGUAGE = SY-LANGU
IMPORTING
ATT_ID = lv_swr_att_id
The Workflow has onlay one user decision step and one notification Step.
In the user decision step, there is a binding from ATTACHOBJECTS to the task.
But, in the log, you can see the attachment in the Workflow Container of the workflow instance, but you don't see it in the task (neither Inbox nor UWL)
Anyone has a suggestion?You need to update all task items one by one with the attachment - you need to identify all tasks and attach it to each one
-
SPD List serial WorkFlow attach Dynamic approvers, Document Sets attached to List
SPD Workflow:
System : SharePoint 2013
1. Approver's should be fetched from a people picker item of another List based on condition (Filter with department)
2. Workflow should be serial & approvers should be dynamic from above list item people picker based on department condition
3. As it is a List workflow i.e., Custom List is associated to Workflow but I need to upload a document set as a List item
4. When ever user creates a New List Item, Initiation page should allow him to attach multiple documents, while uploading first document into list from Intiation page, it should create a unique document set with a sequence number and other documents
should be added in the same document set & that document set should be attached to list item.
5. Action from Email should reflect the workflow approval.
/*below point is not Important to achieve in SPD*/
6. I would like to create a separate List or New List after 1000 document sets are uploaded to workflow list & workflow should be associated automatically when a New List is created
*I know how to achieve It from server or client side coding..
suggest optimized way to achieve above points in SPD 2013 & OOB only?
VHi,
I had tested again with multi workflows which are assigned to three users, they all worked well.
At first, the workflow would send an email to the first approver, when the first approver approved; then send an email to the second approver, when the second approver approved; then send an email to the third approver.
When the third approver approved, the workflow would completed, then the assigner who started the workflow would receive an email that the workflow has been completed.
You can create a simple workflow to check whether it works.
Such as you can just only use the “Start Approval Process” one action to check whether it works.
Did the issue occur in other lists or libraries?
You can create a new list or library, then create an approval workflow to check whether it works.
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Workflow+attachment+office document of workitem to outlook
Hi,
in first level approver has approve in his SAP-inbox. before that he has created attachement for that workitem for the reson of approval.
after that he has approved in the decision.
after that i want send a mail . i am using a function module 'SO_NEW_DOCUMENT_ATT_SEND_API1' for sending mail.
how can i send attachment in this type of case.
pls give me your valuable reply.
Thanks
Sankar.In your Workflow Activity in the task screen, there is an option called 'Confirm end of processing'. Check this, and each time the task is completed by the agent, he gets a popup box where there is an option to enter the attachement. This attachment will be send to the agent along with the work item.
Regards,
Anish Thomas
Reward points if found helpful -
Adobe interactive form and workflow attachment
I use an ABAP webdynpro to trigger a WF. The WD is an interactive adobe form step for users to enter data. Then before triggering the WF, I would like to save the form as an PDF form so I can send it to the subsequent work item processors. Is this possible? If yes, what do I need to do to make this happen.
Thanks.Hi Raja,
If i understand well the only way to have Adboe forms in ABAP Wrokflow is to use ISR , that's right ?
Here's my scenario.
An User trigger with an abap program a Specific flow , then i send several mails with Adobe forms inside . Thoses forms are send back by mail and process by the abap system .
My problem is to make sure that all forms have been process and for this i had to develop a specific program in abap in order to check it.
So Is it possible to define a SAP Abap workflow where on each workitem i will add as attachment my pdf form . Then i can used standard Notification and Standard functionnality of reminding of ABAP Workflow.
Best regards.
Bertrand
Maybe you are looking for
-
I can transfer non Itunes files to and from the Ipod. After I synchronise to ITunes, the non Itunes data files are deleted. How can I over come this. How can I keep the files in my Ipod without deleting them?
-
I have I Phone 4... recently upgraded software.... I can create albums off my camera roll.....The problem is that I cant deleate the photo from the roll without deleating it from everwhere... EX.... albums just created.... FB... and anywhere else tha
-
Hi, When I am extracting the SIS Reports like MCTA, VC/2 etcu2026these reports are showing the values with out Tax (CST/VAT). How can I see the same Reports with Tax (including Tax)? Price, Excise Duties are including but not Taxes. (Net value). Plz
-
Sms texts are being sent as blank messages
My mac is running Yosemite and my iPhone 6 is running ios 8.1. SMS messaging is linked but all sms texts sent from my mac are recieved as blank texts. Any solutions?
-
Resize multiple imported images simultaneously
Is there anyway to resize multiple images simultaneously? Currently, I select 8 - 12 jpegs and drag them into fireworks, then resize each one individually. Is there anyway to streamline this process? I tried selecting all of the jpegs at once and fir