ABAP Proxy and commit issue

Hi,
I want to send data using an ABAP proxy from SAP ECC to PI.
The location where I call the method is in MV50AFZ1 Form uxerexit_delete_document
In my opinion it is not wise to execute a commit work statement in this location. The proxy however needs a commit work to send the data.
I also tried using a CALL FUNCTION ... IN UPDATE TASK. This also doesn't trigger the proxy to send the data.
(and it is not allowed te execute a commit in update task .. .because it's already a "commit".
Is there a way to get this thing working in this way? Or do you always have to program a separate program for sending the data with a proxy??
Thanks
Ron

Hi Ron,
Try submitting a report as a background job from the user exit...and inside this report you can write the code to call the proxy + commit.
*Submit report as job(i.e. in background)
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
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.

Similar Messages

  • How do ABAP Proxy and XI adapter work?

    Hi everybody,
    I have a general question about the ABAP proxy and XI adapter.
    In order to use the ABAP proxy and XI adapter, I must configure the HTTP Destination between the R/3 system and the XI server. I must also maintain the SLD.
    After several hours configurations with our administrator, it failed. At least the HTTP Destinations on both servers don't work correctly. We got always HTTP error message. But a scenario with an ABAP Receiver proxy works! It is really strange and laughable. We're very happy about that but don't know why and what happened. Today we tested the ABAP Sender proxy, it doesn't work.
    So we decide to ask the XI experts in this forum to give us a general lessen about the ABAP proxy: how it works, why we should create the HTTP destinations, how do the destinations work and so on.
    Thanks a lot in advance!
    With best regards
    Xiang

    Hi
    Once you create the interface in XI, you generate the proxies on your R3 system.
    Client Proxies -->
    This is done for outbound interfaces. You generate the proxy and then write a report that fills in the proxy class with the data and pushes it to XI.
    Server proxies -->
    Generated for inbound interfaces. Generate the proxy and write the implementation for the exectue method that deals with the data sent from XI to the R3 system
    Abap Proxy
    ABAP Proxies in XI(Client Proxy)
    Smarter Approach for coding ABAP Proxies
    The specified item was not found.
    ABAP Proxy - XML to ABAP Transformation
    http://help.sap.com/saphelp_nw04/helpdata/en/ba/f21a403233dd5fe10000000a155106/frameset.htm
    why we should create the HTTP destinations, how do the destinations work and so on.
    we create http destiantio because in proxies , adapter is not use so who is goin to send the message to integration server ...by creating http destinatio we create integration engine which send messg to IS . then messg is routed .and all
    error in HTTP to file scenario http to file
    hope this help's  you
    Regard's,
    Chetan Ahuja

  • How to extract attachment from ABAP proxy and store in archive link....

    Hi Experts,
    I need to consume an incoming email attachment in the ABAP Proxy program (POP Mail  --> PI --> ABAP Proxy) and then store this file in the IBM content management server through the Archvie Link connection.
    Any idea how to implement this piece of code in ABAP?
    Regards,
    Shobhit

    Hi Shobhit
    You can get the files from Sender Mail adapter. In proxy implement the method of protocol IF_WSPROTOCOL_ATTACHMENTS as said above.
    Archive Link supports HTTP, RFC etc depends on the system you are going to use for archiving. For your case you have IBM server i think you have to do HTTP synchronous. This will be like an interface again for you.
    Why are you using ERP system in middle. I think you can directly dump data to IBM server.
    Thanks
    Gaurav

  • Coding for ABAP Proxy and mapping

    Hi XI Ds
    which one need coding neither ABAP Proxy nor ABAP Mapping
    Thanks

    Hi Kushee  ,
    We need coding for both ABAP Proxy and mapping. We need to know some OO(Object Oreinted) ABAP concepts.
    We can also import JAVA CODE for certain functionality.
    Check the following websites for clarity:
    how to create a flat file out of an IDoc-XML by means of an ABAP mapping program and the J2EE File Adapter.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
    cheers!
    gyanaraj

  • Abap proxy and java proxy

    Hi
    Could you plz tell me when should we select ABAP Proxy and when should java proxy ?? Is it like that in SAP systems we use ABAP proxy and non-sap systems we use JAVA proxy ??
    Thanks
    Kumar

    To connect to SAP system with WAS >= 6.4, ABAP proxy is used.
    <i>
    Is it like that in SAP systems we use ABAP proxy and non-sap systems we use JAVA proxy ?? </i>
    Not always. As i mentioned the limitation of ABAP proxy.
    Also, Java Proxies cannot be used for any non-SAP application. it is generally used for communication with Java Application
    Regards,
    Prateek

  • Wheh to use abap proxy and when to use idoc

    Hi All,
    Please provide some clarifications for the below points :
    What is Sproxy?
    2.     Why we are using Sproxy instead of Idocs
    3.   When we are going Proxy ?
    4.   What are the types of proxy ?
    5.   How to Create to Proxy ?
    6.   What the Difference between SProxy  and Idocs
       7.   What is SOAP file? When we are using SOAP file ?
    Thank you.
    Regards,
    Bharat

    Hi Bharat,
    You seem to have a range of Questions. I will try and answer as many as possible.
    What is Sproxy?
    SPROXY is a transaction [T-Code] on the SAP ECC/CRM etc side where you can see the objects designed in SAP PI ESR and develop its corresponding ABAP code. SPROXY T-Code displays the Service Interface. You can read more about it in the following site:
    **************** - XI - ABAP Proxy communication
      2.     Why we are using Sproxy instead of Idocs
    For Certain implementations Standard IDocs may not be available and it is quite tedious to create a Z- IDoC and therefore it is advantageous to use Proxy. You can read more about this doubt in the following links:
    Choosing to use IDOC standard or ABAP Proxy?
    IDOC vs Proxy
    ABAP Proxy Vs IDOC
    3. When we are going Proxy ?
    When there are no Standard IDocs available. Please refer above links to get an answer for this.
    4.   What are the types of proxy ?
    5.   How to Create to Proxy ?
    Again the following link has the answers for both these questions:
    **************** - XI - ABAP Proxy communication
    6.   What the Difference between SProxy  and Idocs
    Difference is in the way the communication happens. Standard Idocs are already provided and you can use them directly while Proxy you will require to write the code on ECC side. You can refer the following link to understand more:
    Advantage of ABAP proxy over BAPI
    7. What is SOAP file? When we are using SOAP file ?
    I have not heard of anything called SOAP file. SOAP is a protocol used for communication and you can send files as attachment in your SOAP to Any(file/idoc/Soap etc) or vice Versa Interfaces. Infact Proxy itself is SOAP based communication with XI 3.0 Protocol.
    Please explore SCN to know more about the various scenarios. There are endless possibilities in SAP PI.
    Hope this Helps.
    Thanks &  Regards,
    Tejas Bisen

  • Direct Connection ABAP Proxy and Java Proxy possible ????

    Hi Folks ,
    As i read as direct connection possible between 2 SAP systems only ..
    and also i read as WS Direct Connection u2013 (Java) ..
    What it means ?? is it ABAP Proxy to Java Proxy using Direct connection ??  Like Java Client Proxy and ABAP Server proxy
    I am not clear on this.. Could you please explain or help me on this . ??
    Siva..

    Hi ,
    +You can do both for java proxies as well Abap proxies.+
    As per the following points
    1. Point-to-point connection is a new capability available with SAP NW PI 7.1. It allows applications or systems to send messages using WS-RM without going through a middleware, e.g. PI, but still using a centralized tool to design and
    configure the interfaces and connection properties.
    2. SAP XI 3.0/PI 7.00 or higher releases can be licensed based on the total volume of messages in
    gigabytes (GB) that is processed per month. The size of the payload is determined in the integration
    server. The information is then aggregated according to sender and receiver system.
    Question :
    1. If Message exchange between 2 SAP applications using direct connection .. Then dont we need to consider about licencing cost for volume of messages per month ?
    2. So if i use ABAP Client Proxy to Java Server proxy  scenario.. can i use direct connection  ? Eg., SAP ECC to java application ?
    In both the cases PI Runtime is not required  .. Am i right ?
    Please clarify..
    Siva..

  • ABAP Proxy and DynamicConfiguration

    I'm working on a proxy.
    Is there a way to create a FileName attribute in the Dynamic Configuration in an ABAP proxy?
    Daniel

    If you're using mapping, notice you can still do it in an ABAP mapping:
    /people/michal.krawczyk2/blog/2007/04/26/xipi-throwing-generic-exceptions-from-any-type-of-mapping
    It's not about the language, it's just that proxy runtime won't support dynamic config.
    Best regards,
    Henrique.

  • ABAP Proxy and BPM with message maping

    Hi all,
    I have a scenario like :
    ABAP Client Proxy ( synch )
    ->    BPM  ( to retriggr SOAP call and raise alerts with error and reponse back to Abap client )              
    -> message mapping
    -> SOAP ( synch )
    1. What can be the issues with this scenario ?
    2. How can I return response and excetion back to ABAP client from BPM ?

    >
    > As per design guidelines for consistent processes -
    > we need to do all the error handling and alerts in
    > BPM.
    You mean you are planning to use a BPM for all Interfaces just because someone told so? Why use a BPM when there is no need for it. If you have a Business Process that demands a BPm then yes use it, but for this sceanrio, you can use Fault messages to propaggate the error back to the R3 system, and use the Xi alerts ( without BPM ) if a runtime error occurs etc.
    Is there some Business Process Involved here? What is the exact requirement?
    Regards
    Bhavesh

  • Error while passing date parameters in procedure and commit issue

    Hi
    1) I am doing a archiveing records and pls find my code below and i have couple of issue,pls find my code and want to ensure the commit is happening every 100000 rows inserted but i am archeiving a huge table but when i checks the table frequently it shows 0 records and after it shows count the actual rows around 20 million records.How can i ensure it commiting on every 100000 records. pls find my code my db version is 10g on windows
    CREATE OR REPLACE PROCEDURE doins as
    cnt number:=0;
    FOR x IN (select * from Call_log
    where trunc(c_date) = to_date('11-Aug-2008','DD-MON-YYYY'))
    LOOP
    INSERT INTO call_arch
    select * from Call_log
    where trunc(c_date) = to_date('11-Aug-2008','DD-MON-YYYY');
    cnt := cnt + 1;
    IF( cnt = 10000 )
    THEN
    cnt := 0;
    commit;
    END IF;
    commit;
    END LOOP;
    2) Error while passing date as parameter i am getting following errors while passing date parameter pls find my code and errors
    CREATE OR REPLACE PROCEDURE doins(p_date date) as
    cnt number:=0;
    begin
    FOR x IN (select * from Call_log
    where trunc(c_date) = to_char(p_date,'DD-MON-YYYY'))
    LOOP
    INSERT INTO call_arch
    select * from Call_log
    where trunc(c_date) = to_char(p_date,'DD-MON-YYYY');
    cnt := cnt + 1;
    IF( cnt = 10000 )
    THEN
    cnt := 0;
    commit;
    END IF;
    commit;
    END LOOP;
    end;
    exec doins(11-Aug-2008) then gives
    SQL> exec doins(11-Aug-2008);
    BEGIN doins(11-Aug-2008); END;
    ERROR at line 1:
    ORA-06550: line 1, column 16:
    PLS-00201: identifier 'AUG' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    if i gave exec doins(11-08-2008) it gaves
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'DOINS'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    rgds
    rosh

    CREATE OR REPLACE PROCEDURE doins(p_date varchar2) as
    cnt number:=0;
    begin
    FOR x IN (select A.rowid,A.* from Call_log A
    where trunc(c_date) = to_date(p_date,'DD-MON-YYYY'))
    --hope that's c_date columne is   DATE datatype
    LOOP
    INSERT INTO call_arch
    select * from Call_log
    where rowid=x.rowid;
    cnt := cnt + 1;
    IF( cnt = 10000 )
    THEN
    cnt := 0;
    commit;
    END IF;
    commit;
    END LOOP;
    end;
    thats your correct procedure - but NOT CORRECT ISSUE.
    You should use bulk collect with limit clause and forall clause to do it faster!!! Or Merge clause.

  • ITunes Internet Proxy and Authentication Issues

    I downloaded iTunes 11.1.3.8 for my windows which is usually connected to my company internet which requires Proxy setting (and Username and Password). My first run of the software showed a box for Username and Password for the authentication but it didn't verify ( maybe based on a mistake and the box dissapeared) I cannot find it to fill in the authentication detail anymore. Any help? Thank you.

    Sorry kremik,
    Your solution seem to work.
    Here is what I did,
    Earlier there was no keychain entry for https, so I ignored . When I manually created same proxy keychain with https for both login and system keychains and restarted the machine, it started to work like charm.
    Thanks,
    Nishok

  • ABAP Proxy and fault messages

    I am calling a Outbound proxy (Asynchronous) from R/3. Should I catch fault after the call?
    When I don't catch fault, I get the following warning message. What should i do about these warning message?
    <i>The exception CX_AI_SYSTEM_FAULT is neither caught nor is it declared     in the RAISING clause of "EXECUTE_ASYNCHRONOUS".          </i>
    Any ideas?

    Hi SSG,
    Check this
    Proxy framework: Catch CX_AI_SYSTEM_FAULT
    cheers
    Prashanth
    P.S Please mark helpful answers

  • Receive mail with PDF attachment into XI and send to ABAP proxy

    Hi,
    I have a scenario where I need to receive a mail into XI that has a PDF attachment. This attachment needs to be retained as ultimately I need to send the message into CRM via an ABAP proxy and read the attachment and load against a business partner.
    However, as I am only on SP13 I do not have the parameters such "Keep Attachments" available to use.
    So I have two questions:
    1. How do I receive the mail into XI with the PDF attachment ?
    2. How do I read the attachment in an ABAP proxy ?
    Any guidance in either question would be appreciated.
    Cheers
    Colin.

    hi,
    you say that there's no keep attachment
    indicator but does the XI store the attachment or not?
    maybe it stores all attachmens
    (I work with sp16 and I don't remember how it worked with sp13)
    but try maybe it accepts attachments by default
    then it would be quite easy
    if you use then use the attachement in abap proxy
    (like I said you won't have to use any java)
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • ABAP Proxy, WEB SERVICE and RFC

    Hi
    I have to pull the data from XI.
    I have the PDFdocument of how to integrate XI with BI.
    But i am not clear what is abap proxy and web service.
    Could anyone let me know basic of what is abap proxy and webservice.
    Is abap proxy and webservice are present in both the systems XI&BI ?
    REgards
    annie

    Hi,
    ABAP proxy is a  connection between SAP XI & BI . For all the connections need to chk  in SM59, and SICF .
    proxies are a replacemet for adapters whereas webservices(WSDL) are replacements for data typesYou generate proxies from an interface description in WSDL (Web Service Description Language) by using ABAP proxy generation.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/46d6c25d-0b01-0010-06a9-8e8218753c02
    The SOAP adapter enables you to exchange SOAP messages between remote clients or Web service servers and the Integration Server. Also you can use the axis framework with SOAP adapter. Check this help:
    http://help.sap.com/saphelp_nw04/helpdata/en/45/a4f8bbdfdc0d36e10000000a114a6b/content.htm
    We can Communicate between SAP System & Webservice Using Proxies. Check this weblog for some information on this:
    /people/siva.maranani/blog/2005/05/23/communication-between-sap-system-webservice-using-proxies
    ABAP Proxy -> XI -> Webservice :
    pls chk this links;
    /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
    http://www.webservicex.net/WS/WSDetails.aspx?CATID=4&WSID=59
    /people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3022- [original link is broken] [original link is broken] [original link is broken] Activate Proxy
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies -ABAP Server Proxy
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy - ABAP Client Proxy
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    Hope this helps,
    Regards
    CSM Reddy

  • Receive CSV attachment via Mail Adapter and process into ABAP proxy

    Hi,
    I have the following scenario:
    1. Receive e-mail with CSV attachment
    2. Process through Mail adapter (KeepAttachments = Yes in order to retain the CSV attachment)
    3. Receive into ABAP proxy (with CSV attachment)
    The next step is to read the attachment in the ABAP proxy and process the CSV attachment data into CRM.
    The CSV attachment contains the data I wish to process - the body of the e-mail will not contain this information.
    The problem I have is reading the attachment data in the proxy - not sure of the methods/class to call - anyone got any ideas ?
    Another question is this the best way to do this and process the CSV attachment data ?
    I know I could use the PayloadSwapBean to switch the payload to the attachment but then I am stumped with how the attachment is processed through PI 7.1 - how do you transform the CSV format payload into XML so PI will be able to process it through mapping.
    Either option is viable - an answer to either question would be great.
    1. How do you read the attachment data in an inbound ABAP proxy ?
    2. How do you transform the CSV attachment data after the PayloadSwapBean from CSV to XML ?
    Kind regards
    Colin.

    Hi Colin
    As you are not interested in processing the body of email. Swap the payload to the attachment using the PayloadSwapBean
    Change the content from CSV to XML using MessageTransformBean. Now pass this information to Proxy. You dont need to deal with attachments in proxy.
    It is not possible to read attachment in server proxy because the class and interface you create will not have data type which can refer to an attachment processing interface in ABAP.
    Thanks
    Gaurav

Maybe you are looking for

  • DVD Burn Speed - should I go Fast or Slow?

    Please help! I am getting conflicting advice regarding the best speed to burn a DVD Video (in DVDSP, iDVD, Disk Utility etc) that will be used as a duplication master. I have read online that you should avoid slowing down the burn too much (I think b

  • Use of Remote JDBC  SQL Database External Resource

    Does anybody here uses a Remote JDBC External Resource to connect to a database? If so, can you tell me if had any impediment with this approach? I'm asking this because our company has a lot of tools to monitor a lot of weblogic assets (such as jdbc

  • Simple Date parsing Error

    Hello, I have used Simple Date extensively and have recently found what I think may be a bug. The API says that any string or character can be ignored in the input pattern by simply putting single quotes around it. If I have a date in raw format as f

  • Cannot attach data store shared-memory segment using JDBC (TT0837) 11.2.1.5

    Hi, I found the thread Cannot attach data store shared-memory segment using JDBC (TT0837) but it can't help me out. I encounter this issue in Windows XP, and application gets connection from jboss data source. url=jdbc:timesten:direct:dsn=test;uid=te

  • External Radius Server

    Hello, are there anybody configure Solaris 9 as radius client? I looked for the solution without the third party. Many thanks.