Server proxy in background mode using abap?

Hi,
I would like to schedule server proxy in back ground mode using ABAP report. I already have the payload available in XSTRING(binary) saved in Z table. I know how to convert binary string to XML (using FMs -  SCMS_BINARY_TO_STRING).
However, is there any way to pass binaryXML(XSTRING) to server proxy (without converting the paylolad to XML and use SAX/DOM parser to populate proxy input structure ) ?
Not sure, if SET_XML(IF_WS_PAYLOAD) method can be used.
Thank you,
Mallik

Hi Malik,
I would like to schedule server proxy in back ground mode using ABAP report. I already have the payload available in XSTRING(binary) saved in Z table. I know how to convert binary string to XML (using FMs -  SCMS_BINARY_TO_STRING).
If you think about this, it hasnt sense, a server always need to be alive wainting a communication. If you want to stop the server reception, the middleware system (in this case PI) would need to store the messages for a future server availability, then this would work only with async messages. I dont see right now the utility of this, may be don't overload the ECC system in a work hours, is this the problem?
However, is there any way to pass binaryXML(XSTRING) to server proxy (without converting the paylolad to XML and use SAX/DOM parser to populate proxy input structure ) ?
Are you talking about to do this conversion in a java mapping inside the PI? aren't you?
Regards.

Similar Messages

  • Executing Proxy in Background Mode

    Hi All
    Is it possible to execute the proxy in background mode ??
    This is for a File->XI->ABAP Proxy interface..the message size is more than 30MB and is getting timed out in the inbound queue of the receiver (abap prxy)after 10mins.
    This is bcoz the max runtime for the dialog work process is set to 600secs and we are unable to increase it further.
    can anyone help.
    Thx in advance
    chemmanz

    Hi Chemmanz,
    You can increase the capacity of processing the message in Admin options.
    Go to SXMB_ADM, run Integration Engine Configuration
    Change specific configuration and then set the size of the message to be processed against the parameter
    MAX_MESSAGE_TRANSFER_SIZE.
    Hope this should solve your problem.
    Regards,
    Suraj Kumar.

  • Communicating with presentation server in the background mode

    Hi Folks,
        I have a requirement to communicate the presentation server in the background mode. I'm following the below article for achieving it.
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2?quicklink=index&overridelayout=true|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2?quicklink=index&overridelayout=true]
    But I'm getting an error while testing in the dos prompt. The error is as following.
    The system cannot execute the specified program.
    Kindly Help.
    Regards,
      santosh

    But I'm getting an error while testing in the dos prompt. The error is as following. The system cannot execute the specified program.
    You see this error usually if some libraries (dll's) are missing. To investigate this issue it might help to use the [dependency walker|http://www.dependencywalker.com/] tool on the executable and check for any missing libraries. If you cannot figure it out yourself, please try to post exact comments of what you're doing and complete error messages including ideally version of your RFCSDK.
    Cheers, harald

  • Can a transaction be called in background dynamically using ABAP program??

    Hi Experts,
    Can a transaction be called in background dynamically using ABAP program without BDC???
    Regards,
    Mansi.

    u can create job dynamically through programming..Try this sample code..
    data: jobname like tbtcjob-jobname value
                                 ' TRANSFER TRANSLATION'.
    data: jobcount like tbtcjob-jobcount,
          host like msxxlist-host.
    data: begin of starttime.
            include structure tbtcstrt.
    data: end of starttime.
    data: starttimeimmediate like btch0000-char1.
    Job open
      call function 'JOB_OPEN'
           exporting
                delanfrep        = ' '
                jobgroup         = ' '
                jobname          = jobname
                sdlstrtdt        = sy-datum
                sdlstrttm        = sy-uzeit
           importing
                jobcount         = jobcount
           exceptions
                cant_create_job  = 01
                invalid_job_data = 02
                jobname_missing  = 03.
      if sy-subrc ne 0.
                                           "error processing
      endif.
    Insert process into job
    SUBMIT zreport and return               << Here it is a static call but u can make it dynamic
                    with p_param1 = 'value'
                    with p_param2 = 'value'
                    user sy-uname
                    via job jobname
                    number jobcount.
      if sy-subrc > 0.
                                           "error processing
      endif.
    Close job
      starttime-sdlstrtdt = sy-datum + 1.
      starttime-sdlstrttm = '220000'.
      call function 'JOB_CLOSE'
           exporting
                event_id             = starttime-eventid
                event_param          = starttime-eventparm
                event_periodic       = starttime-periodic
                jobcount             = jobcount
                jobname              = jobname
                laststrtdt           = starttime-laststrtdt
                laststrttm           = starttime-laststrttm
                prddays              = 1
                prdhours             = 0
                prdmins              = 0
                prdmonths            = 0
                prdweeks             = 0
                sdlstrtdt            = starttime-sdlstrtdt
                sdlstrttm            = starttime-sdlstrttm
                strtimmed            = starttimeimmediate
                targetsystem         = host
           exceptions
                cant_start_immediate = 01
                invalid_startdate    = 02
                jobname_missing      = 03
                job_close_failed     = 04
                job_nosteps          = 05
                job_notex            = 06
                lock_failed          = 07
                others               = 99.
      if sy-subrc eq 0.
                                           "error processing
      endif.
    Regards,
    JOy.

  • HOW TO RUN ABAP SERVER PROXY IN BACKGROUND?

    Hi All,
    I have a ABAP Server Proxy running in WAS 6.20. This Server Proxy runs as a foreground Process when the scenario is executed. if we run a scenario with huge load or run scenarios with continuous load, due to the fact that the server proxy runs as a foreground process, the system slows down and has some performance issues. How to handle this issue.Is there a way to run the Server Proxy as a background Job. Please do help me out.
    Regards,
    Sundararamaprasad.

    hi,
    here's an idea: encapsulate your proxy call inside an object which can be ran in background.... like an IDoc !
    Steps:
    create a zidoc in ECC and use it from PI to ECC to send data (instead of your direct abap proxy call).
    Afer that, in z_function_module which is used to intregate your zidoc, call your abap proxy.
    in WE20 (partner profile), the process mode of your idoc should be of course "Triggered by background program", and then use a job on program RBDAPP01 (with a variant limited to your zidoc) to process your idocs.
    Note:
    1. the only interest to do that compare to create a real IDoc interface is just (in my mind) to call a common proxy or to want to reuse an existing proxy without too more effort.
    2. of course your current proxy call should be asynchronous.
    I never tested it, so it's without warranty !
    Regards.
    Mickael

  • Schedule Abap Server proxy in background job in SAP r/3

    Hi all,
    My scenario is File XI Proxy Interface inbound to SAP...
    My requirement is to schedule the proxy in the background job every night.
    How can I acheive this?
    <removed_by_moderator>
    Read the "Rules of Engagement"
    Thank you,
    Mili.
    Edited by: Juan Reyes on Oct 21, 2008 3:04 PM

    Hi ,
    U don't need to schedule a server proxy ...as the proxy will kick in automatically as soon as the message is processed by file adapter .
    Since yours is File to proxy scenario...
    and you want to execute it overnight ..
    You will have to control when the file is processed by XI file adapter.
    Here what you can do ..
    Let's just say your file gets placed in a Folder 'A' ...and your file communication channel is configured to pick files from folder B.
    Write an abap code on xi box ..(or you can use a V.B. script)
    which will move the file from folder A to Folder B.This code can easily be scheduled..so that it you can get files in folder B from where XI processig will kick in .
    (job scheduling can be done sm36 ..use the wizard)

  • In a server proxy how can I use a INCLUDE STRUCTURE?

    Hi people!!, how can I put an internal table with an INCLUDE statement in a server proxy in abap. If I put the next code the system present me this error: Within classes and interfaces, you can only use "TYPE" to refer to ABAP     , Dictionary types, not "LIKE" or "STRUCTURE".
    The problem is that I need the STRUCTURE to make a APPEND.
    Thanks for the help.
    DATA: BEGIN OF bdc_tab .
            INCLUDE STRUCTURE bdcdata.
    DATA: END OF bdc_tab.

    Hi Carlos,
    Yes. It mainly accepts TYPE statements.
    You can use this as:
    DATA: BDC_LINE type bdcdata.
    DATA: BDC_TAB type table of bdcdata.
    When you want to use,
    Fill the BDC_LINE.
    Then:
    Append BDC_LINE to BDC_TAB.
    Or:
    Loop at BDC_TAB into BDC_LINE.
    Cheers,
    Bhanu

  • Server Proxy generation from WSDL in ABAP

    Hi ,
    I have  a WSDL file. Using transaction SPROXY i am abe to generate Cient proxy in ECC 6.0.
    Can i generate a erver Proxy also from the WSDL?
    Ifyes , then what is the approach , transaction etc to so, Any refeence document would be helpful.
    If no , then what should i use , to generate the Server Proxy.
    My scenario is that I have designing an Enterprise Service via Top - Down Approach . I have designed the Interface with operations and generated the Wsdl . now i need to generate the Server proxy  in ABAP SDL , so that i can write the implementation of the service in ABAP.
    Any help would be appriciated
    Thank You
    I

    Hoping to resurrect this thread. I have the exact same requirement. Anyone figured out how to do this?

  • Server Proxy in back ground mode in ABAP?

    Hi,
    I would like to schedule server proxy in back ground mode using ABAP report. I already have the payload available in XSTRING(binary) saved in Z table. I know how to convert binary string to XML (using FMs -  SCMS_BINARY_TO_STRING).
    However, is there any way to pass binaryXML(XSTRING) to server proxy (without converting the paylolad to XML and use SAX/DOM parser to populate proxy input structure ) ?
    Not sure, if SET_XML(IF_WS_PAYLOAD) method can be used.
    Thank you,
    Mallik

    Hi Malik,
    I would like to schedule server proxy in back ground mode using ABAP report. I already have the payload available in XSTRING(binary) saved in Z table. I know how to convert binary string to XML (using FMs -  SCMS_BINARY_TO_STRING).
    If you think about this, it hasnt sense, a server always need to be alive wainting a communication. If you want to stop the server reception, the middleware system (in this case PI) would need to store the messages for a future server availability, then this would work only with async messages. I dont see right now the utility of this, may be don't overload the ECC system in a work hours, is this the problem?
    However, is there any way to pass binaryXML(XSTRING) to server proxy (without converting the paylolad to XML and use SAX/DOM parser to populate proxy input structure ) ?
    Are you talking about to do this conversion in a java mapping inside the PI? aren't you?
    Regards.

  • How to pass XML(Binary) to Server Proxy in ABAP report

    Hi,
    I would like to schedule server proxy in back ground mode using ABAP report. I already have the payload available in XSTRING(binary) saved in Z table. I know how to convert binary string to XML (using FMs -  SCMS_BINARY_TO_STRING).
    However, is there any way to pass binaryXML(XSTRING) to server proxy (without converting the paylolad to XML and use SAX/DOM parser to populate proxy input structure ) ?
    Not sure, if SET_XML(IF_WS_PAYLOAD) method can be used.
    Thank you,
    Mallik

    Hi Sarvesh,
    The pdf has details of ABAP mapping. The example given almost matches the xml file you want to be converted.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/how to use abap-mapping in xi 3.0.pdf
    Just in case you have not seen this
    regards
    Vijaya

  • Starting BIP Server in background mode on Windows

    Hi,
    When we start the standalone BIP Server inside an OC4J container on Windows, a command prompt remains open. If you close the command prompt the BIP Server process dies.
    Is there a way to start the BIP Server in a background mode ?
    Please advise.
    Thanks,
    Chetan

    Thanks all for your reply.
    I used the javaservice to create a windows service.
    javaservice -install "OC4J" "C:\Program Files\Java\jdk1.5.0_07\jre\bin\client\jvm.dll" -XX:MaxPermSize=128m -Xmx512m "-Djava.class.path=C:\oracle\OracleBIPublisher\oc4j_bi\j2ee\home\oc4j.jar" -start oracle.oc4j.loader.boot.BootStrap -description "Oracle BI Publisher OC4J Service"

  • Start InfoPackage in dialog mode using BAPI

    Hi all,
    I need to start an InfoPackage in the dialog mode using ABAP coding report. The InfoPackage has to load data from a csv-file from the Client-Substation, therefore it can be started only in dialog mode (“Start Data Load Immediately” is chosen in Schedule tab).
    I use BAPI_IPAK_START functional module for this purpose. But I receive an error “An upload from the client workstation in the background is not possible”, and a message “InfoPackage ZPAK_EUSCSC3BAGELE4JAI3HRM5PHJ could not be started by Bapi_ipak_start”.
    It seems that BAPI_IPAK_START tries to start InfoPackage in the background, regardless of choosing “Start Data Load Immediately” option.
    It is possible to start InfoPackage in the dialog using BAPI?
    Thank you.

    Your problem is, that an Infopackage can only use local files, while it is attached to a running dialog. It has to access your local disc to get the data. If you want to use the Infopackage in a process chain you have to transfer your file to a location where the application server has access. The BAPI_IPAK_START just starts the Infopackage. It does not know where your local environment is, so it cannot find your local disc and cannot access the file.
    You have to options:
    1. Use your local file and start the infopackage by hand. No automation possible.
    2. Put the file somewhere where you can find it via transaction AL11. Then you can access this file without trouble.
    Kind regards,
    Jürgen

  • IMPORT/EXPORT statement in Background Mode

    Hey dudes,
    I am facing a problem in my coding. I am dealing with coding in several events in IS-U, transaction FPY1.
    However, it's not so important ya. Now I am written some code on IMPORT and EXPORT some parameters between 2 program code. It's work very fine only in 'DEBUG MODE', but when it's running not debug mode (Is BACKGROUND MODE), coz it's massive run program.
    I suspect it's because of the background job. Does background job using ABAP Memory? IMPORT/EXPORT is only for dialog work process, not background work process?? I have a lot of question mark on my head now..
    Hope anyone facing dis issue before can help.
    Cheers,
    Isaac.

    Are you trying to pass data via EXPORT/IMPORT between two programs that are both running in background, or from an online session to a background process?... i.e. what are the two lots of program code that you are wanting to pass parameters between? 
    It would be fine for a background program to "export" data to a memory ID, then for the same batch program to submit another program that does the "import" from the same memory ID... but this method won't work for an online user doing an "export" and a batch job doing an "import" -> for this to work, you would need to persist the parameters so that the batch job can retrieve them.
    If you can explain the scenario a bit more, will try to offer more help...
    Jonathan

  • Accessing presentation server file in background

    Hi gurus,
    my requirement is to access presentation server file in background mode.
    I got the below documentation regarding this ,but i'm not able to complete the setup as mentioned in this document.
    please help .
    [https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/communication%20to%20presentation%20server%20in%20background%20mode.doc]
    As per documentation i need rfc.car and car.exe file in my system. I cant see any rfcsdk folder in my system. Please help.
    any other solutions ,please suggest.
    sastry.
    Edited by: prssastry on Oct 15, 2008 7:13 AM

    Hi,
    In general practice we don't access a file from presentation server in background because at that point of time i might not logon to SAP server, so it is always preferable to access the file from Application layer incase of background processing.
    Unless it is a client requirement, don't access files from the presentation layer in background./
    thanks,
    Mahesh.

  • Deploying applications to a server in a StandBy mode

    Using WLS 8.1 SP2
    Local Win 2k machine.
    I have a some questions regarding re-deploying applications to a Managed Server,
    in a StandBy mode, using either the Admin console or the weblogic.Deployer utility.
    (I have configured the Domain Wide Admin Port and managed server starts fine in
    the StandBy mode).
    I noticed that I can deploy new applications using both the console and the deployer
    utility. These applications get deployed after the server resumes (understandable).
    However, both the deployer and the Admin console do not realize when to return
    the results of the action. By this I mean, the admin console continues to spin
    even after I resume the managed server
    and the deployer utility never returns.
    While re-deploying the same thing happens when using the Admin console, but the
    deployer utility does not work. It complains that I need to deploy the application
    first before I can re-deploy it, even though the application is already deployed.
    Based on this, I was wondering if anyone has got this to work succesfully. If
    so, can you tell what steps to follow.
    Both the Admin and the managed server are on the same machine.
    Thanks,
    Ketan.

    Check this link... It will help you
    How to store image in file system, client/server architecture form 6i ?
    If someone's response is helpful or correct, please mark it accordingly.

Maybe you are looking for