Attachment in Travel Request

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,
Saquib

Hi 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.

Similar Messages

  • 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
    Hafiz

    Can 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
    Hafiz

    Hi
    I have exactly this error. Do you have a solution for this?
    Cheers,
    Jacob

  • 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!

  • 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

  • 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
    Abhay

    Have you done the TRVFE feature configuration and made sure if this form exists in the system.
    Regards,
    Divya

  • 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, Paivi

    Hi,
    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

  • Error while creating a Travel Request

    Hi All,
    EP 7,ESS/MSS 1.0
    We have a issue in Creating Travel Request in Portal.
    Once we fill all the required entries to create a travel request and click the review button it pops a message saying " Errors have been discovered when checking the Expense Report. Please correct them in order to proceed." .
    When i check the same in backend using the tcode- TRIP, we are able to create the travel request.
    Can some one tell me where we are going wrong and is there any configuration at backend to be done still.
    Thanks,
    NR

    Hi NR
    Ensure that all the variant are properly integrated between Travel & Expenses.
    Also, for testing, removing the integration and test if the pop-up comes back.
    If this helps, pl do reward.
    Thanks
    Narsimha

  • Error while creating Travel request

    Dear All,
    ESS 2005/SP6
        While creating travel request in I am getting following error
    "Errors have been discovered when checking the Expense Report. Please correct them in order to proceed."
    Regards,
    Kamal Rawal

    Hello Kamal
    Did you manage to resolve the issue in relation to "Errors have been discovered when checking the Expense Report."?
    Best Regards
    Roger Earle
    [email protected]

  • 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
    Raktim

    Hi ....
    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....

  • New field in Travel Request

    Hi friends,
    Happy new year to all,
    Here i am working with a enhancement in create travel request,i am able to add a new field but on saving the data i should add this field value with the standard table data.If Any one added a new field in travel request , Please let me know how to save the new field data with stadard data.i have checked with on_save method in comp control still i did not get a proper idea.
    Edited by: sudheer b on Jan 2, 2012 8:08 AM

    Hello Sudheer,
    I have had an experience of working on such requirement, the SAP Standard T&E module(provided you are using the same) stores data in cluster, if you are adding an additional field to the trip by adding it in the context node then you have to make some specific changes into a number of places, the problem is compounded because you would not be able to hold the custom fields value otside the trip webdynpro component, I would not be able to preempt the specific reuquirement of yours but in a nutshell you have to perform the folloing steps:
    1) capture the field value(say vendor of the expense line item) into a variable, after reading the context node, make sure that you extend all the context node and update the binding(if I remember correctly they are all interface nodes)
    2) save the custom field value(vendor of the expense line item, from the step 1) in some global area, this can be done in many ways, it all depends which option you perfer.
    3) Extend number of sap standard structures like for line item you have to extend PTRV_WEB_RECEIPTS_EXT, PTRV_UTIL_BELEG, PTRV_UTIL_BELEG  etc...etc...also you have to do an enhancement on the function module PTRA_UTIL_RECEIPTS_GET...there are some more function module & structure which depends on your requirement.
    4) extend the SAP Standard function module which saves a trip, there are many function modules which is called for the save.
    There would be number of structure enhancements and they would be kind of duplicating themself....hence I would recomend if you can figure out the number of custom fields you would need and assign all of them to a structure, once that is done, you can assign this structure to all the append structure of the standard tables and structure.
    I am sorry if I am replying you in a sketchy way...but to get the full picture I have to get ypur requirements first....do let me know if this doesn't help!!
    Thanks & Regards
    Abir Chakraborty

  • Change Travel Request Is Not Working

    Hi all,
    I am getting one error for that i need your help.
    I have created one  travel request ( I am using satandard ess application) , after
    creatting travel request i am able to view the created trip , but when i select the created
    trip and click on change button to change the request i am getting following error
    500   Internal Server Error
    SAP NetWeaver Application Server 7.00/Java AS 7.00
    *Failed to process *
    and in trace i got following error
    Full Message Text
    Exception occured during processing of Web Dynpro application sap.com/ess~tra/AllMyTrips.
    The causing exception is nested.
    [EXCEPTION]
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException
    at
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFC
    ModelClassExecutable.java:98)
    at com.sap.xss.ser.xssmenu.fc.MenuLinks.getServiceLink(MenuLinks.java:232)
    at
    com.sap.xss.ser.xssmenu.fc.wdp.InternalMenuLinks.getServiceLink(InternalMenuLinks.java:365)
    at com.sap.xss.ser.xssmenu.fc.FcXssMenu.getServiceLink(FcXssMenu.java:406)
    at
    com.sap.xss.ser.xssmenu.fc.wdp.InternalFcXssMenu.getServiceLink(InternalFcXssMenu.java:491)
    at
    com.sap.xss.ser.xssmenu.fc.FcXssMenuInterface.getServiceLink(FcXssMenuInterface.java:264)
    at
    com.sap.xss.ser.xssmenu.fc.wdp.InternalFcXssMenuInterface.getServiceLink(InternalFcXssMenuI
    nterface.java:429)
    at
    com.sap.xss.ser.xssmenu.fc.wdp.InternalFcXssMenuInterface$External.getServiceLink(InternalF
    cXssMenuInterface.java:586)
    at
    com.sap.pcuigp.xssutils.navi.FcNavigation.getNavigationTargetServiceWithKey1(FcNavigation.j
    ava:524)
    at
    com.sap.pcuigp.xssutils.navi.wdp.InternalFcNavigation.getNavigationTargetServiceWithKey1(In
    ternalFcNavigation.java:390)
    at
    com.sap.pcuigp.xssutils.navi.FcNavigationInterface.getNavigationTargetServiceWithKey1(FcNav
    igationInterface.java:271)
    at
    com.sap.pcuigp.xssutils.navi.wdp.InternalFcNavigationInterface.getNavigationTargetServiceWi
    thKey1(InternalFcNavigationInterface.java:182)
    at
    com.sap.pcuigp.xssutils.navi.wdp.InternalFcNavigationInterface$External.getNavigationTarget
    ServiceWithKey1(InternalFcNavigationInterface.java:314)
    at com.sap.xss.tra.fc.utils.FcTraUtils.startApplication(FcTraUtils.java:596)
    at
    com.sap.xss.tra.fc.utils.wdp.InternalFcTraUtils.startApplication(InternalFcTraUtils.java:32
    9)
    at
    com.sap.xss.tra.fc.utils.FcTraUtilsInterface.startApplication(FcTraUtilsInterface.java:334)
    at
    com.sap.xss.tra.fc.utils.wdp.InternalFcTraUtilsInterface.startApplication(InternalFcTraUtil
    sInterface.java:260)
    at
    com.sap.xss.tra.fc.utils.wdp.InternalFcTraUtilsInterface$External.startApplication(Internal
    FcTraUtilsInterface.java:489)
    at
    com.sap.xss.tra.vc.allmytrips.VcTraAllMyTrips.tripComponentCreate(VcTraAllMyTrips.java:518)
    at
    com.sap.xss.tra.vc.allmytrips.wdp.InternalVcTraAllMyTrips.tripComponentCreate(InternalVcTra
    AllMyTrips.java:438)
    at
    com.sap.xss.tra.vc.allmytrips.AllMyTrips.onActionCreateChangeExpRepFromRequest(AllMyTrips.j
    ava:444)
    at
    com.sap.xss.tra.vc.allmytrips.wdp.InternalAllMyTrips.wdInvokeEventHandler(InternalAllMyTrip
    s.java:628)
    at
    com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.
    java:87)
    at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
    at
    com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseMo
    del.java:420)
    at
    com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.j
    ava:132)
    at
    com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.jav
    a:335)
    at
    com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
    at
    com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSessio
    n.java:319)
    at
    com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(Clien
    tSession.java:733)
    at
    com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSessi
    on.java:668)
    at
    com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250
    at
    com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:1
    50)
    at
    com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHa
    ndle.java:73)
    at
    com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionIntern
    al(AbstractApplicationProxy.java:860)
    at
    com.sap.tc.webdynpro.portal.pb.impl.localwd.LocalApplicationProxy.sendDataAndProcessAction(
    LocalApplicationProxy.java:77)
    at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1299)
    at com.sap.portal.pb.PageBuilder.SendDataAndProcessAction(PageBuilder.java:326)
    at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:868)
    at
    com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseM
    odel.java:755)
    at
    com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel
    .java:717)
    at
    com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.j
    ava:136)
    at
    com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.jav
    a:335)
    at
    com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
    at
    com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSessio
    n.java:319)
    at
    com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(C
    lientSession.java:713)
    at
    com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSessi
    on.java:666)
    at
    com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250
    at
    com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:1
    50)
    at
    com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.j
    ava:62)
    at
    com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java
    :53)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java
    :401)
    at
    com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.j
    ava:266)
    at
    com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java
    :386)
    at
    com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java
    :364)
    at
    com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalize
    r.java:1039)
    at
    com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at
    com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.pr
    ocess(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(AccessController.java:219)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Caused by: com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFC_Fault_Exception: Fault
    name: SERVICEKEY_INVALID, fault text: SERVICEKEY_INVALID
    at java.lang.Class.newInstanceImpl(Native Method)
    at java.lang.Class.newInstance(Class.java:1275)
    at com.sap.aii.proxy.framework.core.JcoMarshaler.unmarshalException(JcoMarshaler.java:429)
    at com.sap.aii.proxy.framework.core.JcoProxy.send(JcoProxy.java:78)
    at
    com.sap.aii.proxy.framework.core.AbstractProxy$JcoProxyHelper.send(AbstractProxy.java:173)
    at com.sap.aii.proxy.framework.core.AbstractProxy.send$(AbstractProxy.java:141)
    at
    com.sap.pcuigp.xssutils.menu.model.MenuLinksModel.hrxss_Ser_Getservicelink(MenuLinksModel.j
    ava:237)
    at
    com.sap.pcuigp.xssutils.menu.model.Hrxss_Ser_Getservicelink_Input.doExecute(Hrxss_Ser_Getse
    rvicelink_Input.java:137)
    at
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFC
    ModelClassExecutable.java:92)
    ... 66 more

    Hi
    Check the return message from bapi,what's it showing??Before executing the bapi,put a breakpoint in r/3 system & check what values r getting passed to bapi..
    U can check this in transaction se37,go to ur function module & put external break point over there.
    OR
    Execute BAPI through SAP GUI. if its execute properly do the following steps.
    1. Do you have any mandatory input parameters?.
    (check are you setting mandatory input parameters properly)
    2. If they changed BAPI structure(data type) after model generation you have to model re-import model again.
    Thanks

  • Error when Display/Print my expense report,travel request and travel plan

    Hello experts,
    I had configurated the ADS and ESS successfully.We are using ESS and interactive form now.
    And we had developed some interactive form and they work fine .
    In page "My Trips and Expenses   " , there are 4 tabs " All My Trips","  My Travel Requests","  My Travel Plans " and " My Expense Reports " .
    When I selected one row of table and click button " Display/Print" , I got the error :
    com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: Failed to  USEPDF
         at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException.<init>(PDFDocumentRuntimeException.java:25)
         at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:419)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterApplicationModification(ClientApplication.java:1132)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.afterApplicationModification(ClientComponent.java:895)
    Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: pdfSource of InteractiveForm UI element should be populated with pdf binary content in USE_PDF mode
         at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:351)
         ... 48 more
    Is there any guys had met the problem ? Please give me some suggestions .
    Thank you !
    Best Regards,
    Louis

    Louis,
    can yo make sure that you are doing this "pdfSource of InteractiveForm UI element should be populated with pdf binary content in USE_PDF mode"
    check these links
    https://forums.sdn.sap.com/click.jspa?searchID=18701125&messageID=6070514
    https://forums.sdn.sap.com/click.jspa?searchID=18701125&messageID=6426445
    https://forums.sdn.sap.com/click.jspa?searchID=18701125&messageID=6323600
    Thanks
    Bala Duvvuri

  • ABAP Webdynpro component for travel request - customization

    Hi All,
    In EHP5 ESS Travel Management - Travel expense creation - I want to prevent users from raising the travel expense only after the travel request is approved.
    For this requirement  , ie to modify the FITV_POWL_TRIPS - In this component either i want to disbale the link create /change in travel expense colum  if the travel request is not approved or i want to give a error message on click of travel expense report if the corresponding travel request is not approve.
    If any one has done please let me know how this can be done . If with customising the code is there any way through spro config this can be controlled.
    Thanks
    Thanks & Regards
    Shyam

    You can use P_TRAVL authorisation check for the status field
    Read here
    http://help.sap.com/saphelp_46c/helpdata/en/b6/cda0db49e911d189060000e8322f96/content.htm
    Please kindly read the note 574467. We deliver the BADI
    FITV_PERSNO_AUTH_CHK empty and we provide a documentation on how
    this should work. In your case you should modify the BADI to check your
    multiple structural profile but on how to do this depends on your
    modification.

  • Error in creating a travel request

    Hi Experts,
    In portal i am trying to create a travel request but it is showing some 'Error during call of fuction module TRIP_WRITE_PERIO'.
    Checked this function module in ECC it is not an RFC function could it be the reason?
    I am new to EP could help me?
    Thanks in advance.

    Hi devika,
    Yes. The function module should be RFC enabled. Otherwise it will throw this error.
    Regards,
    Shyam.

Maybe you are looking for