QUery upload Problem

Hi all,
We have problem in infoset query uploading. we have some queries in  system 4.6 we need them in ECC6.0. we r  using program RSAQR3TR to download and upload the queries (not import and export).
I am able to download but while uploading i am getting an error..
'F Error when generating transport dataset'....
Any inputs guys..
Thanks & Regards,
sksk
Edited by: Vijay Babu Dudla on Jun 9, 2009 7:59 AM

Hi sk,
Some time back i have faced the same question..got no answers.
Reg:Infoset query Uploading..
Actually the Problem is with some Versions.since the versions are different in 4.6 and ECC 6.0
we cannot upload and download them.Later,we did it manually in ECC.
Edited by: krishna kishore on Jun 9, 2009 6:41 PM
Edited by: krishna kishore on Jun 9, 2009 6:43 PM

Similar Messages

  • Reg:Infoset query Uploading..

    Hi all,
    I am facing problem in infoset query uploading.We have some queries in Old system we need them in ECC.I am using program RSAQR3TR to download and upload the queries (not import and export).
    I am able to download but while uploading i am getting an error..
      'F   Error when generating transport dataset'....
    Any inputs guys..
    Thanks in advance,
    KK
    Edited by: krishna kishore on Apr 24, 2009 9:56 PM
    Edited by: krishna kishore on Apr 27, 2009 4:02 PM

    Hi all,
    I am facing problem in infoset query uploading.We have some queries in Old system we need them in ECC.I am using program RSAQR3TR to download and upload the queries (not import and export).
    I am able to download but while uploading i am getting an error..
      'F   Error when generating transport dataset'....
    Any inputs guys..
    Thanks in advance,
    KK
    Edited by: krishna kishore on Apr 24, 2009 9:56 PM
    Edited by: krishna kishore on Apr 27, 2009 4:02 PM

  • Need a fix for Muse upload problems to GoDaddy????  I found one!

    GoDaddy now has a new cpanel named "Plesk".  In that panel you will find File Manager.  (I use the Windows version).  In the left panel of File Manager, you will see the root directory and all of its subfolders.  When you click on any of these folders, you will see their contents in the right panel.  You will also see a folder labelled "httpdocs".  This is the default folder that is set up in GoDaddy to be your "home" folder.  So, to fix your upload problems, do these steps:
    1.  Click on the httpdocs folder to see it open in the right panel.  In the toolbar above the right panel, you will see a green plus sign with the word "New".  Click on this drop-down menu.
    2.  Choose "directory"
    3.  Type in the name of one of the folders that your site will need, e.g. images, css, assets, scripts, etc.  This basically creates a subfolder within the httpdocs folder, right?  (There is a way to see how your Muse site sets up these folders prior to publish or upload.  You do this by choosing "Export as HTML" in the File menu of Muse, creating a folder on your desktop (or wherever) for the HTML export, then inspecting its contents after your save it.)
    4.  Continue to create all the subfolders within httpdocs that you will need.  Unfortunately, you have to do this one folder at a time.
    5.  After you have them set up, begin the process of uploading your site, like this:
    6.  In the File menu in Muse, you'll of course see "Upload to FTP Host ...".  Click on it.
    7.  A dialog box will open.  In the top text field, type in your website name ... you must use www. with your entry
    8.  In the "FTP Host" field, type in your domain name again like this ... "ftp.yourdomain.com" ... NO FORWARD SLASHES!!! (even if you find instructions to the contrary, like in Filezilla)  (Also, your domain might be a .org or .net, instead of a .com)
    9.  In the "Host directory" field, YOU MUST ENTER "httpdocs"!!!!  Despite what you learn, DO NOT LEAVE THIS FIELD BLANK!!!
    10.  Then enter your GoDaddy username and password.  (If you set up a different username for your GoDaddy account and your Plesk account, like I did, then use your Plesk username and password.)
    11.  Click on "Upload:  All Files"
    The next few steps are tedious, but necessary to keep your site organized on GoDaddy and to keep from confusing things.  You can probably get away with it, but, if your site doesn't load properly in a browser after doing the above steps, you'll need to click on each folder in the root directory that you copied as a subfolder in the "httpdocs" folder and delete the files.  For example, in the left panel of File Manager, you'll see the root directory.  Click on the "images" folder.  If there are any images that you need for your site in that folder, delete them.  Remember ... you've already copied them over to the images subfolder in httpdocs during your last upload described in the instructions above.  If you don't trust that you can delete them, click on the "httpdocs" folder, then click on the "images" folder and check the files.  Same files, right?  So, go ahead and delete the site files that you find in the appropriate folders in the root directory, making sure that you don't delete the ones that are NOT duplicated within the "httpdocs" folder.  Also remember that your .html pages will not require a subfolder to be set up in the "httpsdocs" folder.  They can just sit there, looking pretty.  But you will have to delete them from the root directory to keep things tidy.  Just click on the folder icon next to "root directory", and you'll see those html pages in the right panel.  Again, delete them. 
    REMEMBER:  To keep your Muse uploads to your GoDaddy site error free, you must ALWAYS make sure that "httpdocs" appears in the "Host directory" field in the "Upload to FTP Host ..." dialog box in Muse.  And all files and folders that your site needs MUST go in the "httpdocs" folder in the root directory of your site in GoDaddy's File Manager (now found in your Plesk Panel).
    I hope this wasn't too confusing.  If so, call GoDaddy.  I called them with this fix and they are using it in their phone support.

    Thank you! Thank you! Thank you! I was going out of my mind. And GoDaddy was no help (although they're usually really good.) I put all the folders in "httpdocs" and the website worked perfectly!

  • About query related problem

    hi ,
           we are generate query in 2005b,and procced for execuite query.following problem occure'<b>odbc sql server driver'[sql server] syntax error the converting the nvarchar value' 70302/20307' to column of data type int received alert OAIB</b>
    QUERY SHOWN BE AS FOLLOW.
    SELECT T5.DocNum as'Po. No. ', T5.DocDate as 'Po Date',T0.CreateDate,T5.NumAtCard as 'Man.PO. No/ Dt.', T0.DocNum as'AP No. ', T0.DocDate as 'AP Date',T0.NumAtCard as 'Vendor Ref. No.', T0.U_vbdt as 'Vendor Ref. Date', T0.CardName as 'Vendor', T1.Dscription as 'Item',  T1.Quantity AS 'QTY'  , T1.Price as 'Basic Rate', (T1.Price *T1.Quantity) as 'Value',T0.Comments as 'Po No. & Po.Dt.' FROM OPCH T0 INNER JOIN PCH1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OCRD T2 ON T0.CardCode = T2.CardCode INNER JOIN OPDN T3 ON T2.CardCode = T3.CardCode INNER JOIN PDN1 T4 ON T3.DocEntry = T4.DocEntry INNER JOIN OPOR T5 ON T2.CardCode = T5.CardCode INNER JOIN POR1 T6 ON T5.DocEntry = T6.DocEntry INNER JOIN OITM T7 ON T1.ItemCode = T7.ItemCode INNER JOIN OITB T8 ON T7.ItmsGrpCod = T8.ItmsGrpCod WHERE (  T1.BaseRef  =  T3.DocNum )  AND ( T4.BaseRef =  T5.DocNum ) AND (  T0.U_vbdt >=[%25]AND  T0.U_vbdt <=[%26]) AND ( T4.Dscription =T1.Dscription ) AND ( T4.Dscription = T6.Dscription  ) AND  (( T1.Dscription=[%0] OR T1.Dscription=[%1] OR T1.Dscription=[%2] OR T1.Dscription=[%3] OR T1.Dscription=[%4] OR T1.Dscription=[%5] OR T1.Dscription=[%6] OR T1.Dscription=[%7] OR T1.Dscription=[%8] ) OR ( T0.CardName=[%10] OR T0.CardName=[%09] OR T0.CardName=[%27] OR T0.CardName=[%28] ) OR ((  T8.ItmsGrpNam =[%11]  oR T8.ItmsGrpNam =[%12] OR T8.ItmsGrpNam =[%13] OR T8.ItmsGrpNam =[%14] OR T8.ItmsGrpNam =[%15] OR T8.ItmsGrpNam =[%16] OR T8.ItmsGrpNam =[%17] OR T8.ItmsGrpNam =[%18] OR T8.ItmsGrpNam =[%19] ) and  ( T7.U_FirmName =[%20] OR T7.U_FirmName =[%21] OR T7.U_FirmName =[%22] 
    oR T7.U_FirmName =[%23] OR T7.U_FirmName =[%24] )) )

    Hi Vishal,
    the value '70302/20307' is not an whole number so converting it to an int is not possible.
    You should check your data for this value an change your query or data.
    Regards
    Ad

  • Query designing problem while applying cell properties

    Hello Experts,
    I have a problem while designing query. Problem is as follow:
    I have a calculated field on key figure column. This key figure calculates variance between 2 columns.
    for E.g I have 2 columns Budget and Actual and third column is %Variance which should be          
    1. ((Actual - Budget)/Budget) *100 or
    2. ((Budget -Actual)/Budget)*100, depening on some values on the row i should use any of these 2 formulas but the result should be dispalyed in single column % Variance.
    how can i change the formula in key figures depending on these conditions. I can achieve this by applying cells but i dont want to do so as it is very complex way to desing these queries.
    also let me know applying cells on query affects its performance or not?
    Regards,
    Nirav

    Hi Nitin,
    Your reply may help me.
    But my exact requirement is not that. Requirement is as follow:
    I have created Char. Structure in row which contains few rows as revenue and few rows as expense.
    I created them by creating selections. Now in case of expense the variance should be                (Budget-Actual)/Budget *100.
    In case of revenue variance should be (Actual-Budget)/Budget *100.
    So, here i have to find out revenue & expense char. iresspective of which one is greater.
    Regards,
    Nirav

  • Query has problem

    Below query has problem .
    Pls see the queries for Usage Summary with Partition and Without Partition
    . I have executed this now so it may be in Buffer …****
    DB Query ... SUM from event objects, bin variables
    SELECT sum(amount) , sum(quantity), event.poid_type,ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,ebal.
    rate_obj_id0, ebal.OFFERING_OBJ_ID0, ebal.IMPACT_CATEGORY ****
    FROM event_bal_impacts_t ebal, item_t item, event_tevent*
    WHERE event.item_obj_id0 = item.poid_id0****
    AND ebal.obj_id0 = event.poid_id0****
    --                   and event.Poid_id0 >= 266838277921701888****
    --                 and event.Poid_id0 < 267928993456455680****
    --               and ebal.obj_id0 >= 266838277921701888****
    --             and ebal.obj_id0 < 267928993456455680****
    AND item.bill_obj_id0 = 148715294****
    AND ebal.product_obj_id0 = 27433706****
    AND ebal.account_obj_id0 = 146876519****
    AND item.account_obj_id0 = 146876519****
    AND event.poid_type like '%session/telco/gsm%'****
    AND ebal.impact_category <> 'Free'****
    AND resource_id not in (select resource_id from
    resource_id_t)****
    group by****
    event.poid_type, ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,****
    ebal.rate_obj_id0, ebal.OFFERING_OBJ_ID0,ebal.
    IMPACT_CATEGORY****
    order by****
    ebal.resource_id desc;****
    SELECT sum(amount) , sum(quantity), event.poid_type,ebal.
    resource_id,****
    event.service_obj_type, event.service_obj_id0,ebal.
    rate_obj_id0, ebal.OFFERING_OBJ_ID0, ebal.IMPACT_CATEGORY ****
    FROM event_bal_impacts_t ebal, item_t item, event_tevent*
    WHERE event.item_obj_id0 = item.poid_id0****
    AND ebal.obj_id0 = event.poid_id0****
    and event.Poid_id0 >= 264199450015039488****
    and event.Poid_id0 < 265237388991660032****
    and ebal.obj_id0 >= 264199450015039488****
    and ebal.obj_id0 < 265237388991660032****
    AND item.bill_obj_id0 = 148715294****
    AND ebal.product_obj_id0 = 27433706****
    AND ebal.account_obj_id0 = 146876519****
    AND item.account_obj_id0 = 146876519****
    AND event.poid_type like '%session/telco/gsm%'****
    AND ebal.impact_category <> 'Free'****
    AND resource_id not in (select resource_id from
    resource_id_t)****
    group by****
    event.poid_type, ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,****
    ebal.rate_obj_id0, ebal.OFFERING_OBJ_ID0,ebal.
    IMPACT_CATEGORY****
    order by****
    ebal.resource_id desc;****
    --

    848478 wrote:
    Below query has problem .
    Pls see the queries for Usage Summary with Partition and Without Partition
    . I have executed this now so it may be in Buffer …****
    DB Query ... SUM from event objects, bin variables
    SELECT sum(amount) , sum(quantity), event.poid_type,ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,ebal.
    rate_obj_id0, ebal.OFFERING_OBJ_ID0, ebal.IMPACT_CATEGORY ****
    FROM event_bal_impacts_t ebal, item_t item, event_tevent*
    WHERE event.item_obj_id0 = item.poid_id0****
    AND ebal.obj_id0 = event.poid_id0****
    --                   and event.Poid_id0 >= 266838277921701888****
    --                 and event.Poid_id0 < 267928993456455680****
    --               and ebal.obj_id0 >= 266838277921701888****
    --             and ebal.obj_id0 < 267928993456455680****
    AND item.bill_obj_id0 = 148715294****
    AND ebal.product_obj_id0 = 27433706****
    AND ebal.account_obj_id0 = 146876519****
    AND item.account_obj_id0 = 146876519****
    AND event.poid_type like '%session/telco/gsm%'****
    AND ebal.impact_category <> 'Free'****
    AND resource_id not in (select resource_id from
    resource_id_t)****
    group by****
    event.poid_type, ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,****
    ebal.rate_obj_id0, ebal.OFFERING_OBJ_ID0,ebal.
    IMPACT_CATEGORY****
    order by****
    ebal.resource_id desc;****
    SELECT sum(amount) , sum(quantity), event.poid_type,ebal.
    resource_id,****
    event.service_obj_type, event.service_obj_id0,ebal.
    rate_obj_id0, ebal.OFFERING_OBJ_ID0, ebal.IMPACT_CATEGORY ****
    FROM event_bal_impacts_t ebal, item_t item, event_tevent*
    WHERE event.item_obj_id0 = item.poid_id0****
    AND ebal.obj_id0 = event.poid_id0****
    and event.Poid_id0 >= 264199450015039488****
    and event.Poid_id0 < 265237388991660032****
    and ebal.obj_id0 >= 264199450015039488****
    and ebal.obj_id0 < 265237388991660032****
    AND item.bill_obj_id0 = 148715294****
    AND ebal.product_obj_id0 = 27433706****
    AND ebal.account_obj_id0 = 146876519****
    AND item.account_obj_id0 = 146876519****
    AND event.poid_type like '%session/telco/gsm%'****
    AND ebal.impact_category <> 'Free'****
    AND resource_id not in (select resource_id from
    resource_id_t)****
    group by****
    event.poid_type, ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,****
    ebal.rate_obj_id0, ebal.OFFERING_OBJ_ID0,ebal.
    IMPACT_CATEGORY****
    order by****
    ebal.resource_id desc;****
    --Consider getting the asterisk key fixed, since it results in invalid SQL syntax

  • A different uploading problem

    I have read through the discussions and see that a lot of people are having an uploading problem. I am too, but my problem is a little different. When I upload my photos, everything seems to be fine, all the pages turn from blue to red, and it appears to be done. But, if I quit iWeb, it says it hasn't finished uploading. When I go to the site on the web, everything is there. So, it seems to not be finalizing the last little part where it marks the files as uploaded.
    I am using iWeb 1.1.1.
    I have tried deleting the files from my iDisk and uploading again.
    I have repaired permissions.
    I have deleted the file com.apple.iWeb.plist
    It's not that I'm trying to quit too soon, I have left it for hours, even overnight, and it doesn't complete.
    There's a small circle to the right of the word site that fills in to show progress as it's finishing, and that gets to the point where there's only a small sliver of white.
    Any ideas? Thanks for the help!
    Kirsten
    MacBook   Mac OS X (10.4.7)  

    Have you tried "Publish ALL to .Mac"?

  • Uploading problem with Ebay and Dreamweaver MX

    I am unable to sync websites with Dreamweaver MX 6.01. When I connect to the remote server, it shuts down the program. I have reinstalled the program, but it still does it. Also, when I use Safari, Opera, and Firefox to upload photos on Ebay, the upload process fails completely, and blows me directly into My Ebay, as if I was not on the selling page at all. I have to go to my PC to do the photo uploads. Seems like it may be a related issue, some kind of uploading problem with Rosetta, or something. I am using a Macbook Pro with the 2.0Ghz processor, connected with ethernet cable, and firewall is set to off. Any ideas?

    For E-Bay you might try the following:
    Type the following command in Terminal (while Safari is NOT running):
    defaults write com.apple.Safari IncludeDebugMenu 1
    Then launch Safari, and you will be able to use the new Debug menu.
    If you ever wish to disable it again, just repeat the command with a "0" instead of a "1".
    Under the Debug menu, you'll see the User Agent sub-menu; select Windows MSIE 6.0 from the list and then try connecting to your web site
    Dreamweaver you might need to update your version.
    To Dreamweaver 8.01
    http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=f56452a8

  • Failure to search - query window problem

    Hello again,
    Have anyone of you came across a problem with SAP search mechanism in query window attached to document field? I've created a simple query of "Select acctcode,acctname from OACT where acctcode like '2%' and postable='Y' order by acctcode" and attached it to one of document fields (doesn't matter which one). When I run this query a usual window poped up with a search field on the top, but when I typed "2" in it, selection bar moved right into first 231 account ignoring any of the lesser numbers. There is more - when I changed query to search for '5%' like accounts, I gained the same result - accounts less than 530 were ignored even if I typed "50" or "51". BUT - when I changed query sort order to "desc", all account became "findable".
    I got this problem in one database only which is SAP 8.8 PL10 version upgraded recently from 2007A one. I've checked with a newly created 8.8 and such problem hasn't occured.

    Hello Thomasz,
    I might be off base here, what happens when you use this??? 
    Do you get the same types of query window problem???
    Select
    acctcode,
    acctname,
    segment_0
    from OACT
    where Segment_0 like '2%'
    order by acctcode
    for browse
    Regards,
    Zal

  • Uploading problems with Safari 4.1.3 -

    Hello, I just thought this was a funny question to ask -
    On my PowerPC G5 tower, running OS 10.4.11, and my question is in regards to Safari version 4.1.3 uploading problems for facebook and youtube... I always have to use FireFox version 3.6.13... and not without trouble either.
    I get it.  I need a new computer, but I just thought it fascinating why one works 90% of the time and the other never works.

    Firefox is way more upto date than Safari in 10.4.11, but TenFourFox is the most up to date browser for our PPCs, they even have G4 & G5 optimized versions...
    http://www.floodgap.com/software/tenfourfox/
    Also I think they Require Flash &/or Java, which may be a problem in 10.4

  • Is Safari the problem?  upload problems after Leopard install...

    I installed maximum ram and leopard 10.5 on my old emac and it runs great. I had problems uploading photos to ebay, and attachments to emails, so I installed ilife hoping the upgrade would fix the problem. Nope, when I attempt to upload, the icon just spins and spins, on and on. Could this be a Safari problem? Very frustrated, totally stumped.

    I'm not sure how to link to the iPhoto post thread that help me solve my upload problem. But it is solved. I had to resize the jpeg pic files to 640x320 because my files were way to big. Thanks Old Toad!

  • Problem in query upload

    Hi All,
    I am facing a difficulty regarding uploading values in multiple selection in query.
    we have a query where a range of company codes can be selected . now user wants to upload the list of company code (CSV file) but while uploading it throws error "You donot have authorization to read object 'ZCOMPCO' comapny code check '
    Can anybody please tell what to do in this case.
    This report is newly created report.
    Regards,
    Dola

    FilePart filePart = (FilePart) part;
              String fileName = filePart.getFileName();
              if (fileName != null) {
                   // the part actually contained a file
    String path= getServletContext().getRealPath("/empimages");
    File dir = new File(path);
                   long size = filePart.writeTo(dir);
                   }

  • Uploading problem on java ................

    HI
    I have written a java code, which upload Files into tomcat server and file path will be store in DB Table .
    I can able to upload file which is less then 100kb and code is working fine and file is storing properly on tomcat srevre and path is storing in DB table  .
    Problem is when we try to upload file size more then 100kb then the same code is not able to coonect the database on Production server(i mean on hosting server in which we have hosted our website ) ....
    Please let me know why code is not connecting to the databse only on when the  file size is exceeds 100kb .+
    i am sure if it connects Database then file will definitely uploads into server

    HI ,
    The below code is working fine in local system for Different File sizes .
    when we upload same code on hosting server or production server its not working fine .
    As i said you if file exceeds more then 100kb then its not uploading into hosting server or production server and not even uploading entry in database Table .
    **The Problem we are getting only if the file exceeds more then 100kb size on production server or hosting server only **
    The below code which we used will performs , it takes Form fields such as Filaname,Type of Hoarding , dimenssion ,and uploaded file ...etc .All thease fields will store in Database table and file will store in server .
    <%
    try{
    String contentType = request.getContentType();
    //out.println("Content type is :: " +contentType);
    if ((contentType != null) && (contentType.indexOf("multipart/form-data") >= 0))
    DataInputStream in = new DataInputStream(request.getInputStream());
    int formDataLength = request.getContentLength();
    //out.println("total size"+formDataLength);
         byte dataBytes[] = new byte[formDataLength];
              int byteRead = 0;
              int totalBytesRead = 0;
              while (totalBytesRead < formDataLength)
              byteRead = in.read(dataBytes, totalBytesRead, formDataLength);
              totalBytesRead += byteRead;
              int lastIndex = contentType.lastIndexOf("=");
              //out.println("lastIndex"+lastIndex);
              String boundary = contentType.substring(lastIndex + 1,contentType.length());
              //out.println("boundary"+boundary);
              String file = new String(dataBytes);
              //out.println(file);
              //String name = file.substring(file.indexOf("name=\"namedoc\"")+14);
              String Vendor_number = file.substring(file.indexOf("name=\"uname\"")+15);
              Vendor_number=Vendor_number.substring(0,Vendor_number.indexOf(boundary));
              Vendor_number=Vendor_number.substring(0,Vendor_number.indexOf("-"));
              Vendor_number=Vendor_number.trim();
              //out.println("Vendor_number: " +Vendor_number);
              String CompName = "";
              CompName = file.substring(file.indexOf("name=\"cname\"")+14);
              CompName=CompName.substring(0,CompName.indexOf(boundary));
              CompName=CompName.substring(0,CompName.indexOf("-"));
              CompName=CompName.trim();
              CompName=CompName.toLowerCase();
         //out.println("CompName: " +CompName);
              String Cnumber = "";
              Cnumber = file.substring(file.indexOf("name=\"cnum\"")+14);
              Cnumber=Cnumber.substring(0,Cnumber.indexOf(boundary));
              Cnumber=Cnumber.substring(0,Cnumber.indexOf("-"));
              Cnumber=Cnumber.trim();
              Cnumber=Cnumber.toLowerCase();
         // out.println("Cnumber: " +Cnumber);
              String Cmail = "";
              Cmail = file.substring(file.indexOf("name=\"cmail\"")+15);
              Cmail=Cmail.substring(0,Cmail.indexOf(boundary));
              Cmail=Cmail.substring(0,Cmail.indexOf("-"));
              Cmail=Cmail.trim();
              Cmail=Cmail.toLowerCase();
         // out.println("Cmail: " +Cmail);
              String AC_person = "";
              AC_person = file.substring(file.indexOf("name=\"aperson\"")+17);
              AC_person=AC_person.substring(0,AC_person.indexOf(boundary));
              AC_person=AC_person.substring(0,AC_person.indexOf("-"));
              AC_person=AC_person.trim();
              AC_person=AC_person.toLowerCase();
         // out.println("AC_person: " +AC_person);
              String H_info = "";
              H_info = file.substring(file.indexOf("name=\"hinfo\"")+15);
              H_info=H_info.substring(0,H_info.indexOf(boundary));
              H_info=H_info.substring(0,H_info.indexOf("-"));
              H_info=H_info.trim();
              H_info=H_info.toLowerCase();
         // out.println("H_info: " +H_info);
              String Country_name = "";
              Country_name = file.substring(file.indexOf("name=\"Country\"")+17);
              Country_name=Country_name.substring(0,Country_name.indexOf(boundary));
              Country_name=Country_name.substring(0,Country_name.indexOf("-"));
              Country_name=Country_name.trim();
              Country_name=Country_name.toLowerCase();
         // out.println("Country_name: " +Country_name);
              String State_name = "";
              State_name = file.substring(file.indexOf("name=\"State\"")+15);
              State_name=State_name.substring(0,State_name.indexOf(boundary));
              State_name=State_name.substring(0,State_name.indexOf("-"));
              State_name=State_name.trim();
              State_name=State_name.toLowerCase();
         //out.println("State_name: " +State_name);
              String City_name = "";
              City_name = file.substring(file.indexOf("name=\"City\"")+15);
              City_name=City_name.substring(0,City_name.indexOf(boundary));
              City_name=City_name.substring(0,City_name.indexOf("-"));
              City_name=City_name.trim();
              City_name=City_name.toLowerCase();
         // out.println("City_name: " +City_name);
              String Area_name = "";
              Area_name = file.substring(file.indexOf("name=\"Area\"")+15);
              Area_name=Area_name.substring(0,Area_name.indexOf(boundary));
              Area_name=Area_name.substring(0,Area_name.indexOf("-"));
              Area_name=Area_name.trim();
              Area_name=Area_name.toLowerCase();
         // out.println("Area_name: " +Area_name);
              String Region_name = "";
              Region_name = file.substring(file.indexOf("name=\"Region\"")+16);
              Region_name=Region_name.substring(0,Region_name.indexOf(boundary));
              Region_name=Region_name.substring(0,Region_name.indexOf("-"));
              Region_name=Region_name.trim();
              Region_name=Region_name.toLowerCase();
         // out.println("Region_name: " +Region_name);
              String P_range = "";
              P_range = file.substring(file.indexOf("name=\"Prange\"")+16);
              P_range=P_range.substring(0,P_range.indexOf(boundary));
              P_range=P_range.substring(0,P_range.indexOf("-"));
              P_range=P_range.trim();
              P_range=P_range.toLowerCase();
         // out.println("P_range: " +P_range);
              String H_Address = "";
              H_Address = file.substring(file.indexOf("name=\"textarea\"")+18);
              H_Address=H_Address.substring(0,H_Address.indexOf(boundary));
              H_Address=H_Address.substring(0,H_Address.indexOf("-"));
              H_Address=H_Address.trim();
              H_Address=H_Address.toLowerCase();
         //out.println("H_Address: " +H_Address);
              String H_price = "";
              H_price = file.substring(file.indexOf("name=\"Hprice\"")+16);
              H_price=H_price.substring(0,H_price.indexOf(boundary));
              H_price=H_price.substring(0,H_price.indexOf("-"));
              H_price=H_price.trim();
              H_price=H_price.toLowerCase();
         // out.println("H_price: " +H_price);
              String H_Type = "";
              H_Type = file.substring(file.indexOf("name=\"HTYPE\"")+15);
              H_Type=H_Type.substring(0,H_Type.indexOf(boundary));
              H_Type=H_Type.substring(0,H_Type.indexOf("-"));
              H_Type=H_Type.trim();
              H_Type=H_Type.toLowerCase();
         // out.println("H_Type: " +H_Type);
              String H_Dimesion = "";
              H_Dimesion = file.substring(file.indexOf("name=\"dimenssion\"")+20);
              H_Dimesion=H_Dimesion.substring(0,H_Dimesion.indexOf(boundary));
              H_Dimesion=H_Dimesion.substring(0,H_Dimesion.indexOf("-"));
              H_Dimesion=H_Dimesion.trim();
              H_Dimesion=H_Dimesion.toLowerCase();
         // out.println("H_Dimesion: " +H_Dimesion);
              String Location_id = "";
              Location_id = file.substring(file.indexOf("name=\"loc_id\"")+14);
              Location_id=Location_id.substring(0,Location_id.indexOf(boundary));
              Location_id=Location_id.substring(0,Location_id.indexOf("-"));
              Location_id=Location_id.trim();
              Location_id=Location_id.toLowerCase();
         //out.println("Location_id: " +Location_id);
              String saveFile = file.substring(file.indexOf("filename=\"") + 10);
              saveFile = saveFile.substring(0, saveFile.indexOf("\n"));
              saveFile = saveFile.substring(saveFile.lastIndexOf("\\") + 1,saveFile.indexOf("\""));
              String filename = saveFile;
              //out.println("filename: " +filename);
    saveFile="/home/doomainname/public_html/LocationInfo/"+Country_name+"/"+State_name+"/"+City_name+"/"+Area_name+"/"+saveFile ;
              try{
                   Connection ocon = null;
    Class.forName("com.mysql.jdbc.Driver");
    ocon = DriverManager.getConnection("jdbc:mysql://localhost/","rjshgds,"ejssser");
                   out.println("connection created");
    PreparedStatement pst = ocon.prepareStatement("insert into hoarding_vendor_contents (location_path,company_name,comp_hoarding_info,contact_email,contact_num,Accounting_person,state,country,city,area,Region,PriceRange,HoardingAddress,HoardingType,dimension,Hoarding_price,location_id,HV_unique_num) values('"+saveFile+"','"+CompName+"','"+H_info+"','"+Cmail+"','"+Cnumber+"','"+AC_person+"','"+State_name+"','"+Country_name+"','"+City_name+"','"+Area_name+"','"+Region_name+"','"+P_range+"','"+H_Address+"','"+H_Type+"','"+H_Dimesion+"','"+H_price+"','"+Location_id+"','"+Vendor_number+"')");
                             int value = pst.executeUpdate();
                   //flg=true;
                   out.println("query executed");
              int pos;
                        pos = file.indexOf("filename=\"");
                        pos = file.indexOf("\n", pos) + 1;
                        pos = file.indexOf("\n", pos) + 1;
                        pos = file.indexOf("\n", pos) + 1;
                        int boundaryLocation = file.indexOf(boundary, pos) - 4;
                        int startPos = ((file.substring(0, pos)).getBytes()).length;
                        int endPos = ((file.substring(0, boundaryLocation)).getBytes()).length;
                        FileOutputStream fileOut = new FileOutputStream(saveFile);
                        //fileOut.write(dataBytes);
                        fileOut.write(dataBytes, startPos, (endPos - startPos));
                        fileOut.flush();
                        fileOut.close();
                        //out.println("File saved as " +saveFile);
                        out.println("<b><center>Your record has been successfully uploaded in your account</center></b><br><br>");
    }catch(Exception e)
              out.println("Exception caught in class upload classs "+e);
    %>

  • Query help - problems with ROLLUP

    I'm trying to make a query i can use for an alert, it generates sales for the past 7 days.
    This query works fine:
    SELECT
          CASE WHEN GROUPING(T0.[CardCode]) = 0
                THEN CAST (T0.[CardCode] AS CHAR(8))
                ELSE 'ALL'
          END AS Customer#,
          SUM(T0.[Max1099]) AS "Total Sales",
          SUM(T0.[GrosProfit]) AS "Gross Profit" 
    FROM OINV T0
    WHERE T0.[DocDate] >= DATEADD(dd,DATEDIFF(dd,0,GETDATE())-7,0) AND T0.[Max1099] > 0
    GROUP BY T0.[CardCode] WITH ROLLUP
    And it gives me this:
    #     Customer#*     Total Sales*     Gross Profit*     
    1     C2235              8,285.87       4,165.77            
    2     C2236           10,191.39              4,197.95            
    3     C2253                570.56               311.17          
    4     C3008           18,756.76       5,720.21            
    5     ALL                   37,804.58    14,395.10            
    Which is great. Gives me a total at the end, and substitutes "ALL" for the customer number. Lovely.
    Problem #1: I REALLY want it to give the Customer Name NEXT TO the Customer Number. But when I try to add it, i have to add it to the GROUP BY as well. Which changes the query to this:
    SELECT
          CASE WHEN GROUPING(T0.[CardCode]) = 0
                THEN CAST (T0.[CardCode] AS CHAR(8))
                ELSE 'ALL'
          END AS Customer#,    
          CardName as "Cust Name",     
          SUM(T0.[Max1099]) AS "Total Sales",
          SUM(T0.[GrosProfit]) AS "Gross Profit"
    FROM OINV T0
    WHERE T0.[DocDate] >= DATEADD(dd,DATEDIFF(dd,0,GETDATE())-7,0) AND T0.[Max1099] > 0
    GROUP BY T0.[CardCode], T0.[CardName] WITH ROLLUP
    And changes my output to THIS:
    #     Customer#     Cust Name                             Total Sales     Gross Profit     
    1     C2235             Acme Products                      8,285.87               4,165.77     
    2     C2235          (blanks blanks)                        8,285.87               4,165.77     
    3     C2236             Some Other Products             10,191.39               4,197.95     
    4     C2236          (blanks blanks blanks)            10,191.39               4,197.95     
    5     C2253             Third Customer Name             570.56                  311.17     
    6     C2253          (blanks blanks blanks)                570.56                  311.17     
    7     C3008             Fourth Customer Name       18,756.76       5,720.21     
    8     C3008          (blanks blanks blanks)                                               18,756.76       5,720.21     
    9     ALL                                                                  37,804.58     14,395.10     
    ( I have replaced actual customer names, of course, and replaces actual blanks with the word 'blanks' so it would be more legible.)
    I can't figure out a way to simply list the customer name next to the number. Instead , it gives me a summary for the CardCode and a summary for the CardName.
    I've tried combining the two into one field, on the fly, but haven't been successful.
    Problem #2 - extra credit!
    If i really want this done right, i should also have a query that pulls the same data from ORIN (Credit Memos) and do a UNION ALL, but when i do this, is simply rejects me at the word "UNION"
    any and all help appreciated, and to test this, you can just cut and past the query into SAP, it will run right there, no mods needed.
    oops. I had to change the "Not Equal" symbol to just "greater than" for "Max1099" because it was just dropping the symbol...
    Edited by: Dante Amodeo on Jan 18, 2012 6:30 PM

    Try:
    SELECT CAST (T0.CardCode AS CHAR(8)) AS Customer#,
    MAX(T0.CardName) 'Customer Name',
    SUM(T0.Max1099) AS 'Total Sales',
    SUM(T0.GrosProfit) AS 'Gross Profit'
    FROM OINV T0
    WHERE DATEDIFF(dd,T0.DocDate,GETDATE())<=7 AND T0.Max1099 > 0
    GROUP BY T0.CardCode
    UNION ALL
    SELECT 'ALL','',SUM(T0.Max1099),
    SUM(T0.GrosProfit)
    FROM OINV T0
    WHERE DATEDIFF(dd,T0.DocDate,GETDATE())<=7 AND T0.Max1099 > 0

  • BI 7.0 Infoset query open problem: query_tech_name_Fxx is not a valid char.

    Our BASIS transport our BW 3.5 queries to BI 7.0 system.  We can open all queries on the BI 7.0 box without problem except Infoset queries.  The Infoset is composed of two ODSs and when openning it BI 7.0 query designer, can not see any design element in the panes of Rows, Columns, Free Char. and etc., instead the error msg shows (in between two dashed lines below):
    Terminate: query_technical_name_Fxx is not a valid characteristic for InfoProvider [A122(BRAIN)]
    Diagnosis
    Customer enhancement RSR00002 or the implementation of BAdI RSR_OLAB_BADI delivers query_technical_name_Fxx as the characteristic to be calculated. 1. is, however, not a valid key figure for InfoProvider .
    System Response
    The information from query_technical_name_Fxx is ignored.
    Procedure
    Check the exit.
    Procedure for System Administration
    We've checked the enhancement RSR00002 and it's components and find they are all the same as our BW 3.5 system.  query_technical_name_Fxx is Company Code InfoObj. in one ODS and it's one of the key to join these two InfoSets.
    Any idea?
    Thanks

    hi Kevin,
    check if helps following oss note
    Note 983449 - Termin A122 1COLUMN no valid characteristic of infoprovider
    Symptom
    Termination A 122 Brain occurs when you test and generate a query. The system does not recognise the characteristic 1COLUMN.
    Other terms
    Query, condition, COB_PRO
    Reason and Prerequisites
    This problem is caused by a program error.
    Solution
    SAP NetWeaver 2004s BI
               Import Support Package 10 for SAP NetWeaver 2004s BI (BI Patch 10 or SAPKW70010) into your BI system. The Support Package is available once Note 914304 "SAPBINews BI 7.0 Support Package 10", which describes this Support Package in more detail, has been released for customers.
    In urgent cases, you can implement the correction instructions.
    You must first implement Notes 932065, 935140, 948389, 964580 and 969846, which provide information about transaction SNOTE. Otherwise, problems and syntax errors may occur when you deimplement some notes.

Maybe you are looking for