Getting end of statement error in SAP CRM bp script

Hi
When I run the code below without the for loop everything runs perfectly ok. However when I add the for loop I get the error statement end of statement I think it has something to do with handling of the code inside the for loop but I have  no clue how to solve it
Somebody any idea?
I know the code is not working correctly I need to add variable to fill in the values however I need to first tackle the end of statement issue
If Not IsObject(application) Then
   Set SapGuiAuto  = GetObject("SAPGUI")
   Set application = SapGuiAuto.GetScriptingEngine
End If
If Not IsObject(connection) Then
   Set connection = application.Children(0)
End If
If Not IsObject(session) Then
   Set session    = connection.Children(0)
End If
If IsObject(WScript) Then
   WScript.ConnectObject session,     "on"
   WScript.ConnectObject application, "on"
End If
Dim objExcel
Dim objSheet, intRow, i, d
Set objExcel = GetObject(, "Excel.Application")
Set objSheet = objExcel.ActiveWorkbook.ActiveSheet
session.findById("wnd[0]").resizeWorkingPane 132,30,false
Dim total_row
total_row = objSheet.UsedRange.Rows.Count
For i = 1 To CInt(total_row)
     session.findById("wnd[0]/tbar[0]/okcd").text = "/nbp"
     session.findById("wnd[0]").sendVKey 0
     session.findById("wnd[0]/tbar[1]/btn[17]").press
     session.findById("wnd[1]/usr/ctxtBUS_JOEL_MAIN-OPEN_NUMBER").text = "19496"
     session.findById("wnd[1]/usr/ctxtBUS_JOEL_MAIN-OPEN_NUMBER").caretPosition = 5
     session.findById("wnd[1]/tbar[0]/btn[0]").press
     session.findById("wnd[1]/tbar[0]/btn[0]").press
     Dim strScreen
     strScreen = "wnd[0]/usr/subSCREEN_3000_RESIZING_AREA:SAPLBUS_LOCATOR:2000/subSCREEN_1010_RIGHT_AREA:SAPLBUPA_DIALOG_JOEL:1000/ssubSCREEN_1000_WORKAREA_AREA:SAPLBUPA_DIALOG_JOEL:1100/ssubSCREEN_1100_MAIN_AREA:SAPLBUPA_DIALOG_JOEL:1101/tabsGS_SCREEN_1100_TABSTRIP/tabpSCREEN_1100_TAB_04"
     session.findById("wnd[0]/usr/subSCREEN_3000_RESIZING_AREA:SAPLBUS_LOCATOR:2000/subSCREEN_1010_RIGHT_AREA:SAPLBUPA_DIALOG_JOEL:1000/ssubSCREEN_1000_WORKAREA_AREA:SAPLBUPA_DIALOG_JOEL:1100/ssubSCREEN_1100_MAIN_AREA:SAPLBUPA_DIALOG_JOEL:1101/tabsGS_SCREEN_1100_TABSTRIP/tabpSCREEN_1100_TAB_04").select
     session.findById("wnd[0]").sendVKey 6
     session.findById("wnd[0]/usr/subSCREEN_3000_RESIZING_AREA:SAPLBUS_LOCATOR:2000/subSCREEN_1010_RIGHT_AREA:SAPLBUPA_DIALOG_JOEL:1000/ssubSCREEN_1000_WORKAREA_AREA:SAPLBUPA_DIALOG_JOEL:1100/ssubSCREEN_1100_MAIN_AREA:SAPLBUPA_DIALOG_JOEL:1101/tabsGS_SCREEN_1100_TABSTRIP/tabpSCREEN_1100_TAB_04/ssubSCREEN_1100_TABSTRIP_AREA:SAPLBUSS:0028/ssubGENSUB:SAPLBUSS:7002/subA02P01:SAPLBUD0:1500/tblSAPLBUD0TCTRL_BUT0BK/ctxtGT_BUT0BK-BANKL[2,0]").text = "B000000003"
     session.findById("wnd[0]/usr/subSCREEN_3000_RESIZING_AREA:SAPLBUS_LOCATOR:2000/subSCREEN_1010_RIGHT_AREA:SAPLBUPA_DIALOG_JOEL:1000/ssubSCREEN_1000_WORKAREA_AREA:SAPLBUPA_DIALOG_JOEL:1100/ssubSCREEN_1100_MAIN_AREA:SAPLBUPA_DIALOG_JOEL:1101/tabsGS_SCREEN_1100_TABSTRIP/tabpSCREEN_1100_TAB_04/ssubSCREEN_1100_TABSTRIP_AREA:SAPLBUSS:0028/ssubGENSUB:SAPLBUSS:7002/subA02P01:SAPLBUD0:1500/tblSAPLBUD0TCTRL_BUT0BK/ctxtGT_BUT0BK-BANKL[2,0]").setFocus
     session.findById("wnd[0]/usr/subSCREEN_3000_RESIZING_AREA:SAPLBUS_LOCATOR:2000/subSCREEN_1010_RIGHT_AREA:SAPLBUPA_DIALOG_JOEL:1000/ssubSCREEN_1000_WORKAREA_AREA:SAPLBUPA_DIALOG_JOEL:1100/ssubSCREEN_1100_MAIN_AREA:SAPLBUPA_DIALOG_JOEL:1101/tabsGS_SCREEN_1100_TABSTRIP/tabpSCREEN_1100_TAB_04/ssubSCREEN_1100_TABSTRIP_AREA:SAPLBUSS:0028/ssubGENSUB:SAPLBUSS:7002/subA02P01:SAPLBUD0:1500/tblSAPLBUD0TCTRL_BUT0BK/ctxtGT_BUT0BK-BANKL[2,0]").caretPosition = 10
     session.findById("wnd[0]").sendVKey 0
     session.findById("wnd[0]/usr/subSCREEN_3000_RESIZING_AREA:SAPLBUS_LOCATOR:2000/subSCREEN_1010_RIGHT_AREA:SAPLBUPA_DIALOG_JOEL:1000/ssubSCREEN_1000_WORKAREA_AREA:SAPLBUPA_DIALOG_JOEL:1100/ssubSCREEN_1100_MAIN_AREA:SAPLBUPA_DIALOG_JOEL:1101/tabsGS_SCREEN_1100_TABSTRIP/tabpSCREEN_1100_TAB_04/ssubSCREEN_1100_TABSTRIP_AREA:SAPLBUSS:0028/ssubGENSUB:SAPLBUSS:7002/subA02P01:SAPLBUD0:1500/tblSAPLBUD0TCTRL_BUT0BK/btnPUSH_BUP_IBAN[5,0]").setFocus
     session.findById("wnd[0]/usr/subSCREEN_3000_RESIZING_AREA:SAPLBUS_LOCATOR:2000/subSCREEN_1010_RIGHT_AREA:SAPLBUPA_DIALOG_JOEL:1000/ssubSCREEN_1000_WORKAREA_AREA:SAPLBUPA_DIALOG_JOEL:1100/ssubSCREEN_1100_MAIN_AREA:SAPLBUPA_DIALOG_JOEL:1101/tabsGS_SCREEN_1100_TABSTRIP/tabpSCREEN_1100_TAB_04/ssubSCREEN_1100_TABSTRIP_AREA:SAPLBUSS:0028/ssubGENSUB:SAPLBUSS:7002/subA02P01:SAPLBUD0:1500/tblSAPLBUD0TCTRL_BUT0BK/btnPUSH_BUP_IBAN[5,0]").press     session.findById("wnd[1]/tbar[0]/btn[0]").press
     session.findById("wnd[0]/tbar[0]/btn[11]").press
Next i
Edited by: R. Brouwer on Dec 23, 2010 3:31 PM

Hi,
i think nothing can be followed by the command "Next" in VBS. Your example would be the right way in VB or VBA.
Regards,
ScriptMan

Similar Messages

  • Any report or Table to see the list of orders  with errors  in SAP CRM?

    Hello All,
    Can anyone help me in getting  a table or report  to find the list of orders with errors in SAP CRM?.
    Let me know if you need any additional information.Thanks in advance.
    Cheers
    Sreedhar
    Edited by: sreedharhazari2 on May 26, 2010 11:59 AM

    Hello Chait,
    I got the solution  by this report CRM_ORDER_CHECK_STATUS.
    Anyhow thanks very much for your inputs.
    Cheers
    Sreedhar
    Edited by: sreedharhazari2 on May 30, 2010 8:48 AM

  • Expected End Of Statement Error

    I created an SQL statement which runs fine in MS-SQL2000. I
    paste the code in a DW 8 recordset that I create and run a test to
    make sure it works. No problem. Returns resutls as expected. I can
    also access the fields in the recordset. When I test the Web page I
    get:
    Error Type:
    Microsoft VBScript compilation (0x800A0401)
    Expected end of statement
    /cssmetrics/dallas/scorecard.asp, line 10, column 2647
    See Attachment. I am baffled to what it is looking forward.
    Your help is greatly appreciated.

    'VERSION 5.00
    'Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "Mscomm32.ocx"
    Begin VB.Form FrmMain
    Your code is not VB .Net.  You may be able to find some assistance with your problem from the resources listed here: 
    VB6 and older

  • End of Statement error

    I have the a query that keeps coming up with an error when I try to place in in a form as VBA. The following is the code:
    txtOperationID = "SELECT TOP 1 [idsOpSymbolID] & " " & Format([txtOperationSub#]+1,"0000") AS NewOpID " & _
    "FROM tblOperations LEFT JOIN tblOperationsSUB ON tblOperations.idsOpSymbolID = tblOperationsSUB.idrOpSymbolID " & _
    "WHERE (((tblOperations.idsOpSymbolID) = [Forms]![frmNewProjectOperationTrackingNumber]![Combo91])) " & _
    "ORDER BY tblOperationsSUB.[txtOperationSub#] DESC"
    I am given the following error:  Compile Error, Expected end of statement.  Any suggestions?

    Yes,
    You have to neutralize " in string:
    txtOperationID = "SELECT TOP 1 [idsOpSymbolID] & "" "" & Format([txtOperationSub#]+1,""0000"") AS NewOpID " & _
    "FROM tblOperations LEFT JOIN tblOperationsSUB ON tblOperations.idsOpSymbolID = tblOperationsSUB.idrOpSymbolID " & _
    "WHERE (((tblOperations.idsOpSymbolID) = [Forms]![frmNewProjectOperationTrackingNumber]![Combo91])) " & _
    "ORDER BY tblOperationsSUB.[txtOperationSub#] DESC"
    Michał

  • Getting Runtime Error on SAP CRM  system TSV_ILLEGAL_REFERENCE

    Runtime Errors         TSV_ILLEGAL_REFERENCE
    Date and Time          07.03.2011 13:05:08
         Short text
              The reference to an internal table is destroyed.
         What happened?
              Error in the ABAP Application Program
              The current ABAP program "SAPLBUPA_SELECT" had to be terminated because it has
              come across a statement that unfortunately cannot be executed.
              The administration data for the access to an internal table can no
              longer be interpreted.
         What can you do?
              Note down which actions and inputs caused the error.
              To process the problem further, contact you SAP system
              administrator.
              Using Transaction ST22 for ABAP Dump Analysis, you can look
              at and manage termination messages, and you can also
              keep them for a long time.
         Error analysis
              This is probably an erro in program "SAPLBUPA_SELECT". The administration data
               for
              accessing an internal table was probably destroyed by a memory
              overwriter. Such a memory overwriter is usually caused by one of the
              following programming errors:
              1) A dynamic ASSIGN with too great an offset and/or length specification
                 was positioned beyond the end of the source field used in the ASSIGN.
                 In the next write access to the corresponding field symbol, the
                 system wrote past the limitis of the source field.
              2) A DO ... VARYING loop with an incorrect increment or too large a
                 number of passes can also be positioned beyond the limits of the
                 structure and be overwritten.
              3) In using the statement ASSIGN ... CASTING a memory area was
                 interpreted with a different type and consequently overwritten.
         How to correct the error
              Probably the only way to eliminate the error is to correct the program.
              If the error occures in a non-modified SAP program, you may be able to
              find an interim solution in an SAP Note.
              If you have access to SAP Notes, carry out a search with the following
              keywords:
              "TSV_ILLEGAL_REFERENCE" " "
              "SAPLBUPA_SELECT" or "LBUPA_SELECTU03"
              "BUP_BUT000_SELECT_WITH_GUID"
    How to resolve this issue, can u pls help me.
    Thanks & Regards,
    Rajasekhar Reddy P

    Hi Edmond,
    it's not the ume, it's the com.sap.portal.usermanagement.admin package.
    In order to redeploy it, go to following directory:
    <drive>\usr\sap\<SAPSID>\JC<instance number>\j2ee\cluster\server0 \apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\deployment\pcd
    look for the com.sap.portal.usermanagement.admin.par.bak, remove the suffix .bak and restart your engine.
    Don't know of this helps, but maybe it's worth a try.
    Regards, Karsten

  • Product category not available error in SAP CRM 7.0

    hi Gurus,
    while i try creating opportunity transaction, there under product tab when i enter product category(as we maintian product category and not product) and pass on other data and finally press enter ..i get error "product category "3lAA" not available" same for other category. even when i try F4 help only very few categories it shows, not all.
    but then i went back and checked for category and hierarchy in CRM system ..it is showing all there and it is downloaded form R/3 system.
    Can you please tell me what all places i can check..? or what is missing ?
    Thanks,
    gaurav

    Hi,
          I believe all the categories which you are viewing currently in the pop up are from a single hierarchy ( Most probably R3PRODHIER). And the categories which you are looking for is probably from a different hierarchy ( R3MATCLAS, R3PRODSTYP etc.).
    By standard, for sales applications only R3PRODHIER is supported. Please have a look at the IMG path Cross-Application Component->SAP Product-> Product Category->Assign Category Hierarchy to Applications, where you can verify this. If you are so particular about using categories from a different hierarchy you might need to change this setting - I am not sure about other implications that can cause if you change that like downloading from R/3 etc.
    Regards,
    Sreejith

  • Getting a front exception error in sap gui

    hi to all experts,
                            i have an ides ecc 6.0 system with sap gui 640 patch 31 . im getting this error Windows GUI 640 Exception 0xC000008E with ID=0x5AF34A26/0x10058D69 occurred (PL=31)
    Please search this note for this keyword 0x5AF34A26/0x10058D69:
    0499555 Exceptions in SAPGUI for Windows
    If the keyword isn't listed in this note, please open a call on component BC-FES-GUI with a description how to reproduce this bug. Furthermore save this email and wait until the SAPGUI support gives you an email address to send it to.
    Meanwhile, please apply note 520688 to optimize the trace result.
    please help me out how to solve the error

    You try install path 32
    go to:  https://forums.sdn.sap.com/click.jspa?searchID=19954340&messageID=6264618
    or
    you back to the version old
    t-code se38 -- UtilitiesSettings changed the radiobutton to Front End editor (old), because your version of  SAP GUI path < 32 you obtain dump if you select the Front End editor (new)
    I hope that this it help you
    Cordial greetings.

  • MDX Statement error in sap bpc 10.1 admin when opening a report

    I have restored a previously created environment that was built on the sap bpc 10.1 platform and am receiving the following errors when accessing my reports and clicking refresh.  I also received an error when restoring the environment that says "Error occurred in expanding member formula".  I don't believe these would be related but I am unable to access the member formulas in the model.  I am however able to access all dimensions, etc.  I am not able to create any new reports though.  Any ideas on a solution.

    Hi Kudzai,
    The error you're getting in BPC 10.1 is because the environments were migrated from BPC 10.0 or older version using transaction UJBR and it was not migrated to 10.1 after the restore.
    SAP Note 2052538 provides resolution for this. Please follow the instructions of Upgrade Guide for BPC NW 10.1:
    Execute migration program UJT_MIGRATE_100_TO_101 to migrate 10.0 data to 10.1 if the restored environment was backed up from a BPC NW 10.0 system
    Execute migration program UJT_MIGRATE_75_TO_101 to migrate 7.5 data to 10.1 if the restored environment was backed up from a BPC NW 7.5 system
    Thanks
    Rajesh

  • Error in sap crm - List  Price not found

    Hi all,
    I am creating an order for free of charge products that has an item category " free premium item" but when i am trying to create these orders, I get the msg " List Price not found ". however when i create a standard order that has the same item category " free premium item", it gets created without errors and the pricing is there.  I looked at the config of both order types the standard order as well as the free of charge order and i also looked at how the item category determination has been configured and then i looked at the pricing procedure configuration. where and what else should i look into to fix the issue?
    Thanks in advance,
    Preethy
    Edited by: preethy on Jan 31, 2008 1:13 AM

    HI Muralidhar,
    I looked at the note 528161 but does this apply to CRM also? I did not see a table called VKP2 or WVKP in CRM. the note mentioned these tables
    Thanks,
    Preethy

  • Employee Search Error in SAP CRM 2007 Web Gui.

    Hi,
    We have created a Z Role linked to BUP003 and copied from BUP003. (Employees).
    When we try to search all BPs created with this Z Role through Employees Search in Web Gui the results are only the BPs with BUP003 and it doesn't recognize the Z Role as Employee.
    Do you have any idea of why is this happening?
    Thanx in advanced.

    Hi
    You can apply the next note: 1241186
    Hope this helps!
    Sussie

  • SSIS Job is getting failed with an error "0x00000005 : Failed to compiled scripts contained in the package.

    Hi All. Could anyone resolve my issue.
    I was created a package with an Script task written in VB.Net.
    The Package was executing Successfully in BIDS.
    But when i tried to exceute the same using Sql server Agent Job, Its getting Failed with the below error message
    "Executed as user: Admin. Microsoft (R) SQL Server Execute Package Utility  Version 11.0.2100.60 for 32-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  5:12:27 PM  Error: 2013-03-13 17:12:32.33    
    Code: 0x00000005     Source: Checking Alcon Files Checking Alcon Files     Description: Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors. 
    End Error  Error: 2013-03-13 17:12:32.33     Code: 0x00000005     Source: Checking Alcon Files Checking Alcon Files     Description: BC30179 - enum 'ScriptResults' and enum 'ScriptResults' conflict
    in class 'ScriptMain'., ScriptMain.vb, 156, 22  End Error  Error: 2013-03-13 17:12:32.36     Code: 0x00000005     Source: Checking Alcon Files Checking Alcon Files     Description: The binary
    code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully.  End Error  Error: 2013-03-13 17:12:34.28     Code: 0x00000005    
    Source: Formating Excel Sheet Formating Excel Sheet     Description: Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors.  End Error  Error: 2013-03-13 17:12:34.28    
    Code: 0x00000005     Source: Formating Excel Sheet Formating Excel Sheet     Description: BC30179 - enum 'ScriptResults' and enum 'ScriptResults' conflict in class 'ScriptMain'., ScriptMain.vb, 191, 22  End Error 
    Error: 2013-03-13 17:12:34.29     Code: 0x00000005     Source: Formating Excel Sheet Formating Excel Sheet     Description: The binary code for the script is not found. Please open the script in the
    designer by clicking Edit Script button and make sure it builds successfully.  End Error  Error: 2013-03-13 17:12:51.56     Code: 0x00000004     Source: Checking Alcon Files      Description:
    The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully.  End Error  Error: 2013-03-13 17:12:51.56     Code: 0xC0024107    
    Source: Checking Alcon Files      Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  5:12:27 PM  Finished: 5:12:51 PM 
    Elapsed:  24.336 seconds.  The package execution failed.  The step failed."
    Please give some solution to this.
    Thanks in advance

    Are you editing this job in SQL 2012? Is it wrapping your paths in \"? Like for example does the command line tab on the step look like this:
    /FILE "\"D:\yourPathGoesHere.dtsx\""  /CONFIGFILE "\"D:\yourPathGoesHere.dtsConfig\"" /CHECKPOINTING OFF /REPORTING E
    That's the problem I had, and I resolved it by recreating the whole thing via SQL Script and getting rid of all those \" things. I think that is preventing SSIS from looking up the precompiled binaries for your Script Task. So you should edit the command
    line manually:
    /FILE "D:\yourPathGoesHere.dtsx"  /CONFIGFILE "D:\yourPathGoesHere.dtsConfig" /CHECKPOINTING OFF /REPORTING E
    Please write back whether that helps you. David Dye's answer didn't help me at all.

  • VBS Expected Statement error

    IHi there:
    Hi there:
    I am trying to build an XML file from a string and I am getting a Expected Statement Error.  I am not sure what
    is wrong that would cause this error with a simple loop for a bar graph.  Any ideas?
    Thanks in advance! Brett
    <%@ Language=VBScript %>
    <%
    Dim oConn, rs
    Dim strConnQuery
    Set oConn = Server.CreateObject("ADODB.Connection")
    oConn.Mode = 1
    'Create the path to database
    oConn.open session("DSN")
    %>
    <%
    'This page generates the XML data for the Chart contained in
    'Default.asp. 
    'Database Objects - Initialization
    Dim oRs, oRs2, strQuery
    'strXML will be used to store the entire XML document generated
    Dim strXML
    'Create the recordset to retrieve data
    Set oRs = Server.CreateObject("ADODB.Recordset")
    Function getTotals()
       'Initialize database objects
    Dim oRs, strSQL
    'Variable to store XML Data
    Dim strXML
    'To store categories
    Dim strCat
    'To store amount Dataset & quantity dataset
        Dim strAmtDS, strQtyDS
    strCat = "select * from fusion_category"
    strSQL = "select * from claim_table where reference_num =" & session("globalrefno")
    Set oRs = Server.CreateObject("ADODB.Recordset")
    oRs.Open strSQL, oConn
    'Initialize <categories> element
    strCat = "<categories>"
    'Response.Write(strCat)
    'Initialize datasets
    strIncDS = "<dataset seriesname='Incurred'>"
    strPdDS = "<dataset seriesName='Paid' parentYAxis='P'>"
    'Variable to store link
    Dim strLink
    'Iterate through each data row
    Do While not oRs.EOF
    strCat = strCat & "<category label='" & oRs("Category") & "'/>"
    strIncDS = strIncDS & "<set value='" & oRs("Incurred") & "'/>"
    strPdDS = strPdDS & "<set value='" & oRs("Paid") & "'/>"
    'oRs.EOF
    'Closing elements
    strCat = strCat & "</categories>"
    strIncDS = strIncDS & "</dataset>"
    strPdDS = strPdDS & "</dataset>"
    'Entire XML - concatenation
    strXML =  strCat & strIncDS & strPdDS
    oRs.Close()
    Set oRs = nothing
    getTotals = strXML
        End Function
    strXML = "<chart caption='Incurred vs Paid" & getTotals() & "' xAxisName='Year' palette='" & "' numberPrefix='$' formatNumberScale='0'>"
    'Get the data
    strXML = strXML & "<set label='Incurred' value='" & getTotals() & "' />"
    strXML = strXML & "<set label='Paid' value='" & getTotals() & "' />"
    strXML = strXML & "</chart>"
    'Output it
    Response.ContentType = "text/xml"
    Response.Write(strXML)
    %>

    Hi there:
    I am trying to build an XML file from a string and I am getting a Expected Statement Error.  I am not sure what
    is wrong that would cause this error with a simple loop for a bar graph.  Any ideas?
    Thanks in advance! Brett
    <%@ Language=VBScript %>
    <%
    Dim oConn, rs
    Dim strConnQuery
    Set oConn = Server.CreateObject("ADODB.Connection")
    oConn.Mode = 1
    'Create the path to database
    oConn.open session("DSN")
    %>
    <%
    'This page generates the XML data for the Chart contained in
    'Default.asp. 
    'Database Objects - Initialization
    Dim oRs, oRs2, strQuery
    'strXML will be used to store the entire XML document generated
    Dim strXML
    'Create the recordset to retrieve data
    Set oRs = Server.CreateObject("ADODB.Recordset")
    Function getTotals()
       'Initialize database objects
    Dim oRs, strSQL
    'Variable to store XML Data
    Dim strXML
    'To store categories
    Dim strCat
    'To store amount Dataset & quantity dataset
        Dim strAmtDS, strQtyDS
    strCat = "select * from fusion_category"
    strSQL = "select * from claim_table where reference_num =" & session("globalrefno")
    Set oRs = Server.CreateObject("ADODB.Recordset")
    oRs.Open strSQL, oConn
    'Initialize <categories> element
    strCat = "<categories>"
    'Response.Write(strCat)
    'Initialize datasets
    strIncDS = "<dataset seriesname='Incurred'>"
    strPdDS = "<dataset seriesName='Paid' parentYAxis='P'>"
    'Variable to store link
    Dim strLink
    'Iterate through each data row
    Do While not oRs.EOF
    strCat = strCat & "<category label='" & oRs("Category") & "'/>"
    strIncDS = strIncDS & "<set value='" & oRs("Incurred") & "'/>"
    strPdDS = strPdDS & "<set value='" & oRs("Paid") & "'/>"
    'oRs.EOF
    'Closing elements
    strCat = strCat & "</categories>"
    strIncDS = strIncDS & "</dataset>"
    strPdDS = strPdDS & "</dataset>"
    'Entire XML - concatenation
    strXML =  strCat & strIncDS & strPdDS
    oRs.Close()
    Set oRs = nothing
    getTotals = strXML
        End Function
    strXML = "<chart caption='Incurred vs Paid" & getTotals() & "' xAxisName='Year' palette='" & "' numberPrefix='$' formatNumberScale='0'>"
    'Get the data
    strXML = strXML & "<set label='Incurred' value='" & getTotals() & "' />"
    strXML = strXML & "<set label='Paid' value='" & getTotals() & "' />"
    strXML = strXML & "</chart>"
    'Output it
    Response.ContentType = "text/xml"
    Response.Write(strXML)
    %>

  • End Point Reference Error

    Hi,
    We are working on a project where SAP system will be integrated with Intalio BPM suite. When we try to create a sales order from Intalio, we are getting "End Point Reference Error" . We are using "BAPI_SALESORDER_CREATEFROMDATA" to create the sales order.
    When we tried with "BAPI_SALESORDER_CREATEFROMDAT2" we are not able to map the partner details to the BAPI parameters as it is not displaying the existing parameters under the "Order_Partner_In" head.
    Also it will be great if someone can provide us with the mandatory fields for "BAPI_SALESORDER_CREATEFROMDAT2" as we are not able to create the sales order with the following mandatory inputs.
    ORDER_HEADER_IN : DOC_TYPE     Sales document type
                      SALES_ORG    Sales organization
                      DISTR_CHAN   Distribution channel
                      DIVISION     Division
    ORDER_PARTNERS..: PARTN_ROLE   Partner role, SP sold-to party
                      PARTN_NUMB   Customer number
    ORDER_ITEMS_IN..: MATERIAL     Material number
    Please help us in resolving this issue.

    Hi Homiar,
    Thankx for the reply i have resolved the problem ..
    but my idoc is created with no data in it .. has only the value of the segment like
    <ORDERS04>
    - <IDOC BEGIN="1">
      <E1EDK01 SEGMENT="1" />
      </IDOC>
      </ORDERS04>
    iam not sure whr is the problem .. idoc is created with red light and it says partner profile not found but i have defined the partner profile..
    please let me know if u have any idea abt this..
    thankx,
    shree

  • Clarification about SAP CRM 5.0, SAPPHONE

    Hi Buddies,
    Long time no see.
    Curently we are considering integrating SAP with our telephony system  AVAYA. According to our vendor, there are 2 approaches: SAPPHONE or ICI connectors.
    It is clear that ICI connector will be based on latest version of SAP CRM 7.0 which we do not install at the moment, thus we are more probally to use the SAPPHONE connection acting as interaction center middle ware.
    However, it is somehow confusing about SAPPHONE approach. It is said to be neccesary to apply CRM 5.0 as system enviroment.
    As I know, CRM 5.0, not like CRM 5.1 and later web application versions, is a component inside R3 system.
    Is it neccessary to install CRM 5.0 first before activating the TCI via SAPPHONE?
    Is CRM a middleware between SAPPHONE and telephony system or SAPPHONE itself is a component of CRM 5.0?
    Is SAP CRM a mandatory component of ECC 6.0? In fact, I do not find it in 'Component version' inside our system.
    Is SAPPHONE quite out-of-date and with limited support?
    Do we need install new hardware for SAPPHONE?
    Sorry for asking so many questions at the same time. We really need to clarify all misunderstandings before evaluating the approaches.
    Thanks a lot in advance.
    Jonnie

    Hi Anrei,
    Thanks, I read through the help document besides trying find other documents in help.sap.com.
    I guess I got it. SAPphone is a component inside CRM server as indicated by below help document:
    http://help.sap.com/saphelp_crm40/helpdata/en/28/797b14a9cf4296b02742f641c18971/content.htm
    The CRM Server includes the IC WinClient framework and the following SAP applications:
    ·        SAPphone
    SAPphone provides a telephony function to the interaction center. It allows data to be exchanged between the CRM Server and the telephony component.
    ·        SAPconnect
    SAPconnect provides an integrated e-mail function to the interaction center. It enables communication management software to connect to the SAP system (for example, an e-mail server or SMTP server).
    Although it is a help document for CRM 4.0, I think CRM 5.0 should have the similar archtechture.
    I would score you as helpful, however, I still would like to see whether I could get answers for below points:
    Is SAP CRM a mandatory component of ECC 6.0? In fact, I do not find it in 'Component version' inside our system.
    Is SAPPHONE quite out-of-date and with limited support?
    Do we need install new hardware for SAPPHONE?
    Thanks.
    Jonnie

  • Invalid Statement Error

    Hi,
    Can anyone look at my code and see why I am getting the Invaild Statement Error:
    select GCC.SEGMENT1||'-'||GCC.SEGMENT2||'-'||GCC.SEGMENT3||'-'||GCC.SEGMENT4||'-'||GCC.SEGMENT5||'-'||GCC.SEGMENT6
    Account, msi.segment1 item
    ogb.gl_batch_id gl_batch_number
    round(sum(nvl(mta.base_transaction_value,0)), 2) Net_activity,
    round(sum(decode( nvl(mta.base_transaction_value,0) /
    abs(decode(
    nvl(mta.base_transaction_value,0),
    0, 1, nvl( mta.base_transaction_value,0 ) )),
    1, nvl(mta.base_transaction_value,0), 0 ) ), 2) sum_debits,
    round(sum(decode( nvl(mta.base_transaction_value,0) /
    abs(decode(nvl(mta.base_transaction_value,0),
    0, 1, nvl( mta.base_transaction_value,0 ) )),
    -1, nvl(abs(mta.base_transaction_value),0), 0 ) ), 2)
    sum_credits from
    mtl_material_transactions mmt,
    mtl_system_items msi,
    gl_code_combinations gcc,
    mtl_transaction_accounts mta
    org_gl_batches ogb
    where
    mta.transaction_id = mmt.transaction_id
    and
    mta.inventory_item_id = msi.inventory_item_id and mta.organization_id
    = msi.organization_id
    and mta.reference_account = gcc.code_combination_id
    and mta.accounting_line_type <> 15
    and mta.gl_batch_id = ogb.gl_batch_id (+) group by GCC.SEGMENT1||'\n'||GCC.SEGMENT2||'\n'||GCC.SEGMENT3||'\n'||GCC.SEGMENT4||'\n'||GCC.SEGMENT5||'\n'||GCC.SEGMENT6 , msi.segment1 having sum(nvl(mta.base_transaction_value,0)) != 0 order by 1 , 2

    SELECT      gcc.segment1
             || '-'
             || gcc.segment2
             || '-'
             || gcc.segment3
             || '-'
             || gcc.segment4
             || '-'
             || gcc.segment5
             || '-'
             || gcc.segment6 ACCOUNT,
             msi.segment1 item, ogb.gl_batch_id gl_batch_number,
             ROUND (SUM (NVL (mta.base_transaction_value, 0)), 2) net_activity,
             ROUND
                (SUM (DECODE (  NVL (mta.base_transaction_value, 0)
                              / ABS (DECODE (NVL (mta.base_transaction_value, 0),
                                             0, 1,
                                             NVL (mta.base_transaction_value, 0)
                              1, NVL (mta.base_transaction_value, 0),
                              0
                 2
                ) sum_debits,
             ROUND
                (SUM (DECODE (  NVL (mta.base_transaction_value, 0)
                              / ABS (DECODE (NVL (mta.base_transaction_value, 0),
                                             0, 1,
                                             NVL (mta.base_transaction_value, 0)
                              -1, NVL (ABS (mta.base_transaction_value), 0),
                              0
                 2
                ) sum_credits
        FROM mtl_material_transactions mmt,
             mtl_system_items msi,
             gl_code_combinations gcc,
             mtl_transaction_accounts mta,
             org_gl_batches ogb
       WHERE mta.transaction_id = mmt.transaction_id
         AND mta.inventory_item_id = msi.inventory_item_id
         AND mta.organization_id = msi.organization_id
         AND mta.reference_account = gcc.code_combination_id
         AND mta.accounting_line_type = 15
         AND mta.gl_batch_id = ogb.gl_batch_id(+)
    GROUP BY    gcc.segment1
             || '\n'
             || gcc.segment2
             || '\n'
             || gcc.segment3
             || '\n'
             || gcc.segment4
             || '\n'
             || gcc.segment5
             || '\n'
             || gcc.segment6,
             msi.segment1
      HAVING SUM (NVL (mta.base_transaction_value, 0)) != 0
    ORDER BY 1, 2;*009*

Maybe you are looking for

  • How to select different database columns in a single BO Universe Object

    We have 'n' databases. All the databases have identical tables and views but some tables in few database have custom columns. Ex. 'database1' has table 'sites' with the following columns 1. sitenumber 2. sitename 3. siteaddress 4. phone 5. email 6. A

  • Is daisy chaining on a macbook air through the thunderbolt to Firewire 800 adaptor possible?

    Hello, I am attempting to daisy chain two Glyph portagig 50's and connect them to my MacBook Air. They are both 1TB, 7200RPM drives and are both connected to external power. When I attempt the daisy chain only the first drive mounts and when I attemp

  • Left ouer join with internal table

    Good morning to everybody I need created a internal table with 2 internal table but 1 is primary. I tried use "left outer join" but it allows  only with table and not with internal tabel I would to be this result a             a xxx b                

  • SQL*Plus with Oracle 10g Express Edition

    How Can I do to log in using SQL*Plus into Oracle 10g? My Schema is: Banco.Global My Password is: 111111 I need to write SET SERVEROUTPUT ON to get answer? I opened the Prompt, but i don't know to log in. Thanks and my english is not as well as you.

  • How to send data from popup window to parent window

    Hi, I need help some like this I have parent window ,in that i am clicking + button one dynamic row should add and one popup window has to diplay .Popup window contain 3 comboboxes and 5 text boxes. Once i am clicking OK button in popup window those