Workflow : Travel request attachment
HI,
I have a question regarding workflow. When a traveler fills a travel request using TRIP and saves it, workflow starts. The request goes to manager for approval. The problem is that when the manager clicks the attachment, it opens with PR05 not with TRIP.
Any solution please ?
Thanks for the reply.
Yes, we may display all information which we need. I was just wondering if there is a way to attach the travel request (trip)while processing Request approval and later attach expense statement(pr05) when the expenses are entered. Just want to make sure if that is possible or not.
Regards!
Similar Messages
-
Hi experts,
PFA. How can I include the browsed atachment into the work item.
Please suggest a way. Right now I am using Using Workflow Programming Exit for Travel Expense Approval Workflow: Copy attachments of travel expense attachments to workitem
But this attachment is not coming into the approver's worklist.
Thanks,
SaquibHi Ibrahim,
In an activity step the below code; I think is responsible for sending mail because other than this no mail trigrring activity is used. I am not sure because when the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' is commented then also mail is trigerring.
Pl. refer code and guide me:
begin_method zswxgetpersrespcc changing container.
DATA:
pernr TYPE bapiempl-pernr,
trip TYPE bapitrip-tripno,
zauto_appr TYPE ztrv_autoapp-auto_appr,
actortab LIKE swhactor OCCURS 0,
accontainer LIKE swcont OCCURS 0,
tripactivitytype TYPE ftpt_req_head-activity_type,
appr_status TYPE antrg,
result_tab LIKE swhactor OCCURS 0 WITH HEADER LINE,
selftravel TYPE ptrv_head-hrgio,
app_lvl TYPE ptrv_head-st_trg_typ,
selfbudgetholder TYPE bapitrip-reportflag,
costcenter TYPE bapitrvcot-costcenter,
wbs TYPE bapitrvcot-wbs_elemt,
exit_flag TYPE char1.
swc_get_element container 'Pernr' pernr.
swc_get_element container 'Trip' trip.
swc_get_table container 'ActorTab' actortab.
swc_get_table container 'AcContainer' accontainer.
swc_get_element container 'APP_LVL' app_lvl.
swc_get_element container 'WBS' wbs.
swc_get_element container 'CostCenter' costcenter.
*** Code for Checking of Self Approval - KZTKT
**** TRIPACTIVITYTYPE TYPE FTPT_REQ_HEAD-ACTIVITY_TYPE,
SELECT SINGLE activity_type FROM ftpt_req_head INTO tripactivitytype
WHERE pernr = pernr
AND reinr = trip.
CHECK sy-subrc = 0.
swc_set_element container 'TripActivityType' tripactivitytype.
* Business Travel-International / Training Travel-International
* / Team Building Travel
IF tripactivitytype NE 'B'
AND tripactivitytype NE 'K'
AND tripactivitytype NE 'I'.
* Single level approver
app_lvl = 3. "Final approver
ENDIF.
*SELECT SINGLE kostl FROM ftpt_req_account INTO costcenter
* WHERE pernr = pernr
* AND reinr = trip.
*CHECK sy-subrc = 0.
*swc_set_element container 'CostCenter' costcenter.
SELECT SINGLE hrgio FROM ptrv_head INTO selftravel
WHERE pernr = pernr
AND reinr = trip.
CHECK sy-subrc = 0.
swc_set_element container 'SelfTravel' selftravel.
SELECT SINGLE auto_appr FROM ztrv_autoapp INTO zauto_appr
WHERE pernr = pernr AND
plan_activity_ty = tripactivitytype .
IF selftravel = ' ' AND zauto_appr = 'X'.
* Single level approver
app_lvl = 3. "Final approver
selfbudgetholder = 'X'.
exit_flag = 'X'.
CALL FUNCTION 'BAPI_TRIP_APPROVE'
EXPORTING
employeenumber = pernr
tripnumber = trip
periodnumber = '000'
IMPORTING
* RETURN =
status_new = appr_status.
DATA: reimbtyp TYPE zhrcr_approver-reimb_typ,
apprvllvl TYPE zhrcr_approver-apprvl_lvl,
return LIKE bapiret2,
agent LIKE zess_agent OCCURS 0.
swc_get_element container 'Pernr' pernr.
swc_get_element container 'ReimbTyp' reimbtyp.
swc_get_element container 'ApprvlLvl' apprvllvl.
IF sy-subrc <> 0.
MOVE 1 TO apprvllvl.
ENDIF.
MOVE 'TVDS' TO reimbtyp.
swc_get_table container 'Agent' agent.
CALL FUNCTION 'ZESS_GET_APPROVER'
EXPORTING
pernr = pernr
reimb_typ = reimbtyp
apprvl_lvl = apprvllvl
IMPORTING
return = return
TABLES
agent = agent
EXCEPTIONS
OTHERS = 01.
CASE sy-subrc.
WHEN 0. " OK
WHEN OTHERS. " to be implemented
ENDCASE.
DATA: iemployeenumber TYPE bapiempl-pernr,
itripnumber TYPE bapitrip-tripno,
iperiodnumber TYPE bapitrvxxx-period,
is_request TYPE ftpt_request-plan_request,
* AGENT TYPE TABLE OF ZESS_AGENT ,
wa_agent LIKE LINE OF agent,
sent_to_all TYPE sonv-flag,
et_return TYPE bapirettab,
mailtext TYPE solisti1-line OCCURS 0 WITH HEADER LINE.
*---TEMP DATA DEC
DATA: objpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE,
objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE,
objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE,
objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE,
e_pdf_form TYPE fpcontent,
text TYPE solisti1-line,
zusrid TYPE pa0105-usrid,
zagent(14) TYPE c,
somlreci1 TYPE STANDARD TABLE OF somlreci1 WITH HEADER LINE,
lines LIKE sy-tabix,
document_data LIKE sodocchgi1,
travelername TYPE pa0001-ename.
swc_get_element container 'IEmployeenumber' iemployeenumber.
swc_get_element container 'ITripnumber' itripnumber.
swc_get_element container 'IPeriodnumber' iperiodnumber.
swc_get_element container 'is_request' is_request.
swc_get_table container 'Mailtext' mailtext.
MOVE '000' TO iperiodnumber.
MOVE 'R' TO is_request.
CALL FUNCTION 'PTRM_WEB_FORM_PDF_GET'
EXPORTING
i_employeenumber = pernr
i_tripnumber = trip
i_periodnumber = iperiodnumber
i_trip_component = is_request
i_trip_data_source = 'DB'
i_display_form = space
i_language = sy-langu
IMPORTING
e_pdf_form = e_pdf_form
TABLES
et_return = et_return
EXCEPTIONS
OTHERS = 01.
IF sy-subrc <> 0.
swc_set_element container 'ET_RETURN' et_return.
ELSE.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = e_pdf_form
append_to_table = ' '
TABLES
binary_tab = objbin.
CALL FUNCTION 'CATS_PERNR_NAME'
EXPORTING
beg = sy-datum
pnr = pernr
IMPORTING
name = travelername.
IF is_request = 'R'.
CONCATENATE 'Travel request ' trip 'of' travelername
INTO text SEPARATED BY ' ' .
ELSE.
CONCATENATE 'Travel expense ' trip 'of' travelername
INTO text SEPARATED BY ' '.
ENDIF.
SELECT SINGLE usrid FROM pa0105 INTO zusrid WHERE usrty = '0001' AND
pernr = pernr.
CONCATENATE 'US' zusrid INTO zagent.
wa_agent-agent = zagent.
APPEND wa_agent TO agent.
*Read agents
LOOP AT agent INTO wa_agent.
somlreci1-receiver = wa_agent-agent.
somlreci1-rec_type = 'G'.
APPEND somlreci1.
ENDLOOP.
LOOP AT mailtext.
objtxt = mailtext.
APPEND objtxt.
ENDLOOP.
CLEAR: objtxt.
APPEND objtxt.
objtxt = 'This is an SAP generated message.Please do not reply'.
APPEND objtxt.
DESCRIBE TABLE objtxt LINES lines.
document_data-obj_name = 'Travel'.
document_data-obj_descr = text.
document_data-obj_langu = sy-langu.
document_data-doc_size = ( lines ).
CLEAR objpack-transf_bin.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = lines.
objpack-doc_type = 'RAW'.
APPEND objpack.
CLEAR lines.
DESCRIBE TABLE objbin LINES lines.
CONCATENATE text '.pdf' INTO objhead . APPEND objhead.
* Creating the entry for the compres
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 1.
objpack-body_start = 1.
objpack-body_num = lines.
objpack-doc_type = 'pdf'.
objpack-obj_name = 'ATTACHMENT'.
objpack-obj_descr = text.
objpack-doc_size = lines * 255.
APPEND objpack.
CHECK somlreci1[] IS NOT INITIAL.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = document_data
put_in_outbox = ' '
commit_work = 'X'
IMPORTING
sent_to_all = sent_to_all
* NEW_OBJECT_ID =
TABLES
packing_list = objpack
object_header = objhead
contents_bin = objbin
contents_txt = objtxt
* CONTENTS_HEX =
* OBJECT_PARA =
* OBJECT_PARB =
receivers = somlreci1
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.
swc_set_element container 'SENT_TO_ALL' sent_to_all.
ENDIF.
* END OF PGM FOR AUTO APPROVAL & SENDING MAILS TO TRAVEL DESK.
ELSE.
CALL FUNCTION 'ZTR_GET_PERS_RESP_CC' "'ZSWX_GET_PERS_RESP_CC'
EXPORTING
pernr = pernr
trip = trip
* IMPORTING
* selfbudgetholder = selfbudgetholder
TABLES
actor_tab = actortab
ac_container = accontainer
EXCEPTIONS
nobody_found = 9001"Amit_Error_exception never get raised 10.02.09
OTHERS = 01.
CASE sy-subrc.
WHEN 0. " OK
WHEN 9001. " NOBODY_FOUND
exit_return 9001 sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
WHEN OTHERS. " to be implemented
ENDCASE.
ENDIF.
*---AMIT>10.02.09 ERROR HANDELING WHEN COST OBJ USER RESP NOT FOUND
*IF ACTORTAB[] IS INITIAL.
* EXIT_RETURN 9001 'No ' 'agent ' 'found' '!!!'.
*ENDIF.
*---AMIT<10.02.09 ERROR HANDELING WHEN COST OBJ USER RESP NOT FOUND
swc_set_table container 'ActorTab' actortab.
swc_set_table container 'AcContainer' accontainer.
swc_set_element container 'SELFBUDGETHOLDER' selfbudgetholder.
swc_set_element container 'APP_LVL' app_lvl.
swc_set_element container 'WBS' wbs.
swc_set_element container 'CostCenter' costcenter.
swc_set_element container 'EXIT_FLAG' exit_flag.
end_method. -
Workflow and POWL integration for Travel Request / Approval
HI,
We are on EHP7 and using POWL for different kind of Approvals.
POWL is working good for Leave Approval and we have used Workflow Task ID as : TS12300097 / TS12300116, and all leave request appearing in POWL for manager and approving them.
Now we have to use POWL for Travel Request / Travel Expense approval and need to know what Task IDs I should use to configure this under SPRO.
Few tabs / links created like Travel Req Approval / Expense Approval / Claim Approval in POWL and need to show entries in respective tabs.
ThanksHI
Is it required to run FPB_MAINTAIN_PERS_S / FPB_MAINTAIN_PERS_M to display Travel entries in POWL screen.
2) Is it required to keep entries under "Assign Task IDs to POWL Types" in SPRO ???
ex : MANAGER_MSS_INBOX MSS_POWL_LEA_APPROVAL TS12300097
I don;t see any difference in terms of functionality even If i delete above entry, may i know the necessity of having those entries ?
Thanks -
Functional Specification for Travel Request Workflow
Dear All,
EHP6 and 7.3
The standard travel request workflow( WS20000050) is not supporting for my business process.
So we are developing custom Workflow.
I want write Functional specification.
Please provide some information to write functional specification for Travel request.
Advance thanks.............
Regards
SomuAre you kidding ?
Do you want us to do your work ? ^^ -
How to configure Webdynpro for ABAP Launch for Travel Request workflow UWL
Hello,
We are on SAP ECC 6 EHP4, SAP Netweaver 7.01 SP5, for portal BP1.41. When we are running travel request in this new Webdynpro for ABAP in UWL it will lead from an attachment to PR05 trx. I would think that it would gve another screen where the manager can check a travel request. Is the standard SAP solution leading to this trx. PR05? We have tried to customize the task 20000189 in SWFVISU but it doesn't give us any results.
I would appreciate if you can give me an advice whether SAP standard solution will lead to PR05 or is there any other options what we haven't discovered yet. Otherwise we have to start customize it.
Regards, PaiviHi,
Please follow the below configuration steps for ABAP proxy:
ABAP Proxy configuration:
/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
Thnx
Chirag -
Attatch travel request (TP04) in workflow
Hi friends,
Is there any way to attatch travel request(TP04) instead of expense report (PR05) in workflow when the request is forwarded for approval.
Please help..... Thanks!Looping in SPD workflows is tricky. To create complex workflows you can break them down into a set of simpler workflows. For looping you will typically create "workflow A" that changes a field that then triggers "workflow B". You might create a typical approval
workflow that walks through the manager approval. It changes a field that then triggers the HR workflow(s).
The Workflow Designer is displayed when you edit or create a new workflow. In the left navigation click Workflows and then in the ribbon click one of the new workflow options (List or Reusable (Content Type)).
Mike Smith TechTrainingNotes.blogspot.com
Books:
SharePoint 2007 2010 Customization for the Site Owner,
SharePoint 2010 Security for the Site Owner -
Start a workflow when a trip/travel request is created
Hi all ,
I wanted my workflows to start whenever a trip or travel request(Tcode: TRIP/PR05) is created .
Can anybody suggest me any settings to do it ???
Thanks ,
Sonu.Hi Sonu,
Please let us know whether it is a standard workflow or customised one. Because both has different steps to follow.
If it is a standard then Implementation is quite easy. Broadly you have to configure event and do agent assignment in standard workflows.
I am not sure but I think Business Object related to travel management is BUS2035 and event is created.
Regards,
Deepak -
How I use standar Workflow "Approve Travel Request"?
Hi,
I implemented in ESS the "trips and Expenses" option run correctly, but I dont know how I use(or active) workflow (when section in IMG for example)
I found the link
http://help.sap.com/saphelp_erp60_sp/helpdata/en/04/928bc146f311d189470000e829fbbd/content.htm
but I dont know web, please excuse me if the question is beginner
thanks for your posts and helps
Ivanhi Arghadip and Any
I reviewed the inbox in sender of the travel request
http://img28.imageshack.us/img28/3489/inbox.jpg
I entered log the message and workflow
http://img175.imageshack.us/img175/5951/workflowlogtripnoagents.jpg
It shows message "no agents"
http://img198.imageshack.us/img198/6858/workflowtrip.jpg
http://img208.imageshack.us/img208/853/workflowlogtrip.jpg (View of the workflow)
Sometime ago in my SAP system implemented the workflow "Leave Request" (implementation is succesful)
http://img411.imageshack.us/img411/7945/workflowleave.jpg (Inbox the sender of the leave request)
http://img514.imageshack.us/img514/8268/workflowleaveagents.jpg (the leave requests included agents)
sometimes ago, In my sap systeme implemented the "leave request", at the beginning of the implementation required this action:
<i><b>
To copy the standard workflow, go to transaction PFTC.
Select the task type u201CWorkflow templateu201D and enter the workflow number in the task number. Click on u201CCopy tasku201D.
WS12300111
</b></i>
I can apply the same in my travel request? how?
in my Agent grid in the workflow of "Travel Request" shows agent WF-batch
http://img638.imageshack.us/img638/8432/agentswf.jpg
In case of the "leave request" shows wf-batch and Manager (Quiroz) definided en the PPOME
http://img532.imageshack.us/img532/4/agentswfleaverequest.jpg
How I use the workflow template? (in my case is WS200000050)
thanks your post and help
Ivan -
I/O error occured when to create attachment at travel request & claim
Hi,
Anyone here having a problem when using travel request & claim, then create attachment, there is an I/O Error dialog box appear? What cause of this error occurred?
Thanks
HafizCan you please let us know in which format you attach document and also mention where you can attaching document from portal or using some tcode in R3?.
AK -
I/O error when trying create attachment on travel request & claim.
Hi,
Anyone here having a problem when using travel request & claim, then create attachment, there is an I/O Error dialog box appear? What cause of this error occurred?
Thanks
HafizHi
I have exactly this error. Do you have a solution for this?
Cheers,
Jacob -
ESS Travel Request Workflow issue.
Hello All,
I have copied Standard Workflow WS20000050. and using this Workflow for ESS.
when Approver Send it to Initiator for Changes .
when initiator want t do change in ESS by Executing Workitem.
there is no any Button for Save the Changes. it is Only showing 'Approve' button .
is ther is any Solution for this.
Please revert back to me.
Thank You.i suspected if manager can actually change original travel request submitted by Employee.... and guess what , i was right about it.
http://help.sap.com/saphelp_erp60/helpdata/en/d5/202038541ec006e10000009b38f8cf/frameset.htm
Standard service only allows manager to approve/reject with comments..
Hope this helps,
Cheers -
Travel Request Approval Scenario via Workflow does not trigger
Hi guys,
System Information: SAP ECC 6.0 EHP4 / Using WDA-Scenarios on Portal NW 7.01.
I'm having trouble understanding/implementing the approval scenario of the Travel Request via Workflow/UWL. POWL isn't usable for us as it isn't flexible enough to process the complex agent assignment rules for the respective approver our (momentarily..) requirements 'dictate' ...
What I did so far:
I copied the Workflow Template 200000040 to a custom template (since I'll have to alter it) and activated the Event of Creation for BUS2089. Thus, in SWE2, the respective entry for BUS2089 for the event CREATED has been set by the system. All good so far. When I create a TRIP via PR05 (we are public sector), the event for BUS2089 gets fired in SAPMP56T and the Workflow gets triggered; works out well. However, when I post a travel request in Portal (FITE_REQUEST), the workflow is not getting triggered. I searched for information or similar questions on the forum but didn't find anything. Neither did I find a concrete clue in the View Containers FITE_VC_* etc..
Could anyone assist me with this? I'm sure I'm missing something very basic here.... -_-
Bottom line:
Why is my workflow not getting triggered from creating travel requests via FITE_REQUEST?
Cheers, LukasSWE2 linkage is activated for my Workflow number (I didn't do it by hand, it's set by the system since I activated the event in my workflowtemplate --> this way actually no inconsistencies can happen).
SWDD Tests are successful and the Workflow is working well in general. That's why I pointed out in my previous post that the process is working fine when initiated via PR05.
EDIT: Or maybe somebody knows the part in coding FITV_FPM/FITE_VC* where the workflow should be triggered? It's freaking unfindable, I've been debugging for hours. >:-(
EDIT: Debugged the entire WDA Frmaework for like five hours...feeling dead inside...someone please tell me from where the workflow gets triggered when saving travel request from portal -_-....
Edited by: Lukas Weigelt on Dec 5, 2011 2:55 PM
Edited by: Lukas Weigelt on Dec 5, 2011 7:14 PM -
Attach document to travel requests
We have a business requirement to attach detail documents to a travel request. The attached document is the proposed iterinary from the travel agency that shows estimated costs compared to lowest available costs, etc.
In transaction PR05 (create / update travel expense), we have the function to attach detail documents, but not in transaction TRIP (create / update travel request).
Any insight on how we can attach detail documents to a travel request will be much appreciated.Hi Maytrang
Have a Nice Day
Could u plz tell me how can we attach document in T.Code PR05.
Is this funcallity also available when we link travel management to ESS.
Plz help
Thanks in advance
Deepak GArg
Mob 9213784161 -
Travel request created in ESS is not coming in MSS
Hi All
I have created a travel request which is not coming through UWL to MSS.
I have activated workflow WS20000050 in R/3 . Also requests are coming PRAP transaction.
Please help.
Thanks
RaktimHi ....
Have you done the Roll up ?
Since aggregates are there on that cube....until and unless you do the roll up that request will not be available for Reporting...
Regards,
Debjani.... -
Error while displaying Travel request form (ABAP WD :FITV_TRIP_FORM )
Hi
When I am trying to create a travel request form , and then trying to display form its throwing an error
"The following error text was processed in the system ECD : Error in module RSQL of the database interface".
The error occurred on the application server mtserpdev_ECD_00 and in the work process 0 .
Kindly suggest as form "FITV_TRIP_FORM" is already attached via feature . Am I missing some config or
Is it a issue of patch. (Currently we are at EHP 4 , and all the applications inlcuding FITV_TRIP_FORM are on WD ABAP).
Thanks
AbhayHave you done the TRVFE feature configuration and made sure if this form exists in the system.
Regards,
Divya
Maybe you are looking for
-
Cannot see XI receiver CC in monitoring
Hi, I cannot see XI receiver CC on the communication channel monitoring. I understand it doesnt reside on ABAP stack and should be listed in the list of CC. All cache refreshes are done FYI. Venkat.
-
We just bought a used ipod generation 3 and we are trying to download some games and every game requires the update of 4.3. and ours is at 4.2.1 but it tells us it is up to date and how are you able to get this version?
-
ITunes option for "SYNCH" is not operable. Also, the "device" does not sho
iTunes option for "SYNCH" is not operable. Also, the "device" does not show up on the list as being connected, so I cannot sync any of the Ipods we have. I've updated, deleted and reinstalled iTunes and still not able to sync. The main menu that usua
-
Dear Experts, What are the standard reports availble in sap regarding the customers & suppliers foreign currency balances, i need report show me the customers & suppliers with there foreign currency balances, also i want ask if i can generate transla
-
Report field substibution on URL Redirect
I am using ApEx 2.0 I have a page with two report regions based on SQL queries, joined by a common column. The master region is read only and in detail region, I changed the attribute of one field to display as text. So, for example, the Master regio