Action of FileDownload

Hello
I have FileDownload UIElements on my view.
These elements are displayed dynamically.
For each FileDownload i have a file. These files i write into the context.
if i click on one filedownload i can't establish what element is select.
The download starts immediately.
But when the user click on one filedownload-element i must set the lead-selection on the right data and then the download can starts.
Is there a method or an event/action to catch? If there is a event/action how can i handle it?
Thanks for your help

Ok thats good.
But if i have a Word-Document as Xstring i can't read the file when it is downloaded.
what is the problem?
what is the mime-type of a zip file?
Edited by: Denis Müller on Feb 26, 2008 8:10 AM

Similar Messages

  • Please help me to connect ftp location

    Hi,
    I am trying to connect to a ftp location with below mentioned java code. but it is displaying below mentioned exception. my question is, why I am getting this exception? I am able to connect the ftp location through IE browser. but I am not able to connect the ftp location with Java code.
    Please suggest me the solution to solve the problem.
    Java code
    FTPClient ftpClient = new FTPClient();
    try{
    ftpClient.connect("ftp.sec.gov");
    ftpClient.login("anonymous", "password");
    ftpConnectionCount++;     
    catch (Exception e)
    e.printStackTrace();
    Exception displaying is :
    java.net.ConnectException: Connection timed out: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at org.apache.commons.net.SocketClient.connect(SocketClient.java:176)
         at org.apache.commons.net.SocketClient.connect(SocketClient.java:268)
         at com.un.file.processor.bizlogic.FTPUtil.getAnonymousFTPConection(FTPUtil.java:40)
         at com.un.file.processor.bizlogic.Frm13FManager.getLatestFile(Frm13FManager.java:56)
         at com.un.file.processor.struts.action.DownLoadAction.fileDownload(DownLoadAction.java:81)
         at com.un.file.processor.struts.action.DownLoadAction.execute(DownLoadAction.java:39)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Unknown Source)

    there isn't anything to fix in the code; the connection is not succeeding. So perhaps you have the wrong url, the wrong port or the environment you are trying to connect from simply isn't allowing it (firewall for example).
    Good luck figuring out what it is, unfortunately only you can because only you have access to the machine you are running this on.

  • How show popup on filedownload button action

    Hi Experts,
    Working on jdev 11.1.1.3.0, ADF BC with rich faces.
    I have requirement in my application like i need to show popup and at the same time need to download file. like on selected rows in the table i have validation on each row, if the validation failed rows i need to show in popup to user at the same time i have validation success rows also those rows i need to generate a file and that file i need to download.
    i have written logic in the command button which has fileDownload, here remaing logic is working fine except showing popup. can any one tell me how to solve this issue.
    Edited by: user5802014 on Aug 19, 2010 5:57 PM

    Hi Frank,
    After chaning actionEvent.forceFullSubmit(); now everything is working fine, but now the problem is if i came from another jsff page to the current page then my file download is not happening i am getting on my browers like error on ....
    javascript:
    function customHandler(event) {
    var exportCmd = AdfPage.PAGE.findComponentByAbsoluteId("pt1:pt_region0:1:cb1")
    var actionEvent = new AdfActionEvent(exportCmd);
    actionEvent.noResponseExpected();
    actionEvent.queue();
    Bean:
    if(downloadFile!=null){
    System.out.println("invoking downloads...............................");
    erks.addScript(context, "customHandler();");
    } if (requestClause != null){
    System.out.println("invoke popup");
    executeSactionCheckVO(requestClause);
    //erks.addScript(context, "showPopup();");
    ADFUtils.invokePopup(this.getP2().getClientId(FacesContext.getCurrentInstance()));
    can you please how to avoid this error or can you please tell me how to call filedownload method in another button action.

  • Unable to download file from FileDownload UI Element - Java Web Dynpro

    Hello Experts,
    I am facing a strange issue.Scenario is:
    I created an java web Dynpro application (Please note that it is just a standalone WD app, not integrated in portal) with just one FileUpload UI Element ,one FileDownload UI element and one button (for triggering an action).
    I browse a file (e.g. text,pdf,doc etc.) and click on button. It uploads the file and when I click on download, there are two cases:
         1) Simply click on download does not downloads the file and shows error: "Unable to download <file name> from <server name>.  Unable to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later." Though it is opening the file,showing the content.
         2) I opened that portal URL in a new tab in same session and logged in with a portal user. Now if I click on download link of same WD app opened in different tab of same session, it downloads the file without any error.
    I am using portal 7.0
    Can somebody point what's going wrong with case 1?
    Helpful pointers will be appreciated.
    Thanks,
    Kirtiman

    Hi Sid,
    I did not gave any authentication of WD app as it is anonymous app. There is no parameter set in application properties.
    As I run the app, it is showing the initial screen with UI elemtns and till upload works fine,.It has to be an anonymous app, so cannot ask for credential from user.
    Thanks
    Kirtiman

  • FileDownload UI Element in a table

    I'm tryign to use FileDownload UI Element in a table, but it seems not to work.
    I have defined a binary, an IWDAttributeInfo and a IWDModifiableBinaryType attributes in the same context node of the table.
    In wdDoInit() I wrote the following code:
    for (int i=0;i<wdContext.nodeFileTab().size();i++)
    try {
    wdContext.nodeFileTab().getFileTabElementAt(i).setAttInfo(wdContext.nodeFileTab().getNodeInfo().getAttribute(IPrivateView_pdfView.IFileTabElement.T_FILE_DOWNLOAD));
    wdContext.nodeFileTab().getFileTabElementAt(i).setBinaryType((IWDModifiableBinaryType)wdContext.nodeFileTab().getFileTabElementAt(i).getAttInfo().getModifiableSimpleType());
    wdContext.nodeFileTab().getFileTabElementAt(i).getBinaryType().setFileName(wdContext.nodeFileTab().getFileTabElementAt(i).getFilename());
    wdContext.nodeFileTab().getFileTabElementAt(i).getBinaryType().setMimeType(WDWebResourceType.PDF);
    wdContext.nodeFileTab().getFileTabElementAt(i).setTFileDownload(this.getByteArrayFromResourcePath("/sapmnt/PCD/global/config/cm/etc/pdf/"+wdContext.nodeFileTab().getFileTabElementAt(i).getFilename()));
    catch (Exception e)
    wdComponentAPI.getMessageManager().reportException(e.toString(),true);
    As result each row download the file in the last row. Is there any other way I can try?

    Hi Anita,
    you cannot set metadata at element level of a node. When you set the metadata ( example mime type or file name ) for a particular element in the node , it changes for all the element. So you are always getting the file for the last row. ( most recent set metadata ).
    Try using the inteface IWDCachedWebResource for file download.
    For each row add a button, and associate an action "DownloadFile" for it. Use the following "onAction" for the said action. 
    public void onActionDownloadFile(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionDownloadFile(ServerEvent)
        int selectedIndex = wdContext.nodeFileTab().getLeadSelection();
        IPrivateView_pdfView.IFileTabElement file = wdContext.nodeFileTab().getFileTabElementAt(selectedIndex);
        try {
         IWDCachedWebResource webResource = WDWebResource.getWebResource(
              this.
              getByteArrayFromResourcePath("/sapmnt/PCD/global/config/cm/etc/pdf/"+
              wdContext.nodeFileTab().getFileTabElementAt().getFilename(selectedIndex),
              WDWebResourceType.PDF);
         wdComponentAPI.getWindowManager().createExternalWindow(webResource.getURL(),"Download File",true).open();
       catch(Exception e) {
         // take some action
         wdComponentAPI.getMessageManager().reportException(e.toString(),true);
        //@@end
    Hope you get a solution.
    Regards
    KK.

  • Filedownload UI element not working in production

    Hi,
    There is filedownload UI element used along with a dropdown UI element
    This is working fine in dev and quality but in production it doesnt pick the file.
    It is made to work as follows -
    u2022     first of all the files are placed at root location of the file system of server (filedownload ui element is used to download these files)
    u2022     The data and resource properties of the filedownload are populated upon the action of dropdown ui element
    u2022     so user has to select the dropdown frst and then click on filedownload UI element (which is a link)
    u2022     Following code is onaction of the dropdown ui element.
    byte b[];
              try {
                   String excelpath = null;
                     String systemID = System.getProperty("SAPSYSTEMNAME");
                     String appDir = System.getProperties().getProperty("Applications Directory");
    //                    if(wdContext.currentExcelName_downloadElement().getExcelName()=="Template for Financial Forms - 1")               
    //                                  excelpath = "/usr/sap/"systemID"/JC00/j2ee/cluster/server0/apps/sap.com/com.sap.engine.docs.examples/servlet_jsp/_default/root/Template for Financial Forms - 1.xls";  
    //              if(wdContext.currentExcelName_downloadElement().getExcelName()=="Template for Financial Forms - 2")                          
    //                                     excelpath = "/usr/sap/"systemID"/JC00/j2ee/cluster/server0/apps/sap.com/com.sap.engine.docs.examples/servlet_jsp/_default/root/Template for Financial Forms - 2.xls";                     
    //                   if(wdContext.currentExcelName_downloadElement().getExcelName()=="Template for Non Financial Forms")                               
    //                                     excelpath = "/usr/sap/"systemID"/JC00/j2ee/cluster/server0/apps/sap.com/com.sap.engine.docs.examples/servlet_jsp/_default/root/Template for Non Financial Forms.xls";          
                   if(wdContext.currentExcelName_downloadElement().getExcelName()=="Template for Financial Forms - 1")               
                                    excelpath = appDir+"sap.com/com.sap.engine.docs.examples/servlet_jsp/_default/root/Template for Financial Forms - 1.xls";  
                     if(wdContext.currentExcelName_downloadElement().getExcelName()=="Template for Financial Forms - 2")                          
                                    excelpath = appDir+"sap.com/com.sap.engine.docs.examples/servlet_jsp/_default/root/Template for Financial Forms - 2.xls";                     
                   if(wdContext.currentExcelName_downloadElement().getExcelName()=="Template for Non Financial Forms")                               
                                    excelpath = appDir+"sap.com/com.sap.engine.docs.examples/servlet_jsp/_default/root/Template for Non Financial Forms.xls";          
                   //wdComponentAPI.getMessageManager().reportSuccess(excelpath);
                    File input = new File(excelpath);                                           
                     int length =(int)input.length();
                //       Create a byte array b to hold the file
                     b = new byte[length];
                     FileInputStream in = new FileInputStream(input);
                //       Reading the file to a byte array b
                     in.read(b);
                     in.close();          
                //       Setting the data from the byte array to the context element.
                     wdContext.currentContextElement().setData_filedownload(b);
              //      Populating the resource attribute 
                  String filename = wdContext.currentExcelName_downloadElement().getExcelName();                 
                   IWDResource resource = WDResourceFactory.createResource(b, filename, WDWebResourceType.XLS);
                   wdContext.currentContextElement().setResource_filedownload(resource);
                } catch (FileNotFoundException e) {
                     // TODO Auto-generated catch block
                     e.printStackTrace();
                } catch (IOException e) {
                     // TODO Auto-generated catch block
                     e.printStackTrace();
    This is working fine in all systems but after I deployed the code in production system it doesnt work. When user clicks on filedownload it doesnt open up any file download dialog box
    when similar problem occured in quality it was because the files were not placed at proper location
    but now the files are properly places i checked along with basis
    kindly advice what could be the problem here
    does it not determine link correctly or what could be difference betw non-production and productio environment ?
    thanks in advance

    Hi,
    Did you check the user permssions on the seected directory? The loged-in user should have at least reading permissions.
    Regards,
    Alain.

  • Problem in JSF action mapping for ZOHOwrter

    Hello Every one,
    I am struggling with a problem by using zohowriter in JSF Frame work, my problem is..
    I have developed an application to open and edit a Document which resides in server and save it in server in another path, for this purpose we are using ZohoWriter. For this application the Struts frame work is working fine.
    I have designed xhtml page by using struts framework as bellow,
    <body>
    <form method="POST" action="http://export.writer.zoho.com/remotedoc.im?apikey=ad40de81a92f4d644b474276c7ac1640&output=editor" target="_self">
    <input type="hidden" name="url" value="http://customers.info-sun.com/itrack/templateDocuments/TestPlan.doc">
    <input type="hidden" name="saveurl" value="http://localhost:8080/Struts/zoho.do">
    <input type="hidden" name="filename" value="mydocument.doc">
    <input type="hidden" name="id" value="12345678">
    <input type="hidden" name="format" value="doc">
    <input type="hidden" name="persistence" value="true">
    <input type="submit" value="Edit" class="divbutton" name="submit">
    </form>
    By using above code that editor is calling the "saveurl" attribute value while saving the document, that is automatically executing the Action class and saving the Document in specified server path.
    But,
    In my application we are following JSF framework,
    In my application I have written the xhtml page like,
    <form id="myform" method="post" enctype="multipart/form-data" action="http://export.writer.zoho.com/remotedoc.im?apikey=ad40de81a92f4d644b474276c7ac1640&output=editor">
         <h:commandButton value="Edit" />
         <h:inputHidden id="url" value="http://customers.info-sun.com/itrack/templateDocuments/TestPlan.doc" />
         <h:inputHidden id="filename" value="TestPlan.doc" />
         <h:inputHidden id="id" value="12345678" />
         <h:inputHidden id="saveurl" value="http://customers.info-sun.com/itrack/zoho.fileDownload" />
         <h:inputHidden id="format" value="doc" />
    </form>
    in the page designing if I use <h:form> this tag is not containing action attribute , so I am giving by command button but it is not working.
    So, I continued with html form.
    also, if I specify the "saveurl" attribute mapped with backing been , it is executing in page load only , So My actual intention means after editing it needs to call but it is not happening, while loading this method is calling so other problems are raising.
    Can any one please guide me that, what is my mistake and how to over come.
    Thanks and Regards
    N.Sailaja
    Edited by: SailajaN on Jun 9, 2009 7:37 AM

    Hi,
    I got solution for the above problem.
    I am calling a servlet instead of calling jsf flow, I got that, the zohowriter calling only lifecycle method for saveurl attribute.
    Thanks and Regards
    N.Sailaja
    Edited by: SailajaN on Jun 12, 2009 6:32 AM

  • Create event on click of FileDownLoad UI Element

    Hi,
         I have created an interactive form whose initial visibility is set the false. I have a
         FileDownload UI element. Ideally on the click of the FileDownload UI,  I should
         be able to see the interactive form in the same view. Please help me out.
    Thanks,
    Prasanna

    Hi,
    FileDownload UI does not have any action property.
    In this case you have to have a UI element with which you can assocaite an action.
    In that action set the visibility of the InteractiveForm UI element to visible.
    For the visiblity
    1. First create a context attribute visibility of data type com.sap.ide.webdynpro.uielementdefinitions.Visibility
    2. Bind the context attribute with visible property of the InteractiveForm UI element.3. In wdDoInit of the view
    wdContext.CurrentnContextElement.setVisibility(IWDVisibility.Blank);
    3. In the action wdContext.CurrentnContextElement.setVisibility(IWDVisibility.visible);

  • Download action listener maximum length

    Hi,
    What should be the mzximum size of a file to be downloaded using a filedownload action listener
    I am trying to download a file coming from bi publisher from adf and i have used filedownload action listener
    But whenever the data is more than 200 kb or so it is failing and i am getting empty file. i have downloaded files of 156kb size or so...
    What is the max size of it
    Thanks,
    Vinay

    on click of download bt with download action listener the following method is called
        public void GenerateAirportAndAgent(FacesContext facesContext,
                                            OutputStream outputStream) {
            StringBuffer errorMessage = new StringBuffer();       
            ViewObjectImpl tripLocDetailsVO = (ViewObjectImpl) ADFUtils.findIterator("TripLocationDetailsIterator").getViewObject();
            String tripNumberString = null;
            BigDecimal tripNumber = null;
            Object tripNumberParam = tripLocDetailsVO.getNamedWhereClauseParam("bindTripNumber");
            if(tripNumberParam != null){
              tripNumber = (BigDecimal)tripNumberParam;
              tripNumberString = tripNumber.toString();
            String tripLocIDString = null;
            if(AdfFacesContext.getCurrentInstance().getPageFlowScope().get("AIRPORT_TRIP_LOCATION_ID") != null){
                tripLocIDString = (String)AdfFacesContext.getCurrentInstance().getPageFlowScope().get("AIRPORT_TRIP_LOCATION_ID");    
            String icao = null;
            Object icaoParam = tripLocDetailsVO.getNamedWhereClauseParam("bindIcao");
            if(icaoParam != null){
              icao = icaoParam.toString();
            tripLocDetailsVO.setRangeSize(-1);
            Row[] aircraftBriefVORows = tripLocDetailsVO.getAllRowsInRange();
              StringBuffer DST=new StringBuffer();
               StringBuffer STD=new StringBuffer();
            for (int i = 0; i < aircraftBriefVORows.length; i++) {
               ViewRowImpl tripLocationRow = (ViewRowImpl)aircraftBriefVORows;
    //For each dept row, getting reference to empVO which contains all employees corresponding to current dept
    RowIterator airPortLOcationVO = (RowIterator)tripLocationRow.getAttribute("AirportLocation");
    while(airPortLOcationVO.hasNext()){
    Row airportLocationRow = airPortLOcationVO.next();
    DST.append((String)airportLocationRow.getAttribute("DSTNew")+",");
    STD.append((String)airportLocationRow.getAttribute("STDNew")+",");
    HashMap parameterValueList = new HashMap();
    if(tripNumberString!=null)
    parameterValueList.put("REPORT_NAME", "AIRPORT_AND_AGENT");
    parameterValueList.put("TRIP_NUMBER", tripNumberString);
    parameterValueList.put("ICAO", icao);
    parameterValueList.put("AIRPORT_TRIP_LOCATION_ID", tripLocIDString);
    parameterValueList.put("DST",DST.toString());
    parameterValueList.put("STD",STD.toString());
    try{
    ReportResponse reportResponse = reportOutputResp(parameterValueList,
    AirportAndAgentBriefTemplate,
    AirportAndAgentReport,
    errorMessage);
    outputStream.write(reportResponse.getReportBytes());
    outputStream.flush();
    catch(Exception e){
    errorMessage.append("Error in generating downloadable Document.\n");
    errorMessage.append(e.getMessage());
    errorMessage.append(". Current User:"+bipUserName);
    errorMessage.append(". Accessing Report:"+AirportAndAgentReport);
    System.out.println(errorMessage.toString());;
    e.printStackTrace();
    else{
    System.out.println("Error: TripNumber is null, cant Print Report");
    errorMessage.append("TripNumber is not Valid, Please try again");
    System.out.println(errorMessage.toString());
    facesContext.responseComplete();
    public ReportResponse reportOutputResp(HashMap parameterValueList,
    String templateName,
    String reportAbsoPath,
    StringBuffer errorMessage){
    publicReportServiceService = new PublicReportServiceService();
    PublicReportService publicReportService = publicReportServiceService.getPublicReportService();
    String sessionToken=null;
    ReportResponse reportResponse=null;
    String reportName = "";
    String tripNumber = null;
    String hotelReqId =null;
    String transReqId =null;
    String icao = null;
    String tripLocId = null;
    String tripLegNum = null;
    String dst = null;
    String std = null;
    if(parameterValueList.get("REPORT_NAME") != null){
    reportName = (String)parameterValueList.get("REPORT_NAME");
    if(parameterValueList.get("TRIP_NUMBER") != null){
    tripNumber = (String)parameterValueList.get("TRIP_NUMBER");
    if(parameterValueList.get("ICAO") != null){
    icao = (String)parameterValueList.get("ICAO");
    if(parameterValueList.get("HOTEL_REQUEST_ID") != null){
    hotelReqId = (String)parameterValueList.get("HOTEL_REQUEST_ID");
    if(parameterValueList.get("TRANS_REQUEST_ID") != null){
    transReqId = (String)parameterValueList.get("TRANS_REQUEST_ID");
    if(parameterValueList.get("TRIP_LOCATION_ID") != null){
    tripLocId = (String)parameterValueList.get("TRIP_LOCATION_ID");
    if(parameterValueList.get("LEG_NUMBER") != null){
    tripLegNum = (String)parameterValueList.get("LEG_NUMBER");
    if(parameterValueList.get("AIRPORT_TRIP_LOCATION_ID") != null){
    tripLocId = (String)parameterValueList.get("AIRPORT_TRIP_LOCATION_ID");
    if (parameterValueList.get("DST") !=null){
    dst =(String)parameterValueList.get("DST");
    if (parameterValueList.get("STD") !=null){
    std =(String)parameterValueList.get("STD");
    System.err.println("reportName -- "+ reportName);
    System.err.println("tripNumber -- "+ tripNumber);
    System.err.println("hotelReqId -- "+ hotelReqId);
    System.err.println("icao -- "+ icao);
    System.err.println("transReqId -- "+ transReqId);
    System.err.println("tripLocId -- "+ tripLocId);
    System.err.println("tripLegNum -- "+ tripLegNum);
    System.err.println("DST -- "+ dst);
    System.err.println("STD -- "+ std);
    try{
    sessionToken = publicReportService.login(bipUserName, bipPassword);
    ReportRequest reportRequest = new ReportRequest();
    reportRequest.setAttributeFormat("rtf");//The output format of the requested report pdf, rtf, html
    //reportRequest.setAttributeFormat("English (United States)");//The locale selection for the report. Example: fr-FR
    reportRequest.setAttributeTemplate(templateName);//The template to apply to the report
    reportRequest.setFlattenXML(false); //True indicates that the XML is to be flattened. This flag is used for the Analyzer for Microsoft Excel because Excel requires XML data structure to be flattened.
    ArrayOfParamNameValue arr = new ArrayOfParamNameValue();
    List<ParamNameValue> list = arr.getItem();
    //Setting Trip Number
    if(tripNumber != null){
    ParamNameValue paramName = new ParamNameValue();
    paramName.setName("P_TRIP_NUMBER");
    ArrayOfString value = new ArrayOfString();
    List<String> trp_number = value.getItem();
    trp_number.add(tripNumber);
    paramName.setValues(value);
    list.add(paramName);
    //Setting ICAO
    if(icao != null && !reportName.equals("PERMIT_BRIEF") && !reportName.equals("ITINERARY_BRIEF")){
    ParamNameValue paramNameIcao = new ParamNameValue();
    paramNameIcao.setName("P_ICAO");
    ArrayOfString icao_value = new ArrayOfString();
    List<String> trp_icao = icao_value.getItem();
    trp_icao.add(icao);
    paramNameIcao.setValues(icao_value);
    List<ParamNameValue> listIcao = arr.getItem();
    listIcao.add(paramNameIcao);
    //Setting Hotel Request ID
    if(hotelReqId != null && reportName.equals("HOTEL_BRIEF")){
    ParamNameValue paramNameReqID = new ParamNameValue();
    paramNameReqID.setName("P_REQ_ID");
    ArrayOfString reqID_value = new ArrayOfString();
    List<String> trp_reqID = reqID_value.getItem();
    trp_reqID.add(hotelReqId);
    paramNameReqID.setValues(reqID_value);
    List<ParamNameValue> listReqID = arr.getItem();
    listReqID.add(paramNameReqID);
    //Setting Transportation Request ID
    if(transReqId != null && reportName.equals("TRANS_BRIEF")){
    ParamNameValue paramNameReqID = new ParamNameValue();
    paramNameReqID.setName("P_TRANS_REQ_ID");
    ArrayOfString reqID_value = new ArrayOfString();
    List<String> trp_reqID = reqID_value.getItem();
    trp_reqID.add(transReqId);
    paramNameReqID.setValues(reqID_value);
    List<ParamNameValue> listReqID = arr.getItem();
    listReqID.add(paramNameReqID);
    //Setting Trip Location ID
    if(tripLocId != null && (reportName.equals("HANDLING_BRIEF") || reportName.equals("AIRPORT_AND_AGENT"))){
    ParamNameValue paramNameReqID = new ParamNameValue();
    paramNameReqID.setName("P_TRIP_LOC_ID");
    ArrayOfString reqID_value = new ArrayOfString();
    List<String> trp_reqID = reqID_value.getItem();
    trp_reqID.add(tripLocId);
    paramNameReqID.setValues(reqID_value);
    List<ParamNameValue> listReqID = arr.getItem();
    listReqID.add(paramNameReqID);
    //Setting DST
    if(dst != null && reportName.equals("AIRPORT_AND_AGENT")){
    ParamNameValue paramNameReqID = new ParamNameValue();
    paramNameReqID.setName("P_DST");
    ArrayOfString reqID_value = new ArrayOfString();
    List<String> trp_reqID = reqID_value.getItem();
    trp_reqID.add(dst);
    paramNameReqID.setValues(reqID_value);
    List<ParamNameValue> listReqID = arr.getItem();
    listReqID.add(paramNameReqID);
    //Setting STD
    if(std != null && reportName.equals("AIRPORT_AND_AGENT")){
    ParamNameValue paramNameReqID = new ParamNameValue();
    paramNameReqID.setName("P_STD");
    ArrayOfString reqID_value = new ArrayOfString();
    List<String> trp_reqID = reqID_value.getItem();
    trp_reqID.add(std);
    paramNameReqID.setValues(reqID_value);
    List<ParamNameValue> listReqID = arr.getItem();
    listReqID.add(paramNameReqID);
    //Setting Trip Leg Number
    if(tripLegNum != null && reportName.equals("PERMIT_BRIEF")){
    ParamNameValue paramNameReqID = new ParamNameValue();
    paramNameReqID.setName("P_LEG_NUM");
    ArrayOfString reqID_value = new ArrayOfString();
    List<String> trp_reqID = reqID_value.getItem();
    trp_reqID.add(tripLegNum);
    paramNameReqID.setValues(reqID_value);
    List<ParamNameValue> listReqID = arr.getItem();
    listReqID.add(paramNameReqID);
    reportRequest.setParameterNameValues(arr);
    //reportRequest.setParameterNameValues(paramNameValue);
    reportRequest.setReportAbsolutePath(reportAbsoPath); //The absolute path to the report in the BI Publisher repository. For example: /HR Manager/HR Reports/Employee Listing.xdo.
    reportRequest.setReportData(null);//If you are providing the data directly for the report use this element to pass the data
    reportRequest.setSizeOfDataChunkDownload(-1);//If you set flattenXML to true, or if you do not want to chunk the data, set this parameter to -1 to return all data back to the client.
    reportResponse = publicReportService.runReportInSession(reportRequest, sessionToken);
    catch(Exception e){
    errorMessage.append("There was a problem in getting the report.\n");
    errorMessage.append("Please try again. \n If problem persists contact System Administrastor with below Message.\n");
    errorMessage.append(e.getMessage());
    errorMessage.append(". Current User:"+bipUserName);
    errorMessage.append(". Accessing Report:"+reportAbsoPath);
    System.out.println(errorMessage.toString());
    //outputStream.write(generatePDF(errorMessage.toString()));
    //outputStream.flush();
    e.printStackTrace();
    finally{
    try{
    if(sessionToken!=null)
    publicReportService.logout(sessionToken);
    catch(Exception e){}
    return reportResponse;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

  • Can't view data in IT302 - Additional Actions

    Hi Gurus,
    I cannot view any data in IT302 using Ad Hoc Query.
    Correct infoset was set up which include Additional actions infotype.
    IT302 was also properly set up in t77S0> ADMIN-EVSUP set to 1.
    And in T529A all Actions set to be updated in IT302.
    There are also Additional Action entries in table PA0302 but when I search it in Ad Hoc Query for a personnel number the fields (Action Type, Reason) turn up blank.
    Do I still have to make other configurations?
    Any ideas?
    Kindly help.
    Points will be given out
    Thanks,
    Olekan Babatonde

    I was in the need of getting the output based on Additional actions, and was able to figure out the way as how to do it., I am writing this here not that you would still in need but some one in future might come to this thread and get away with the answer.
    1. First we need to add Infotype 0302 to our infoset (Going toSQ02, Menu bar, Edit -> Change infotype selection.
    2. Once you have the infotype under the Data fields.
    3. Try adding each individual field under the field group/data fields by right clicking on the necessary infotype field and selecting Add field to Field group.
    4. Once you got all your IT0302 fields under field group/data fields right side of the window, save your infoset and run the  infoset query.
    5. Now you have the input fields and output fields to be selected from infoset query.
    6. Select input fields as Pernr, and action start date and end date from IT0000
    7. Select output fields from 0302 infotype fields, you may select all the necessary fields in the output, but the required one is "Counter Field"
    8. Once you have your hitlist from the ad hoc query, refresh the list from bottom of the screen and picks up all the ones who have the counter field as 1 - they are the ones, who has additional actions on specific date.
    Hope it helps to the viewers.
    Warm Regards!
    -Kanuku

  • Service Desk - Expert Mode - Not all actions are available

    Dear SAP colleagues,
    I have just implemented the Service Desk in our SOLMAN system.
    1. I choose Incident Management
    2. I click on Queries
    3. I click on a ticket (Transaction ID).
    4. I edit the message
    5. When I select Actions, I only have the 4 following options :
        - Send Message to SAP
        - Maintain SAP Logon Data
        - Display SAP Action Log
        - Update SAP Message
    When I consult some demos, there are many differents options available in Actions menu, as, for example :
    - Open System fro SAP
    - Confirm Message to SAP
    - E-Mail to Message Creator (Mail)
    - Print Message
    - Create Change Document
    - Call Solution Manager Diagnostics.
    Is it due to an missing authorizations (roles and profiles) ?
    Thanks for your input.
    Best regards
    CP2009

    Dear Rajeev,
    First of all, thanks for your input.
    I have choosen SIVA when I have activated BC Sets.
    Should I activate also BC Sets for transaction type SLFN ?
    1. I have started SPPFCADM and follow your recommandations.
    2. I have choosen CRM_ORDER
    3. I have then click on "Condition Configuration (Transportable Conditions)
    4. There are many entries related to the Support and Service Desk
    Example : Support Desk Message Action Profile
    I have 5 actions defined -
    Action 01 : Send Message to Processor
    Action 02 : Create/Change Basis Message from CRM Procedure
    Action 03 : Send Notification to SAP
    Action 04 : Update Message from SAP
    Action 05 : Confirm Message to SAP
    I have activate BC Sets for transaction type SIVA, not for SLFN.
    Best regards
    CP2009

  • Leaving action

    Hi Experts,
    Pls guide me to solve the issue related to leaving action of emp in PA40.
    When an employee left the company, which infotypes needs to be delimited.
    Is it receommanded to put the practice to enter Run payroll up to, Do not account after in IT0003?
    Can end user maintian IT0003 for left employee? or it can be possible for only exceptional circumstances?
    What will be the recommanded porcess to release the pension in case of retired employee?
    I want to get the complete information ,connection between IT0003 and leaving action.
    Thanks & Regards,
    Nirali P

    Hi Nirali,
    When an employee left the company, which infotypes needs to be delimited.
    All the basic infotypes, like 0000,0001,0007,0008 and statutory infotypes of the country will be delimited. The best would be to check the standard configuration of SAP, where in SAP would have advised which infotypes to be delimited for leaving action.
    Is it receommanded to put the practice to enter Run payroll up to, Do not account after in IT0003?
    I would say , it would depend on company to company and scenario based. But mostly it is seen IT0003 is modified only in cases where exceptions are there.
    Can end user maintian IT0003 for left employee? or it can be possible for only exceptional circumstances?
    depends on the level of authorisation you are providing to to the end user
    What will be the recommanded porcess to release the pension in case of retired employee?
    Can you elaborate what u mean by this

  • Leaving action with IT0003

    Hi Experts,
    Pls guide me to solve the issue related to leaving action of emp in PA40.
    When an employee left the company, which infotypes needs to be delimited.
    Is it receommanded to put the practice to enter Run payroll up to, Do not account after in IT0003?
    Can end user maintian IT0003 for left employee? or it can be possible for only exceptional circumstances?
    What will be the recommanded porcess to release the pension in case of retired employee?
    I want to get the complete information ,connection between IT0003 and leaving action.
    Thanks & Regards,
    Nirali P
    Edited by: Nirali P on Aug 19, 2011 8:13 AM
    Edited by: Nirali P on Aug 19, 2011 9:08 AM

    Hi Nirali,
    When an employee left the company, which infotypes needs to be delimited.
    All the basic infotypes, like 0000,0001,0007,0008 and statutory infotypes of the country will be delimited. The best would be to check the standard configuration of SAP, where in SAP would have advised which infotypes to be delimited for leaving action.
    Is it receommanded to put the practice to enter Run payroll up to, Do not account after in IT0003?
    I would say , it would depend on company to company and scenario based. But mostly it is seen IT0003 is modified only in cases where exceptions are there.
    Can end user maintian IT0003 for left employee? or it can be possible for only exceptional circumstances?
    depends on the level of authorisation you are providing to to the end user
    What will be the recommanded porcess to release the pension in case of retired employee?
    Can you elaborate what u mean by this

  • How to get mouse wheel action in my swing application?

    Hi
    In my mouse, i am having mousewheel to support scrolling.With the help of the wheel, i can scroll the pages in IE browser or any other appliction.
    In swing application ,i have scroll bar inside a JFrame.I want to have mousewheel action in my swing application to support scrolling.
    any idea ???
    Thanks

    As far as I know,there is no facility for detecting mouse scrolling wheel in JDK 1.3.
    Check it in the later releases of JDK.

  • Photoshope Elements when selecting an action, the paint brush tool doesn't work and system keeps freezing, then catching up every 30-45 seconds

    I have been having this problem with elements ever since the last OS upgrade, but it wasn't all the time and it wasn't very bad. Now, I have upgraded my macbook again, and I cannot even edit a photo!! I open the photo, choose an action, say "smooth skin", then choose the paint brush, I start to "paint" over their face and it won't paint a line, I have to keep clicking it, click - it paints, move brush, click again - it paints. Plus, every time I choose a tool or an action, it freezes for about 10 seconds, then catches up to what I am doing, 30 seconds later, it freezes again. HELP!! I have 8 sessions to finish editing by this weekend!! I just want to cry!!

    Try deleting the prefs and the saved application state:
    A Reminder for Mac Folks upgrading to Yosemite | Barbara's Sort-of-Tech Blog

Maybe you are looking for

  • HT4314 How can i merge my old game center account my new account?

    With all it's achievements and saved games to my new account?

  • Adobe Prints Text as Double Image

    When I print pdf documents online[specifically http://content.educationdirectonline.com/course/VET010/online/vet010_088001.pdf ] the text prints out fuzzy, with a gray double image of the text right behind it, almost like a shadow. I've tried turning

  • Toshiba Portable Hard Drive - no option screen

    Bought a 1 TB automatic backup portable hard drive and connected to my computer running Windows 7.  I clicked on the exe file and lights blinked on computer and drive.  I thought all was well.  This morning, I attached the drive again and looked at t

  • When to use PGA_AGGREGATE_TARGET and when to use temporary table space?

    Hi, all. I am a little confused with regard to when to use pga work area, and when to use temporary tablespace? Is there any one who could give me an advice or a document? Thanks in advance. Best Regards. Message was edited by: user507290

  • Help with self join query

    Hello people, I have the table MENUS on 9i with the folowing fields: MENU_ID, PARENT_ID, MENUNAME,... and some sample data: 0,999999,ROOT 7,0,NETWORK 6,0,SERVICES 100,0,CUSTOMERS 74,7,MONITORING 88889081,7,CONFIG 88890006,7,TEST 88890049,7 TEST II 88