Always coding with abap proxies?
Hello
I have seen some blogs about abap proxies, however every blog had a coding of some reports etc.
Do I have to code everytime when using abap proxies?
The easiest way would be to generate the proxy classes in sproxy and you are done.
Thank you.
Regards,
Go:khan
HI,
When you generate a proxy object, it will create a message strcuture and you need to populate this structure with the data. For this you are writing ABAP code.
So proxy is acting as a method, and you need to call this method with appropriate values. Inorder to call this from R/3 side, you are writing a Report (easiest way) and schedule the report as per the requeirement. So this report will fetch the data and trigger the proxy with the data. This is the case with Client Proxy.
Now Server Proxy- in this case your data is structured and populated when XI is calling proxy. But what needs to be done for these data ? SO you need to update the table etc right. For this again you need to write some part of ABAP code.
Hope this helps,
Regards,
Moorthy
Similar Messages
-
Problem with ABAP proxies - HTTP connection to R/3 is not working
Hi guys!
I'm setting up a connection from XI to R/3 , because I'm using proxy objects. Our DEV is working fine. Now I have moved the objects to QA and since the HTTP connection is not there, I need to set it up.
I have created a service user on R/3, activated ICF service on R/3 and created a HTTP to abap type connection in XI. When I test the connection I get a new logon screen. Why? I have provided information about logon user, client, ....
Thank you! OlianHi,
this logon screen populated when the RFC User ID is locaked. ask your basis team to release it.
also refer below links if in case of any other problem
Actiave ABAP Proxies -- /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
Setting Up Point-to-Point Connections with proxy
http://help.sap.com/saphelp_nw04s/helpdata/en/85/78af1bf407434796aaf8dbd6d4e7b7/frameset.htm
Thanks
Swarup -
Help with abap proxies !!
Hi Friendz,
I am working on a scenario where a report is fetching data from a table which has around 2,00,000 records and passing this to an abap proxy to pass the data into XI and then XI creates a file out of this data. The scenario is working fine for smaller amount of data but throws a
short dump when it encounters a large amnount of data like 2-3 Lacs records.
The dump I am facing is SYSTEM_NO_ROLL.
Please suggest what can be the cause or if you want me to show the report, whichh triggers the proxy.
Thanks.Hi Friends,
Thank you very much for your replies. The program is as follows :
report yorder_spp_upload no standard page heading.
tables : vbak,
yorderspp,
vapma,
yspp_fscloc.
data : it_items type table of ymat_order_spp with header line.
types : begin of ty_vapma,
matnr type vapma-matnr,
vkorg type vapma-vkorg,
audat type vapma-audat,
bstnk type vapma-bstnk, "PO Number
vbeln type vapma-vbeln,
posnr type vapma-posnr,
end of ty_vapma.
data : it_vapma type table of ty_vapma,
wa_vapma like line of it_vapma.
types : begin of ty_vbap,
vbeln type vbap-vbeln,
posnr type vbap-posnr,
matnr type vbap-matnr,
kwmeng type vbap-kwmeng,
meins type vbap-meins,
pstyv type vbap-pstyv,
werks type vbap-werks,
end of ty_vbap.
data : it_vbap type table of ty_vbap,
wa_vbap like line of it_vbap.
types : begin of ty_final,
crmordqtyv type vbap-kwmeng,
crmpgidatw type vbap-erdat,
crm_facloc type vbap-werks,
crm_fstloc type vbap-werks,
crm_itcrat type vbap-erdat,
crm_itmtyp type vbap-pstyv,
crm_order type vbap-vbeln,
crm_numint type vbap-posnr,
crm_ohguid type vapma-bstnk,
crm_reqdat type vbap-erdat,
crm_shipto type vbak-kunnr,
crm_prod_id type vbap-matnr,
crm_doctyp type vapma-vkorg,
end of ty_final.
data : it_final type table of ty_final.
data : wa_final like line of it_final.
data : ydate type sy-datum.
data: i_options like rfc_db_opt occurs 0,
i_fields like rfc_db_fld occurs 0,
i_data like tab512 occurs 0,
i_table_name like dd02l occurs 0 with header line.
data : it_orderspp type table of yorderspp,
wa_orderspp type yorderspp.
data : prxy type ref to zeccsppco_mi_ecc_spp_ob.
data : m_data type zeccsppmt_ecc_to_spp_ib,
s_data type zeccsppmt_ecc_to_spp_ib,
w_data type zeccsppdt_ecc_to_spp_ib_row,
t_data type zeccsppdt_ecc_to_spp_ib_ro_tab.
data : l_date type datum,
f_date type datum.
selection-screen begin of block b1 with frame.
select-options : s_matnr for vapma-matnr,
s_audat for vapma-audat,
s_werks for vapma-werks,
s_auart for vapma-auart,
s_vkorg for vapma-vkorg.
selection-screen end of block b1.
start-of-selection.
perform select_data_upload_table.
perform read_data.
*& Form select_data_upload_table
text
form select_data_upload_table.
delete all the data from table "yorderspp".
delete from yorderspp.
commit work.
wait up to 2 seconds.
If Input s_audat(Order date) is initial, It will fetch last Calendar months data.
if s_audat[] is initial.
call function 'OIL_LAST_DAY_OF_PREVIOUS_MONTH'
exporting
i_date_old = sy-datum
importing
e_date_new = l_date.
concatenate l_date+0(6) '01' into f_date.
s_audat-low = f_date.
s_audat-high = l_date.
s_audat-option = 'BT'.
s_audat-sign = 'I'.
append s_audat.
endif.
Selection of order no and respective items from table VAPMA.
select matnr vkorg audat bstnk vbeln posnr werks
into corresponding fields of table it_vapma
from vapma
where matnr in s_matnr
and vkorg in s_vkorg
and auart in s_auart
and werks in s_werks
and audat in s_audat.
Selection of data based on order number from table VBAP.
if not it_vapma[] is initial.
select vbeln posnr matnr kwmeng meins pstyv werks
into corresponding fields of table it_vbap
from vbap
for all entries in it_vapma
where vbeln = it_vapma-vbeln
and posnr = it_vapma-posnr
and pstyv = 'ZTAN'
and werks in s_werks.
endif.
loop at it_vapma into wa_vapma.
read table it_vbap into wa_vbap with key vbeln = wa_vapma-vbeln
posnr = wa_vapma-posnr
matnr = wa_vapma-matnr.
if sy-subrc = 0.
select single * from vbak where vbeln = wa_vbap-vbeln.
yorderspp-crm_entdt = sy-datum.
yorderspp-crm_order = wa_vbap-vbeln.
yorderspp-crm_numint = wa_vbap-posnr.
yorderspp-crmordqtyv = wa_vbap-kwmeng.
yorderspp-crmpgidatw = wa_vapma-audat.
yorderspp-crm_facloc = wa_vbap-werks.
yorderspp-crm_fstloc = wa_vbap-werks.
yorderspp-crm_itcrat = wa_vapma-audat.
yorderspp-crm_itmtyp = wa_vbap-pstyv.
yorderspp-crm_ohguid = wa_vapma-bstnk.
yorderspp-crm_reqdat = wa_vapma-audat.
yorderspp-crm_shipto = vbak-kunnr.
yorderspp-crm_prod_id = wa_vbap-matnr.
yorderspp-crm_doctyp = wa_vapma-vkorg.
insert yorderspp.
commit work.
endif.
endloop.
wait up to 5 seconds.
endform. "select_data_upload_table
*& Form READ_DATA
text
form read_data.
select * from yorderspp into table it_orderspp.
if sy-subrc = 0.
create object prxy.
loop at it_orderspp into wa_orderspp.
select single * from yspp_fscloc where s_vkorg = wa_orderspp-crm_doctyp
and s_werks = wa_orderspp-crm_fstloc.
if sy-subrc = 0.
wa_orderspp-crm_facloc = yspp_fscloc-s_facloc.
wa_orderspp-crm_fstloc = yspp_fscloc-s_fstloc.
else.
select single * from yspp_fscloc where s_vkorg = wa_orderspp-crm_doctyp
and s_werks = space.
if sy-subrc = 0.
wa_orderspp-crm_facloc = yspp_fscloc-s_facloc.
wa_orderspp-crm_fstloc = yspp_fscloc-s_fstloc.
else.
wa_orderspp-crm_facloc = wa_orderspp-crm_fstloc.
endif.
endif.
w_data-crmordqtyv = wa_orderspp-crmordqtyv.
w_data-crmpgidatw = wa_orderspp-crmpgidatw.
w_data-crm_facloc = wa_orderspp-crm_facloc.
w_data-crm_fstloc = wa_orderspp-crm_fstloc.
w_data-crm_itcrat = wa_orderspp-crm_itcrat.
w_data-crm_itmtyp = wa_orderspp-crm_itmtyp.
w_data-crm_numint = wa_orderspp-crm_numint.
w_data-crm_ohguid = wa_orderspp-crm_ohguid.
w_data-crm_reqdat = wa_orderspp-crm_reqdat.
w_data-crm_shipto = wa_orderspp-crm_shipto.
w_data-crmprod_id = wa_orderspp-crm_prod_id.
append w_data to t_data.
clear w_data.
endloop.
s_data-mt_ecc_to_spp_ib-row = t_data.
m_data = s_data.
try.
call method prxy->execute_asynchronous
exporting
output = s_data.
commit work.
catch cx_ai_system_fault .
data fault type ref to cx_ai_system_fault .
create object fault.
write :/ fault->errortext.
endtry.
endif.
endform. "READ_DATA -
New Data in R/3 Enterprise - ABAP Proxies - XI what happen?
Hi,
i have a theoretical question:
if i use R/3 Enterprise on WAS and put new Data in the R/3 System and transport them to XI with ABAP Proxies. What happens in the systems?
How do the R/3 System put new data in the proxy runtime and send them to xi?
I want to unterstand how the transport from new data in a R/3 System with ABAP Proxies comes to the XI Integration Server.Hi Marcel,
>>>>>How do the R/3 System put new data in the proxy runtime and send them to xi?
all you need to do in r3 is to fill tables of a generated structure
and execute one method of a generated class (send....)
then R3 will connect over HTTP to XI and send the data from your structures
structures and class in R3 is being generated automatically via TCODE SPROXY
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> -
1:n Message split and Abap Proxies??
Hello,
Can I not use Message split and Abap Proxy together? My scenario is MDM->File ->XI->Proxy->BI.
I am getting a single file syndicated from MDM and in XI If I use message mapping to do 1:n split in the message mapping, can I use it with Abap Proxies? As per the link below, XI adapter is not present in the list..We are on PI 7.0 SP14. Thank you..
http://help.sap.com/saphelp_nw04/helpdata/en/42/ed364cf8593eebe10000000a1553f7/frameset.htm
Thank you for any suggestion..Hi Thanujja,
If you see the message from Raj, I dont think we can split the messages for the proxy. This is beacause the splitting of messages take place at the Adapter Level only for the adapters on the Java stack.
As suggested by Guru, you can try splitting the messages in the inbound proxy instead of using a BPM, in that way you can acheive good performance.
Thanks,
Srini
Edited by: srinivas kapu on Mar 27, 2008 9:09 AM
Edited by: srinivas kapu on Mar 27, 2008 9:10 AM -
Creation of IBASE (TA IB51) with ABAP
Creation of IBASE (TA IB51) with ABAP
Posted: Sep 29, 2005 8:47 AM Reply E-mail this post
Hello all,
i want to create an IBASE with Instances (Materials) with Abap.
It is possible to create the IBASE but not to create the instances. I have always an empty IBASE without materials.
Can anybody help me
Thanks a lot
Markus
Here is my coding:
type-pools ibin .
type-pools IBCO2.
data: ibib_handle type i.
data: E_IBASE_REC TYPE IBCO2_IBASE_REC.
data: I_IBIB1 LIKE IBIB1.
data: I_IBIBT1 LIKE IBIBT1.
data: matobject type ref to cl_ibase_r3_material.
data: i_PROCESS_REC TYPE IBXX_PROCESS_REC.
data: C_INSTANCE_TAB TYPE IBCO1_INST_TAB1.
data: c_inst_struct type ibco1_inst_rec1.
CALL FUNCTION 'IB_COM_NEW'
IMPORTING
E_IBCO_HANDLE = ibib_handle.
CALL FUNCTION 'IB_COM2_CREATE_IBASE'
EXPORTING
I_IBCO_HANDLE = ibib_handle
I_IBTYP = 'Y1'
IMPORTING
E_IBASE_REC = E_IBASE_REC
EXCEPTIONS
IB_HANDLE_NOT_DEFINED = 1
OTHERS = 2.
clear: i_ibib1, i_ibibt1.
move-corresponding e_ibase_rec-com to i_ibib1.
move-corresponding e_ibase_rec-conf to i_ibib1.
i_ibib1-ibase = e_ibase_rec-ibase.
i_ibib1-extid = 'externer Name'.
*i_ibib1-authg = 'E001'.
i_ibibt1-ibase = e_ibase_rec-ibase.
i_ibibt1-langu = sy-langu.
i_ibibt1-descr = 'Beschreibung'.
CALL FUNCTION 'IB_COM1_CHANGE_IBASE_ONLY'
EXPORTING
I_IBCO_HANDLE = ibib_handle
I_IBIB1 = i_ibib1
I_IBIBT1 = i_ibibt1
EXCEPTIONS
IB_HANDLE_NOT_DEFINED = 1
OTHERS = 2.
create object matobject exporting i_matnr = '000000000000602028'.
clear i_process_rec.
i_process_rec-activity = '1'.
i_process_rec-ind_valfr = 'X'.
i_process_rec-ind_valto = 'X'.
i_process_rec-ind_sortf = 'X'.
i_process_rec-ind_amount = 'X'.
i_process_rec-ind_unit = 'X'.
i_process_rec-ind_objtyp = 'X'.
i_process_rec-ind_objid = 'X'.
i_process_rec-ind_serno = 'X'.
i_process_rec-ind_plant = 'X'.
i_process_rec-ind_batch = 'X'.
i_process_rec-ind_revlv = 'X'.
i_process_rec-ind_deviceid = 'X'.
i_process_rec-ind_posno = 'X'.
refresh c_instance_tab.
c_inst_struct-val-valfr = '20050929080000'.
c_inst_struct-val-valto = '99991231235959'.
c_inst_struct-com-amount = 1.
c_inst_struct-com-unit = 'ST'.
c_inst_struct-objtyp = '0002'.
c_inst_struct-object = matobject.
INSERT c_inst_struct INTO TABLE c_instance_tab.
CALL FUNCTION 'IB_COM1_PROCESS_INSTANCE'
EXPORTING
I_IBCO_HANDLE = ibib_handle
I_IBASE = e_ibase_rec-ibase
i_moment = '20050929080000'
I_PROCESS_REC = i_process_rec
CHANGING
C_INSTANCE_TAB = c_instance_tab
EXCEPTIONS
IB_HANDLE_NOT_DEFINED = 1
IB_NO_ACTIVITY = 2
IB_NOTHING_PROCESSED = 3
IB_INCONSISTEND_DATA = 4
IB_INSTALL_NOT_ALLOWED = 5
OTHERS = 6.
CALL FUNCTION 'IB_COM_SAVE_AND_FREE'
EXPORTING
I_IBCO_HANDLE = ibib_handle
EXCEPTIONS
IB_HANDLE_NOT_DEFINED = 1
IB_NOT_SUCCESSFUL = 2
OTHERS = 3
write: e_ibase_rec-ibase.
commit work.Remark: We have SAP R3 Release 4.6c
-
Use of XI adapter in ABAP proxies
Hey Guys
i was going through some blogs and came across that we need XI adapter for ABAP proxies,i had thought that proxies are used for adapterless communication,then why is the need for XI adapter?i know XI adapter is used to transfer XML messages to/from sender/receiver system.
also do we always need to use XI adapter for proxy communication?
thanx
ahmadHi,
The use of adapter here is to communicate the Integration Server with respective ApplcatioN System. ie, R.3 or any SAP system which is configured as an Application System to the XI.
Proxies communicate with the XI server by means of native SOAP calls over HTTP . SO you need to mention the integration server to point/connect to correct application system during runtime.
http://help.sap.com/saphelp_nw2004s/helpdata/en/85/78af1bf407434796aaf8dbd6d4e7b7/content.htm
Hope this helps,
Regards,
Moorthy -
How to do coding in abap-query
Hi friends,
Please help me how to write the coding in abap-query.
Regards,
BhavanihI
There are certain exit points available in the query, these can be accessed in SQ02 - Infoset editor. Click 'Extras', then the 'Coding' tab. There is a drop down to access different coding sections, e.g. DATA, GET, etc.
It is not always clear where and when they execute so you may need to experiment with some 'break-point' statements to start with, run the query to find out where the breaks are then go back to SQ02 to enter some code at that section.
http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_FunctionalAreas_LogicalDB.asp -
I Dont know wat is Proxy,
Can Any one Expalin me ABAP Proxy.
My Queries are,
1) How to create an ABAP proxy.
2)Is the Message Mapping Require of ABAP Proxy.
3) Wat are the Sender and Receiver adapters we have to use.
Points will be awarded for the good approch to that scenario.
Regards,
Jayasimha Jangam
[email protected]hi
Proxies communicate with the XI server by means of native SOAP calls over HTTP .RFC does not, so you have to convert from SOAP to RFC calls and vice versa. So XML conversion is required.
ABAP Proxies uses Webservice and Http Protocols. And if you use RFC it is mainly meant for Sync. call. But Proxies is used for both Sync and Async.
If you use ABAP Proxy , you can reduce the overhead calling the function again and again.
/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies - 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
Re: JDBC Sender select/update problem
If u generate proxy for outbound interface then its client proxy and for inbound interface its server proxy.
In client proxy u can call the method to send messages but u can't modify it but in server proxy its possible to write a user code within the method to execute proxy.
CLIENT PROXY:
A WSDL description from a UDDI server (or an Internet page) is usually used to make a service executable in the Internet and to describe the interface of this service. You require a client proxy and not a server proxy to call this service by using the Web service infrastructure.
SERVER PROXY:
You can only generate ABAP server proxies from a WSDL description if they originate in the Integration Repository.You can also generate server proxies for Java and client proxies for ABAP from message interfaces.
s refer these doc about ABAP proxy ..
/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies - 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
Re: JDBC Sender select/update problem
/people/siva.maranani/blog/2005/04/03/abap-server-proxies
/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
http://help.sap.com/saphelp_nw2004s/helpdata/en/48/d5a1fe5f317a4e8e35801ed2c88246/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/ba/f21a403233dd5fe10000000a155106/frameset.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/41e08c90-0201-0010-9197-d8774336ea78
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0ae9874-109c-2910-f48a-e91f0cdd1c81
/people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies
/people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit
/message/266750#266750 [original link is broken]
/people/siva.maranani/blog/2005/04/03/abap-server-proxies
/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
/people/sap.user72/blog/2005/12/08/integration-builders-through-proxy-server-part--1
/people/sap.user72/blog/2005/12/13/integration-builders-through-proxy-server-part--2
/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
http://help.sap.com/saphelp_nw70/helpdata/en/2e/278a8363b5ac4483dc1efc382e51df/frameset.htm
Check out this blog....
/people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies
/people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cbc7d790-0201-0010-bea6-c549902e93e2
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/95d7d490-0301-0010-ce93-c58f9a3cde0b
cheers
kish
reward if found useful -
Send message with abap proxy client
I'm trying to send message to XI, but no message in sxmb_moni.
I have created logical port with LPCONFIG.
ABAP code
REPORT Z_HTTP_SEND.
DATA:
* Reference variables for proxy and exception class
lo_clientProxy TYPE REF TO ZPCO_MI_COMPANY_OB,
lo_sys_exception TYPE REF TO cx_ai_system_fault,
* Structures to set and get message content
ls_request TYPE ZPMT_COMPANY_ID,
ls_response TYPE ZPMT_COMPANY_DETAILS.
*Complete the structure ls_request for the request message.
*DATA: zmt_id type ZPMT_COMPANY_ID,
*zdt_id type ZPDT_COMPANY_ID,
*z_id_tab type ZPCOMPANY_ID_TAB,
*z_id type ZPCOMPANY_ID.
*z_id-COMPANY_ID = '3000'.
*append z_id to z_id_tab.
* zdt_id-RECORD = z_id_tab.
*zmt_id-MT_COMPANY_ID = zdt_id.
DATA tab TYPE ZPCOMPANY_ID_TAB WITH HEADER LINE.
tab-COMPANY_ID = '3000'.
APPEND tab.
ls_request-MT_COMPANY_ID-RECORD = tab[].
TRY.
* create proxy client
*CREATE OBJECT lo_clientProxy( u2018LOGICAL_PORT_NAMEu2019 ).
CREATE OBJECT lo_clientProxy.
* do synchronous client proxy call
CALL METHOD lo_clientProxy->execute_synchronous
EXPORTING output = ls_request
IMPORTING input = ls_response.
CATCH cx_ai_system_fault INTO lo_sys_exception.
* Error handling
ENDTRY.
Any ideas? Thanks very much,Hi,
Proxies communicate with the XI server by means of native SOAP calls over HTTP .RFC does not, so you have to convert from SOAP to RFC calls and vice versa. So XML conversion is required.
ABAP Proxies uses Webservice and Http Protocols. And if you use RFC it is mainly meant for Sync. call. But Proxies is used for both Sync and Async.
If you use ABAP Proxy , you can reduce the overhead calling the function again and again.
How do you activate ABAP Proxies? - Activate Proxy
ABAP Server Proxies - ABAP Server Proxy
ABAP Proxies in XI(Client Proxy) - ABAP Client Proxy
Re: JDBC Sender select/update problem
If u generate proxy for outbound interface then its client proxy and for inbound interface its server proxy.
In client proxy u can call the method to send messages but u can't modify it but in server proxy its possible to write a user code within the method to execute proxy.
CLIENT PROXY:
A WSDL description from a UDDI server (or an Internet page) is usually used to make a service executable in the Internet and to describe the interface of this service. You require a client proxy and not a server proxy to call this service by using the Web service infrastructure.
SERVER PROXY:
You can only generate ABAP server proxies from a WSDL description if they originate in the Integration Repository.You can also generate server proxies for Java and client proxies for ABAP from message interfaces.
s refer these doc about ABAP proxy ..
How do you activate ABAP Proxies? - Activate Proxy
ABAP Server Proxies - ABAP Server Proxy
ABAP Proxies in XI(Client Proxy) - ABAP Client Proxy
Re: JDBC Sender select/update problem
ABAP Server Proxies
How do you activate ABAP Proxies?
ABAP Proxies in XI(Client Proxy)
File to R/3 via ABAP Proxy
http://help.sap.com/saphelp_nw2004s/helpdata/en/48/d5a1fe5f317a4e8e35801ed2c88246/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/ba/f21a403233dd5fe10000000a155106/frameset.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/41e08c90-0201-0010-9197-d8774336ea78
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0ae9874-109c-2910-f48a-e91f0cdd1c81
Smarter Approach for coding ABAP Proxies
regards,
Surya -
ABAP Proxies to send the data to PI
I have a scenario to send some data from ECC to Legacy system in flatfile format. I would like to use ABAP client proxies on the ECC side and File receiver adapter to tranmit the data to Legacy system.
I tried various sample scenarios and know how to send simple data using ABAP report program(which triggers the client proxy from ECC).
But the question is if I have to read SAP data files and send the data conditionally based on certain criteria to the other Legacy system. How do we write the ABAP code with in the ABAP Proxie program? Can any body share the real time coding procedure to achieve this. I am not good at ABAP.
I absolutely have good idea how we can configure on the receiver side.
Thanks in advance.Hi
If I want to transfer only specific data from various SAP database files from ECC and then triggering the ABAP client proxy in the ABAP report program
There are various ways to do this. Create a class that can call reports(forms) for various legacy system say L1, L2 and L3. now create 3 reports each for the systems .
In XI create a generic structure which can satisfy L1, L2 & L3 and generate the proxy for this structure.
now in reports for L1 pass the data from ERP tables specific to L1 and use the client proxy report to pass the data to XI and deliver the flat file. Similarly for others you can do
now at XI you do conditional receiver determination. Identify the condition from the payload that can distinguish L1, L2 & L3. based on this you can pass the data to defined receiver.
Hope this helps.
Thanks
Gaurav -
Was there a change in method names for ABAP Proxies ???
Hi all,
i am wondering if there was a change in the method names when using ABAP proxies.
In my projects there were always the methods execute_synchronous and execute_asynchronous when generating proxies.
In a current project i created some ABAP proxies and the method names are not the same any longer. Now the method takes the name of the Message interface. I observed this in Backendsystems NW2004s (Basis 7.0) with SP14 and 15. It seems that it has changed since the sproxy was integrated in SE80.
Can anybody tell me, how i can use the "old" method names again when generating proxies ?
Best regards,
martinActually i guess they did in more SOA way. If u see it says connecting to ESR rather than integration repository.
Yes. In order to allow several operations for a message interface, the methods of the ABAP proxies get the operation name as method instead of a constant (the Java proxies alwas had this behaviour).
could u pl highlight what other operations are allowed on message interface rather than sending a message to the XI either in synchronous or asynchronous manner?
Thanks and Regards
Rajeev Patkie -
Multi-Message-split with ABAP mapping and adapter specific attributes
Hi all,
With <b>ABAP-Mapping I split 1 message to n messages</b>.
So many files are generated in <b>file-Adapter</b>.
Everything fine.
But now I want the file names different using adapter specific attributes.
It is not possible to use variable substitution and write the file name in payload because of receiver restrictions.
I tried this with following similar coding in ABAP-Mapping:
data: lt_records TYPE MPP_DYNAMIC_TAB.
Loop.
l_file_name = "payload-Inbound"-information
ls_record-namespace = 'http://sap.com/xi/XI/System/File'.
ls_record-name = 'FileName'.
ls_record-value = l_file_name. "l_file_name comes from inbound-payload
append ls_record to lt_records.
Endloop.
CALL METHOD dynamic_configuration->set_all_records
EXPORTING
records = lt_records.
If I start the interface I see in the monitoring the dynamic configuration with many entries for file-name in the the SOAP-Header mapping of the request message (following extract):
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Mapping der Request-Message
-->
- <SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">BPAADDRESS.XML</SAP:Record>
<SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">BPABROKERROLE.XML</SAP:Record>
<SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">BPACOMPANYSEGMENT.XML</SAP:Record>
<SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">BPACUSTOMERROLE.XML</SAP:Record>
The result is that <b>all files have the same file name</b> (last entry in dynamic configuration).
Is it possible to write the adapter specific configuration in ABAP-mapping <u>for every single result message</u>??
Thank you for your help,
FlorianHi Florian,
I've a different idea...I dont think its a "right solution" but just another work around..it involves a BPM...
In your ABAP mapping..set the dynamic config with as many variables as number of different messages...i.e. use the variables like 'FileName1', 'FileName2'...'FileName6' instead of 'FileName'. But use the same namespace 'http://sap.com/xi/XI/System/File'
Call the above mapping in a BPM and capture the individual messages and set the attribute 'FileName' from the values of 'FileName1' to 'FileName6' accordingly using Message Mapping and then send the message using the 'Send' step.
before you try this, try using the variable names 'FileName1' ...'FileName6' in the receiver adapters...enable the ASMS. <b>I know we need to select which variables from the dynamic config to be used by the adapter by specifically selecting 'FileName', 'Directory' etc...but just give it a try and see if it works..</b>
Or..instead of using a BPM..you can combine Henrique's idea...use Adapter module to set the value for 'FileName' from variables 'FileName1'...'FileName6' accordingly.
hope I'm clear..lemme know if you have any questions..
cheers
praveen -
ABAP proxies in PI 7.0 to WebServices in PI 7.1
Hi guys,
I currently use ABAP proxies with my PI 7.0 and I was wondering if I could publish them as web services in my ESR if I upgrade to PI 7.1. Does anyone know ?
Many thanks
Best regards,
GLHi Guislain !
You can expose your abap proxies as webservices also with PI 7.0. Just create Proxy-PI-SOAP scenarios, and consume them as webservices directly from NetWeaver. We are using this without problems. The only thing, you lack of an integrated registry of services.
Regards,
Matias. -
Call Transaction 'PA40' ALWAYS returns with error code
Hi,
I'm having issues with updating personnel actions using CALL TRANSACTION 'PA40'. The call always ends with an error code.
I checked the message table and there are no error messages, only warnings and status messages. Warning and information messages are usually skipped in the BDC...I've coded an 'ENTER' to past the warning but this does not work either as the subsequent infotype screen fields are then not filled correctly.
The following values for addition OPTIONS are used:
data: opt like ctu_params.
opt-dismode = 'N'.
opt-updmode = 'A'. ('S' makes no difference)
opt-defsize = 'X'.
opt-nobinpt = 'X'. ( ' ' makes no difference)
I've tried using 'PA30' for the same actions but I get the same problem. I've used call transaction 'PA30' in many programs and I've never come across this problem.
Is there perhaps a config setting somewhere to fix this? I've tried hiring employees using HR_MAINTAIN_MASTERDATA with the employee existance check off but there's a couple of problems there as well - sample code for hiring an employee would be very helpful...
I need your help urgently and would appreciate your assitance immensely. (I'm working on 4.6C.)
Thank you.
LMThe easiest way to resolve this is to set
opt-dismode = 'E'.
this way it will run in background and jump out when it hits an error, and it's much easier to see what the real issue is.
I'm assuming you used SHDB first to get the recording?
Maybe you are looking for
-
How to Configure Software iSCSI including Multipath
Oracle Linux 6.6 3.8.13-44.1.1.el6uek.x86_64 Installed with a production network interface card and two 10G network connections for iSCSI traffic only. Both iSCSI cards are on the same vLAN with different IP addresses on a range. Connecting to a DEL
-
RFC function module called inside an enhancment section
Hi All, I am calling a RFC function module in background task as a separate unit. I am calling this FM within an enhancement section. Is it alright to use a commit work inside this RFC enabled FM even if I am calling it within an enhancemnt? Please h
-
Jdbc and fire walls (reverse proxy)
Can jdbc use reverse proxy to get through the corporate firewall? This is to provide access to other companies outside the corporate firewall. How? Are there any other secure ways of providing jdbc thru the firewall?
-
App for taking College notes?
What is the best and most perferred app to use for taking college notes? Free/$$
-
Hi All, Can somebody tell me whether time constraint 3 can be used for Custom relationship. Is it mandatory to use Constraint 2 only?!! Given a Scenario an office assistant is reporting to everybody in an administrative office how would you do that