Call methods in Synchronous order - CSOM

Hi ,
I am using working in C# - CSOM in SharePoint platform.
I have scenario where the code is executed asynchronously as shown in the following code below.
My requirement is that each method has be executed synchronously, like Method1 has to executed first,completed, if there is no Exception in Method1, move to Method 2. Then Method2 has to be executed , if no exception , Method 3 has to be executed. In any
case if there is any exceptions the code execution has to be stopped.
This has to be done with better performance, as I am using this code in an event handler where the code should not get timed out.
Please advise which would be my best way with some samples.
Thanks
private async void MainCall(ClientContext clientContext)
clientContext.Web.Method1(msg1);
//Method 2
clientContext.Web.Method2(msg2);
clientContext.Web.Method3(msg1);

Hi Ligesh,
If you use Task to run the methods, basically it'll pick up threads from the thread pool to run the code. If you're concerned about the performance, you could use Stopwatch to monitor the run time.
Besides Task, there're many other ways to synchronize these methods, this document has provided many:
Thread Synchronization (C# and Visual Basic)
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Java.util.concurrent.Callable synchronized call method

    Hi all,
    I'm currently developing an algorithm that uses Callable Interface. I'd like to know when should I use synchronized in the Call() method signature.
    My scene is the following:
    Class Test invoke Task Class.
    The Task Class contains the following code:
                      ExecutorService execServ
                           =Executors.newCachedThreadPool();
                      CallableWorkerThread workers[]
                          =new CallableWorkerThread[numWorkers];
                      Future futures[]
                          =new Future[numWorkers];
                      for (int i = 0; i < numWorkers; i++) {
                           workers[i] = new CallableWorkerThread();
                             futures[i] = execServ.submit(workers);
    The CallableWorkerThread class implements Callable and overwrite it's Call() method.
    My doubt is about the following:
    Should I use this:
    public synchronized Object call() throws Exception {
            // Code to execute........
    }OR
    public Object call() throws Exception {
            // Code to execute........
    }Tks.

    Hi David, I thank you for your answer.
    My class CallableWorkerThread implements Callable Interface because I'm using submit method() from ExecutorService.
    In other words, when I use the instructionexecServ.submit(workers); the object workers must be a collection of Callable Objects.
    This is my Test_CallableWorkerThread:
    public class Test_CallableWorkerThread  {
    ExecutorService      execServ  = Executors.newCachedThreadPool();
    CallableWorkerThread      workers[] = new CallableWorkerThread[10];
    Future                futures[] = new Future[10];
    for (int i = 0; i < 10; i++) {
         workers[i] = new CallableWorkerThread();
         futures[i] = execServ.submit(workers);
    This is my CallableWorkerThread:
    public class CallableWorkerThread implements Callable {
         private Collection<MyObject> collectionOfMyObjects = null;
         private String threadName                   = null;
         private Connection conn                       = null;
         CallableWorkerThread(Collection<MyObject> collectionOfMyObjects, String threadName, Connection conn) {
                  this.collectionOfMyObjects = collectionOfMyObjects;
                  this.threadName = threadName;
                  this.conn = conn;
         public Object call() throws Exception {
              for (Iterator iter = collectionOfMyObjects.iterator(); iter.hasNext();) {
                   MyObject element = (MyObject) iter.next();
                   System.out.println(this.threadName + " is working with " + element.getName());
                   try {Thread.sleep((int)(Math.random() * 1000));
                   } catch (InterruptedException e) {}
                 return(threadName);
    }According to the code above, I'm using CachedThreadPool. I read the documentation about this and this method creates a thread pool that creates new threads as needed, but will reuse previously constructed threads when they are available.
    It's work fine, but until now I didn't undestand what is the real difference between using method with synchronized and without.
    Thanks for the help!

  • Is Paypal a supported Payment Method in Oracle Order Management?

    Hi there -
    Has anybody implemented Paypal as payment method for Oracle Order Management?
    We are on 11510 and looking to add Paypal as payment method apart from existing Credit Card, ACH etc.
    I found a very old (2008) note on metalink that says there is an enhancement request for this.
    https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=HOWTO&id=351691.1
    We use Paymentech as payment processor.
    Let me know...
    1. If it's supported with Oracle 11510
    2. Anyone has any experience implementing it.
    thanks,
    Edited by: techy on Oct 25, 2010 12:56 PM

    Hi Stephen-
    First of all thanks for your response.
    Please note that I am not talking about using Paypal as payment processor (similar to Paymentech) but I am talking about using "Paypal" payment method for getting payments from your customers.
    As per my brief understanding, I know that Paypal too provides payment processing functionality where I can get my customer Credit Card, bank accounts etc. validated through paypal tool (I think it's call payflow pro similar to paymentech).
    Again, we are on 11510 right now so R12 functionality may not be useful for us.
    Also, we have already integrated and been using paymentech for payment processing for Credit Cards, ACH etc within 11510. There is no issue about that.
    I hope this is clear.
    Edited by: techy on Oct 25, 2010 2:42 PM

  • What is the procedure for calling three screens in order?

    Hi friends,
                  Can anyone solve my problem of knowing how to call three screens.
    In one screen i will be give say emp-id and password
    it has to go to next screen have 2 radiobuttons functional and technical after selecting it has to go next screen where employee name timein and timeout will be there where i have to store employee name and timein and out in a table please its urgent can any one help with this. Creation of screens are perfect but only calling the screens in order and storing the data in a table is my problem.
    Solutions will be surely rewarded.

    hi,
    screens can be called by any one of the following methods:
    1.using a t-code
    2.from abap program
    if ur calling it from abap program, make use of CALL SCREEN
    syntax:
    CALL SCREEN <dynnr>.
    statement to call a screen and its subsequent sequence within that program. The flow logic of each screen calls dialog modules in the program that called the screen.
    When the screen sequence ends, control returns to the statement after the original CALL SCREEN statement.
    To termintate the screen sequence, use  LEAVE TO SCREEN.
    These statements exit the current screen and call the defined next screen. If the next screen is screen 0, the entire screen sequence concludes.
    please rewards points if useful.
    regards
    sandhya

  • How to call methods from within run()

    Seems like this must be a common question, but I cannot for the life of me, find the appropriate topic. So apologies ahead of time if this is a repeat.
    I have code like the following:
    public class MainClass implements Runnable {
    public static void main(String args[]) {
    Thread t = new Thread(new MainClass());
    t.start();
    public void run() {
    if (condition)
    doSomethingIntensive();
    else
    doSomethingElseIntensive();
    System.out.println("I want this to print ONLY AFTER the method call finishes, but I'm printed before either 'Intensive' method call completes.");
    private void doSomethingIntensive() {
    System.out.println("I'm never printed because run() ends before execution gets here.");
    return;
    private void doSomethingElseIntensive() {
    System.out.println("I'm never printed because run() ends before execution gets here.");
    return;
    }Question: how do you call methods from within run() and still have it be sequential execution? It seems that a method call within run() creates a new thread just for the method. BUT, this isn't true, because the Thread.currentThread().getName() names are the same instead run() and the "intensive" methods. So, it's not like I can pause one until the method completes because they're the same thread! (I've tried this.)
    So, moral of the story, is there no breaking down a thread's execution into methods? Does all your thread code have to be within the run() method, even if it's 1000 lines? Seems like this wouldn't be the case, but can't get it to work otherwise.
    Thanks all!!!

    I (think I) understand the basics.. what I'm confused
    about is whether the methods are synced on the class
    type or a class instance?The short answer is; the instance for non-static methods, and the class for static methods, although it would be more accurate to say against the instance of the Class for static methods.
    The locking associated with the "sychronized" keyword is all based around an entity called a "monitor". Whenever a thread wants to enter a synchronized method or block, if it doesn't already "own" the monitor, it will try to take it. If the monitor is owned by another thread, then the current thread will block until the other thread releases the monitor. Once the synchronized block is complete, the monitor is released by the thread that owns it.
    So your question boils down to; where does this monitor come from? Every instance of every Object has a monitor associated with it, and any synchronized method or synchonized block is going to take the monitor associated with the instance. The following:
      synchronized void myMethod() {...is equivalent to:
      void myMethod() {
        synchronized(this) {
      ...Keep in mind, though, that every Class has an instance too. You can call "this.getClass()" to get that instance, or you can get the instance for a specific class, say String, with "String.class". Whenever you declare a static method as synchronized, or put a synchronized block inside a static method, the monitor taken will be the one associated with the instance of the class in which the method was declared. In other words this:
      public class Foo {
        synchronized static void myMethod() {...is equivalent to:
      public class Foo{
        static void myMethod() {
          synchronized(Foo.class) {...The problem here is that the instance of the Foo class is being locked. If we declare a subclass of Foo, and then declare a synchronized static method in the subclass, it will lock on the subclass and not on Foo. This is OK, but you have to be aware of it. If you try to declare a static resource of some sort inside Foo, it's best to make it private instead of protected, because subclasses can't really lock on the parent class (well, at least, not without doing something ugly like "synchronized(Foo.class)", which isn't terribly maintainable).
    Doing something like "synchronized(this.getClass())" is a really bad idea. Each subclass is going to take a different monitor, so you can have as many threads in your synchronized block as you have subclasses, and I can't think of a time I'd want that.
    There's also another, equivalent aproach you can take, if this makes more sense to you:
      static final Object lock = new Object();
      void myMethod() {
        synchronized(lock) {
          // Stuff in here is synchronized against the lock's monitor
      }This will take the monitor of the instance referenced by "lock". Since lock is a static variable, only one thread at a time will be able to get into myMethod(), even if the threads are calling into different instances.

  • Abap proxy method execute synchronous

    hey guys,
    im new at XI and am posting this thread in the hope that someone would explain to me, what is required of the method "execute synchronous" in an abap proxy.
    thanks

    Hi,
    <b>Execte_Synchronous</b> is used to send the message synchronously. Similarly execute_asynchonous is used to send the message asynchronously.
    <b>Some theory about proxy.</b>
    1. Proxies can be a server proxy or client proxy. In our scenarios we require proxies to send or upload the data from/into SAP system.
    2. One more thing proxies can be used if your WAS &#8805; 6.2.
    3. Use Tcode SPROXY into R/3 system for proxy use.
    4. To send the data from R/3 system we use OUTBOUND PROXY. In Outbound proxy you will simply write an abap code to fetch the data from R/3 tables and then send it to XI. Below is the sample code to send the data from R/3 to XI.
    REPORT zblog_abap_proxy.
    DATA prxy TYPE REF TO zblogco_proxy_interface_ob.
    CREATE OBJECT prxy.
    DATA it TYPE zblogemp_profile_msg.
    TRY.
    it-emp_profile_msg-emp_name = 'Sarvesh'.
    it-emp_profile_msg-empno = '01212'.
    it-emp_profile_msg-DEPARTMENT_NAME = 'NetWeaver'.
    CALL METHOD prxy->execute_asynchronous
    EXPORTING
    output = it.
    commit work.
    CATCH cx_ai_system_fault .
    DATA fault TYPE REF TO cx_ai_system_fault .
    CREATE OBJECT fault.
    WRITE :/ fault->errortext.
    ENDTRY.
    Receiver adapter configurations should be done in the integration directory and the necessary sender/receiver binding should be appropriately configured. We need not do any sender adapter configurations as we are using proxies.
    5. To receive data into R/3 system we use INBOUND PROXY. In this case data is picked up by XI and send it to R/3 system via XI adapter into proxy class. Inside the inbound proxy we careate an internal table to take the data from XI and then simply by using the ABAP code we update the data inot R/3 table. BAPI can also be used inside the proxy to update the data into r/3.
    I hope this will clear few doubts in proxy.
    <b>How to create proxy.</b>
    http://help.sap.com/saphelp_nw04/helpdata/en/14/555f3c482a7331e10000000a114084/frameset.htm
    <b>
    ABAP Server Proxies (Inbound Proxy)</b>
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    <b>ABAP Client Proxy (Outbound Proxy)</b>
    /people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies
    <b>Synchronous Proxies:</b>
    Outbound Synchronous Proxy
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2boutbound%2bprogram%2b-%2bpurchase%2border%2bsend
    Inbound Synchronous Proxy
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2binbound%2bprogram%2b-%2bsales%2border%2bcreation
    Regards,
    Sarvesh

  • Call catalogs from PM order ,BADI PLM_CATALOG_IF

    Hi ,
    We are configuring catalogs for PM order in R/3 . 4.7 seems to have limitation of calling multiple catalogs for order type and plant combination.
    I saw many threads telling to use the BADI PLM_CATALOG_IF with method "CATALOG_GET_ALTERNATIV" .
    SAP has provied default implementation "PLM_CATALOG_OCI" for this BADI and I dont see multiple use flag on that BADI active, so if want to add additional logic in the BADI how do i do that?
    Thanks,
    Krishna.

    Hello Tom,
    Yes it is possible with ERP releases.
    Previously it was only possible to assign one catalog to a order type / planning plant. Now multiple catalogs can be assigned in customizing.
    IMG:
    > Plant Maintenance and Customer Service
      > Maintenance and Service Processing
        > Maintenance and Service Orders
          >Interface for Procurement Using Catalogs (OCI)
            (/) Assign Catalog of Order Type
    Specific catalog can then be selected from the application.
    -Paul

  • ALV using OOPS class CL_GUI_ALV_GRID, call method SET_TABLE_FOR_FIRST_DISPL

    I NEVER USED OOPS CONCEPT.BUT I GOT A TASK ON ALV REPORT USING class CL_GUI_ALV_GRID, call method SET_TABLE_FOR_FIRST_DISPLAY for ALV . I HAD PASSED THE VALUES FROM INTERNAL TABLE AND GOT OUTPUT IN ALV.
    The problem is When i save an layout(default setting button ).
    iam unable to get the output for all fields.
    if u want i will send screenshots to ur mail
    THANKS IN ADVANCE.

    ok fine,
    In the output (alv grid) there is an icon for layout settings.
    if i want to save layout (as DEFAULT SETTING) i am missing some fields in output
    EX:
    mat no | batch  | proces order | time  |  date |
    when i save layout (as DEFAULT SETTING) i am missing some fields in output
    mat no | batch  |
    the rest of the field were not displayed.
    if u are not clear just ask me. i will send some more examples.

  • Calling methods from inside a tag using jsp 2.0

    My searching has led me to believe that you cannot call methods from in the jsp 2.0 tags. Is this correct? Here is what I am trying to do.
    I have an object that keeps track of various ui information (i.e. tab order, whether or not to stripe the current row and stuff like that). I am trying out the new (to me) jsp tag libraries like so:
    jsp page:
    <jsp:useBean id="rowState" class="com.mypackage.beans.RowState" />
    <ivrow:string rowState="${rowState}" />my string tag:
    <%@ attribute type="com.mypackage.beans.RowState" name="rowState" required="true" %>
    <c:choose>
         <c:when test="${rowState.stripeToggle}">
              <tr class="ivstripe">
         </c:when>
         <c:otherwise>
              <tr>
         </c:otherwise>
    </c:choose>I can access the getter method jst fine. It tells me wether or not to have a white row or a gray row. Now I want to toggle the state of my object but I get the following errors when I try this ${rowState.toggle()}:
    org.apache.jasper.JasperException: /WEB-INF/tags/ivrow/string.tag(81,2) The function toggle must be used with a prefix when a default namespace is not specified
    Question 1:
    Searching on this I found some sites that seemed to say you can't call methods inside tag files...is this true?...how should I do this then? I tried pulling the object out of the pageContext like this:
    <%@ page import="com.xactsites.iv.beans.*" %>
    <%
    RowState rowState = (RowState)pageContext.getAttribute("rowState");
    %>I get the following error for this:
    Generated servlet error:
    RowState cannot be resolved to a type
    Question 2:
    How come java can't find RowState. I seem to recall in my searching reading that page directives aren't allowed in tag files...is this true? How do I import files then?
    I realized that these are probably newbie questions so please be kind, I am new to this and still learning. Any responses are welcome...including links to good resources for learning more.

    You are correct in that JSTL can only call getter/setter methods, and can call methods outside of those. In particular no methods with parameters.
    You could do a couple of things though some of them might be against the "rules"
    1 - Whenever you call isStripeToggle() you could "toggle" it as a side effect. Not really a "clean" solution, but if documented that you call it only once for each iteration would work quite nicely I think.
    2 - Write the "toggle" method following the getter/setter pattern so that you could invoke it from JSTL.
    ie public String getToggle(){
        toggle = !toggle;
        return "";
      }Again its a bit of a hack, but you wouldn't be reusing the isStriptToggle() method in this way
    The way I normally approach this is using a counter for the loop I am in.
    Mostly when you are iterating on a JSP page you are using a <c:forEach> tag or similar which has a varStatus attribute.
    <table>
    <c:forEach var="row" items="${listOfThings}" varStatus="status">
      <tr class="${status.index % 2 == 0 ? 'evenRow' : 'oddRow'}">
        <td>${status.index}></td>
        <td>${row.name}</td>
      </tr>
    </c:forEach>

  • Error calling methods CL_GUI_FRONTEND_SERVICES

    Hi all,
    I have a requirement in BAPI (integrating solman to portal) to download file from app. server to local directory. I used the below FM to get temp directory of presntation server.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>GET_TEMP_DIRECTORY
       CHANGING
         TEMP_DIR             =  LV_TEMP_DIR
       EXCEPTIONS
         CNTL_ERROR           = 1
         ERROR_NO_GUI         = 2
         NOT_SUPPORTED_BY_GUI = 3
         others               = 4.
       CALL METHOD cl_gui_cfw=>flush.
    It works fine in R3, but when i called it from portal it shows Access not possible using 'NULL' object reference with a short dump .
    st22 shows
    Error in ABAP application program.
    The current ABAP program "CL_GUI_FRONTEND_SERVICES======CP" had to be
    terminated because one of the
    statements could not be executed.
    This is probably due to an error in the ABAP program.
    An exception occurred. This exception is dealt with in more detail belo
    . The exception, which is assigned to the class 'CX_SY_REF_IS_INITIAL',
    neither
    caught nor passed along using a RAISING clause, in the procedure
    "GET_TEMP_DIRECTORY" "(METHOD)"
    Since the caller of the procedure could not have expected this exceptio
    to occur, the running program was terminated.
    The reason for the exception is:
    Attempt to access a component using 'NULL' object reference (points
    to nothing).
    An object reference must point to an object (an instance of a class)
    before you can use it to access components (variable:
    "CL_GUI_FRONTEND_SERVICES=>HANDLE").
    Either the reference has not yet been set, or it has been reset to
    'NULL' by a CLEAR statement.
    When i put external break point and the dump comes during execution of CALL METHOD cl_gui_cfw=>flush.
    Is it not possible to use CL_GUI_FRONTEND_SERVICES in RFC ??.
    thanks and regards
    Jijo

    Hi,
    the dump is because you cannot use that function from a BSP application, which runs in internet or intranet. The procedure in this case is different:
    DATA: flights  TYPE flighttab,
            flight   LIKE LINE OF flights,
            appl     TYPE string,
            filetype TYPE string,
            output   TYPE string,
            output2  TYPE xstring,
            response     TYPE REF TO if_http_response,
            l_len        TYPE i,
            seatsmax     TYPE string,
            seatsocc     TYPE string.
      appl = 'application/msexcel'.
      filetype = 'attachment;filename=mi archivo.xls'.
      SELECT * FROM sflight
         INTO TABLE flights
         UP TO 20 ROWS.
      LOOP AT flights INTO flight.
        seatsmax = flight-seatsmax. CONDENSE seatsmax.
        seatsocc = flight-seatsocc. CONDENSE seatsocc.
        CONCATENATE output
        flight-carrid cl_abap_char_utilities=>horizontal_tab
        flight-connid cl_abap_char_utilities=>horizontal_tab
        flight-fldate cl_abap_char_utilities=>horizontal_tab
        flight-planetype cl_abap_char_utilities=>horizontal_tab
        seatsmax cl_abap_char_utilities=>horizontal_tab
        seatsocc cl_abap_char_utilities=>horizontal_tab
        cl_abap_char_utilities=>cr_lf
        INTO output.
      ENDLOOP.
      response = runtime->server->response.
      response->delete_header_field( name = if_http_header_fields=>cache_control ).
      response->delete_header_field( name = if_http_header_fields=>expires ).
      response->delete_header_field( name = if_http_header_fields=>pragma ).
      response->set_header_field( name = if_http_header_fields=>content_type
                                  value = appl ).
      response->set_header_field( name = 'content-disposition'
                                  value = filetype ).
      CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
        EXPORTING
          text     = output
          mimetype = 'text/unicode; charset=utf-16le'
        IMPORTING
          buffer   = output2.
      CONCATENATE cl_abap_char_utilities=>byte_order_mark_little
                  output2 INTO output2 IN BYTE MODE.
      l_len = XSTRLEN( output2 ).
      response->set_data( data = output2
                          length = l_len ).
      navigation->response_complete( ).
    This is the code for downloading an Excel file.

  • CALL METHOD cl_gui_frontend_services= file_save_dialog

    Hi,
    I want to use 'CALL METHOD cl_gui_frontend_services=>file_save_dialog', to choose a path for saving my txt files.  I only want the user to be able to choose the path and not have to supply a filename aswell.  My filenames are standard in the program and I don't want them to be changed by the user.
    Is there another method which is designed for this or is there a simple parameter I have missed?
    Thanks and regards,
    Simon.

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR pa_f.
       PERFORM f_search_help_pa_f1.
    FORM f_search_help_pa_f1 .
       CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
         EXPORTING
           program_name  = sy-repid
           dynpro_number = sy-dynnr
         CHANGING
           file_name     = pa_f
         EXCEPTIONS
           mask_too_long = 1
           OTHERS        = 2.
       IF sy-subrc <> 0.
         MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
       ENDIF.
    ENDFORM.                    " f_search_help_pa_f1
    Try this
    Regards

  • *ERROR IN OLE CALL - METHOD CALL ERROR...*

    HI ..
    When trying to Upload a file using BDC with Vista OS, we are getting the following error..
    ERROR IN OLE CALL - METHOD CALL ERROR...
    There is no problem with BDC as its working fine with XP & other OS.
    Pls help!!

    Seems that you are working with microsoft files.
    Maybe you are using deprecated functions like WS_EXCEL

  • Call method http_client- response- get_header_fields for PDF and for TIFF

    Hi,
    I am using a Function Module..
    APAR_EBPP_GET_INVOICE_DETAIL to display the TIFF images on the Biller Direct side.
    The above function module is used to retrieve the PDF documents from the document repository.
    In Similar way I am trying to do the TIFF Images too.
    But in this method
    call method http_client->response->get_header_fields
        changing fields.
    For PDF the table fields is as follows
                NAME                                       VALUE                                  
        1     ~response_line----
    |HTTP/1.1 200 (OK)                         |
        2     ~server_protocol----
    |HTTP/1.1                                  |
        3     ~status_code----
    |200                                       |
        4     ~status_reason----
    |(OK)                                      |
        5     content-length----
    |7136                                      |
        6     content-type----
    |application/pdf                           |
        7     server                                |Microsoft-IIS/6.0                         |
        8     x-powered-by                    |ASP.NET                                   |
        9     date                                 |Tue, 24 Feb 2009 18:09:35 GMT             |
       10     connection                       |close                                     |
    For TIFF the table fields are as follows:
        1     ~response_line----
                   |HTTP/1.1 500 (internal server error)        |
        2     ~server_protocol----
                 |HTTP/1.1                                    |
        3     ~status_code----
                     |500                                         |
        4     ~status_reason----
                   |(internal server error)                     |
        5     content-length----
                   |105                                         |
        6     content-type----
                     |text/plain                                  |
        7     server----
                              |Microsoft-IIS/6.0                           |
        8     x-powered-by                 |ASP.NET                                     |
        9     date                         |Tue, 24 Feb 2009 18:26:39 GMT               |
       10     connection                   |close                                       |
    The error message is Internal Server error..
    This is in HTTP2_Get Function Module.
    What would be the reason for HTTP/1.1 500 Internal Server error.
    Any suggestions are welcome..
    Thanks,
    Chaitanya

    Hi Niranjan,
    can you please check if you have imported the whole chain of certificates. Certificates usually diplayed in 3 levels in the Explorer. like
    Verisign - L1
    >>> Versign--  L2
    >>>>>>>>>>>>XYZ.com -- L3
    Extract all the 3 certificates and Put in Strust and do exit soft and hard in SMICM and restart the service.
    Its better to create a RFC destination of Type H and Do the Connection test for HTTPS configuration. If the connection test comes OK then u can be sure of the configuration.

  • How to Call Methods in Ecatt?

    Hello Gurus,
    I dont find CALLMETHOD or CALLSTATIC commands in Ecatt. I am using R/3 4.7 version of SAP.
    My question also is how to call methods. I have a scenario where my test script execution depends on the return type of method. Say if the return type of method is A only then I should run the script else the script should not be executed.
    Your help in this regard is highly appreciated.
    Regards,
    GS.

    >
    Get Started wrote:
    > Hello Gurus,
    >
    > I dont find CALLMETHOD or CALLSTATIC commands in Ecatt. I am using R/3 4.7 version of SAP.
    >
    > My question also is how to call methods. I have a scenario where my test script execution depends on the return type of method. Say if the return type of method is A only then I should run the script else the script should not be executed.
    >
    > Your help in this regard is highly appreciated.
    >
    > Regards,
    > GS.
    Hi GS,
    Please use the command "CallMethod" and it is available with latest SAP version.
    You have to provide the Object Instance Parameter and Instance Method.
    Regards,
    SSN.

  • Syntax for how to call method of one comp in other comp     wd java.

    Let us assume,
    there is method1 in view1 comp1.
    tell me syntax for calling method 1 in view2 comp2
    thanks in advance.
    Edited by: madhu1011 on Nov 9, 2011 11:31 AM

    Hi Madhu,
    This is the situation:
    comp1-> method 1 , view1
    comp2-> view2
    You need to access method1  in view2 of comp2.
    For that, do the following steps:
    1.) First create a method (for eg: method1) in comp1 (under implementation of view1).
            eg: public void method1(){
                    <......some logic...>
    2.)Save the meta data.
    3.) In comp2, you will find an option called used components. In that right click and add the component comp2. (Carefully select comp1 itslef).
    4.)Save the meta data.
    5.) Then go to view2 of comp2 and take implementaion part and right the following logic in wddoinit() (or any other standard or custom method).
    wdThis.wdGetComp2Interface().getMethod("method1"); 
    By this way, we can access the method1 of comp1 in comp2.
    Regards,
    Jithin

Maybe you are looking for

  • How do I take a pdf flyer after conversion and replace the text?

    I downloaded the acrobat program that will convert a pdf file into a Word document.  Now that I am there how do I replace text on this flyer to my own?

  • Firefox starts hidden (window not visible), but stays in process list. IE9, Opera, Chrome works just fine

    Yesterday my Firefox 4 just stopped working. When I click on firefox icon - new process appears in task manager list, but I can't see firefox windows. After killing firefox.exe process I can start another one, but still no firefox windows are shown.

  • No items found when using Reports

    I have a question: When i use Reports (\Monitoring\Overview\Reporting\Reports) in SCCM 2012 directly on the server i see all the reports and i can create reports. Also the web version is working alright. When i use Reports on my own workstation there

  • Xpath condition

    Hi, I need an xpath to convert to uppercase for <Empid> <Name> <FirstName>demo</FirstName> <LastName>test</LastName> </Name> <Empid> Need to check the element FirstName contains Demo ( by converting it to uppercase) I used various type like these: /E

  • Image Adjustments Hue-Saturation / Ctrl U crashes CS4

    I have been running CS4 for about five months. There have been problems - speed, stability - but here is a new one. Out of the blue, selecting the Hue-Saturation panel eithe rthrough the menu or by keystroke brings up the eyedropper - functioning - b