Call Center Functions

I am in the process of determining if VOIP is more accessible and flexible compared to an existing, traditional PBX system. I cannot find whether VOIP provides the call center functions like a PBX system (i.e. call duration reports, number & times for an extension report, etc.) Also, I did not find any information in regards to calling pools, fall overs on extensions, etc. and if that is handled at the extension (phone) or in the call switching module. Any help or direction to more specific details would be appreciated.

The call center funtionallity is an addition to the IP PBX (CallManager is Cisco's IP PBX), and requires another application layer in your environmnet.
Cisco has 2 contact center applications, IPCC Express (up to 300 agents) and IPCC Enterprise for enterprise level customers, from architetural perspective these are completely different products, and off course prise is different.
Take a look a tht following linke for more information:
http://www.cisco.com/univercd/cc/td/doc/product/icm/index.htm
Most legacy PBX features are available on CallManager, you'll need to be more specific on "calling pools, fall overs on extensions".
take a look at CallManager documentation for more details:
http://www.cisco.com/univercd/cc/td/doc/product/voice/c_callmg/5_0/sys_ad/5_0_4/index.htm
HTH,
Chris

Similar Messages

  • Call Centre Functionality

    Dear all,
    I need a guidance from you and sorry for being very basic
    We are using SM in SAP ECC 6.0 and take service calls (Repairs or installation, etc...)
    Now my company wants to implement SAP CRM Call center functionality, can you guide me how I go about it.
    is there any direct functionality in SAP CRM where i can do it.
    Is there any 3rd party tool to be used for Capturing the data
    Kindly revert in a elaborate way and also provide me some link to the notes available regarding the same.
    Thanks,
    Satish

    Hello Satish,
    The IC WinClient is the older version of the Interaction Center that was available up until CRM 5.0. The IC WebClient is the new version of the Interaction Center. For any new project you would use the new IC WebClient, not the old IC WinClient.
    If you really want to know all the details, you might consider purchasing my book, [Maximizing Your SAP CRM Interaction Center|http://www.sap-press.com/products/Maximizing-Your-SAP-CRM-Interaction-Center.html] from SAP Press, which is a good resource for learning more about the IC.
    Good luck on your project.
    Regards,
    John

  • Installed base for call center?

    Hi,
    for the CIC implementation where we are going with typical call center functionality where agents handle incoming calls with inquiries and complaints, do we need the installed base? can anyone comment?
    we dont have any returns or warranty for our products
    we sell them, if there is a prob, we resend the product again and customer can keep both...
    thanks,

    Hi,
    Installed base is basically required to keep track of products installed at customer place.
    If you can verywell identify your customer place where product is installed.
    for eg.
    if you install 100 printers at say XYZ company, but this 100 printers may be installed at different branches of XYZ company, it may be across different cities.
    This information you cannot capture for all the 100 printers sold in any of the masterdata.
    Thus you can use installed base to keep a track, how may printers installed at what location.
    During incoming call u identify the BP i.e XYZ ask for the location or printer serial number (Use Individual objects in CRM) to track the printer.
    If you don't have such complex scenario and also you don't need returns or warranty so u can do without installed base.
    Best Regards,
    Pratik Patel
    <b>Reward with points!</b>

  • Can we call a function within a function??????Urgent

    Dear All,
    Like we can call a procedure from another procedure , in the same way can we call a function within a function. Please reply it's urgent.
    Regards

    > Please reply it's urgent.
    My usual soapbox response.
    Saying your posting is urgent is rude and arrogant. Why? Because you are saying that other people who have posted problems here, have less important problems than yours. That despite how complex and critical their problem may be, yours take priority.
    You're also demaning attention and a quick answer from people that provide support here - in their free time... and not getting paid a single cent for their efforts.
    So just how can you demand any urgency to your posting from them?
    Remember that this is a public forum. You cannot demand anything here. This is not Oracle Support. There are no SLA's here. Basic nettiquette applies.

  • How do I call a function in java?

    I'm calling a function called lightParse() from the method. But, I'm getting an error:
    F:\Data>javac -classpath xerces.jar;xalan.jar;classpath%; Test.java
    Test.java:22: lightParse(java.lang.String) in Test cannot be applied to ()
    lightParse();
    ^
    The scenario or code portion is :
    import javax.swing.*;
    import java.awt.*;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import org.xml.sax.SAXException;
    public class Test extends JFrame
         JList list;
         JScrollPane listContainer;
         public Test()
              setSize(300, 300);
              setVisible(true);
              initialize();
              lightParse(); // calling the function
         public void initialize()
              list = new JList(new DefaultListModel()); // Set the initial model
              listContainer = new JScrollPane(list);
              listContainer.setSize(new Dimension(200, 200));
              getContentPane().setLayout(new BorderLayout());
              getContentPane().add(listContainer, "Center");
              validate(); // Validate the screen
    // The function is the following
         public void lightParse(String url)
              DocumentBuilder parser;
              DocumentBuilderFactory factory =
                        DocumentBuilderFactory.newInstance();
              try {
                        parser = factory.newDocumentBuilder();
                        Document doc = parser.parse(url);
    How do I call the function correctly with the right parameter?
    Thanks in advance for the answer.

    u r calling lightParse method without passing the expected "String" argument. There must not be an overloaded method for lightParse without any arguments.
    So u should use this:
    lightParse(some string here);
    Hope this explains.
    I'm calling a function called lightParse() from the
    method. But, I'm getting an error:
    F:\Data>javac -classpath
    xerces.jar;xalan.jar;classpath%; Test.java
    Test.java:22: lightParse(java.lang.String) in Test
    cannot be applied to ()
    lightParse();
    ^
    The scenario or code portion is :
    import javax.swing.*;
    import java.awt.*;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import org.xml.sax.SAXException;
    public class Test extends JFrame
    JList list;
    JScrollPane listContainer;
    public Test()
    setSize(300, 300);
    setVisible(true);
    initialize();
    lightParse(); // calling the function
    public void initialize()
    list = new JList(new DefaultListModel()); // Set the
    e initial model
    listContainer = new JScrollPane(list);
    listContainer.setSize(new Dimension(200, 200));
    getContentPane().setLayout(new BorderLayout());
    getContentPane().add(listContainer, "Center");
    validate(); // Validate the screen
    // The function is the following
    public void lightParse(String url)
    DocumentBuilder parser;
    DocumentBuilderFactory factory =
    DocumentBuilderFactory.newInstance();
    try {
    parser = factory.newDocumentBuilder();
    Document doc = parser.parse(url);
    How do I call the function correctly with the right
    parameter?
    Thanks in advance for the answer.

  • Not Able To Call JavaScript Function in my JSP file

    Here is my code of jsp, its a form , now when i click on the submit button having value "check all", it doesnot call the function
    "CheckAll( )" which will just popup the alert box, when i click on the "check all" button but it gives following error
    object expected,line no 66
    can somebody help me
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@ page import="java.util.*"%>
    <%@ page import="dao.dbconnect" %>
    <% response.setHeader("Pragma","no-cache");%>
    <% response.setHeader("Cache-Control","no-store");%>
    <% response.setDateHeader("Expires",-1);%>
    <html>
    <head>
    <script type="text/javascript" src="calendarDateInput.js">
    function CheckAll()
         alert("hi");
    </script>
    </head>
    <body >
    <form name="inserttransaction" action="InsertTransaction" method="get">
    <TABLE border="0" cellpadding="2" cellspacing="2" align="center">
    <thead>
    <tr bgcolor='999999'>
                             <FONT SIZE="10" COLOR="white">
    <th width="20%">    </th>
    <th width="20%">    </th>
    <th width="25%">    </th>
    <th width="35%">    </th>
    </tr>
    </thead></FONT>
    <tbody>
    <TR bgcolor='CCCCCC'>
         <TD>Amount: </TD>
         <TD><input type="text" name="amount" value="" size="5" maxlength="5" ONKEYPRESS="if ((event.keyCode < 48) ||
    (event.keyCode > 57)) event.returnValue = false;"/></TD>
         <TD>Date Of Expenditure</TD>
         <TD><script >DateInput('orderdate', true, 'DD-MON-YYYY')</script></TD>
    </TR>
    <TR bgcolor='ffff'></TR>
    <TR bgcolor='CCCCCC'>
         <TD>Type Of Expenditure:</TD>
         <TD><select name="expendituretype" onBlur=ONKEYPRESS="if ((event.keyCode < 48) ||
    (event.keyCode > 57)) event.returnValue = false;">
    <option value="" selected>Select</option>
    <option>Grossary</option>
    <option>Entertainment</option>
    <option>Travelling</option>
    <option>Electric Bill</option>
    <option>RoomRent</option>
    <option>Hotel</option>
    <option>Picknik</option>
    <option>Other</option>
    </select></TD>
         <TD>Expenditure Detail:</TD>
         <TD><input type="text" name="expendituredetail" value="" size="36" /></TD>
    </TR>
    <TR bgcolor='ffff'></TR>
    <TR bgcolor='CCCCCC'>
         <TD>Paid By:</TD>
         <TD><select name="paidby">
                                  <option value="" selected>Select</option>
                                  <%
                                       session = request.getSession(true);
         this is line 66 ==========>                              Vector units=(Vector)session.getAttribute("vectobj");_
                                       out.print(units);
                                       for(int i = 0, size = units.size(); i < size; i++)
                                            out.print ("<option value=" + (String)units.get(i) + ">");
                                            out.print(units.get(i));
                                            out.print("</option>");
                                  //     out.print ("</select>");
                                  %>
                                  </select></TD>
         <TD>Add Beneficiary:</TD>
              <TD>
              <input name="btn" type="button" onclick="CheckAll()" value="Check All"> 
         <%
                                                 session = request.getSession(false);
                                                 Vector v=(Vector)session.getAttribute("vectobj");
                                                 int k=v.size();
                                                 for (int i=0; i<k; i++)
                                                                out.print("<INPUT TYPE=\"checkbox\" NAME=\"abc\" VALUE="+v.get(i).toString()+">" + v.get(i).toString() + " ");
                                            %>     
                                            </TD>
    </TR>
    </tbody>
    </TABLE><BR><BR><BR>
    <CENTER><INPUT TYPE="submit" value="Submit Transaction Data"></CENTER>
    </form>
    </body>
    </html>

    If I were you, I would post only the problematic code.. in the code tags !!
    Your obvious problem is you arent using your script tags properly. Understand this for yourself.This is your working code :
    <html>
    <head>
    <script>
    function CheckAll(){
    alert("hi");
    </script>
    </head>
    <body >
    <input name="btn" type="button" onclick="CheckAll()" value="Check All">
    </body>
    </html> HTH

  • FSCM Biller Direct Call Center Payment Log

    Hi,
    We are using Biller Direct and Biller Direct Call Center for our dealers/customer AR processing.
    Biller Direct is used by our Dealers to see their account balance and post payment online through Biller Direct web portal.
    Biller Direct Call Center is used by our Account Receivable team to see our dealers account balance and to post payment with authorization from our dealers.
    The main question is:
    How can we see the deatilpayment log/detail on transaction posted through Biller Direct Call Center? Our AR team needs to identify which user from AR team that perform a specific payment. Please advise.
    Is this something that can be setup through XCM or R/3 configuration?
    We need to get the detail of "User ID" and "Date & Time" that a payment is done through Biller Direct Call Center.
    I tried to look from the document changes on AR line item detail of the billing document that got paid. But, the document changes is only showing that user BD_POOL made the payment posting. The user id is setup in XCM for posting any transaction into R/3.
    Appreciate your help in advance.
    Thanks,
    Markus

    Mohit,
    Let me try to answer your questions:
    u2022 What accounting entries are passed from SAP perspective and at what points in time?
    A) SAP will post a CREDIT to the Customer AR item and a DEBIT to a Credit Card Receivable account when the payment is posted in FI.  The DEBIT to the Credit Card Receivable account is included in the nightly Settlement run to be sent to the Processor for a deposit request.
    u2022 How are charges levied by banks / financial institutions handled or can be handled?
    A) There are Processor charges for authorizations and other services such as Fraud checking as well as the INTERCHANGE fee that is a percentage of the Settlement amount.  This could be anywhere from 1.5% to 4% of the Invoice amount depending on the type of transaction and the agreement with the Processor.
    u2022 How any fees / charges imposed by network processors / clearing houses handled on a transactional basis?
    A) The processor will assess and collect these fees, typically on a monthly or daily basis and provide reporting to the Merchant regarding the fees charged.
    u2022 Is this something which Standard SAP Config can accommodate and if yes where exactly? If not what custom development route is appropriate?
    A) Standard SAP does not have the ability to assist with Settlement reconciliation or recognition/assignment of processing fees.  This must be accomplished through Manual postings.
    u2022 Does addition of third party providers like pay metric for interface plug-in help in segregating and processing of credit card charges any better?
    A) Yes, ISVs such as Paymetric which provide integration between SAP and the processors do provide additional SAP and external reporting and functionality to assist with the reconciliation process and in determining the processing fees.
    Regards,
    Eric Bushman
    VP, Solution Engineering

  • Calling a function from a select

    Hi, I'd like to know, from a select, how can I call a function which has in input more than one values (for example all the cities).
    For example from this select I retrieve:
    SELECT STORE.CITY ,LENGTH(STORE.CITY) FROM VIDEO5.STORE STORE
    CITY                           LENGTH(STORE.CITY)
    New York                                        8
    Atlanta                                         7
    Los Angeles                                    11
    San Francisco                                  13
    Pittsburgh                                     10
    New Orleans                                    11
    Seattle                                         7
    Dallas                                          6
    Cincinnati                                     10
    Minneapolis                                    11
    Louisville                                     10
    CITY                           LENGTH(STORE.CITY)
    Phoenix                                         7
    Denver                                          6
    St. Louis                                       9
    Washington                                     10
    Miami                                           5
    Boston                                          6
    Nashville                                       9
    Chicago                                         7
    Philadelphia                                   12
    20 rows selected. Now, if I want to know also the Store Name, for each city, I need to call a function (STATISTIC_REPORT_2) which retrieves for each city the Store Name,.....but I don't know how to pass the "city parameter" inside the function.
    So....in this way
    SELECT LENGTH(STORE.CITY), STORE.CITY, test.STATISTIC_REPORT_2(STORE.CITY)
    FROM VIDEO5.STORE STORE
    I have the following error: ORA-06553: PLS-306: wrong number or types of arguments in call to 'STATISTIC_REPORT_2'
    Before I define a type as:
    create type Tot_Tks_Created_type is table of varchar2(200);
    and the function is
    FUNCTION STATISTIC_REPORT_2 (p_ypiresia Tot_Tks_Created_type)
    return Tot_Tks_Created_type
    IS
    Tot_Tks_Created Tot_Tks_Created_type; VARCHAR2(200); Tot_Tks_Created_type;
    begin
    select store_name bulk collect into Tot_Tks_Created from store;
    return Tot_Tks_Created;
    end;
    Anyone knows the correct syntax or where I make a mistake ?
    Thanks in advance
    Alex

    There's nothing technically wrong with having more than one store per city especially when you are returning a table type as originally specified by the OP:
    drop table stores
    drop table stores succeeded.
    create table stores as (select 1 id, 'Seattle' City, '5th Ave Deli' Store_name from dual
      union all select 2, 'Seattle', '13th St Gas-n-Go' from dual
      union all select 3, 'Seattle', 'Convention Center Lemon Juicer' from dual
      union all select 4, 'Portland', 'Bagle Bistro' from dual
      union all select 5, 'Portland', 'Lime Time' from dual
      union all select 6, 'Tacoma', 'Taco Hut' from dual)
    create table succeeded.
    create or replace type varchar200_tt is table of varchar2(200);
    type varchar200_tt Compiled.
    create or replace function city_stores(city_list varchar200_tt) return varchar200_tt as
      store_list varchar200_tt;
    begin
      select s.store_name bulk collect into store_list
      from stores s
      where city in (select column_value from table(city_list));
      return store_list;
    end;
    function city_stores(city_list Compiled.
    select city, city_stores(varchar200_tt(city))
    from (select distinct city from stores)
    CITY     CITY_STORES(VARCHAR200_TT(CITY))                                      
    Portland VARCHAR(Lime Time,Bagle Bistro)                                       
    Seattle  VARCHAR(Convention Center Lemon Juicer,13th St Gas-n-Go,5th Ave Deli) 
    Tacoma   VARCHAR(Taco Hut)                                                     
    3 rows selected

  • In-app vs 3rd party service purchases for call center

    Dear Support
    I am creating a service that gives an opportunity for a user to have audio / video consultation with a specialist sitting in my real-world call-center. My service has a web interface as well with the same functionality as the mobile app. 
    To be able to get a consultation user should buy "consultations" from either mobile app or website. Consultations purchased from web should be available in application for the same user and vice versa. So basically mobile application is just an extension of my business.
    Could you please advice should I use in-app or external payment gate in mobile app ?

    aasmbat wrote:
    Dear Support
    My service has a web interface as well with the same functionality as the mobile app. 
    Then an app isn't necessary according to the App Store Review Guidelines
    https://developer.apple.com/appstore/resources/approval/guidelines.html#function ality
    2.12 Apps that are not very useful, unique, are simply web sites bundled as Apps, or do not provide any lasting entertainment value may be rejected.
    The guideline does say "may" but your reason for having an app seems a bit weak.

  • CNTL_ERROR while calling a function module from Java webdynpro

    I am calling a RFC function module from javawebdynpro app
    which inturn calls a function module performing BDC on CAPP transaction. When I run this from SE37 of the same system or a different system everything works fine. But when called from Java webdynpro app, it raises a CNTL_ERROR exception and creates a short dump.
    Any help on this is highly appreciated

    Good catch, BI Learner. This was exactly it: when assigning the values from SOURCEFIELDS directly to the import/export parameters, you have to make sure that the types are EXACTLY the same, otherwise it will not work (the routine stops with an error when calling the FM, but there is no dump).
    Therefore, to solve my problem, I created the declarations precisely as expected by the FM and assigned the values to these fields:
    DATA:
          SOURCEVAL TYPE  /BIC/OIINVQTY,
          SOURCEUOM TYPE  /BIC/OIUSUOM,
          USITM TYPE  /BIC/OIUSITM,
          TARGETUOM TYPE  /BIC/OIUSUOM,
          CONVERTED_COST TYPE  /BIC/OIINVQTY.
    DATA PRODUCTION_UOM TYPE /BIC/OIUSUOM.
    " get the Production UOM
        SELECT SINGLE I~/BIC/USPRDUOM
          FROM /BIC/PUSITM AS I
          INTO PRODUCTION_UOM
          WHERE I~/BIC/USITM = SOURCE_FIELDS-/BIC/USITM AND I~OBJVERS = 'A'.
        IF ( SY-SUBRC = 4 ). " no records found
          "RAISE PARTNO_NOT_FOUND.
          RAISE EXCEPTION TYPE CX_RSROUT_SKIP_RECORD.
        ENDIF.
    " load the parameters
        SOURCEVAL = SOURCE_FIELDS-/BIC/USFRZMFC.
        SOURCEUOM = SOURCE_FIELDS-BASE_UOM.
        USITM = SOURCE_FIELDS-/BIC/USITM.
    " then you can call the FM
        CALL FUNCTION 'Z_CA_CONVERT_US_COST'
          EXPORTING
            PSOURCEVAL                = SOURCEVAL
            PSOURCEUOM                = SOURCEUOM
            PUSITM                    = USITM
            PTARGETUOM                = PRODUCTION_UOM
          IMPORTING
            PTARGETVAL                = CONVERTED_COST
          EXCEPTIONS
            CONVERSION_NOT_MAINTAINED = 1
            PARTNO_NOT_FOUND          = 2
            OTHERS                    = 3.
    " ... [do the rest]
    Thanks for your help,
    Dennis

  • Error while calling a function.

    Hi,
    below is my callable statement through which am calling a function which returns the service years of a person with personid as parameter.
    But dont know why am getting an error which is returning the serviceyrs as 0.
    when i try to debug, the problem is in this statement
    System.out.println("the output1 is "+cs.getInt(1));
    is there any problem with my code.
    please look the code below
    thanks
    kumar
    OADBTransaction txn=getOADBTransaction();
    OracleCallableStatement cs = (OracleCallableStatement) txn.createCallableStatement("begin :1:=LMIG_UTILITY_PKG.GET_TOTAL_SERVICE(p_person_id => :2); end;",1);
    try
    cs.registerOutParameter(1,Types.INTEGER);
    cs.setInt(2,Integer.parseInt(pid));
    System.out.println("person id is "+pid);
    System.out.println("the output1 is "+cs.getInt(1));
    cs.execute();
    serviceyrs= cs.getInt(1);
    cs.close();
    catch(SQLException sqle)
    System.out.println("ERROR"+sqle.toString());
    System.out.println("Service years are "+serviceyrs);

    Hi, Guess u are missing the connection to the JDBC call.
    Try the following...it worked for me..
    Connection conn = this.getOADBTransaction().getJdbcConnection();
    OracleCallableStatement ocs = null;
    String param = null;
    try {       
         String stmt = "BEGIN :1 := <PkgName>.<FunctionName>(:2); end;";
         ocs = (OracleCallableStatement)conn.prepareCall(stmt);
         ocs.registerOutParameter(1, OracleTypes.CHAR);
         ocs.setString(2, <param>);
         ocs.execute();
         param = ocs.getString(1);
    } catch(SQLException se)
    {       throw OAException.wrapperException(se);    
    finally
         try {               
              ocs.close();
              return(param);
         } catch(Exception e)
              throw OAException.wrapperException(e);
    }

  • Can we call a function module in ADHOC query

    Hi
    Can we call a function module in ADHOC query if yes how.
    Also we ned to know how to call a function module in SAP query.
    An early responce is appreciated.
    Thanks and best regards
    Rajeev

    Okay as far as I understand your aim is:
    To fill a field in the output list with a value that is based on the current line information and calculated by a function module
    So go to SQ02 and create an additional field in the InfoSet.
    You can refer in the coding to the technical names you can see in the left tree window like P0000-PERNR.
    More information is avaiable in the Help part look for additional field in SQ02.
    Regards,
    Michael

  • Upload data from excel with vba by calling a function module

    Hello all,
    i have a problem with the function module "ALSM_EXCEL_TO_INTERNAL_TABLE". I will call this function module with vba to load data from excel to sap with a Buttonclick. I have copied this function module and set it remotable. But i can´t call it from excel.
    Can you give me some tips how can i
    upload data from excel with vba by click a button.
    The problem seems the function: call method cl_gui_frontend_services=>clipboard_import in the function module, because when i comment this function call the vba-call is true but no results. 
    How can I call the function module correct with vba?
    Thanks a lot for your tips!!!!
    Chris
    Message was edited by:
            Christoph Kirschner

    HI
    Uploading data directly from Excel file format
    * Upload data direct from excel.xls file to SAP
    REPORT ZEXCELUPLOAD.
    PARAMETERS: filename LIKE rlgrap-filename MEMORY ID M01,
                begcol TYPE i DEFAULT 1 NO-DISPLAY,
                begrow TYPE i DEFAULT 1 NO-DISPLAY,
                endcol TYPE i DEFAULT 100 NO-DISPLAY,
                endrow TYPE i DEFAULT 32000 NO-DISPLAY.
    * Tick don't append header
    PARAMETERS: kzheader AS CHECKBOX.
    DATA: BEGIN OF intern OCCURS 0.
            INCLUDE STRUCTURE  alsmex_tabline.
    DATA: END OF intern.
    DATA: BEGIN OF intern1 OCCURS 0.
            INCLUDE STRUCTURE  alsmex_tabline.
    DATA: END OF intern1.
    DATA: BEGIN OF t_col OCCURS 0,
           col LIKE alsmex_tabline-col,
           size TYPE i.
    DATA: END OF t_col.
    DATA: zwlen TYPE i,
          zwlines TYPE i.
    DATA: BEGIN OF fieldnames OCCURS 3,
            title(60),
            table(6),
            field(10),
            kz(1),
          END OF fieldnames.
    * No of columns
    DATA: BEGIN OF data_tab OCCURS 0,
           value_0001(50),
           value_0002(50),
           value_0003(50),
           value_0004(50),
           value_0005(50),
           value_0006(50),
           value_0007(50),
           value_0008(50),
           value_0009(50),
           value_0010(50),
           value_0011(50),
           value_0012(50),
           value_0013(50),
           value_0014(50),
           value_0015(50),
           value_0016(50),
           value_0017(50),
           value_0018(50),
           value_0019(50),
           value_0020(50),
           value_0021(50),
           value_0022(50),
           value_0023(50),
           value_0024(50),
           value_0025(50),
           value_0026(50),
           value_0027(50),
           value_0028(50),
           value_0029(50),
           value_0030(50),
           value_0031(50),
           value_0032(50),
           value_0033(50),
           value_0034(50),
           value_0035(50),
           value_0036(50),
           value_0037(50),
           value_0038(50),
           value_0039(50),
           value_0040(50),
           value_0041(50),
           value_0042(50),
           value_0043(50),
           value_0044(50),
           value_0045(50),
           value_0046(50),
           value_0047(50),
           value_0048(50),
           value_0049(50),
           value_0050(50),
           value_0051(50),
           value_0052(50),
           value_0053(50),
           value_0054(50),
           value_0055(50),
           value_0056(50),
           value_0057(50),
           value_0058(50),
           value_0059(50),
           value_0060(50),
           value_0061(50),
           value_0062(50),
           value_0063(50),
           value_0064(50),
           value_0065(50),
           value_0066(50),
           value_0067(50),
           value_0068(50),
           value_0069(50),
           value_0070(50),
           value_0071(50),
           value_0072(50),
           value_0073(50),
           value_0074(50),
           value_0075(50),
           value_0076(50),
           value_0077(50),
           value_0078(50),
           value_0079(50),
           value_0080(50),
           value_0081(50),
           value_0082(50),
           value_0083(50),
           value_0084(50),
           value_0085(50),
           value_0086(50),
           value_0087(50),
           value_0088(50),
           value_0089(50),
           value_0090(50),
           value_0091(50),
           value_0092(50),
           value_0093(50),
           value_0094(50),
           value_0095(50),
           value_0096(50),
           value_0097(50),
           value_0098(50),
           value_0099(50),
           value_0100(50).
    DATA: END OF data_tab.
    DATA: tind(4) TYPE n.
    DATA: zwfeld(19).
    FIELD-SYMBOLS: <fs1>.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR filename.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
           EXPORTING
                mask      = '*.xls'
                static    = 'X'
           CHANGING
                file_name = filename.
    START-OF-SELECTION.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
           EXPORTING
                filename                = filename
                i_begin_col             = begcol
                i_begin_row             = begrow
                i_end_col               = endcol
                i_end_row               = endrow
           TABLES
                intern                  = intern
           EXCEPTIONS
                inconsistent_parameters = 1
                upload_ole              = 2
                OTHERS                  = 3.
      IF sy-subrc <> 0.
        WRITE:/ 'Upload Error ', SY-SUBRC.
      ENDIF.
    END-OF-SELECTION.
      LOOP AT intern.
        intern1 = intern.
        CLEAR intern1-row.
        APPEND intern1.
      ENDLOOP.
      SORT intern1 BY col.
      LOOP AT intern1.
        AT NEW col.
          t_col-col = intern1-col.
          APPEND t_col.
        ENDAT.
        zwlen = strlen( intern1-value ).
        READ TABLE t_col WITH KEY col = intern1-col.
        IF sy-subrc EQ 0.
          IF zwlen > t_col-size.
            t_col-size = zwlen.
    *                          Internal Table, Current Row Index
            MODIFY t_col INDEX sy-tabix.
          ENDIF.
        ENDIF.
      ENDLOOP.
      DESCRIBE TABLE t_col LINES zwlines.
      SORT intern BY row col.
      IF kzheader = 'X'.
        LOOP AT intern.
          fieldnames-title = intern-value.
          APPEND fieldnames.
          AT END OF row.
            EXIT.
          ENDAT.
        ENDLOOP.
      ELSE.
        DO zwlines TIMES.
          WRITE sy-index TO fieldnames-title.
          APPEND fieldnames.
        ENDDO.
      ENDIF.
      SORT intern BY row col.
      LOOP AT intern.
        IF kzheader = 'X'
        AND intern-row = 1.
          CONTINUE.
        ENDIF.
        tind = intern-col.
        CONCATENATE 'DATA_TAB-VALUE_' tind INTO zwfeld.
        ASSIGN (zwfeld) TO <fs1>.
        <fs1> = intern-value.
        AT END OF row.
          APPEND data_tab.
          CLEAR data_tab.
        ENDAT.
      ENDLOOP.
      CALL FUNCTION 'DISPLAY_BASIC_LIST'
           EXPORTING
                file_name     = filename
           TABLES
                data_tab      = data_tab
                fieldname_tab = fieldnames.
    *-- End of Program
    <b>Excel Upload Alternative - KCD_EXCEL_OLE_TO_INT_CONVERT</b>
    *Title : Excel Uploading
    TYPES:   BEGIN OF t_datatab,
             col1(25)  TYPE c,
             col2(30)  TYPE c,
             col3(30)  TYPE c,
             col4(30)  TYPE c,
             col5(30)  TYPE c,
             col6(30)  TYPE c,
             col7(30) TYPE c,
             col8(30)  TYPE c,
             col9(30)  TYPE c,
             col10(30)  TYPE c,
             col11(30)    TYPE c,
           END OF t_datatab.
    DATA: it_datatab TYPE STANDARD TABLE OF t_datatab INITIAL SIZE 0,
          wa_datatab TYPE t_datatab.
    Data : p_table type t_datatab occurs 0 with header line.
    DATA : gd_scol   TYPE i VALUE '1',
           gd_srow   TYPE i VALUE '1',
           gd_ecol   TYPE i VALUE '256',
           gd_erow   TYPE i VALUE '65536'.
    DATA: it_tab TYPE filetable,
          gd_subrc TYPE i.
    field-symbols : <fs>.
    *Selection screen definition
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS:  p_file LIKE rlgrap-filename
                   DEFAULT 'c:test.xls' OBLIGATORY.   " File Name
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      REFRESH: it_tab.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title     = 'Select File'
          default_filename = '*.xls'
          multiselection   = ' '
        CHANGING
          file_table       = it_tab
          rc               = gd_subrc.
      LOOP AT it_tab INTO p_file.
    *    so_fpath-sign = 'I'.
    *    so_fpath-option = 'EQ'.
    *    append so_fpath.
      ENDLOOP.
    START-OF-SELECTION.
      PERFORM upload_excel_file TABLES   it_datatab
                                 USING   p_file
                                         gd_scol
                                         gd_srow
                                         gd_ecol
                                         gd_erow.
    * END-OF-SELECTION.
    END-OF-SELECTION.
      LOOP AT it_datatab INTO wa_datatab.
        WRITE:/ wa_datatab-col1,
                wa_datatab-col2,
                wa_datatab-col3,
                wa_datatab-col4,
                wa_datatab-col5,
                wa_datatab-col6,
                wa_datatab-col7,
                wa_datatab-col8,
                wa_datatab-col9,
                wa_datatab-col10,
                wa_datatab-col11.
      ENDLOOP.
    *&      Form  UPLOAD_EXCEL_FILE
    *       upload excel spreadsheet into internal table
    *      -->P_TABLE    Table to return excel data into
    *      -->P_FILE     file name and path
    *      -->P_SCOL     start column
    *      -->P_SROW     start row
    *      -->P_ECOL     end column
    *      -->P_EROW     end row
    FORM upload_excel_file TABLES   p_table
                           USING    p_file
                                    p_scol
                                    p_srow
                                    p_ecol
                                    p_erow.
      DATA : lt_intern TYPE  kcde_cells OCCURS 0 WITH HEADER LINE.
    * Has the following format:
    *             Row number   | Colum Number   |   Value
    *      i.e.     1                 1             Name1
    *               2                 1             Joe
      DATA : ld_index TYPE i.
    * Note: Alternative function module - 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
        EXPORTING
          filename                = p_file
          i_begin_col             = p_scol
          i_begin_row             = p_srow
          i_end_col               = p_ecol
          i_end_row               = p_erow
        TABLES
          intern                  = LT_INTERN
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      IF sy-subrc <> 0.
        FORMAT COLOR COL_BACKGROUND INTENSIFIED.
        WRITE:/ 'Error Uploading file'.
        EXIT.
      ENDIF.
      IF lt_intern[] IS INITIAL.
        FORMAT COLOR COL_BACKGROUND INTENSIFIED.
        WRITE:/ 'No Data Uploaded'.
        EXIT.
      ELSE.
        SORT lt_intern BY row col.
        LOOP AT lt_intern.
         MOVE lt_intern-col TO ld_index.
         assign component ld_index of structure
         p_table to <fs>.
    move : lt_intern-value to <fs>.
    *     MOVE lt_intern-value TO p_table.
          AT END OF row.
            APPEND p_table.
            CLEAR p_table.
          ENDAT.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    "UPLOAD_EXCEL_FILE
    Regards
    Pavan

  • /How to call a function in another PowerShell script

    Hi All,
    I want to use dot-sourced method to call the function from other script,While calling Function.ps1 from the second script there is a Null value in the beginning,
    How can we ignore this null value or there is a better approach of doing it without using Import-Module.
    #=======Function.ps1============
    function add($x,$y)
    $z=$x+$y
    Write-Host "The value is $Z"
    add $a $b
    #===========End==================
    The second script which has been dot-source to call the function
    #================Main script==========
    . C:\Users\Anirban\Desktop\Tester.ps1 |Out-Null
    add 1 2
    #================================
    Regards,
    Anirban Singha

    Dot Sourcing is adding the function ADD to console environment and the script is acting like a module vs a script with parameters.
    The Add $a $b line should be removed. (Where are $a and $b defined?)
    They are not defined hence, "The Value is " blank line
    #=======Function.ps1============
    function add($x,$y)
    $z=$x+$y
    Write-Host "The value is $Z"
    add $a $b
    Should be
    #=======Function.ps1============
    function add($x,$y)
    $z=$x+$y
    Write-Host "The value is $Z"
    PS C:\Test> . c:\tester.ps1
    Add 1 2
    Add 3 4
    The value is 3
    The value is 7
    However the add can work without dot sourcing the script file by parameterizing the script
    #=======Function.ps1============
    Param ($a,$b) # Parameters to the script
    function add($x,$y)
    $z=$x+$y
    Write-Host "The value is $Z"
    Add $a $b # body of script
    PS C:\Test> 
    C:\Tester.ps1 1 2
    C:\Tester.ps1 3 4
    The value is 3
    The value is 7

  • How to call a C pointer from call library function node

    I have a client/server application which the client I am trying to develop using Labview.  When I use to communicate the server and the client using the program provided by the manufacter, the system works perfectly.
    Now, I am trying to develop a system using labview, because I need to get another things.
    I have the DLL provided by the manufacter and the .h too, so I can check the functions parameters. One of these functions needs to be called using a struct element. Probably, the function's DLL instantiates the elements of this struct.  I use the call library function node to do it.
    When I receive the data, the function returns to me the struct that I passed as a parameter before, and then I can read all the elements of the struct, except the string element that returns nothing. The struct elements that are numerical, I can read them perfectly.
    Another thing that is important to say, is that the string data was not returned in fact by the DLL function that the system calls. I have to pass a pointer (I use it as unsigned 16 in Labview, but I tried before as string and unsigned 8) as a parameter, and this pointer will point to the memory location that the string is. When I try to read what is returned by the function, I can read nothing. The same function returns that the size of data that is returning is 17 bytes.
    How can I solve it?
    Thank you in advance

    Did you take a look at the example that ships with LabVIEW that shows how to do all sorts of data passing to DLLs. I believe your situation is one of the examples listed. You can find the example VI in the "<LabVIEW install directory>\examples\dll\data passing" directory.

Maybe you are looking for