<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Outbound Interface in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-interface/m-p/2825968#M661200</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunaina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is your functional requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2007 06:48:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-01T06:48:36Z</dc:date>
    <item>
      <title>Outbound Interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-interface/m-p/2825967#M661199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I want to develop coding for Outbound interface, but not aware of the process.&lt;/P&gt;&lt;P&gt;Kindly help me to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sunaina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 06:46:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-interface/m-p/2825967#M661199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T06:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Outbound Interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-interface/m-p/2825968#M661200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunaina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is your functional requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 06:48:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-interface/m-p/2825968#M661200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T06:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Outbound Interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-interface/m-p/2825969#M661201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunaina,&lt;/P&gt;&lt;P&gt;I dont know ur functional requirement, but as per my understanding I can give u the general idea and hope this will work.&lt;/P&gt;&lt;P&gt;If its helpful then reward me with points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Outbound Process:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, ask your XI team to generate a message interface for you of type &amp;lt;b&amp;gt;outbound&amp;lt;/b&amp;gt; and include the structure in the way they want you to send data to them. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;To create space for outbound:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;Give the appropriate package and prefix to it -&amp;gt; Generate the proxy, save and activate.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ABAP Part:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call the method of the proxy in your report and send the data to XI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: o_notif TYPE REF TO zpmo_co_mi_peregrine_quick_fil, "Proxy class object&lt;/P&gt;&lt;P&gt;           o_excep_handler TYPE REF TO cx_root.                      "Exception class object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Create the object of outbound proxy class&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        CREATE OBJECT o_notif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Call the execute_asynchronous of proxy with output table containing&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      information of created notifications&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        CALL METHOD o_notif-&amp;gt;execute_asynchronous&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            output = wa_output.&lt;/P&gt;&lt;P&gt;        COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CATCH cx_root INTO o_excep_handler .             &lt;/P&gt;&lt;P&gt;        CLEAR wa_return.&lt;/P&gt;&lt;P&gt;        REFRESH it_return.&lt;/P&gt;&lt;P&gt;        wa_return-type      = c_error.                 " Catching&lt;/P&gt;&lt;P&gt;        wa_return-id        = c_err_id.&lt;/P&gt;&lt;P&gt;        wa_return-number    = c_number.&lt;/P&gt;&lt;P&gt;        wa_return-message   = o_excep_handler-&amp;gt;get_text( ).&lt;/P&gt;&lt;P&gt;        APPEND wa_return TO it_return.&lt;/P&gt;&lt;P&gt;        CLEAR wa_return.&lt;/P&gt;&lt;P&gt;    ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Sending errors with alerts:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF  it_bapiret2[] IS NOT INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Raise an alert&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'Z_XI0_POLL_TO_UWL'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        systemoforigin      = input-mt_peregrine_notification_req-message_header-system_of_origin&lt;/P&gt;&lt;P&gt;        interfaceid         = c_intid&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        bapi_return         = it_bapiret2&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        no_alertcateg_found = 1&lt;/P&gt;&lt;P&gt;        alert_not_created   = 2&lt;/P&gt;&lt;P&gt;        no_message_passed   = 3&lt;/P&gt;&lt;P&gt;        OTHERS              = 4.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE  0.&lt;/P&gt;&lt;P&gt;      MESSAGE i137 . " Error in Raising Alert&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    MESSAGE s156 . " Data sent successfully&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 06:59:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-interface/m-p/2825969#M661201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T06:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Outbound Interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-interface/m-p/2825970#M661202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sunaina, check this sample code for out bound interface program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: Begin of imara occurs 0,&lt;/P&gt;&lt;P&gt;matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;mtart like mara-mtart,&lt;/P&gt;&lt;P&gt;mbrsh like mara-mbrsh,&lt;/P&gt;&lt;P&gt;meins(3) type c,&lt;/P&gt;&lt;P&gt;end of imara.&lt;/P&gt;&lt;P&gt;data: begin of imakt occurs 0,&lt;/P&gt;&lt;P&gt;maktx like makt-maktx,&lt;/P&gt;&lt;P&gt;end of imakt.&lt;/P&gt;&lt;P&gt;DATA: wamas_con LIKE edidc,&lt;/P&gt;&lt;P&gt;imas_data LIKE edidd OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;icom_con LIKE edidc OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: e_matnr LIKE mara-matnr,&lt;/P&gt;&lt;P&gt;e_msgtyp LIKE edidc-mestyp,&lt;/P&gt;&lt;P&gt;e_rcvprn LIKE edidc-rcvprn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;retrive app. data from DB&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT matnr mtart mbrsh meins FROM mara INTO TABLE imara WHERE&lt;/P&gt;&lt;P&gt;matnr = e_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT maktx FROM makt INTO TABLE imakt WHERE&lt;/P&gt;&lt;P&gt;matnr = e_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Master idoc control record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wamas_con-rcvprt = 'LS'.&lt;/P&gt;&lt;P&gt;wamas_con-rcvprn = e_rcvprn.&lt;/P&gt;&lt;P&gt;wamas_con-idoctp = 'YMATMAS1'.&lt;/P&gt;&lt;P&gt;wamas_con-mestyp = e_msgtyp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;master idoc data records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT imara.&lt;/P&gt;&lt;P&gt;imas_data-segnam = 'Y1MARA'.&lt;/P&gt;&lt;P&gt;move imara to imas_data-sdata .&lt;/P&gt;&lt;P&gt;APPEND imas_data.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT imakt.&lt;/P&gt;&lt;P&gt;imas_data-segnam = 'Y1MAKT'.&lt;/P&gt;&lt;P&gt;imas_data-sdata = imakt.&lt;/P&gt;&lt;P&gt;APPEND imas_data.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;master_idoc_control = wamas_con&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OBJ_TYPE = ''&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CHNUM = ''&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;communication_idoc_control = icom_con&lt;/P&gt;&lt;P&gt;master_idoc_data = imas_data&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ERROR_IN_IDOC_CONTROL = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ERROR_WRITING_IDOC_STATUS = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ERROR_IN_IDOC_DATA = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SENDING_LOGICAL_SYSTEM_UNKNOWN = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OTHERS = 5&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;pavan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 07:26:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-interface/m-p/2825970#M661202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T07:26:59Z</dc:date>
    </item>
  </channel>
</rss>

