Invoking a batch processing using ABAP proxy

Hi guys,
I need to develop a scenario where in the target a proxy starts a function module (or ?), but I need to run this function module then in a separate "thread", so the proxy processing would be finished. You know what I mean? Is it possible somehow?
Thank you, Andrzej

Hi Andrzej,
You can Call the Function using Tasks in the ABAP Proxy.
See:
[http://wiki.sdn.sap.com/wiki/display/Snippets/ABAPparallelprocessingusingRFC]
[http://wiki.sdn.sap.com/wiki/display/Snippets/Easilyimplementparallelprocessinginonlineandbatchprocessing]
[http://wiki.sdn.sap.com/wiki/display/ABAP/Parallel+Processing]
Best Regards.

Similar Messages

  • HTTP GET using ABAP Proxy

    Hi,
    Has anyone tried invoking an HTTP GET using ABAP Proxy?
    It seems we can do it using the func module HTTP_GET....
    I have seen a blog using java proxy but I want to do it using ABAP proxy...
    regards,
    Piyush

    Hi All,
    With my research on SDN, I came to know that we can either do it using HTTP_GET or the calss CL_HTTP_CLIENT.
    But can I do it for a very long HTTP url????
    Please response frends... Dont let me down :/
    regards,
    Piyush

  • RequestTimeoutException error while invoking a BPEL process using RMI

    Hi,
    I am getting RequestTimeoutException error while invoking a BPEL process using this code:
    Locator locator = LocatorFactory.createLocator(jndiProps);
    String compositeDN = "default/"+processName+"!1.0";
    Composite composite = locator.lookupComposite(compositeDN);
    String serviceName = "client";
    Service deliveryService = composite.getService(serviceName);
    NormalizedMessage nm = new NormalizedMessageImpl();
    nm.getPayload().put("payload", requestXml);
    NormalizedMessage res = deliveryService.request("process", nm);
    responseMap = res.getPayload();
    The error stack trace is
    weblogic.rmi.extensions.RequestTimeoutException: RJVM response from 'weblogic.rjvm.RJVMImpl@604f2d14 - id: '-361032376059206
    2776S:10.67.232.164:[8001,-1,-1,-1,-1,-1,-1]:emaar_domain:soa_server1' connect time: 'Mon Jan 18 11:34:41 GST 2010'' for 'executeServiceMethod
    (Loracle.soa.management.CompositeDN;Ljava.lang.String;Ljava.lang.String;[Ljava.lang.Object;) 'timed out after: 60000ms.
    oracle.fabric.common.FabricInvocationException: weblogic.rmi.extensions.RequestTimeoutException: RJVM response from 'weblogic.rjvm.RJVMImpl@60
    4f2d14 - id: '-3610323760592062776S:10.67.232.164:[8001,-1,-1,-1,-1,-1,-1]:emaar_domain:soa_server1' connect time: 'Mon Jan 18 11:34:41 GST 20
    10'' for 'executeServiceMethod(Loracle.soa.management.CompositeDN;Ljava.lang.String;Ljava.lang.String;[Ljava.lang.Object;) 'timed out after: 6
    0000ms.
            at oracle.soa.management.internal.facade.ServiceImpl.request(ServiceImpl.java:135)
            at com.gss.common.bo.BpelUtil.invokeBPELProcess(BpelUtil.java:81)
    To add to it the BPEL process is executing successfuly and RMI call timeout is happening.
    Can I know how to increase the related timeout value?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Have got the same problem. Scenario at my end is little different though.
    I am trying to invoke a BPEL process from an ESB Service.
    I am trying to look into it..
    However, would be grateful, if someone can give some insight into this since many are running into this issue without being able to fix.
    Ashish.

  • When to use ABAP proxy?

    currently we have MQ > XI > ECC 5.0(using RFC adapter which calls a BAPI)
    the above scenario works sometimes, but other times the data is inconsistent. We are using BPM collection in XI and then transferring the order via RFC adapter.
    I am wondering if we can use ABAP proxy and see if this method is more viable.
    regards,
    tony

    Hi Tony,
    >>>I am wondering if we can use ABAP proxy and see if this method is more viable.
    Sure you can use proxies
    if you are calling bapis and you don have sp14
    then your server proxy will look very similar to
    your RFC wrapper
    Regards,
    michal

  • Web Service consumer using ABAP-PROXY

    Hello,
    I want to test Web Service consumer using ABAP-PROXY . So I do what is explain in the weblog :
    [http://wiki.sdn.sap.com/wiki/display/Snippets/WebServiceconsumerusingABAP-PROXY]
    But when I execute the programm, the message : 'No valid source context supplied'.
    But, proxy and port are ok and activate.
    Can you help me.
    Thanks.

    Hi Jitesh,
    Thanks for the link.  I checked but did not find helpful info there.
    I have managed to make it work yesterday.  Two issues were identified. 
    1. The namespace in the WSDL file imported into ESR as an external definition.  I need to create the same namespace in ESR before importing the WSDL and then import the WSDL into that namespace.
    2. The authentication method.  The authentication method in the IIS configuration of the .NET web service has to be set to Basic Authentication.  Then I set logical port of the consumer proxy in the OSAMANAGER to use Basic Authentication also.  So far only the Basic Authentication works in my test scenario.
    I am closing this question.
    Regards,
    Jiannan

  • Pros & Cons for consuming web services in ABAP using ABAP PROXY

    Hi,
    Other then performence  is there any other disadvantages like security,etc for consuming web services in ABAP using ABAP proxy?
    I really appreciate if some one provide the more details(Pros & Cons ) regarding cosuming web services and I also want to know is there any other way to consume web services in ABAP.
    Thanks.

    <i> is there any other way to consume web services in ABAP</i>
    you can use cl_http_client class to make your program to act as http client and post the soap message too webservice. This way you dont need to generate proxy, but you should know the soap message format.
    Regards
    Raja

  • Outbound interface using ABAP Proxy

    Hi Guys,
    I am trying to create an interface between a Z table and XI using ABAP Proxy. I suggested file based interface, but client is insisting using ABAP proxy. Z table is in IS-Retail side.
    I will appreciate is somebody can share a program to do this.
    Any advise/guidance is appreciated.
    Thanks,

    Hi There
    From your  subject line i can see that you want to develop an outbound proxy which means you want to send data to XI from your SAP custom table. That means you need to extract all the information from your Z-table and send it to XI via  proxy.
    If my understanding is correct then what you need to do is :
    1.Ask your XI team team to generate a message interface for you of type 'outbound' and include the structure in the way they want you to send data to them. 
    2.Once the message interface is created by them , you can generate the same in transaction SPROXY .  Search for your interface namespace and then right click
    on it and say 'CREATE' . Give the appropriate package and prefix to it.Generate the proxy, save and activate
    3. Now you can create a report and then according to the structure generated by XI , you can popluate your internal table to be passed back.
    4. Call the method of the proxy in your report and send the data to XI.
    I can give you an example of how to do this:
    suppose you have built up an internal table by extracting data from your Z-table .Lets say it is tbl_output.
    In your report you need to trigger the proxy method as follows:
    Note: i am assuming i am triggering an asynchronous proxy method from my report:
    DATA:lo_senddata  TYPE REF TO CL_DATA_OUT,
                      lo_system_fault TYPE REF TO cx_ai_system_fault,
                      lo_root         TYPE REF TO cx_root.
    ls_output-output_file-data[] = tbl_data[].
    CREATE OBJECT lo_senddata
    TRY.
    * call the asynchronous method of the proxy and send the data
              CALL METHOD lo_senddata->execute_asynchronous
                EXPORTING
                  output = ls_output.
    * get the system exceptions and display the error text
            CATCH cx_ai_system_fault INTO lo_system_fault.
              WRITE:/ 'System Error:'(E01),
                      lo_system_fault->errortext.
              RETURN.
    * get the root exception and display the textid value
            CATCH cx_root INTO lo_root.
              WRITE:/ 'System Error:'(E01),
                      lo_root->textid.
              RETURN.
          ENDTRY.
    COMMIT WORK.
    <b>Note:</b> 1. CL_DATA_OUT is the message interface class.
                      2. ls_output is the output structure to be sent back to XI and data 
                         is an internal table with the same structure as tbl_data.
                      3. It is very imp to catch exceptions as i have shown u above.
    Please let me know if you are a little clear or you need some more clarifications on this.
    cheers
    shivika

  • Transaction Update Error using ABAP Proxy

    Hi Experts,
    I am facing an issue using ABAP Proxy.
    File is coming from PI to SAP system and it will update the Transaction IE02 using this inbound ABAP Proxy. If records fails then a mail is going to concerned team.
    Issue:
    When File has been sent from PI to SAP through ABAP Prxoy, it shows that record has been updated in the Transaction IE02 but when I checked manually the record, it has not updated the same. But when I test the same record through my ABAP Prox, it updates the record and when I checked it, Reocrd hs been updated.
    Can anybody help me in this case?
    Regards
    Sachin

    Hi Anup,
    Can you please explain me for the same? If I need to put External Commit then how It is working when I running it manually
    Regards
    Sachin

  • Is EOIO messaging possible using ABAP Proxy in WAS 620?

    Hello,
    I am trying to implement an outbound EOIO interface using ABAP Proxy on a SAP R/3 470 running on WAS 620. We have XI 3.0 running on WAS 640. I followed the SAP documentation available at http://help.sap.com/saphelp_nw04/helpdata/en/c9/74246d8ad2447799063d39013e9a11/frameset.htm
    I find that the interface IF_WSPROTOCOL_ASYNC_MESSAGING required in this exaple does not exist in our R/3 system. I also notice that proxy classes generated on WAS 640 have the superclass of CL_PROXY_BASIS. But the proxy object generated in WAS 620 have no superclass at all.
    Does anybody know how I can get EOIO interfaces to work on the WAS 620? Did you use these objects? Can I import / install them somehow? Or, is EOIO just not possible in WAS 620?
    Please let me know.
    Regards
    Cerish Chemparathy

    HI,
    have a look at this link to the ABAP Proxy Runtime based on WAS 6.20 (Xi 2.0) http://help.sap.com/saphelp_xi20sr1/helpdata/en/02/265c3cf311070ae10000000a114084/content.htm
    There is a help entry called Guatanteeing the Order of Asynchronous Messages. Seems that you somehow can set a queue id for this messages and as long as theses messages are all in the same queue, the order will be maintained.
    Your observations are right, there are differences between the Proxy Runtime in WAS 6.20 and in WAS 6.40 and as far as i know, there is no way to downport the 6.40 runtime to 6.20. You will need to stick with wath 6.20 offers.
    Regards
    Christine

  • Issue with FM 'STATUS_CHANGE_EXTERN'  using ABAP Proxy

    Hi Experts,
    I am using the FM 'STATUS_CHANGE_EXTERN'   & 'STATUS_CHANGE_INTERN'  to change the user status & system status using ABAP Proxy.
    But SAP is updating the system status using ABAP Proxy through ''STATUS_CHANGE_INTERN'' but not updating the User stauts 'STATUS_CHANGE_EXTERN' using ABAP Proxy but when run the same in foreground then it's working fine..
    I have already used the External Commit for the same.
    Please help me in this case.
    Thanks in Advance
    Sachin

    After call of CRM_STATUS_CHANGE_EXTERN you need to call BAPI_TRANSACTION_COMMIT.
    call function 'CRM_STATUS_CHANGE_EXTERN'
        exporting
            objnr               = iv_guid
            user_status         = iv_status
        exceptions
            OBJECT_NOT_FOUND    = 1
            STATUS_INCONSISTENT = 2
            STATUS_NOT_ALLOWED  = 3
            OTHERS              = 4
    if ( sy-subrc = 0 ).
        call function 'BAPI_TRANSACTION_COMMIT'
            exporting
                wait  = ABAP_TRUE
    else.
        "!+ Handle error
    endif.
    Best regards,
    Tomas.

  • FTP to SAP using ABAP Proxy

    Hi SDN,
      I am new to XI can any one provide me clear documentation or link on "FTP to SAP using ABAP Proxy" on this senario. I mean the steps to create ABAP Proxy etc..
    Thanks in Advance
    Regards
    Basha

    Hi Shaik
    Please go through the information provided in the blogs below which explains clearly the Scenario you want to try.
    <a href="/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy Proxies in XI</a>
    <a href="/people/siva.maranani/blog/2005/04/03/abap-server-proxies Server Proxies</a>
    <a href="/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy to R/3 via ABAP Proxy</a>
    Please do let me know if you want any more help regarding the same.
    Regards,
    Abhy

  • Output type using ABAP proxy

    Hi All,
    Is it possible to create an output type for delivery or invoice using ABAP proxy? If yes do we need to follow some special steps(apart from the usual setting we do for EDI or print outputs) to be followed for this?
    Regards,
    Sajith.

    Hi Sajith Hari,
    I am not aware about the ABAP option but you can certainly use NACE tcode and select V2 or V3 accordingly for deliveries or invoices>go to output types and create your desired output types.
    regards,
    US

  • Performance problems processing big volumes using ABAP-proxy framework

    Hi
       We have a custom application ABAP program running on a ECC50 ( WAS640 ) box - that reads change pointer information based on a Z* msg type and generates proxy messages - sending them to XI. Now in every run, this ABAP program pushes out 5000 to 10,000 messages ( one /customer change ) to XI using a proxy framework.
    I find that the Z* abap takes very little time to read the change pointer information and generate the outbound messages out of the ECC50 box. The messages are queued in the ECC50 integration engine layer for a long time before they go out to XI. We even got a <b>HTTP_RESP_STATUS_CODE_NOT_OK</b> error for one of the outgoing messages since there is a long list of messages trying to go out to XI.
    1) Is the above error because of the timeout in the http connection between ECC50 and the XI box - where do we increase the timeout settings for this ?
    2)What are the tuning parameters that need to be set in such a scenario on the integration engine ( ECC50 ) and the XI box ( Integration server ).
    We are using QOS as EO when the messages are sent out.
    I set EO_INBOUND_PARALLEL and EO_OUTBOUND_PARALLEL tuning params in both of the boxes to 10 . Are these parameters enough - is there something else to be set to improve the performance ?( we have atleast two CPUs each on the WAS boxes ).
    Please share your experiences / thoughts on handling such a high volume situation.

    Hi Karthik,
    <i>
    1) Is the above error because of the timeout in the http connection between ECC50 and the XI box - where do we increase the timeout settings for this ?</i>
    >>>Check this blog-
    /people/michal.krawczyk2/blog/2006/06/08/xi-timeouts-timeouts-timeouts
    Also check this tuning guide
    https://websmp106.sap-ag.de/~sapidb/011000358700000592892005E.PDF
    But just one suggestion-
    In this scenario, is your target is File or something else?
    If it is a file, you can write your proxy in such a way that, for each proxy call only 100 messages will be pushed into XI, and in XI, you can collect these messages using BPM and get the one message at the end of the process.
    Hope this helps,
    Regards,
    Moorthy

  • Invoking Webservice using ABAP Proxy

    Hi,
        I have a synchronous scenario with ABAP proxy invoking the external webservice.In the SOAP receiver target URL confiuration,do I need to give the operation(method)name in the webservice? I have read in the forum that we need to give the target URL with .asmx extension.What is the meaning of .asmx extension?
    Thanks,
    Leo

    Hi Teresa,
    We meet again !!
    Right, we have a simple solution for this without using BPM.
    In the proxy, set a field on the outbound data structure from the proxy to indicate to XI which receiver determination in XI can use to send the message to the right interface.
    We have exactly the scenario you are talking about and it works like a treat.
    Send me an e-mail @ [email protected] and I will send you a screenshot of how simple this is without using BPM.
    Cheers
    Colin.

  • Response message error in queue when using ABAP proxy

    I am using an abap proxy for the first time, and some of the response messages are getting stuck in the sender's (R/3) inbound queue.  To resolve them, I have to either reset the status or execute the LUW.  Sometimes, this doesn't even work. 
    Here is my "asynchronous" scenario:
    R/3 -> <proxy> -> PI -> <file adapter> -> File
    The R/3 system that I'm using has not used PI before, so I'm thinking something is missing from the set-up on the R/3 side.  On the errors I finally do get to process, I get the following error in the SXMB_MONI on the sender (R/3) side (the PI SXMB_MONI shows successful).  Can someone help me understand what a response message is and how it is different from an acknowledgement?  Also, help me to understand what could be causing the response messages to get stuck in the R/3 queue.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Integration Server -->
       - <SAP:ErrorHeader xmlns:SAP="http://sap.com/exchange/MessageFormat">
        <SAP:Context />
        <SAP:Code p1="MessageId"
                          p2="4962B2EDB60A003BE1008000A2844D1A"
                          p3="00000000000000000000000000000000"     
                          p4="">PROTOCOL.WRONG_HEADER_IN_RESPONSE</SAP:Code>
        <SAP:Text language="EN">Response message header contains the value 00000000000000000000000000000000 in element MessageId instead of the expected value 4962B2EDB60A003BE1008000A2844D1A</SAP:Text>
      </SAP:ErrorHeader>

    Ultimate testing tool for services is soapUI (Freeware)
    http://www.soapui.org/
    If you can invoke your service from soapUI and you receive a response, then PeopleSoft is working fine and the request handling in the calling system is incorrect.
    Try downloading soapUI and try invoking your service (not that a fan of SendMaster).
    Hakan

Maybe you are looking for

  • Printing black and white photos

    Re:  Deskjet 'All in One' F2180 Model CB597A / Windows XP When I print pictures that are grayscale and have deselected 'colour' and selected 'grayscale' in the printer properties, the photos print out mauve.  I have cleaned heads and tested colours a

  • Recording problem with RD-XV48DTKB

    Guys I recently bought the above HDD/DVD/VCR device. It works pretty well but twice now it has failed to record a program to hard disk. It didn't give an error, it just recorded 2 hours of nothing. You can play back these 2 hours of black. In each ca

  • Maximum DVD size?

    Just learning with this product so please bear with me. This was just an experiment not with production media so no worries if it baulks! Anyway - I was tying to see if DVD Studio would compress 4 hrs of video onto one SL-DVD. The projected was creat

  • Enabling compositing (in Enlightenment)

    Hello forum! When I try to enable compositing in enlightenment settings (e17) I get the message "You have chosen to enable composite support, but your current screen does not support composite. Are you sure you wish to enable composite support?" Comp

  • How much can the new iMac take on???

    I am planning on buying a second Mac, so I was just wondering how powerfull the imac G5 2.1 really is. Can it handle programs like Final cut pro, Logic pro or Cinema 4d. And how about games like "Star Wars Battlefront", "Battlefield 1942" or "Halo".