Doubt in writing a report from specifications

Hi,
1.On a selection-screen with four select -options as s_vbeln,s_vkorg,s_vtweg,s_spart. I need to validate and write a error message ' enter atleast one field' if it is executed without any values.
2.Also validation should be done that the entered value is correct or incorrect and if it is incorrect it should show the error message concerned to the fields for example if the vkorg value is entered incorrect , it should display'' please enter valid entry' respectively to all the fields.
Can anyone send me a code on how to perform this.
Thanks,
Stalin.

hi.
i'm sending u the code  check it and understand it for ur own fields, select ur own fields from there master tables for single validation and check for each field , and for combine validation for wrong combination of data eneterd on selection screen or no data entered , check this sample code::
**********************VALIDATON OF SONUMBER************************
  SELECT SINGLE vbeln INTO (wa_orderhead-vbeln)
                FROM vbuk
                CLIENT SPECIFIED
                WHERE   mandt = sy-mandt
                  AND vbeln IN s_vbeln.
  IF sy-subrc <> 0.
    MESSAGE e001.          "so number does not exist
  ENDIF.
**********************VALIDATON OF SOTYPE************************
  SELECT SINGLE auart INTO (wa_orderhead-auart)
               FROM tvak
               WHERE auart = s_auart.
  IF sy-subrc <> 0.
    MESSAGE e002.    "doc. type does not exist
  ENDIF.
**********************VALIDATON OF SOLD TO PARTY**********************
  SELECT SINGLE kunnr INTO (wa_orderhead-kunnr)
              FROM kna1
              WHERE kunnr = s_kunnr.
  IF sy-subrc <> 0.
    MESSAGE e003.      "customer does not exist
  ENDIF.
**********************VALIDATON OF BLOCK************************
  SELECT SINGLE lifsp INTO (wa_orderhead-lifsp)
                FROM tvls
                WHERE lifsp = s_lifsk.
  IF sy-subrc <> 0.
    MESSAGE e004.
  ENDIF.
**********************VALIDATON OF ORGANISTION************************
  SELECT SINGLE vkorg INTO (wa_orderhead-vkorg)
               FROM tvko
               WHERE vkorg = s_vkorg.
  IF sy-subrc <> 0.
    MESSAGE e005.
  ENDIF.
**********************VALIDATON OF DISTRIBUTION***********************
  SELECT SINGLE vtweg INTO (wa_orderhead-vtweg)
              FROM tvkov
              WHERE vkorg = s_vkorg and
                    vtweg = s_vtweg.
  IF sy-subrc <> 0.
    MESSAGE e006.
  ENDIF.
**********************VALIDATON OF DIVISION************************
  SELECT SINGLE spart INTO (wa_orderhead-spart)
              FROM tvta
              WHERE vkorg = s_vkorg and
                    vtweg = s_vtweg and
                    spart = s_spart.
  IF sy-subrc <> 0.
    MESSAGE e007.
  ENDIF.
*************************VALIDATION OF DATE************************
  IF s_erdat-low > sy-datum OR s_erdat > sy-datum.
    MESSAGE e008.
  ENDIF.
*********************COMBINATION VALIDATION*********************
  SELECT SINGLE  vbeln
                 auart
                 vbtyp
                 erdat
                 ernam
                 lifsk
                 vkorg
                 vtweg
                 spart
                 kunnr
                 waerk
                 vsbed INTO CORRESPONDING FIELDS OF  wa_orderhead
                 FROM vbak
                 WHERE vbeln = s_vbeln AND
                       auart = s_auart AND
                       vbtyp = s_vbtyp AND
                       erdat = s_erdat AND
                       ernam = s_ernam AND
                       kunnr = s_kunnr AND
                       lifsk = s_lifsk AND
                       vkorg = s_vkorg AND
                       vtweg = s_vtweg AND
                       spart = s_spart .
  IF sy-subrc <> 0.
    MESSAGE e009.
  ENDIF.
  SELECT SINGLE vbeln
                lfgsk
                lfstk
                fkstk INTO (wa_orderhead-vbeln,wa_orderhead-lfgsk,
                            wa_orderhead-lfstk,wa_orderhead-fkstk)
                FROM vbuk
                WHERE vbeln = s_vbeln AND
                      lfgsk = s_lfgsk AND
                      lfstk = s_lfstk AND
                      fkstk = s_fkstk.
  IF sy-subrc <> 0.
    MESSAGE e009.
  ENDIF.
ENDFORM.                    " validate_data
thanks and
reward points if helpful please.
Edited by: Abhishek  Ojha on Feb 6, 2008 6:22 AM

Similar Messages

  • Transport user specific layout of standard report from developer server to

    Hi ,
    I am using user specific layout of standard report in my customizing report for retrieving data from standard report.
    i want to transport this user specific layout of standard report from developer server (say client 400 ) to production server ( say client 100 ).
    Also i want to copy this layout for all end users ( different user names ) in production server.
    I tried to import user specific layout , it is possible only with in   the same server ( say developer server , but different clients , say 400 to 450).
    please help me to sort out this .
    Thanks & regards,
    Hari priya

    hi sadaram,
    Thanks for ur quick reply,
    I am using this user specific layout in my zreport for retrieving data from std report. i don't want this layout to be global for all users. i already created same layout in production also , but i want to copy this user specific layout to some of end users
    ( not all end users) with different user names.
    please suggest any solution to solve this issue..
    regards,
    Hari priya

  • Opening a specific Interactive report from a link

    Hello,
    I have a chart which links back to a page with interactive report. I want to make sure that every time user clicks on the link on the chart page, he is shown the default report view. But currently it shows the last viewed report from various saved reports. Is there a way I can call the default report. I tried RIR in clear cache section of the link but does not seem to take me back to default report.
    Any help is highly appreciated.
    Regards,
    Bhavesh

    Have you looked at the actual Javascript that is called when an interactive report is reset? You might be able to use this in a region that is conditionally "displayed" when the page is called from the chart. Perhaps using the REQUEST as the condition.
    Craig
    [www.oracleapplicationexpress.com|http://www.oracleapplicationexpress.com]

  • Generate report from database using .xsl style sheet

    I am trying to view test result histories for specific uut serial numbers.
    We are logging all test data to the default access database template that was provided with Teststand.
    Is there a method of generating reports from the database that match the format of those generated at runtime?
    I was surprised to find that the default access database did not contain any gui or pre-made reports matching the xsl style sheets chosen in the report options dialog.
    My database skills are weak, I am able to browse the raw data and I see the relationships between some of the tables, but the prospect of recreating one of the xml report formats in access seems daunting. Am I missing something? what is the best way to print a uut report from test data stored in access?

    Hello msears,
    Thank you for posting on the NI Discussion Forums.  Unfortunately there are no tools available in TestStand for directly converting an Access database to a formatted .xsl report.  It is possible to have a step in a sequence that reads the information from the database, and create the .xsl report as if it had been generated at sequence run-time, by writing those values directly to Locals.ResultList.  Admittedly, this would require some knowledge of Microsoft Access, and the ability to write a program that will extract information from the database, in order to include it as a step in the sequence.
    Is there anything stopping you from creating a formatted .xsl report when the sequence is run (instead of trying to create it from previous data stored in an Access database)?
    Chris_G
    Sr Test Engineer
    Medtronic, Inc.

  • Error when printing reports from forms in Linux

    Im having an error when printing a report from a form. The problem is, only with certain forms. when printing a report (to PDF) from other forms, it prints with no problems. The oracle is 10g AS and operating system is Redhat AS 3.
    The error, in the log from the reports server is:
    [2004/9/7 7:14:59:599] Exception 62204 (): Internal error writing the image BandCombine: a row of the matrix does not have the correct number o
    f entries, should be OpImage.getExpandedNumBands(source0.getSampleModel(), source0.getColorModel()) + 1..
    exception oracle.reports.RWException {
    oracle.reports.RWError[] errorChain={struct oracle.reports.RWError {
    int errorCode=62204,
    java.lang.String errorString="Internal error writing the image BandCombine: a row of the matrix does not have the correct number of entries, sh
    ould be OpImage.getExpandedNumBands(source0.getSampleModel(), source0.getColorModel()) + 1..",
    java.lang.String moduleName="REP"
    at oracle.reports.utility.Utility.newRWException(Utility.java:604)
    at oracle.reports.toolkit.image.writer.JPEGImageWriter.writeImage(JPEGImageWriter.java:130)
    at oracle.reports.toolkit.image.ImageManager.writeJPEGImage(ImageManager.java:524)
    at oracle.reports.engine.EngineImpl.CRunReport(Native Method)
    at oracle.reports.engine.EngineImpl.run(EngineImpl.java:353)
    at oracle.reports.engine.EngineClassPOATie.run(EngineClassPOATie.java:84)
    at oracle.reports.engine.EngineClassPOA._invoke(EngineClassPOA.java:117)
    at oracle.reports.engine.EngineClassPOA._invoke(EngineClassPOA.java:62)
    at com.inprise.vbroker.poa.POAImpl.invoke(POAImpl.java:2355)
    at com.inprise.vbroker.poa.ActivationRecord.invoke(ActivationRecord.java:104)
    at com.inprise.vbroker.GIOP.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.java:492)
    at com.inprise.vbroker.IIOP.ServerProtocolAdapter.doRequest(ServerProtocolAdapter.java:64)
    at com.inprise.vbroker.GIOP.GiopProtocolAdapter.dispatchMessage(GiopProtocolAdapter.java:653)
    at com.inprise.vbroker.orb.TPDispatcherImpl$TPDispatcher.run(TPDispatcherImpl.java:99)
    at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:76)
    [2004/9/7 7:14:59:599] Error 50103 (C Engine): 19:14:59 ERR REP-0069: Internal error
    REP-62204: Internal error writing the image BandCombine: a row of the matrix does not have the correct number of entries, should be OpImage.get
    ExpandedNumBands(source0.getSampleModel(), source0.getColorModel()) + 1..
    [2004/9/7 7:14:59:600] Error 50103 (C Engine): Error Writing Image, ID 2
    [2004/9/7 7:14:59:601] Error 50103 (rwtic:rwticga): Look up for image attributes for image 2
    [2004/9/7 7:14:59:602] Error 50103 (rwtic:rwticgi): Looking up for Image, ID 2 in the cache
    [2004/9/7 7:14:59:603] Error 50103 (rwtic:rwticgi): Loading the Image into the cache
    [2004/9/7 7:14:59:603] Debug 50103 (ImageManager:getImageSource): Retrieving the Image object for ID : 2
    [2004/9/7 7:14:59:603] Error 50103 (rwtic:rwticgi): Image successfully loaded into the cache
    [2004/9/7 7:14:59:604] Debug 50103 (ImageSource:getImageHeight ): Start Height : 155
    [2004/9/7 7:14:59:604] Debug 50103 (ImageSource:getImageWidth ): Start : width : 138
    [2004/9/7 7:14:59:604] Debug 50103 (ImageSource:getImageColorSpace ): Start
    [2004/9/7 7:14:59:608] Exception 50125 (): Caught exception: java.lang.NullPointerException
    exception oracle.reports.RWException {
    oracle.reports.RWError[] errorChain={struct oracle.reports.RWError {
    int errorCode=50125,
    If anyone could help me, is important !
    Thx in advance
    Bruno Santos                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Raise a TAR I reckon

  • How to create a new report from an information structure?

    Dear gurus,
    My customer wants to have a sales report by product hierachy. I want to create an information structure for product hierachy and create a report from this info structure like a standard report. I dun know which steps to do. Pls tell me how to do. Your help are highly appreciated.
    Thank you!
    Rgds,
    Nghi Do

    Hi,
    Steps in LIS EXTRACTION:
    T.code - :MC18 u2013 create field catalog
    1. Characteristic Catalog
    Application-01-Sales and Distribution, 02-Purchasing, 03-Inventory Controlling, etc..
    Catalog category 1. Characteristic catalog, 2. Key figures catalog 3. Date catalog Select characteristic catalog and enter, click on characteristic select the source table and it will be display the relevant source field and select the source field, copy + close, copy.
    Save, similarly create key figures catalog
    T.code : MC21 u2013 create infostructure
    Example u2013
    Inforstructure : S789
    Application u2013 01
    Choose characteristic select the catalog, select the fields, copy + close Choose key figures catalog select the key figures ,copy + close, save and generate
    T.code u2013 MC24 u2013 create updating
    Infostructure : S789
    Update group : 01- Sales document, delivery, billing document ,enter Select the key figures click on rules for key figures give suggest rules, copy save and generate Click on updating (activate updating) Select the infostructure set periodic split 1. Daily, 2. Week, 3. Month, 4. Posting period Updating u20131)No updating,2)Synchronous updating (V1), 3)As synchronous updating (V2), 4)As synchronous updating (V3),
    T.code u2013 LBW0 - Connection of LIS Information structures to SAPBW Information structure : S786 Select the radio button-Setup LIS environment and Execute.
    Select the radio button-Generate data source and Execute.
    For Delta update:
    Select the radio button-Generate updating and Execute Select the radio button -Activate / deactivate and Execute.
    T.code u2013 SBIW u2013 Display IMG (implementation guide) Setting for applications specific data source u2013 logistics u2013 Managing transfer information structure u2013 setup of statistical data u2013 applications specific setup of statistical data u2013perform statistical setup u2013 sales.
    Choose activity
    Setup u2013 Orders, deliveries, billing
    Choose the activities enter the infostructure (S789), give name of the run, date of termination, time of termination, No. of tolerated faulty documents. Then execute
    T.code u2013 RSA3 u2013 Extractor checker
    Give the data source name eg. 2LIS 01S789 and execute, result will get some records Go to BW side replicate data source u2013 Assign infosource u2013 Create infocube u2013 Create update rules u2013 create infopackage and schedule the package with initialize delta process.
    For delta update :
    In R/3 side
    T.code u2013 MC25, set update (V1) or (V2) or (V3)
    T.code u2013 LBW0, choose generate updating and execute then choose activate / deactivate and execute
    BW side - create infopackage and schedule the package with delta update.
    First time if your scheduling the infopackage -in R/3 side T.code :MC25 -Udating set to No update,insted of selecting the update V1,V2,V3.
    If your doing the Delta update:in R/3 side T.code :MC25-Updating set to either V1 or V2 or V3. and the to T.code :LBW0 -Select the radio button Active/deactivate and Execute.
    and schedule the infopackage with delta update.
    Modules for LIS : SD,MM, PP,QM.
    Deltas for LIS:
    After setting up the LIS environment, 2 transparent tables and 1 extract structure is generated for this particular info structure. Within transaction SE11 you can view the tables u2018SnnnBIW1u2019, u2018SnnnBIW2u2019 and the structure u2018SnnnBIWSu2019 and the InfoStructure itself u201ASnnnu2018
    The tables S5nnnBIW1 & SnnnnBIW2 are used to assist the delta update process within BW.
    Extract structure u2018SnnnnBIWCu2019 is used as an interface structure between OLTP InfoStructure and BW
    The OLTP system has automatically created an entry in the control table u2018TMCBIWu2019. Within transaction u2018SE16u2019 youu2019ll see, that for your particular InfoStructure the field u2018BIW activeu2019 has the value u2018Xu2019 and the field u2018BIW statusu2019 is filled with value u20181u2019 (refers to table SnnnBIW1).
    The orgininal LIS update program u201ARMCX#### will be enhanced within the form routines u201Aform Snnnbiw1_update_....u2018 and u201Aform Snnnbiw2_update
    With the transaction u2018SE38u2019 youu2019ll see at the end of the program starting at line 870 / 1006, that the program is enhanced within a u2018BIW delta updateu2019 coding
    Within the flag u201AActivate/Deactivateu2018 the update process into the delta tables (SnnnBIW1/Sn5nnBIW2) is swichted on/off. In the table u201ATMCBIWu2018 is defined, which table is active for delta update.
    Note: The delta updating is client dependent !
    Regards,
    Ram Pedarla
    Edited by: RamPedarla on Apr 1, 2010 10:35 AM
    Edited by: RamPedarla on Apr 1, 2010 10:35 AM

  • Inputs requried to create purchase order report from flat file

    inputs requried to create purchase order report from flat file

    At a guess, I'd say purchase order data.
    If you don't give us a clue what you are actually trying to do we can't really help you too much.
    Do you want to call a BAPI?  Do a BDC?  Use an IDOC?  Or just generally muck up the system by doing inserts into the purchasing tables?
    No doubt if you tell us, you'll get lots and lots of suggestions.
    Gareth.

  • Launching a Discoverer report from jsp page

    Hi
    I have a discoverer workbook created using BI Discoverer (for relational). I want to accept some parameters for this workbook from a jsp page, which will also have a "View report" button. This button when pressed should open up the Discoverer workbook and all the parameters from the jsp should be passed to the workbook.
    Is it possible? If yes, any details on it?
    We do the same thing successfully to launch Oracle Reports from jsps, we simply build the url in the jsp, and from jsp we submit it to a new window, and it opens up the report. Similar functionality we are looking to launch Discoverer reports.
    Any help will be appreciated.
    Thanks
    Shalu

    You can open the workbook with URL parameters with Discoverer Viewer much like you would Oracle Reports. Setting anything form the username, password, workbook name, worksheet, and parameters. All the information can be found in the following document:
    http://download-east.oracle.com/docs/cd/B14099_11/bi.1012/b13918/urlstart.htm
    The specific question your asking is addressed under 13.5.2 Example 2. Let me know if you have any issues
    Matt Topper
    Technical Management Consultant
    TUSC, The Oracle Experts
    [email protected]

  • Report from 2.5 to 6i

    We have migrated a character mode report from v2.5 to 6i
    Now the preview of reports show bizarre characters in some PCs, but there are other PCs where it run OK.
    I don't know what can I do, Oracla Support don't know also, so any help will be appreciated
    TIA
    Alberto

    hello,
    maybe the PCs that show the unwanted characters are missing specific fonts you are using the the report. depending on your uifont.ali it might substitute the missing font with something like Wingbats or Dingbats symbol fonts.
    check the font used in the questionable field and see if it is installed on the machine or maybe if it is -by accident- substituted using uifont.ali
    regards,
    the oracle reports team

  • Issue with SSRS Loading Report from Definition From Assembly

    I am using SharePoint 2010. I created web-part where there is report viewer control. On the page load of the control. I am writing below codes to load report from definition. Web part is not giving any error but also not lading report. I tried to make physical
    report file from my stream and I found that report is correct.
    But I don't know what is missing.
    protected void Page_Load(object sender, EventArgs e)
    if (!IsPostBack)
    Assembly assembly = Assembly.Load("Reports, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f51c855eec632536");
    Stream stream = assembly.GetManifestResourceStream("Reports.Reports.rdlc");
    MemoryStream rdl = new MemoryStream();
    CopyTo(stream, rdl);
    rptInspectorPlan.Reset();
    rptInspectorPlan.LocalReport.LoadReportDefinition(rdl);
    rptInspectorPlan.LocalReport.DataSources.Clear();
    rptInspectorPlan.LocalReport.DataSources.Add(new ReportDataSource("MyData", finalData(getInspectionPlan())));
    rptInspectorPlan.LocalReport.Refresh();
    protected DataTable getInspectionPlan()
    DataTable dt = new DataTable();
    DataTable dtCurrentUser = getCurrentUser();
    using (SPSite site = new SPSite(getMarketSurveillanceURL()))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists.TryGetList("InspectionPlan");
    SPQuery oQuery = new SPQuery();
    string query = "<Where><Eq><FieldRef Name='Title'/><Value Type='Text'>" + dtCurrentUser.Rows[0]["ID"].ToString() + "</Value></Eq></Where>";//getCurrentUserID()
    oQuery.Query = query;
    dt = list.GetItems(oQuery).GetDataTable();
    return dt;
    protected string getMarketSurveillanceURL()
    string URL = ConfigurationManager.AppSettings["MarketSurveillanceURL"].ToString();
    return URL;
    protected string getMainSiteURL()
    string URL = ConfigurationManager.AppSettings["MainSiteURL"].ToString();
    return URL;
    protected DataTable getCurrentUser()
    SPUser user = SPContext.Current.Web.CurrentUser;
    DataTable currentUser = new DataTable();
    using (SPSite site = new SPSite(getMarketSurveillanceURL()))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists.TryGetList("Inspector");
    SPQuery oQuery = new SPQuery();
    string query = "<Query><Where><Eq><FieldRef Name='LoginID'/><Value Type='Text'>" + user.LoginName + "</Value></Eq></Where></Query>";
    oQuery.ViewFields = "<FieldRef Name='ID'/><FieldRef Name='Title'/>";
    oQuery.Query = query;
    currentUser = list.GetItems(oQuery).GetDataTable();
    return currentUser;
    protected DataTable finalData(DataTable inspectionPlan)
    DataTable dt = inspectionPlan;
    DataTable dtCurrentUser = getCurrentUser();
    dt.Columns.Add("InspectorName");
    dt.Columns.Add("ProductName");
    dt.Columns.Add("CategoryName");
    dt.Columns.Add("InspectionTypeName");
    foreach (DataRow dr in dt.Rows)
    if (dr["Title"].ToString() == dtCurrentUser.Rows[0]["ID"].ToString()) dr["InspectorName"] = dtCurrentUser.Rows[0]["Title"].ToString();
    dr["ProductName"] = getProductName(dr["ProductID"].ToString());
    dr["CategoryName"] = getCategoryName(dr["ProductID"].ToString());
    switch (dr["InspectionType"].ToString())
    case "0":
    dr["InspectionTypeName"] = "Periodic";
    break;
    case "1":
    dr["InspectionTypeName"] = "ComplainFollowup";
    break;
    dt.AcceptChanges();
    return dt;
    protected string getProductName(string id)
    string productName = "";
    DataTable dt = new DataTable();
    using (SPSite site = new SPSite(getMarketSurveillanceURL()))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists.TryGetList("Product");
    SPQuery oQuery = new SPQuery();
    string query = "<Where><Eq><FieldRef Name='ID'/><Value Type='Text'>" + id + "</Value></Eq></Where>";//getCurrentUserID()
    oQuery.ViewFields = "<FieldRef Name='ProductEN'/><FieldRef Name='ProductAr'/>";
    oQuery.Query = query;
    dt = list.GetItems(oQuery).GetDataTable();
    foreach (DataRow dr in dt.Rows)
    productName = dr["ProductEN"].ToString();
    return productName;
    protected string getCategoryName(string productID)
    string categoryName = "", CategoryID = "";
    DataTable dtCategory = new DataTable();
    DataTable dtProduct = new DataTable();
    using (SPSite site = new SPSite(getMarketSurveillanceURL()))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists.TryGetList("Product");
    SPQuery oQuery = new SPQuery();
    string query = "<Where><Eq><FieldRef Name='ID'/><Value Type='Counter'>" + productID + "</Value></Eq></Where>";
    oQuery.ViewFields = "<FieldRef Name='CategoryID'/>";
    oQuery.Query = query;
    dtProduct = list.GetItems(oQuery).GetDataTable();
    foreach (DataRow dr in dtProduct.Rows)
    CategoryID = dr["CategoryID"].ToString();
    using (SPSite site = new SPSite(getMainSiteURL()))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists.TryGetList("SAS_Categories");
    SPQuery oQuery = new SPQuery();
    string query = "<Where><Eq><FieldRef Name='ID'/><Value Type='Text'>" + CategoryID + "</Value></Eq></Where>";
    oQuery.ViewFields = "<FieldRef Name='Category_Title_EN'/><FieldRef Name='Category_Title_Ar'/>";
    oQuery.Query = query;
    dtCategory = list.GetItems(oQuery).GetDataTable();
    foreach (DataRow dr in dtCategory.Rows)
    categoryName = dr["Category_Title_EN"].ToString();
    return categoryName;
    public static void CopyTo(Stream input, MemoryStream output)
    byte[] buffer = new byte[16 * 1024]; // Fairly arbitrary size
    int bytesRead;
    while ((bytesRead = input.Read(buffer, 0, buffer.Length)) > 0)
    output.Write(buffer, 0, bytesRead);

    Have you found a solution to this issue? I am searching for the same.

  • Open a crystal report from WAD with passing  the variables values

    Hi,
    I need to know is there any way to link SAP WAD to crystal reports (open a crystal report from WAD)and pass the values of the variables which are entered in the Web App. (e.g. Customer id,year) should be passed to the Crystal Report.
    Maybe we need to pass parameter by WAD URL but this is just my assumption and have no idea how to do this with passing variable values.
    right now I know the method of how Bex queries which are used as data source for crystal reports but in my current scenario we have the structure like this that bex queries link with WAD and then WAD is linked with crystal reports.
    No doubt that Crystal report is target option in RRI but there the source is Bex Query only but in current scenario we are looking  WAD (web template) as a source to crystal report or crystal report called in WAD.
    Please suggest something on same.
    Thanks
    Take care
    Vishal sharma

    Hello Vishal.
    Did you find a solution for this problem?
    I'm facing right now the same problem, I need a way to link SAP WAD to crystal reports (open a crystal report from WAD) and pass the values of the variables which are entered in the Web App. (e.g. Customer id,year) should be passed to the Crystal Report.
    Have found an answer to this issue? If yes, please kindly inform how have you solved this.
    Best Regars
    Armando Santos

  • HOW TO Call REPORT from FORM usning a Button ?

    Hi All,
    Please Help me and Help other Beginers in this :
    Hot to call a report from a form using WHEN_BUTTON_PRESSED trigger (using Oracle 10g R1)
    Should i save the report as .rdf or .jsp ?
    Should i save the report in a specific path ?
    Should i add the path to the REPORTS_PATH in the registery ?
    What about the Report Server ? should i install it first ?
    What about the report properties ? what should i change ?
    Please Help with Steps to make this sample report with the most important thing which is the PLSQL code we will type in the WHEN_BUTTON_PRESSED trigger.
    Regards,
    PS. i tried to search in the forum .. but u can imagine how hard it is to look within Messages: 164,066 - Threads: 46,773 - Pages: 3,119 :)

    Hi there,
    Most of the things do not come for free. You need to spend some effort in order to obtain results.
    Check run_product, run_report_object built-in.
    Also, download the documentation library and go through:
    http://www.oracle.com/technology/documentation/devsuite.html
    The example of how to use the run_product directly from the book "Oracle Forms Developer Form Builder Reference, Volume 1 - Release 6i.pdf":
    RUN_PRODUCT examples
    ** Built-in: RUN_PRODUCT
    ** Example: Call a Report Builder report, passing the
    ** data in record group ’EMP_RECS’ to substitute
    ** for the report’s query named ’EMP_QUERY’.
    ** Presumes the Emp_Recs record group already
    ** exists and has the same column/data type
    ** structure as the report’s Emp_Query query.
    PROCEDURE Run_Emp_Report IS
    pl_id ParamList;
    BEGIN
    ** Check to see if the ’tmpdata’ parameter list exists.
    349
    pl_id := Get_Parameter_List(’tmpdata’);
    ** If it does, then delete it before we create it again in
    ** case it contains parameters that are not useful for our
    ** purposes here.
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    ** Create the ’tmpdata’ parameter list afresh.
    pl_id := Create_Parameter_List(’tmpdata’);
    ** Add a data parameter to this parameter list that will
    ** establish the relationship between the named query
    ** ’EMP_QUERY’ in the report, and the record group named
    ** ’EMP_RECS’ in the form.
    Add_Parameter(pl_id,’EMP_QUERY’,DATA_PARAMETER,’EMP_RECS’);
    **Pass a Parameter into PARAMFORM so that a parameter dialog
    will not appear
    **for the parameters being passing in.
    Add_Parameter(pl_id, ’PARAMFORM’, TEXT_PARAMETER, ’NO’);
    ** Run the report synchronously, passing the parameter list
    Run_Product(REPORTS, ’empreport’, SYNCHRONOUS, RUNTIME,
    FILESYSTEM, pl_id, NULL);
    END;
    Hope it helps,
    Michael

  • Calling a report from HTML

    Hi All ,
    I am trying to call a report from Static view.Now , I know we can call a page or dashboard from the statis view by writing th HTML content.
    Can we also call a report from the Static View .
    I tried using :
    <a
    href="/Analytics/saw.dll?Path=/shared/Sample%20store/_portal/DashboardName/Report%20Name">
    Here, the report 'Report Name' is in the dashboard 'Dashboard Name' .
    The report location is : /shared/Sample store/Report Folder/Report Name
    Can we directly call the report without going to Dashboard as I have tried in above HTML statement.
    Thanks!

    hi,
    Create a static view with the following code which will directly open report not the dashboard,if u want you can make the input type as button,I guess we will not get the dynamic report name as your
    The report location is : /shared/Sample store/Report Folder/Report Name
    The alternative if any user click on that "TEXT" it will take you to that report
    {p}
    Here, the report 'Report Name' is in the dashboard 'Dashboard Name' .
    To edit the report
    {input type="text" value ="Report Location is :"
    onclick="window.location='saw.dll?Answers&ItemName=Bench To Individual - Help&Folder=/shared/Sample Sales/02 History and Benching&LocItemName=Bench To Individual - Help'"}
    {P}
    Hope this helps you
    PS: Replace {} with <> codes
    thanks,
    Saichand Varanasi

  • How to generate a report from crm table to find out user status changes

    Dear all,
    Could you please help me on generating a report from SAP CRM table level
    to find out user status changes in crm orders for a specific period of time?
    Thanks in advance,
    Regards,
    Shaik

    Hi Shaik.
    You would not need to write report for this. You need to create a Table view mainenance for the CRMD_ORDERADM_H or CRMD_ORDERADM_I for whichever  you need.
    Follow the below or search on google for more on table view maintenance.
    Go to SE11, give the table name and click on change. Then Go to utilities--> Table maintenance generator.
    In the table maintenance generator screen, you should give Authorization Group,
    Function Group name (Function Group name can be same as table name),
    Maintenance type can be one step or two step, usually you will create with one
    step. You should give maintenance screen number. After clicking on create button,
    a table maintenance generator will be created.
    To check it go to SM30 . In SM30, you find display, Maintain options.
    You can view the table contents by choosing Display and  supplying the selection criteria of dates.
    Regards
    Apoorva

  • How to generate a MSDS report from status GP (Generation possible) to RE

    Hi EHS Goeroes,
    I'm struggling with the Generation of the MSDS. I have done the following procedure and settings:
    a) Create MSDS report (CG42)
    b) Edit Generation Variant (CG2B)
    Settings:
    (I have assigned my template to the Generation Variant)
    Generate manual request automatically: marked
    Change Marks: 0
    Initial release status: RE (released)
    Version requirement: unmarked
    Set historical automatically: unmarked
    c) EHS > Specification Workbench > Report from Template (to test the design - display is correct and all phrases can be found)
    d) EHS > Specification Workbench > Create new report
    (report has been created succesfully and appears in Report Management).
    e) EHS > Specification Workbench > Report Management:
    MSDS_29 Material Safety Data Sheet for China World
    Chinese Not Relevant Generation Poss. => generation possible.
    Feedback affter clicking on Accept: You tried to carry out action 'Accept' on a report with status GP. However, this action is not allowed for reports with this status.
    Feedback after clicking on Generate: You tried to carry out action 'Generate' on a report with status GP. However, this action is not allowed for reports with this status.
    d) SE38 I have no jobs scheduled yet, so I run the following two programs to start the worklist manually, RC1AVGE1 and RC1AVGE2.
    RC1AVGE1 - gave allot of feedback information regarding to changes and so on (first time I run it).
    RC1AVGE2 - feedback: EHS: 'Worklist Generation for Reports - Selection for Check. - 0 reports to be checked were found'
    From my understanding program RC1AVGE2 - should generate the MSDS.
    e) WWI - monitor display (CG5Z):
    100 @03\QNo background processes in client@ 5 SBR WWI-00000000000000000002 FREE RMDERKS
    110 @03\QNo background processes in client@ 5 SBR WWI-00000000000000000063 FREE A132645
    xxx SV001 @5B\QWWI server is active@ @02\QNo background processes on WWI server@
    xxx SV003 @5C\QWWI server is inactive@ @02\QNo background processes on WWI server@
    I checked if I had any jobs running in the background or has been finished, but it seems like it goes wrong here, the system does not generate a job for the generation of the MSDS_29. To be able to get the status of MSDS_29 to RE (Released).
    Does anybody has an idea what I do wrong, or which settings might be incorrect? Futhermore, what are the further steps to issue the report in the SD module - report shipping?
    Help is much appreciated!
    Roy Derks

    Hi Roy,
    Check and activate the QWWI server for the second job wwi - 110. Try once to generate the MSDS.
    I will revert back if i get information.
    regards,
    mahesh.

Maybe you are looking for