10-11-2007 7:06 AM
Hiii Everybody.....
Plz provide me Information regarding Interfaces in ABAP.Mainly what is outbound interface? or suggest one helpful link for outbound interface.
Thank u!
10-11-2007 7:07 AM
hI,
Outbound Process:
First, ask your XI team to generate a message interface for you of type outbound and include the structure in the way they want you to send data to them.
To create space for outbound:
Once the message interface is created by them, you can generate the same in transaction SPROXY. Search for your interface namespace and then right click on it and say create.
Give the appropriate package and prefix to it -> Generate the proxy, save and activate.
Now you can create a report and then according to the structure generated by XI, you can populate your internal table to be passed back.
ABAP Part:
Call the method of the proxy in your report and send the data to XI.
Example:
DATA: o_notif TYPE REF TO zpmo_co_mi_peregrine_quick_fil, "Proxy class object
o_excep_handler TYPE REF TO cx_root. "Exception class object
TRY.
Create the object of outbound proxy class
CREATE OBJECT o_notif.
Call the execute_asynchronous of proxy with output table containing
information of created notifications
CALL METHOD o_notif->execute_asynchronous
EXPORTING
output = wa_output.
COMMIT WORK.
CATCH cx_root INTO o_excep_handler .
CLEAR wa_return.
REFRESH it_return.
wa_return-type = c_error. " Catching
wa_return-id = c_err_id.
wa_return-number = c_number.
wa_return-message = o_excep_handler->get_text( ).
APPEND wa_return TO it_return.
CLEAR wa_return.
ENDTRY.
Sending errors with alerts:
IF it_bapiret2[] IS NOT INITIAL.
Raise an alert
CALL FUNCTION 'Z_XI0_POLL_TO_UWL'
EXPORTING
systemoforigin = input-mt_peregrine_notification_req-message_header-system_of_origin
interfaceid = c_intid
TABLES
bapi_return = it_bapiret2
EXCEPTIONS
no_alertcateg_found = 1
alert_not_created = 2
no_message_passed = 3
OTHERS = 4.
IF sy-subrc NE 0.
MESSAGE i137 . " Error in Raising Alert
ENDIF.
ELSE.
MESSAGE s156 . " Data sent successfully
ENDIF.
Check with below links :
http://www.erpgenie.com/sapgenie/docs/interface_design.doc
ABAP Inbound/Outbound interfaces iDoc - User Exits
Thanks.
10-11-2007 7:13 AM
Hi
check the below links too may be helpful for you
http://help.sap.com/saphelp_nw04/helpdata/en/78/217da751ce11d189570000e829fbbd/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
/people/kevin.wilson2/blog/2006/11/13/ale-scenario-development-guide
http://searchsap.techtarget.com/tip/0,289483,sid21_gci1230385,00.html
for the geneal stuff on ale/idoc check the below links
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
For ALE -- IDoc's
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.docs
ALE/ IDOC/EDI
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapgenie.com/sapedi/idoc_abap.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
http://www.allsaplinks.com/idoc_sample.html
http://www.sappoint.com/abap.html
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.allsaplinks.com/idoc_sample.html
ALE/ IDOC/ XML
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://www.thespot4sap.com/Articles/SAP_XML_Business_Integration.asp
http://help.sap.com/saphelp_srm30/helpdata/en/72/0fe1385bed2815e10000000a114084/content.htm
IDOC Convertion
/people/kevin.wilson2/blog/2005/12/07/changing-fields-in-an-idoc-segment
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapgenie.com/ale/configuration.htm
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapdevelopment.co.uk/training
http://www.sapgenie.com/ale/why_ale.htm
http://www.sapdevelopment.co.uk/training
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
<b>Reward if usefull</b>
10-11-2007 7:23 AM
hi,
Outbound interface is used to send IDocs to the ALE server.,
outbound generating an idoc in ale layer with master_idoc_create_messgetype.
.
useful links:
1)http://help.sap.com/saphelp_nw2004s/helpdata/en/99/66fd3f9149ca42e10000000a1550b0/content.htm
2)
10-11-2007 7:27 AM
Outbound
Synchronous outbound message interface.
Asynchronous outbound message interface.
Message Interface
Use
You use a message interface to describe a platform-independent or programming-language-independent interface, which you want to use to exchange messages between application components using SAP Exchange Infrastructure. Depending on the communication parameters defined for a message interface, it can either have the task of sending a request (outbound) or receiving a request (inbound). Assigning an outbound interface to an inbound interface enables multiple communication parties to exchange messages with each other (see also: Communication Parties (Case Examples)). The following connections are possible for message interfaces:
A message interface with another message interface
A message interface with an imported interface
A message interface with an interface configured by an adapter
By using proxy generation, message interfaces enable ABAP and Java applications to be interconnected.
Prerequisites
From message interfaces, you reference message types, fault message types, messages from external definitions, or RFC or IDoc messages. It is possible to save message interfaces without referencing these objects, but their definition would then be incomplete.
For more information, see the Prerequisites section in Introduction to Interface Development.
Features
Communication Parameters
When you create a message interface you define the communication parameters by using the attributes Mode and Category. You can create the following types of message interfaces:
Category
Mode
Use
Synchronous
Asynchronous
Inbound
Synchronous inbound message interface
Asynchronous inbound message interface
Proxy communication
Outbound
Synchronous outbound message interface
Asynchronous outbound message interface
Abstract
Synchronous abstract message interface
Asynchronous abstract message interface
Defines the process signature
Depending on the attributes you define for the message interface, you either need to reference one or two message types in Message Types. Therefore, the input message type defines the expected message, while the output message type defines the message sent.
If you want to handle application-specific errors or persist them in monitoring, assign the corresponding fault message types to the message interface as well.
link:
http://help.sap.com/saphelp_nw04/helpdata/en/55/c5633c3a892251e10000000a114084/content.htm