Generate report to PDF problem; font or layout problem

Hi all,
I have this report that look fine.
But when I generate this report to PDF one of the column which supposed to show date information become "******" in the PDF version.
Normally I would try to modify the report by changing its font to smaller one or expanding the field to accomodate longer string.
The problem is i don't have the RDF file.
So i need to know how to make the PDF i'm generating looks the same as the the original one i'm generating the PDF from.
btw The report is made with Report Builder 6.0.8.11.3, and running on oracle database 10g.
Thank you.
Message was edited by:
Jimmy JKT

hello Gouri,
basically I just wish the PDF version of the report looks exactly like the one generated by reports runtime.
When I run the report all data is shown properly.. But the PDF version i generated from that failed to show one the column properly. Instead of showing the data the PDF version replace it with ******.
How come?
Is this the same kind of problem where the printed result differ from what it look on the sreen?
Is it adobe reader problem?

Similar Messages

  • Generate report in pdf in rute specifics??

    Hi, I have a form whit a button to generate report in pdf, works fine, but i want that when the user press the button, a window opened and the user choose where want to save the pdf...
    I think that i need some libs but i dont know, and i dont know the code to insert in button to open this window.
    Please Help

    Hi there
    Firstly what version are you running of Forms/Reports?
    Secondly, if you are running 9i/10g, when the PDF document is presented, the user will be able to save it in a location of their choice. When you call the report you can tell the app server where to save a copy of the file, but you will have to keep in mind that the location will be relative to the app server and not the client machine. Besides the results are normally cached on the app server, so all you will have to do is remember the job id and request the results again via a http call.
    Cheers
    Q

  • A big problem of Generate report with PDF format....Urgent

    I want to generate a report with pdf format through one java file, it have two page 1)gen_report.jsp 2) report_gen.java , the compliation was failed. However, i don't what the problem is .... i hope anyone can help me as it is very argent for me ....Thanks a lot
    1)gen_report.jsp
    <table  id="AutoNumber1">
       <tr>
         <td background="images/top5movie.png">
         <p align="center"> </p>
        </td>
       </tr>
       <tr>
       <td >
          <div align="center">
            <table id="AutoNumber2" >
                  <form method="GET" action="../report_gen" name="report_gen" target="_blank" onSubmit="javascript:return checkr1(this)">
                    <tr>
                      <td ><b>Report Description:</b></td>
                      <td >This report is to show the top five popular movies in cinemix for a period </td>
                    </tr>
                    <tr>
                      <td><b>Data scope:</b></td>
                      <td >Start from
                      <input type="text" name="start" value="2003-1-1" >to
                      <input type="text" name="end" value="2006-1-1" ></td>
                     </tr>
                     <tr>
                      <td><b>Data processing:</b></td>
                      <td >Show
                        <select name="order_by">
                          <option value="desc" selected>top</option>
                          <option value="asc">bottom</option>
                        </select>
                      5 films</td>
                    </tr>
                    <tr>
                      <td> <p align="center">
                          <input type="submit" value="View_Report" name="subm">
                        </p></td>
                    </tr>
                    <input type="hidden" name="report" value="r1">
                  </form>
                  <form method="GET" action="../report_gen" name="report_gen" target="_blank" onSubmit="javascript:return checkr2(this)">
                    <input type="hidden" name="report" value="r2">
                  </form>
                </table>
         </div>
          </td>
        </tr>
      </table>Then my java code is here
    report_gen.java
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.sql.*;
    // chart and pdf out
    import java.awt.Graphics2D;
    import java.awt.geom.Rectangle2D;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import org.jfree.chart.ChartFactory;
    import org.jfree.chart.JFreeChart;
    import org.jfree.chart.plot.PlotOrientation;
    import org.jfree.data.category.DefaultCategoryDataset;
    import org.jfree.data.xy.*;
    import org.jfree.data.xy.XYBarDataset;
    import org.jfree.data.general.DefaultPieDataset;
    import org.jfree.data.statistics.SimpleHistogramDataset;
    import org.jfree.data.xy.XYSeries;
    import org.jfree.data.xy.XYSeriesCollection;
    import com.lowagie.text.Document;
    import com.lowagie.text.DocumentException;
    import com.lowagie.text.Rectangle;
    import com.lowagie.text.pdf.DefaultFontMapper;
    import com.lowagie.text.pdf.PdfContentByte;
    import com.lowagie.text.pdf.PdfTemplate;
    import com.lowagie.text.pdf.PdfWriter;
    import com.lowagie.text.*;
    import com.lowagie.text.pdf.*;
    import com.lowagie.text.pdf.PdfPCell;
    public class report_gen extends HttpServlet
       private final String titles[] = {"Top Five popular movies ",
                        "Financial cirumstance of cinemas",
                        "Distribution of time segment",
                        "Distribution of favourite movie type"
       private final String descs[] = {"This report is to show the top five  popular movies in cinemix for a period ",
                   "This report is to show the financial circumstance of each cinema site ",
                   "This report is to analysis the customer when is the most visit time ",
                   "This report is to analysis the customer which type of movie do they watch the most"
        private final String bigTitle = "Cinemix";
        private final String driver = "org.gjt.mm.mysql.Driver";
        private final String url= "jdbc:mysql://localhost:3306/cinemix";
        private final String userID = "abc";
        private final String passwd = "abc";     
        public void init(ServletConfig config) throws ServletException
          super.init(config);
       protected void doGet(HttpServletRequest request, HttpServletResponse response)
       throws ServletException, IOException
          final int width = 550;
         final int height = 200;
    / title font (centre and report title)
         final Font fTitle0 = FontFactory.getFont("Helvetica", 42, Font.BOLD);
         final Font fTitle1 = FontFactory.getFont("Helvetica", 30, Font.BOLD);
              // centre name:
        final String title0 = bigTitle;
       // Default category for DefaultCategoryDataset
       final String cat = "data";
       Connection conn;
      JFreeChart chart;
       String title1     = "xyz Report";
       String chartDesc = "description";
       String notes[] = new String[4];
       String chartTitle = "so bad this is title";
       String chartXTitle = "this is x";
       String chartYTitle = "this is y.";
       String report = request.getParameter("report");     
       int max=-10000;
       int min=10000;
       int j=0;          
      // do some basic checking
       if (report == null || report.equals(""))
         report = "-1";  // this course unknow report error message
         String start   = request.getParameter("start");
         String end  = request.getParameter("end");
         String order_by  = request.getParameter("order_by");  // ToDo: check invalid string
           int topN  = 5;
        String order = (order_by.equals("desc")) ? "Top" : "Last";
       String inv[] = {"08:30", "09:30", "10:30", "11:30", "12:30", "11:30", "12:30", "13:30", "14:30", "15:30", "16:30", "17:30","18:30","19:30","20:30","21:30","22:30","23:30"};
         int inv_val[] = new int[inv.length - 1];
         try
            Class.forName(driver).newInstance();
             catch(Exception e)
            printE("Cannot load mysql database driver!", response);
              e.printStackTrace();
               return;
           try
                 conn = DriverManager.getConnection(url, userID, passwd);
                  if (report.equals("r1")) {  // report 1
               DefaultCategoryDataset dataset = new DefaultCategoryDataset();
              Statement stmt = conn.createStatement();
              String sql = "select *,count(f.Name),f.Name from film f, filmDetail fd, ticket t where f.startDate > '" + start + "' and f.endDate <  '" + end + "'and fd.filmID = f.filmID and fd.filmDetailID = t.filmDetailID group by f.name order by fd.filmDetailID asc limit '" +topN+"'";
              ResultSet rs = stmt.executeQuery(sql);
            while (rs.next())
           if (rs.getInt("fd.filmDetailID") > max) max = rs.getInt("fd.filmDetailID");
         if (rs.getInt("fd.filmDetailID") < min) min = rs.getInt("fd.filmDetailID");
          j++;
           ataset.setValue(rs.getInt("fd.filmDetailID"), cat,rs.getString("f.Name"));
           title1     = titles[0];
         chartDesc  = descs[0];
         chartTitle = order + " " + topN + " popular movie";
          chartYTitle = "Box Office record";
          chartXTitle = "Film Name";
          gender = " ";
          chart = ChartFactory.createBarChart(chartTitle, chartXTitle,   chartYTitle, dataset,PlotOrientation.VERTICAL, false, true, false);
        else
              print("Error: I don't inderstand your request!", response);
         return;
           catch (SQLException e)
         printE("Cannot open database connection? <br>", response);
         // printE(e.toString);
      e.printStackTrace();
      return;
         response.setContentType("application/pdf");
         Document document = new Document(PageSize.A4, 5, 5, 5, 5);
        try
             PdfWriter writer;
         writer = PdfWriter.getInstance(document, response.getOutputStream());
        HeaderFooter footer = new HeaderFooter(new Phrase("Page: "), true);
         footer.setBorder(Rectangle.NO_BORDER);
    document.setFooter(footer);
                   footer.setAlignment(Element.ALIGN_CENTER);
                   // step 3
                   document.open();
                   document.add(getHeader(title0, title1, start, end, gender, order, topN, chartDesc));
                   document.add(printChart(chart, writer));
                   document.add(getFooter(notes));
              catch(DocumentException de)
                   de.printStackTrace();
              // step 5
              document.close();
              return;
         }// end doGet()
         /** Handles the HTTP <code>POST</code> method.
          * @param request servlet request
          * @param response servlet response
         protected void doPost(HttpServletRequest request, HttpServletResponse response)
              throws ServletException, IOException
              // processRequest(request, response);
         /** Returns a short description of the servlet.
         public String getServletInfo()
              return "Generate reports for " + bigTitle;
         /* To print en error and exit(?) */
         private void printE(Object obj, HttpServletResponse response) throws IOException
              response.setContentType("text/html");
              PrintWriter out;
              out = response.getWriter();
              out.print(obj.toString());
              out.close();
              // To-Do: how to force exiting?
         // create data chart
         private PdfPTable getHeader(String title0, String title1, String start, String end, String sex, String order, int topN, String desc)
              Font fTitle0 = FontFactory.getFont("Helvetica", 42, Font.BOLD);
              Font fTitle1 = FontFactory.getFont("Helvetica", 24, Font.BOLD);
              Font fTitle3 = FontFactory.getFont("Helvetica", 12, Font.BOLD);
              Font fValue = FontFactory.getFont("Helvetica", 12, Font.UNDERLINE);
              Paragraph parStartEnd = new Paragraph();
              parStartEnd.add(new Phrase("Data start from:                  ", fTitle3));
              parStartEnd.add(new Phrase(start, fValue));
              parStartEnd.add(new Phrase("     to     ", fTitle3));
              parStartEnd.add(new Phrase(end, fValue));
              Paragraph parGenerateDate = new Paragraph();
              parGenerateDate.add(new Phrase("Report generated at:         ", fTitle3));
              parGenerateDate.add(new Phrase(new java.util.Date().toString(), fValue));
              Paragraph parGender = new Paragraph();
              parGender.add(new Phrase("Current show gender:       ", fTitle3));
              parGender.add(new Phrase(sex, fValue));
              Paragraph parTopN = new Paragraph();
              parTopN.add(new Phrase("Now is showing                 ", fTitle3));
              parTopN.add(new Phrase(order, fValue));
              parTopN.add(new Phrase("  ", fValue));
              parTopN.add(new Phrase(new Integer(topN).toString(), fValue));
              parTopN.add(new Phrase("   record(s)", fTitle3));
              // Start main table
              PdfPTable tblMain = new PdfPTable(1);
              tblMain.getDefaultCell().setBorder(0);
              // Print title
              tblMain.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
              tblMain.addCell(new Paragraph(title0, fTitle0));
              tblMain.addCell(new Paragraph(title1, fTitle1));
              tblMain.addCell("");
              tblMain.addCell("");
              tblMain.addCell("");
              // Print headers data
              //tblMain.getDefaultCell().setHorizontalAlignment(Element.ALIGN_RIGHT);
              //tblMain.addCell(parInvoiceNum);
              //tblMain.addCell("");
              tblMain.getDefaultCell().setHorizontalAlignment(Element.ALIGN_LEFT);
              tblMain.addCell(parStartEnd);
              tblMain.addCell("");
              tblMain.addCell(parGenerateDate);
              tblMain.addCell("");
              if (sex != " ")
                   tblMain.addCell(parGender);
              else if(order != null && topN > 0)
                   tblMain.addCell(parTopN);
              else
                   tblMain.addCell(" \n");
              tblMain.addCell("");
              tblMain.setWidthPercentage(96);
              tblMain.addCell(new Paragraph("Description of this report:", fTitle3));
              tblMain.addCell(desc);
              tblMain.addCell("\n");
              // Finish main table
              return tblMain;
         // print a chart _directly_ to pdf and return a empty Pdftable...
         public PdfPTable printChart(JFreeChart chart, PdfWriter writer)
              PdfContentByte cb = writer.getDirectContent();
              int width = 550;
              int height = 450;
              PdfTemplate tp = cb.createTemplate(width, height);
              Graphics2D g2d = tp.createGraphics(width, height, new DefaultFontMapper());
              Rectangle2D r2d = new Rectangle2D.Double(0, 0, width, height); //->,
              chart.draw(g2d, r2d);
              g2d.dispose();
              cb.addTemplate(tp, 20, 170);
              // quick method to push down the footer text
              // the only things this method return
              PdfPTable tblDownDown = new PdfPTable(1);
              tblDownDown.getDefaultCell().setBorder(0);
              tblDownDown.addCell(" \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n");
              tblDownDown.addCell(" \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n");
              tblDownDown.addCell(" \n \n \n \n \n \n");
              return tblDownDown;
         public PdfPTable getFooter(String notes[])
              Font fNote = FontFactory.getFont("Helvetica", 14, Font.UNDERLINE);
              Font fComment = FontFactory.getFont("Helvetica", 12, Font.ITALIC);
              Font fTitle1 = FontFactory.getFont("Helvetica", 30, Font.ITALIC);
              // Start footer table
              PdfPTable tblFooter = new PdfPTable(1);
              tblFooter.getDefaultCell().setBorder(0);
              if (notes != null)
                   tblFooter.addCell(new Paragraph("Notes:", fNote));
                   tblFooter.addCell("");
                   tblFooter.addCell("");
                   tblFooter.getDefaultCell().setHorizontalAlignment(Element.ALIGN_LEFT);
                   for (int i=0;i<notes.length;i++)
                        if (notes[i] != null)
                             tblFooter.addCell(new Paragraph("" + (i+1) + ". " + notes[i] + "", fComment));
                             tblFooter.addCell("");
                             tblFooter.addCell("");
                        tblFooter.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
                        tblFooter.addCell(new Paragraph("- End of report -", fComment));
                        return tblFooter;
    }

    Go to the cache directory and see if you can open the report directly from here (not in IE).
    I have seen posts on problems with Acrobat Reader Plugin for IE (I believe it was version 6 of Reader).

  • Embed fonts(Barcode) while generating Reports in PDF

    Hi Everyone,
    I have browsed through the similar topics and found that many have the opinion that embeding the fonts in Reports is not possible. But What if there is a report in PDF with a number in Barcode font to be mailed to a destination which does not have the font installed on the PC. Fonts cannot be sent across as they are protected by copyright. Thousands of recipients cannot be asked to buy the font.
    Please help me with a work around.
    Thanks
    Brijesh
    null

    hello,
    starting with 9i, oracle reports is able to embed fonts into PDF files. it uses font subsetting to add the font definitions used in the particular file to the file itself, so you can display the document although you might not have the fonts installed.
    at the moment (in 6i) this feature is not there. a way around that yould be to use adobes PDFwrite to produce the PDFs. it is also able to embed fonts into the document.
    regards,
    the oracle reports team

  • Generating report to pdf

    Greetings all,
    I have a report that is being called from a form. The report runs no problem, and comes in the previewers. However, when I try to use the "Generate to File" option, the report blows up(some machines throw a Dr. Watson error, others just through an Application Error). To make this more interesting, if the report is run through the development tool, it generates to pdf without a problem.
    Has anyone else had this problem, and if so, what is the fix?
    Thanks,
    Chris
    [email protected]

    Hi Chris
    I suggest you apply Reports and Forms Integrated patch on your setup. You can download the patch from metalink site.
    Thanks
    Rohit

  • Generating Report in PDF Format.

    Hi All,
    How can I configure Report Server to generate all my Reports in PDF Destination Format? I am using Oracle 10g.
    In 6i, it used to be FORMS60_REPFORMAT parameter. Is there any equivalant in 10g? Where can I set it? or Is there any other way to configure Report Server?
    I may set desformat in rp2rro.pll but I would like to have it at Report Server level.
    Thanks for your help in advance.

    If you want to run all your reports using a generic file, then use web.show_document within Forms and set your desformat for each report in the cgicmd.dat file (in Oracle_home/reports/conf directory) on the App Server.
    Please be warned that any change to this file will require bouncing the report server (or the app server as I sometimes find it doesn't always pick up the changes).
    HTHs
    L :-)

  • Crystal Report to PDF change fonts, cut text and change lines

    Post Author: jzwanziger
    CA Forum: Exporting
    Hello all, I am using Crystal Reports v10 and I created my report. The report works fine and the export function works fine in some particular servers. We were developing under Windows Server 2003 Service Pack 2 using Visual Studio 2005 Service Pack 1. We created the deployment and in our testing servers works fine (Windows Server 2003 and Windows XP these machines doesn't have any development tool).
    When we installed the same deployment (MSI) file in the customer Windows Server 2003, the exporting function to PDF or using it the Crystal Reports viewer doesn't work (Same worng thing that is displayed in the viewer is in the PDF). We had detected labels cut in the middle, some fields changed the font size or alignment and some lines move it up, down or growing. Obviously this looks like a environment problem, but we don't have any idea how to fix it, or what is missed.
    We tried to install, Windows Service Pack 2, install Acrobat Reader v8, verified the dll's, try to install the "dbex10win_en.zip" hot fix (we were not able to install it, setup file fail due some registry inconsistencies), Validate that the fonts are the same, and nothing fix the problem.
    Could somebody help us, we are a little desperate.
    thanks in advace for any idea.

    See [this|https://forums.sdn.sap.com/click.jspa?searchID=29094456&messageID=7206473] forum thread for possible clues to a resolution. In a nut shell, as long as the Calibri font is up to date, the other two steps are;
    1) Ensure you are using the latest Service Pack as suggested by Jonathan
    2) See what USP10.dll is loading (use the [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] utility)
    Also, if this is a win app, compile it to an exe and run the exe to see if the issue persists. (when running the app exe, the USP10 loaded should be from the CR bin directory. when running ion the .NET environment, the USP10 will load from win\system or other)
    Ludek
    Edited by: Ludek Uher on Jul 16, 2009 10:57 AM

  • Parameter values getting lost when generating report to .pdf

    Report Builder 6.0.8.26.0
    I have a report which accepts 3 parameter, :v_id, :a, :b, :v_id is numeric, other char.
    I display them on the report and use them in the query. When I run the report, everything is ok in the previewer and when I print a hard copy.
    When I select generate -> pdf, the :a & :b parameters do not display on the report and the queries run the same as if I set :a & :b to a null value.
    Anybody seen this and have anykind of fix. I know I can generate the script for the query and then use and external query & might have to, but I was trying to find something else.

    Hi Chris
    I suggest you apply Reports and Forms Integrated patch on your setup. You can download the patch from metalink site.
    Thanks
    Rohit

  • How to generate report in pdf format through a JSP page

    I require to generate my report from my JSP page into a PDF format . How can i do it?

    Use a Java API which can create PDF files based on some collection of plain vanilla Java objects (List, String, Number, etc).
    Google can find them all. Just feed it with something like "Java PDF API" or so. A commonly used one is iText.
    That said, when talking about this in JSP context, ensure that you do NOT write raw Java code in JSP files using scriptlets. Raw Java code belongs in Java classes. In such case you need a Servlet. In JSP just use taglibs and EL to interact with backend Java code and data. Scriptlets are discouraged since over a decade.

  • Generate reports in PDF or EXCEL from Web App...

    Hello, I have to generate some reports from data base using web APP on Java, these reports with few generation criteria must be in PDF format and EXCEL format (both), someone knows a tool with which I can generate them?
    Best regards.

    PDF: iText
    Excel: Apache POI

  • Print Report.VI PDF Problem

    I have a standard report which I print to a PDF (PDF Creator). I am facing a problem. When I issue the command to print the report, the VI executes fine, the error cluster is fine ... but the PDF itself is not created ... There is some delay in writing the PDF, but shouldn't the VI be running for as long as the PDF is being created ? Or does it lose control once it transfers the data to the printer ?
    The PDF is created after few seconds ... Having a delay works but I don't want to hardcode it ... The other option is to see if the file exists or not and loop till it is created ....
    Any better suggestions ?
    Message Edited by Maximus00 on 09-26-2006 08:05 AM
    Kudos always welcome for helpful posts

    Yeah, That seems like a decent workaround.  While searching I found this old thread which suggests "
    if you disable the spool function of your printer (in XP: advanced
    printer properties/ print directly to printer) Labview will wait until
    the print job is done." but this requires administrator rights on the printer.
    Doug M
    Applications Engineer
    National Instruments
    For those unfamiliar with NBC's The Office, my icon is NOT a picture of me

  • Errors after generating report to PDF

    BUG REPORT:
    Using Reports 10.1.2.0.2, the following error is generated when running a report immediately after having generated the same report to a PDF file:
    ORA-00942: table or view does not exist
    FROM CIMSMGR.==> CTVCORT
    It seems as if Reports has 'disconnected' from the data source. A work around is simply connecting to the data source again (without first disconnecting).

    Hi Chris
    I suggest you apply Reports and Forms Integrated patch on your setup. You can download the patch from metalink site.
    Thanks
    Rohit

  • After generating report in PDF in browser, save on client machine in diff.format

    I want to display my report in the Web Browser (using Servlets), in PDF format.
    Now, the user should be given the option to save this report onto his machine as a local file in a format of his choice (HTML, RTF, PDF, Excel). How can I do this?
    null

    Hello,
    These formats are very different. You can only do this by re-running the report. You could put hyperlinks in the source PDF file that pass on the same command line arguments that were used to run the PDF report, except that DESFORMAT would be changed to another format (HTML, RTF, DELIMITED).
    Regards,
    The Oracle Reports Team --skw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • JSP vs Crystal Report Export to PDF problem

    I have problem using JSP and Crystal Report 10.
    When I exporting report to PDF my font become ??????
    (Only thai font but En font is work fine)
    This mean when deploy report on J2EE (I used tomcat 5.0.27)
    It not support other language or I must use other thing such as
    convert all data to Unicode before export it?
    Please advice me
    thank you
    Note: If I export it with Crystal Report IDE it can read.
    Message was edited by:
    mistwalker

    Hi All,
    Can any one help me to use JSP for export report via Crystal Report 11, as i m using CR 8.5 with Java and for exporting reports i m using Jacob.dll, and reports hosted in IIS. but due to Jacob.dll facing lots of issue and finally not able to export reports.
    Now i installed CR 11 and hosted reports and able to view via my JSP pages, can any one help me how to export report to server.
    Appreciate urgent assistance.
    Regards,
    Imran

  • Server Threw Exception when Exporting the report as PDF

    Hi ,
    I am developing a .Net application , In my application referring to the .rep file which is created using the Business Objects Desktop Intelligence as below
      objBO = new busobj.Application();
                        objBO.Logon(strUserName, strPassword, strServerName, strConnectionMode,false, false);
                        objBO.Visible = false;
                        objBO.Documents.OpenFromEnterprise("PfILS Document.rep", strDomain, BoEnterpriseFolderKind.boFolder);
    After passing the values to the variables of the.rep and refreshing like as below
    objBO.Application.ActiveDocument.Refresh();
    when I tried to save the generated report as .pdf ..
    objBO.Application.ActiveDocument.ExportAsPDF(@"c:\" + Report0101010 + ".pdf");
    I am getting the following issue
    The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))
    and the application fails to export the report to pdf document
    Please help me , what will be root cause of this issue
    Thanks
    Babu
    Edited by: Babu Lakshmikantham on Oct 28, 2009 9:18 AM

    Hi,
    World you like to have a look at the sample [here|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60b54507-de66-2b10-95b8-a89015297027]?
    Hope that helps!
    Thanks.

Maybe you are looking for