Help on ABAP Proxy
Hi All,
We have an ABAP Proxy implemented for posting goods movement and it is calling BAPI function module to post good movement. We have got a requirement that if BAPI returns any error, this error message send back to SAP XI.
data call proxy
Legacy -
> XI -
> SAP R/3(call bapi)
<----
error message
Please let me know how to send the message back to XI.
Thanks in advance
Points will be rewarded.
-Venkat
Hi venkat,
You have to do Fault message implementation in this case...
A no. of exception will be there.For any error proxy will catch the exception and will write it in the fault message...so....from r/3 response will go to Xi as Fault message response in case any error/exception occours......
have look here...
Fault message implementation.
/people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
Regards
Biplab
Use a Good Subject Line, One Question Per Posting - Award Points
Similar Messages
-
Hi ,
please provide documentation or links regarding generation and Configuration of ABAP Proxies.
Ravi RaikaHi,
Check the following links:
<a href="/people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies Approach for coding ABAP Proxies</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0ae9874-109c-2910-f48a-e91f0cdd1c81">EDM EMM Scenario Part I: Service Enabling - How to Implement eSOA-Compliant Services</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/41e08c90-0201-0010-9197-d8774336ea78">ABAP Proxy Generation</a>
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/ba/f21a403233dd5fe10000000a155106/frameset.htm">SAP Help - ABAP Proxy Generation</a>
Thanks,
Dipankar -
Need help on ABAP proxy coding
Hi Friends,
I am working on XI integrating with R/3 and we are using ABAP server proxy. Could any one please help me out in coding in proxy class?
I have two fields comming through XI proxy in to R/3, code should map and store in R/3 table.
Thanks
Rajeev.HI Rajeev,
I am facing the same requirement now... can u explain me how to achieve this?
Thanks in advance
Giri -
How can I call a ABAP proxy class from BADI? PLease help
hi Experts,
I have a scenario where I have to call a ABAP proxy class from a BADI. How can I do this? Does anybody has sample code for the same?
Please help.
Thanks
GopalHi,
You can call a method of a class from BADI. Here are the steps.
1) In the BADI implementation create a object for the proxy class.
2) Call the Execute_Synchronous method.
You can define a BADI by using SE18 and you can implement it by using SE19.
Sample code...
================================================
METHOD ZIF_EX_VBADI~CONVERTUPPER.
DATA: OBJ TYPE REF TO ZTESTCLASS.
DATA: IT_DATA TYPE ZIN_MT,
IT_RES TYPE ZOUT_MT,
SEXCEPTION TYPE REF TO CX_AI_SYSTEM_FAULT.
TRY.
CREATE OBJECT OBJ
EXPORTING
LOGICAL_PORT_NAME = 'TESTPORT'.
CATCH CX_AI_SYSTEM_FAULT INTO SEXCEPTION.
ENDTRY.
ENDMETHOD.
================================================
Thanks,
Vivek LR -
How to call a ABAP proxy class from a BADI? Please help!
hi Experts,
I have a scenario where I have to call a ABAP proxy class from a BADI. How can I do this? Does anybody has sample code for the same?
Please help.
Thanks
GopalHi Gopal,
Check this out
DATA: ref_obj TYPE REF TO zmfg_production_ord.----> BADI
* Instantiate the proxy class
CREATE OBJECT ref_obj.
TRY.
CALL METHOD ref_obj->execute_asynchronous
EXPORTING
output = it_output. "Output Structure
COMMIT WORK.
CATCH cx_ai_system_fault INTO ref_sysexception.
ENDTRY.
IF ref_sysexception IS INITIAL.
WRITE : / 'Error Message'.
ENDIF.
Edited by: Raj on May 28, 2008 4:52 PM -
Client ABAP proxy error handling. Please help!
Hi Experts,
I have following scenario:
SAP ECC (ABAP Client Proxy) -> PI(XI)-->(SOAP) Third party web service System
This is Asynchronous.
What will happen when ABAP client Proxy in ECC sends data to PI but PI is down?
Will the message be queued in ECC? Can the queued message be processed automatically when PI is UP later?
Please help.
Thanks & Regards
GopalHello Gopal,
Correct, it should be an automatic entry into the queue!
refer below for a detailed understanding!
/people/arulraja.ma/blog/2006/08/18/xi-reliable-messaging-150-eoio-in-abap-proxies XI: Reliable Messaging u2013 EOIO in ABAP Proxies
/people/krishna.moorthyp/blog/2005/12/23/monitoring-for-processed-xml-messages-in-abap-proxy Monitoring for Processed XML messages in ABAP Proxy
Weblog to send Response from RFC to File in Asyn Mode Using Proxy [original link is broken] Weblog to send Response from RFC to File in Asyn Mode Using Proxy
/people/michal.krawczyk2/blog/2009/06/20/pixi-abap-proxies-say-goodbye-to-executeasynchronous-method PI/XI: ABAP Proxies say goodbye to Execute_Asynchronous method
/people/krishnakumar.ramamoorthy3/blog/2008/11/02/error-handling-framework-for-abap-proxies--part-1 Error handling framework for ABAP proxies - Part 1
/people/krishnakumar.ramamoorthy3/blog/2008/12/19/error-handling-framework-for-abap-proxies--part-2 Error handling framework for ABAP proxies - Part 2
Regards,
Jilan -
ABAP Proxy, Help needed regarding Naming Conventions
Hi,
I have made a ABAP Proxy Scenario to a File Service. The Objects have been created in the INTEGRATION REPOSITORY and the Configurations are made in INTEGRATION DIRECTORY. While Creating the PROXIES executing the TCode "SPROXY", the Proxies for the DATA TYPE and the MESSAGE TYPE are being created successfully but the Proxy for the Outbound MESSAGE INTERFACE is not getting created.
The Error says the Name must begin with 'CO_'. All the Objects that have been created by me begin with "Z_", and I have also made a Custom Package called "ZPROXY" and assigned this package . The error says Naming Errors.
Can anyone please help me out on this.
<b> The Proxy Class that is being generated starts with "CO_" and so checking out in SE24, it says Object does not exist.</b>
So please tell me how I can go about Correcting this.
Thanks and Regards
SomnathHi,
Thanx a lot for ur reply UDO...but this is not solving my Problem, actually when I am trying to Create the Proxy for the Outbound Message Interface, it is automatically Prefixing the "CO_". Thus I cannot Save it after this and also not see it in SE24.
A few more details:
<b>
The Outbound Message Interface name that I have used is "Z_ABAP_PROXY_MSG_INTERFACE"</b>
We i Create it Prefixes a "CO_" before the Interface name and it cannot be saved or seen in SE24.
Do provide me with some Help.
Thanking you in anticipation.
Warm Regards
Chakra -
Abap Proxy to Send RFC data -- xi - File , how to do - pls help ?
Hi Friends ,
Our scenario is once in day an RFC is to be triggered and create flat file .That RFC will return data .
Using below likns i have configured the RFC Sender adapter
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
/people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
First Activate the ABAP Proxy?
/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
How to implement a Client Proxy?
/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
My question is
<b> 1. Is it possible to use ABAP Client proxy to achive this ?
2. Then do we need to write RFC Call in side this proxy call ?
3. If we go for proxy do we need RFC Sender Adpater ?</b>
I am little confused can you please explain , as how it works ?
<b> Is there is any other way to trigger RFC to send data ?</b>
Regards.,
ShyamHi sabrish ,
Tahnks for ur reply. I was waiting for ur response . i have doubt
the foloowing code i got from ur blog .
REPORT Z_TEST_RFC_XI_WEBSERVICE.data: lv_distance type char10.CALL FUNCTION 'Z_WEBSERVICE_TEST_SHABZ' <b>destination 'Z_WEBSERVICE' </b> EXPORTING FROMZIP = '12222' TOZIP = '22222' IMPORTING DISTANCE = lv_distance.write : 'Distance is : ' , lv_distance.
<b> 1. i have to generate proxy from Out bound interface right ? inside that proxy class whare i have to in clude the code to call rfc ?
2. Can u please tell what is the Destination in that report. What is z_webservice ?</b>
3 . Do we need to use RFC Sender adapter ? It is not related to proxy right ?
Regards.,
Shyam
null -
ABAP Proxy creation doubt - Pls Help
Hi Friends ,
I have referred the following blog for abap proxy creation
/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
as per the previous replies , <b>we have to generate proxiy from R3 syetm</b> . <b>But</b> in this weblog they are <b>generating from XI server</b> ?
The have doubt in the following passges
1.
<i>We use two clients of XI here. <b>Client 100 acts as XI server</b> .<b>Client 105 acts as a client ABAP proxy</b> which sends employee information as a message to XI which routes the info to a file. Logical flow is depicted as shown below. Note that conversion of sending system format to XI specific format is not done at the outbound side of the XI server.</i>
<b>
a. i have webAS 6.40 . i have R3 6 . So i can generate proxy from R3 it self right ? then how to procedd further .
b. So Proxy and report to call proxy also from R3 SIDE ?
c. If No sender agreement required then in IR only receiver determination and receiver agreement is enough ?
d. Then in receiver Detrmination , do i need to give Business system as sender service ?
</b>
<b> can u please explain this a little bit more ?</b>
Regards.,
ShyamHi Shyam,
<b>we have to generate proxiy from R3 syetm . But in this weblog they are generating from XI server ?</b>
In this blog, Ravi has taken two different clients in the same system. As the abap code is client independent so it can be generated anywhere irrespective of clients. But while executing the report we cannot do it from the same client as of the IS.So we need to trigger the report from the client 105 which is considered as the client proxy.
check Triggering ABAP PROXY in the blog.
<b>c. If No sender agreement required then in IR only receiver determination and receiver agreement is enough ?</b>
Yes.
<b>d. Then in receiver Detrmination , do i need to give Business system as sender service ?</b>
You can create business system for the R/3 and use it in RD.But the business system dont have any sender communication channel and no need of sender agreement as the data will directly hit the IE of XI.
Regards,
Prasanthi. -
File to R/3 via Abap proxy -- need help
Hello,
I have made a scenario File to R/3 via Abap Proxy
My Inbound Async Message Interface has Message Type -Emp_Rac_Detail_MT.
Message Type has structure
EmpID
EmpName
Age
I have table in R/3 ZRACTABLE where I need to post data
Fields in ZRACTABLE are
EMPID
EMPNAME
AGE1
Pls send me the code that I need to write in Async Method of Proxy
that will put data
RegardsHi Herry,
First of all u have to write a Function module in R/3 ....for that i given u the code above.
Now in ur inbount proxy in the implementation class u have to write code right???
Here is the code...
**** INSERT IMPLEMENTATION HERE **** ***
DATA:
lv_EMPID type EMPID,
lv_EMPNAME type EMPNAME,
lv_AGE type AGE.
Convert Input Parameters
lv_EMPID = input-Emp_Rac_Detail_MT-EMPID.
lv_EMPNAME = input-Emp_Rac_Detail_MT-EMPNAME.
lv_AGE = input-Emp_Rac_Detail_MT-AGE.
call function 'ZEMP_RAC_FM' /** thats ur function module name **/
EXPORTING
EMPID = lv_EMPID .
EMPNAME = lv_EMPNAME.
AGE = lv_AGE.
endmethod.
Regards
biplab
<i>*** give points if it hepls you!!!</i> -
Error while activating ABAP proxy object
Hello,
I can see all the interfaces of PI7.0 in my ECC6.0 system.
I am able to create abap proxy object of a interface.
But when I try to activate that I am getting error as
"RFC system error for destination GTADIR_SERVER".
Pl can you suggest. appreciate quick help in this.
thanks in advance,
SharadaHi,
For more details take a look at note: [1063482 - Creating Dictionary objects - RFC error GTADIR_SERVER|https://service.sap.com/sap/support/notes/1063482]
It is written that: Message SGSUB 104 is not an error message, but is merely irrelevant information for customers. You can continue to create objects nevertheless.
To get rid of this annoying error you have to implement the corresponding support package.
Regards,
Jakub -
SAP PI 7.4 SOAP - ABAP Proxy Synchronous Webservice
Hi Everyone,
I am developing the following scenario:
3rd party makes a SOAP call to SAP (via PI) to determine whether a vendor exists or not in the SAP system. The link for the call is provided by us from the Integrated Configuration.
The request comes in, calls an ABAP Proxy to check if a vendor exists and sends a response back to the SOAP call with a 'Y' or an 'N'.
I've read a lot about various scenarios but I'm having trouble connecting the dots as I'm fairly new to PI. I'd appreciate any help.
I've made the following set-up based on assuming I need separate Service Interfaces for the SOAP Request & Proxy Response
ESR
1. Message Types
SOAP (MT_SOAP_REQ & MT_SOAP_RESP) - PROXY (MT_PRXY_REQ & MT_PRXY_REQ)
2. Message Mappings
MM_REQUEST which maps MT_SOAP_REQ to MT_PRXY_REQ)
MM_RESPONSE which maps MT_PRXY_RESP to MT_SOAP_RESP)
3. Service Interfaces (Synchronous)
(SOAP Request)
SI_IN (Inbound Interface) with Request = MT_SOAP_REQ and Response = MT_SOAP_RESP
(Proxy Response)
SI_OUT (Outbound Interface) with Request = MT_PRXY_REQ and Response = MT_PRXY_RESP
4. Operation Mapping
OM_LOOKUP which maps SI_IN to SI_OUT with Request (MT_SOAP_REQ to MT_PRXY_REQ)
and Response (MT_SOAP_RESP to MT_PRXY_RESP)
I create the ABAP Proxies for each Service Interface. SI_IN contains the required coded method to check if there is a vendor.
I create the webservice and binding for SI_IN in SOAMANAGER
At this point I'm somewhat unsure - what do I need to do for SI_OUT ? Do I need to create a logical port ? how is SI_OUT associated to SI_IN (apart from the Operation) to get the response.
ID
In the Integration Directory I've created a SOAP_SENDER communication channel for System A and SOAP_RECEIVER channel for SAP. For the SOAP Receiver I need to specify a URL - what should this be ? Is it meant to point to the web service for SI_IN in SICF or just to the generic http://host:8000/sap/xi/engine?type=entry
Do I need to use the HTTP_AAE adapter for the receiver instead of SOAP ?
I created an Integrated Configuration for the SI_IN Service Interface with comm channel SOAP_SENDER from System A and SOAP_RECEIVER for SAP backend. I then got the WSDL for this to provide to the 3rd Party to test (via SOAP UI) . Again my concern is how is the SI_IN linked to the SI_OUT to achieve the response ?
I appreciate you taking the time to go through this . Any help is greatly appreciated.
Thanks very much
GaryI create the webservice and binding for SI_IN in SOAMANAGER
At this point I'm somewhat unsure - what do I need to do for SI_OUT ? Do I need to create a logical port ? how is SI_OUT associated to SI_IN (apart from the Operation) to get the response.
>>>>No need to do anything in SOAMANAGER
Do I need to use the HTTP_AAE adapter for the receiver instead of SOAP ?
>>> No. Soap adapter is fine. Configure your receiver channel as explianed in the below blog (section 4.3)
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70066f78-7794-2c10-2e8c-cb967cef407b?overridelayout=t…
Again my concern is how is the SI_IN linked to the SI_OUT to achieve the response ?
>>>>Your receiver determination and interface determination takes care of this.(receiver interface & outbound processing tabs in ICo) -
Problem with Configuration in Production ( ABAP Proxy - XI - FILE)
Hi All,
I have a ABAP Proxy -> XI -> FILE scenario wich is working perfectly in DEV and QAS environment.
When the person responsible for transporting tried to transport the objects in QAS to PRD, the following error happened:
Direction of communication channel |BS_MA_FileServer_PRD | CC_File_PedidosServ_MA_FileServer_IA is incorrect.
Correct the direction or choose another communication channel
BS_MA_FileServer_PRD - Business System (FILE)
CC_File_PedidosServ_MA_FileServer_IA - My FILE Communication Channel
This was what the Basis person sent to me. I don't have access to know exactly what happened. And I really don't know what could be wrong or if maybe a component was created wrongly in Production.
Hope you can help.
Points will be given.
tks.. DanielaYou have mentioned FILE is on the receiving side and ABAP proxy is on sender side.
But the error pasted by you clearly shows syntax of a Sender Agreement .
For receiver agreement it should be |<Sender Service>| |BS_MA_FileServer_PRD | CC_File_PedidosServ_MA_FileServer_IA
Bipin -
Can ABAP proxy to consume WSDL file be run as background job for every10min
Hi all,
I have a requirement where I need to build an interface which gatheru2019s the purchase order details and send to external third party software in their required format (as an XML file).
So I should be the first point of contact and should trigger the interface each time a purchase order is generated.
So I am thinking that I should develop a background job for every 10 minutes which will look for new purchase orders and gathers the information of the purchase orders and send them to external third party software in their required format.
I have gone through all the SAP forums and e-Learning but still I have confusion in regards to how is it possible technically? Can some one guide me with some information on the same.
I have a little bit of confusion and want to know few things.
1) Should I create a web service or should I consume a web service?
2) If I need to consume a web service, then can I write an ABAP proxy to be run in background fro evry 10 minutes? I mean can we run ABAP proxy as a batch job in the background?
3) Is there a difference between consuming an XML file and WSDL File?
Any Help will be highly appreciated.
Regards,
Jessica.There are two options (as I know) to generate XML file.
1. Use XML TRANSFORMATION to get the XML string based your TRANSFORMATION. You can input your data and get back the XML string. Download this string to a file
Test XML generation program is:
types: begin of ty_data,
num type i,
end of ty_data.
DATA: itab TYPE standard table of ty_Data,
la_data like line of itab,
xmlstr TYPE string.
DO 3 TIMES.
la_data-num = sy-index.
APPEND la_data TO itab.
ENDDO.
CALL TRANSFORMATION ztest_np1
SOURCE table = itab
RESULT XML xmlstr.
CALL FUNCTION 'DISPLAY_XML_STRING'
EXPORTING xml_string = xmlstr.
My ZTEST_NP1 transformation. To create a transformation, click on the transformation in the "CALL TRANSFORMATION ztest_np1" statement. Select Simple transformation type.
<?sap.transform simple?>
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
<tt:root name="table"/>
<tt:template>
<table>
<tt:loop ref=".table">
<item>
<tt:value ref="NUM"/>
</item>
</tt:loop>
</table>
</tt:template>
</tt:transform>
XML string is like:
<?xml version="1.0" encoding="utf-8" ?>
<table>
<item>1</item>
<item>2</item>
<item>3</item>
</table>
To use this option, you have to create a transformation and than use it to generate the XML string.
Check this SAP Help
http://help.sap.com/saphelp_nw04s/helpdata/en/e3/7d4719ca581441b6841f1054ff1326/frameset.htm
2. You can concatenate and create an XML string and download that string into a file.
Regards,
Naimesh Patel -
OBJECTS_OBJREF_NOT_ASSIGNED error while executing ABAP proxy
Hi ,
I am getting the following error when i try to execute an abap proxy .
Unit ID in Background RFC 001EC9D184F702ECAA8DBC7401DC13E0
Name of First Function Module SRT_SEQ_SCD_DLV_TRM_QRFC_NEW_C
Inbound Destination Name WS_SERVICE_02DCA4961A0B_IN
Transaction Code SE38
Name of qRFC Queue SRTQC_001EC9D184F702ECAA8DBC6FE29753DB
Created On 28.01.2009
No. of Predecessors 1
Created At 12:44:10
Executed At 12:44:13
Created At (Time Stamp) 20.090.128.114.410,9989340
User name DEVELOPER
Tcode/program CL_SOAP_SCHEDULER_QRFC_NEW====CP
ID of Lock in Background RFC 001EC9D184F702DCAA8DBCA25EC41F5E
Lock Reason System error; not executed
Background RFC Scheduler ID 1
Message number 341
Language Key EN
Status Text Unit has execution errors
Execution State Access using a 'ZERO' object reference is not possible.
Number of Called Function Modules 1
Number of Locks 1
Commit Check Disabled X
Message Class 0
Message Variable OBJECTS_OBJREF_NOT_ASSIGNED
Executed On 28.01.2009
and in ST22 transaction i am getting the following dump
Runtime Errors : OBJECTS_OBJREF_NOT_ASSIGNED
Exception :CX_SY_RF_IS_INITIAL
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
caught in
procedure "WSRM_CLONE_FOR_SPECIFIC_OPS" "(METHOD)", nor was it propagated by a
RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
An attempt was made to access a component (variable: "ME->M_CTX") with a 'ZERO'
object reference (points to 'nothing').
An object reference must point to an object (an instance of a class)
before it can be used to access a component.
Either the reference has not yet been set or it was set to 'ZERO' using
a CLEAR statement.
Please help in solving this issue.
Thanks&Regards,
Hamsa ShreeHi
Runtime Errors : OBJECTS_OBJREF_NOT_ASSIGNED
Check with the SAP Notes Note
557770 - SAP BP: Short dump OBJECTS_OBJREF_NOT_ASSIGNED
may be you get the exact help
Regards
Abhishek
Maybe you are looking for
-
How to load a class dynamically in the current/system class loader
I need to dynamically load a new jdbc driver jar to the current/system class loader... Please note that creating a new classloader will not help since the DriverManager refers to the systemclassloader itself. Restarting the application by appending t
-
Open tabs from last session lost - intermittently
Don't know whether it's a bug or me but tabs left open from last session are lost - intermittently - when I re enter Firefox mobile on my Samsung Galaxy s3. I'll often leave 5 or so showing on the tab counter in the top right hand corner of the brows
-
Error logs in job releases forecast from DP to SNP-"Matl does not exist"
Hi Everyone, I am facing error logs in the batch job which releases forecast from DP to SNP Forecast release job - Weekly - Through background job Forecast category - FA Error 1: - Characteristic combination appears on batch job log with an error tha
-
The Use Of SPDIF In Logic Express 7?
Hey all,does anyone know if the use of spdif in logic express 7 is possible? i have a motu 2408II and it has spdif in-out but im not sure if lofig supports it or not.i dont see it in the channel input area.
-
Trying to Insatll Oracle Internet Directory 10g release 1
I am trying to install OID 10g release 1 when it gets to the point where it is running the Internet Directory Configuration Assistant it fails with the following message: oracle.ldap.util.CommunicationErrorException: Unable to establish connection to