Concurrent calling of Host function

Hi all,
I had using HOST() function in my form's library to sent label printing command to printer, it work ok when only 1 client is print label, but when there is concurrent client calling printing label function, one of the label not success to printed and no error return. I had trace my program and both client is calling HOST() to send the label to printer, but I had no idea why one of the label not successful to printed out. Please Help!
Beside that, is that any log file can i refer to whether HOST() function return any internal error that didn't show on the screen?
Thanks in advance.
p/s: I'm using webForm and my OracleAS version is 9.0.4.3
ek

Hi,
I'm calling 'c:\bin\rfprint.exe "\\172.21.9.123\GENERICT" c:\wm\setup\lbl\166_609026.lbl >> c:\wm\temp\label.log'. 1st parameter is a application to print label. 2nd parameter is printer name, 3rd parameter is label file and 4th parameter is log file.
Thanks.

Similar Messages

  • How we can limit the number of concurrent calls to a WCF service without use the Singleton pattern or without do the change in BizTalk Configuration file?

    How can we send only one message to a WCF service at a time? How we can limit the number of concurrent calls to a WCF service without use the Singleton pattern or without do the change in BizTalk Configuration file? Can we do it by Host throttling?

    Hi Pawan,
    You need to use WCF-Custom adapter and add the ServiceThrottlingBehavior service behavior to a WCF-Custom Locations.
    ServiceThrottlingBehavior.MaxConcurrentCalls - Gets or sets a value that specifies the maximum number of messages actively processing across a ServiceHost. The MaxConcurrentCalls property specifies the maximum number of messages actively
    processing across a ServiceHost object. Each channel can have one pending message that does not count against the value of MaxConcurrentCalls until WCF begins to process it.
    Follow MSDN-
    http://msdn.microsoft.com/en-us/library/ee377035%28BTS.10%29.aspx
    http://msdn.microsoft.com/en-us/library/system.servicemodel.description.servicethrottlingbehavior.maxconcurrentcalls.aspx
    I hope this helps.
    Rachit
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Can I call MS Excel Function in Oracle

    Hi everyone,
    I prototyped my application in Microsoft Excel. In this prototype, I'm using the BETADIST() function, which returns the cumulative beta probability density function. And, yes, if you're like me, and not a statistician, it's pretty crazy. Just for fun, check out the wikipedia page on it, and you'll see what I mean. Anyway, so now, I'm trying to perform the same functionality as that function in my Oracle APEX 4.0/Oracle 10g-R2 app.
    I've studied this function a bunch, and I couldn't find an equivalent function in Oracle to do what this function does. CUME_DIST... nope, DBMS_STATS_FUNC... nope. So, I assumed I would need to figure out what exactly the function does and basically rewirte it in Oracle using PL/SQL. I've already got questions out on Statistics and Excel forums trying to figure that out.
    But, before I go any further and reinvent the wheel by coding out the logic embedded in this function (which is very hairy, of course), I wanted to check with you all and see if there's a way to invoke this MS Excel function through Oracle. Not sure if an external procedure can get to an Excel library, or how to do it if it can.
    Any ideas?
    Thanks!
    Mark

    I'm pretty sure this BETADIST exists in Java already.Not natively I think.
    But one can download Cern's COLT Libraries for High Performance Scientific and Technical Computing in Java.
    Loading the libraries via loadjava
    loadjava -user michael/xxxx@oracle_server:1521:oracle_sid -verbose -force -order -resolve -thin colt.jar concurrent.jarand creating a function
    create or replace function betadist (alpha number, beta number, c number)
         return number
      as
         language java
         name 'cern.jet.stat.Gamma.incompleteBeta(double, double, double) return double';
    /is rather straightforward.
    Calling it
    SQL> select betadist(4,5,0.4) from dual
    BETADIST(4,5,0.4)
             ,4059136
    1 row selected.the result coincides quite well with the example given in http://www.excelfunctions.net/Excel-Beta-Dist-Function.html.

  • Call SQL Server function through the gateway

    Hello, Does anyone know if it is possible to call a SQL Server system function such as SERVERPROPERTY through the gateway?
    I'd like to call a system function in the same way as a user defined function and not using DBMS_HS_PASSTHROUGH.

    Maybe I need to be a little bit more precise. It really depends on the data types being returned. When you look at the SERVERPROPERTY function you mentioned earlier and try to select for example the Collation, then SQl Server will return a SQL_VARIANT data type and that will fail - even using passthrough as SQL_VARIANT is not a supported data type.
    Let me use the passthrough example as it allows me to demonstrate it easily:
    SQL> SQL> declare
      2  val varchar2(100);
      3  c integer;
      4  nr integer;
      5  begin
      6  c:= dbms_hs_passthrough.open_cursor@DG4MSQL_EMGTW_1123_DB;
      7  dbms_hs_passthrough.parse@DG4MSQL_EMGTW_1123_DB (c, 'SELECT  SERVERPROPERTY(''Collation'') as Collation');
      8  LOOP
      9  nr:= DBMS_Hs_Passthrough.fetch_row@DG4MSQL_EMGTW_1123_DB(c);
    10  exit when nr=0;
    11  dbms_hs_passthrough.get_value@DG4MSQL_EMGTW_1123_DB(c,1,val);
    12  dbms_output.put_line(val);
    13  end loop;
    14  dbms_hs_passthrough.close_cursor@DG4MSQL_EMGTW_1123_DB(c);
    15  end;
    16  /
    declare
    ERROR at line 1:
    ORA-28511: lost RPC connection to heterogeneous remote agent using
    SID=ORA-28511: lost RPC connection to heterogeneous remote agent using
    SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=emeagtw.de.oracle.com)(PORT=11231)
    )(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=dg4msql)))
    ORA-02063: preceding line from DG4MSQL_EMGTW_1123_DB
    ORA-06512: at line 6
    Process ID: 16919
    Session ID: 148 Serial number: 16721
    When I now make sure the return value is a char data type by slightly modifying the select and including a convert it will work:
    SQL> declare
      2  val varchar2(100);
      3  c integer;
      4  nr integer;
      5  begin
      6  c:= dbms_hs_passthrough.open_cursor@DG4MSQL_EMGTW_1123_DB;
      7  dbms_hs_passthrough.parse@DG4MSQL_EMGTW_1123_DB (c, 'SELECT  convert(char,SERVERPROPERTY(''Collation'')) as Collation');
      8  LOOP
      9  nr:= DBMS_Hs_Passthrough.fetch_row@DG4MSQL_EMGTW_1123_DB(c);
    10  exit when nr=0;
    11  dbms_hs_passthrough.get_value@DG4MSQL_EMGTW_1123_DB(c,1,val);
    12  dbms_output.put_line(val);
    13  end loop;
    14  dbms_hs_passthrough.close_cursor@DG4MSQL_EMGTW_1123_DB(c);
    15  end;
    16  /
    SQL_Latin1_General_CP1_CI_AS
    PL/SQL procedure successfully completed.
    Just in case you have a procedure that returns the correct data type you have to make sure the gateway is configured correctly which means the parameter
    HS_FDS_PROC_IS_FUNC needs to be set to TRUE and the function you want to call is listed in the HS_CALL_NAME parameter.
    Here for a userdefined function I have to specify:
    HS_FDS_PROC_IS_FUNC=TRUE
    HS_CALL_NAME = "dbo.fx_SumTwoValues"
    and then  the udf based select:
    SQL> SELECT "dbo"."fx_SumTwoValues"@DG4MSQL_EMGTW_1123_DB('7','8') AS SumOfTwoValues from "dummy"@DG4MSQL_EMGTW_1123_DB;
    SUMOFTWOVALUES
                15
    - Klaus

  • A Runtime error: Generation successful, but you must call up the function

    I used Professor Jim Menching's AIS materials in fall 2009 before ECC 6.04 was installed and everything worked plug-n-play without too many problems.  I tested assigned client after my client provider migrated SAP from ECC 6.0 to 6.04. 
    I tried to proceeded "receive the product from the vendor" on page 13u2019s step 11 after creating an purchase order, as following:
    Logistics> Materials Management > Purchasing > Purchase Order > Follow-on Functions > Logistics Invoice Verification  (MIRO)
    I tried to save it.  However, I got an error message: "Generation successful, but you must call up the function".  After I did it one more time, it becomes a runtime error!  I am not savvy for dealing with unknown technical problem.  Can anyone provide me with a solution to fix problem?
    Thanks in advance.

    Picheng,
    Thanks for the post.  I forwarded your question to your hosting site for resolution since this is a technical issue ... and the technical team informed me the issue was already resolved.  If you have further issues related to this specific issue please contact the UCC directly.
    Best Regards,
    Heather

  • How to call a C function calling a Java Method from another C function ?

    Hi everyone,
    I'm just starting to learn JNI and my problem is that I don't know if it is possible to call a C function calling a Java Method (or doing anything else with JNI) from another C function.
    In fact, after receiving datas in a socket made by a C function, I would like to create a class instance (and I don't know how to do it too ; ) ) and init this instance with the strings I received in the socket.
    Is all that possible ?
    Thank you very much for your help !

    Hard to understand the question, but by most interpretations the answer is going to be yes.
    You do of course understand that JNI is the "API" that sits between Java and C and that every call between the two must go through that. You can't call it directly.

  • How to call a SQL function from an XSL expression

    Hi
    In R12, in Payroll Deposit adivce/Check writer, We need to sort the earnings tag <AC_Earnings> in to two different categories as regular and other earnings. In the DB and form level of element defintiion we have a DFF which differentiates between the two kinds of earnings. But the seeded XML that is gerneated by the check writer does not have this field.
    The seeded template displays all the earnings in one column. How can we achieve this in the template without modifying the seeded XML.
    The one approach i have is to write a function and based on the return value sort the data. For this I need to know :
    1) How to call a SQL function from an XSL expression that is allowed in BI template.
    If anyone ahs faced similar requirements please share your approach.
    Thanks
    Srimathi

    Thank u..
    but i'd seen that link wen i searched in google..
    Is it possible without using any 3rd party JARs and all?
    and more importantly plz tell me what should be preferred way to call a javascript function?
    Do it using addLoadEvent() or Windows.Load etc
    OR
    Call it thru Xsl? (I donno how to do dis)
    Thanks in Advance..
    Edited by: ranjjose on Jun 3, 2008 8:21 AM

  • Problem while calling an RFC Function Module in Background

    Hello,
    I have created a RFC function module for reading data from an external DB system. The FM calls an external RFC program (coded in C++ using RFC SDK), which delivers the required data. This external program is maintainged as an TCP RFC Connection in SM59.
    Further I have created a report, that calls the RFC function module to get the data from the external RFC programm.
    My problem is, when I call the report in foreground, everything works OK, the RFC connection works and data can be read from the external program.
    However, when I schedule the report to run in background as a job, the report is stating in the protocoll that there was a problem calling the defined RFC connection (although the connection is working properly at that time).
    More funny is, this particular problem with running in background occurs only in the productive system, in test and development system the report works correctly also while running as a job in background.
    Can you suggest the solution to this problem? Could it be something with authorisations or server settings?
    I will be on holiday for the next 6 weeks, so take your time to answer .
    Regards,
    Dusan.
    Edited by: Julius Bussche on Jan 22, 2009 7:19 PM
    Please read the forum rules about u r g e n t ...

    This is an external RFC server program, not a remote enabled ABAP RFC function module as the others seem to be assuming, right?
    Is it possible that your DEV and QAS systems only have one application server, but the PROD has many and dedicated one(s) for processing low priority background jobs?
    It might be that the target server of your TCP connection is not this BTC instance, and your RFC server is returning the data "locally" - so, into nirvana...
    Just guessing, but might be worth checking.
    Cheers,
    Julius

  • How can I have a backing file call a JavaScript function?

    I have a Weblogic portal with a JSP portlet. The portlet has a backing file. How can I get the backing file to call a JavaScript function in my portlet?
    thanks

    Hi
    your questions are not correct because you are mixing up server side operations with client side operations.
    First server side code executes then the page is sent to the browser , then any javascript executes on the browser. So asking for javascript to be called from backing file (server side) doesn't make sense or asking for javascript to read a parameter doesnt exactly work either.
    However in your server code suppose you have a variable action in the request that you want javascript to know then in your JSP you would add something like
    <script type="text/javascript">
    var action = '${requestScope.action}';
    alert(action);//or whatever you want to do
    <c:if test="${requestScope.someOthervariable == ''xyz'}"><%-- this check is done on the server --%>
    callSomeJavascript(); <%--this javascript is only executed when the server side value of someOtherVariable is xyz --%>
    </c:if>
    </script>
    i.e. you can output the javascript that has the variables you need or the function calls you want.
    Like I said understand whats server side and whats client side.

  • How can I call a plsql function from an attribute?

    I have an attribute defined in an element. I want execute a PLSQL function from the attribute, and display the returne value with an HTML template.
    I've defined the attribute's type like PLSQL, and I've put the called of the function in the value of the attribute, but it doesn't work. The only value I obtain is an URL (I think that is the URL of the function or someting like this).
    How can I call to my function from the attribute and display the returnes value in the page?
    Thanks.

    Thanks, but it doesn't work. I have an attribute called ID_BOL and I want to associate a sequence to that attribute. I've created a function, with the sequence. This function return de value of the sequence. I want taht the attribute takes the value of the sequenece dinamically.
    I've tried it, creating the type attribute like PLSQL, and calling the function from the attribute, but it doesn't work.
    How can I return the sequence value to my attribute?
    Thanks.

  • Visual fortran calling a c function in visual studio

    Hi,
    I am running Windows 8.1 with Visual Studio Prof. 2012. I have installed Visual Fortran also. Now I wanted to make a solution with two projects one for Visual Fortran and one for C, and be able to call a C function from within the Fortran. 
    Can someone, please, show how to do this step by step? Guide with pictures would be awesome.
    Thanks in advance.

    Hi Engineer101,
    One way to integrate your code into TestStand would be to save it as a .dll file.  Cick this link for information on how to do this in visual c++ 2008. Once you have the dll, you can call it in teststand using a c/c++ dll action step.  I hope this helps, and let me know if you have any further questions!
    Al B.
    Staff Software Engineer - TestStand
    CTA/CLD

  • How to call a Javascript function from backing bean without any event

    Hi,
    Someone knows how to call a Javascript function from backing bean without any event ?
    thanks

    Please review the following thread:
    ADF Faces call javascript
    Luis.

  • How to call the 'DETAIL' function in ALV for a program?

    Dear Friends,
    I have a prf_tree (TYPE REF TO cl_gui_alv_tree), and I added below codes to add an new button for displaying the detail record, it works fine:
    CALL METHOD prf_toolbar->add_button
        EXPORTING
          fcode     = prf_tree->mc_fc_detail
          icon      = icon_detail
          butn_type = cntb_btype_button
          text      = ''
          quickinfo = 'Show Details'.
    Everytime I click this new button, a window will popup and display the record details.
    My question is: how to call this standard function  ('DETAIL' function) in a program? for example:
    CASE ldf_ok_code.
        WHEN gcf_okcode_save.
          PERFORM okcode_save.
        WHEN 'SHOW_DETAIL'.
          CHECK  gdf_nodkey_9003 IS NOT INITIAL.
          PERFORM SHOW_DETAIL.(How to write this code to display the detail data of the selected record?)
      Thanks a lot!

    Hi,
    Go for Interactive Reporting
    like When u click on the output then it will show the Detail report u want .
    for that purpose Pls
    Use Hide command .
    And call another report
    by using SUBMITT Program

  • Calling Synchronous RFC Function Module in Background

    Hi all,
    Currently we are working on some requirement where in we have to retrieve data from one system(CRM) and update the same into another system(ECC). We have developed a RFC Function in CRM system and it is being called from ECC system as in synchronous mode via a batch program.
    Now since all sychronous call to a RFC function will be dialog there is a constraint on the runtime which is being set by maximum run time for each dialog work process. So my question is there an option to call an RFC function synchronously in background (background task) so there is no runtime performance.
    The standard TRFC, QRFC calls in background runs asynchronously and so I am trying to check with the SDN world as whether has anyone tried  SRFC(Synchronous) call in background?
    Thanks in advance,
    Jagath

    So my question is there an option to call an RFC function synchronously in background (background task) so there is no runtime performance.
    One solution would be to increase the value of the "time out" parameter defined the CRM system. This i feel is not a fool-proof solution as the run-times cannot be predicted. Check this thread: Re: RFC timeout profile parameter
    For me a better solution would be to implement tRFC call instead of a synchronous call. Any reasons why you don't want to implement a tRFC ?
    BR,
    Suhas
    Edited by: Suhas Saha on Jun 26, 2010 8:52 AM

  • Calling a RFC Function Module

    Hello Guys,
    I have a question regarding calling a RFC function module.
    In BW - BI 7.0 I call a RFC function module:
    (The ABAP program in BW-BI 7.0 is below)
      CALL FUNCTION ''ZTESTFUNCTIONMODULE'  " Function module in ECC
         DESTINATION 'DECCLNT110'  " ECC system
        TABLES
          it_gl_item   = it_gl
          it_errlog_gl = it_errlog_gl.
    The 'ZTESTFUNCTIONMODULE'   is RFC enabled in the ECC system.
    The purpose is we retarct the data from BW to ECC.
    When I run the function module it always asks for the user id and password.
    The SAP logon screen appears and it asks for the user id and password.
    The destination is maintained in the SM59 transaction and also the user is maintained there. I think it should login automatically into remote system and return the tables. is it correct. How to skip the logon screen.
    Do I have to pass the user id and password in the function module. I think it should take the user id from the SM59 destination. Is it correct.
    Please advise. As always thanks for your help guys.

    Hi Senthil,
    I think you answered your query in your question itself
    The user ID and password need to be maintained in RFC destination in SM59.
    Go to SM59 and then click on test connection..if it does not ask for ID and passwoed that means correct ID and password is maintained in SM59 otherwise maintain it.
    Regards,
    Atish

Maybe you are looking for

  • Forms is not cooperating at all!!

    ok so idk maybe I'm just not intelligent enough to understand Forms but I have read through various Documentation on Forms 11g and done research on it and I have typed stuff exactly how I read about to put it and nothing seems to be working like it i

  • Problems with installation of Windows 8.1 with Arch Linux GPT

    Hi everyone, I have Arch Linux installed in EFI MODE with a GPT Partitioned disk. I'm trying to install Windows 8.1 on a partition, but the message that i get is "Windows cannot be installed to this disk. The selected disk is not of the GPT partition

  • Mass Cancel PO Requisition Lines

    Hi, We have requirement to Mass Cancel PO requisition lines, either partial cancellation meaning few out of all lines or all lines in a requisition to be cancelled. Appreciate your inputs on this if any API or any other work around for this ? Regards

  • What happened to apple lossless? it's not showing up as an option anymore

    I had my hard drive replaced on my MBP. When I loaded all my iTunes music I attempted to convert them to apple lossless file like they were on my old hard drive, but the option is no longer available as far as I can see. Is apple lossless still an op

  • JAVA  kicking and screaming

    I teach a High School introduction to Programming course using C++... have for several years---- go from ablolute basics up to arrays in the course... maybe a bubble / shell sort at the end of the year... AP folks are requiring a change to JAVA langu