<?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: Stand alone program for O/B interface in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/stand-alone-program-for-o-b-interface/m-p/1122020#M109162</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi praneet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  your code is intended for the generation of an Idoc (from SAP tables).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with WE19 you manually create an Idoc. To send an Idoc from WE19 choose "Standard outbound processing". The only things you need are the informations about ports, sender, receiver ecc.. inside the control record EDIDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outbound Idoc doesn't need specific FM, it is sufficient to send the idoc manually generated to the receiver specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards, Manuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jan 2006 13:11:12 GMT</pubDate>
    <dc:creator>manuel_bassani</dc:creator>
    <dc:date>2006-01-26T13:11:12Z</dc:date>
    <item>
      <title>Stand alone program for O/B interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stand-alone-program-for-o-b-interface/m-p/1122013#M109155</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;&lt;/P&gt;&lt;P&gt;I am configuring an outbound interface through ALE and IDocs.I am doing a standard stand alone program for this and designing an selection screen for this.My query is that this report has to be attached or configured in any way for the OUTPUT to be successful .Since in case of FM's we do certain configs and attach the FM's to IDoc types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please advise&lt;/P&gt;&lt;P&gt;kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 10:19:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stand-alone-program-for-o-b-interface/m-p/1122013#M109155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T10:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Stand alone program for O/B interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stand-alone-program-for-o-b-interface/m-p/1122014#M109156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  i've already done a standalone program like your.&lt;/P&gt;&lt;P&gt;In synthesis i followed those steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Define Idoc type (only in the case of custom idoc)&lt;/P&gt;&lt;P&gt;2. Define message type (and customizing for message/idoc types linkage WE81, WE82)&lt;/P&gt;&lt;P&gt;3. in WE20 transaction define partner customizing (linking sender/receiver/message types)&lt;/P&gt;&lt;P&gt;4. In the program fill work area EDIDC with idoc type and message type&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  wedidc-doctyp = idoctyp.
  wedidc-mestyp = mestyp.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. In the program fill an internal table EDIDD with the segments you want to send&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. Choose receiver parner&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  select *
    from edp13
    into table xedp13
   where mestyp = mestyp.

  loop at xedp13 into wedp13.
    perform ale_determine_if_to_be_sent using wedp13.

    if sy-subrc = 0.
      perform master_idoc_distribute using wedp13.
    endif.

  endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7. Determine if to send the idoc for a specified partner&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  ALE_DETERMINE_IF_TO_BE_SENT
*&amp;amp;---------------------------------------------------------------------*
* Controllo se l'idoc deve essere inviato
*----------------------------------------------------------------------*
form ale_determine_if_to_be_sent using edp13 type edp13.

  data: logsys like t000-logsys,
        sent   type c.

  select single logsys
    from t000
    into logsys
   where mandt = sy-mandt.

  clear sent.

  call function 'ALE_MODEL_DETERMINE_IF_TO_SEND'
  exporting
    message_type           = edp13-mestyp
    sending_system         = logsys
    receiving_system       = edp13-rcvprn
    validdate              = sy-datum
  importing
    idoc_must_be_sent      = sent
  exceptions
    own_system_not_defined = 1
    others                 = 2.

  if sent is initial.
    sy-subrc = 4.
  else.
    sy-subrc = 0.
  endif.

endform.                    " ALE_DETERMINE_IF_TO_BE_SENT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8. Eventually send the idoc&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  master_idoc_distribute
*&amp;amp;---------------------------------------------------------------------*
* Invio idoc
*----------------------------------------------------------------------*
form master_idoc_distribute using edp13 type edp13.

  data: idoc_control type edidc,
        xedidc       type table of edidc.

  move-corresponding edp13 to idoc_control.
  idoc_control-idoctp = edp13-idoctyp.
  idoc_control-stdmes = edp13-idoctyp.

  call function 'MASTER_IDOC_DISTRIBUTE'
  exporting
    master_idoc_control            = idoc_control
  tables
    communication_idoc_control     = xedidc
    master_idoc_data               = xedidd
  exceptions
    error_in_idoc_control          = 1
    error_writing_idoc_status      = 2
    error_in_idoc_data             = 3
    sending_logical_system_unknown = 4
    others                         = 5.

  if sy-subrc = 0.
    commit work.
    loop at xedidc into wedidc where docnum &amp;lt;&amp;gt; space.
      message i186 with wedidc-docnum.
      exit.
    endloop.
  else.
    message e187.
  endif.

endform.                    " master_idoc_distribute
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This are the only steps/configurations needed to send an outbound Idoc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you find this answer useful, please remember to reward some points and eventually close post if your problem is solved&lt;/P&gt;&lt;P&gt;Regards, Manuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 10:46:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stand-alone-program-for-o-b-interface/m-p/1122014#M109156</guid>
      <dc:creator>manuel_bassani</dc:creator>
      <dc:date>2006-01-25T10:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Stand alone program for O/B interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stand-alone-program-for-o-b-interface/m-p/1122015#M109157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi manuel!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAsed on your inputs i had creATED the following CODE FOR THE outbound interface but it is doing nothing,just blank and the IDoc is also not created.I am attaching my code please go through it and advise.I just created the header data and didn't do any logical validations.I was just seeing weather the IDoc is triggered or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZPAI15_CATSOUT NO STANDARD PAGE HEADING MESSAGE-ID Z001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;   PARAMETERS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   OBJECT KEY&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:P_CATSEN LIKE CATSDB-PERNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE TYPE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:P_MESTYP LIKE EDMSG-MSGTYP OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   DESTINATION SYSTEM&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:P_LOGSYS LIKE TBDLST-LOGSYS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;   CONSTANTS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   SEGMENT NAMES&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C_HEADER_SEGMENT  LIKE  EDIDD-SEGNAM VALUE 'E1BPCATS1',&lt;/P&gt;&lt;P&gt;C_EXTENDED_SEGMENT LIKE  EDIDD-SEGNAM VALUE 'ZE1BPCATS1',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IDoc TYPE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C_CATS_REPORT_IDOC_TYPE LIKE EDIDC-IDOCTP VALUE 'ZCATS_INSERT02'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;   DATA DECLARATIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IDoc CONTROL RECORD&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:CONTROL_RECORD_OUT LIKE EDIDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CATS HEADER DATA&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:FS_CATSHEADER_DATA LIKE E1BPCATS1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CATS HEADER DATA1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:FS_CATSHEADER1_DATA LIKE E1BPCATS2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CATS EXTENDED SEGMENT DATA&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:FS_CATSEXTENDED_DATA LIKE ZE1BPCATS1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;   DATABASE TABLES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   APPLICATION DATA TABLES&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES:CATSDB,CSLT,PA0002,EDIDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;   INTERNAL TABLES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   HEADER&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     IT_CATSHEADER LIKE E1BPCATS1 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXTENDED SEGMENT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     IT_CATSEXTENDED LIKE ZE1BPCATS1 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   DATA RECORDS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     IT_EDIDD LIKE EDIDD OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   COMMUNICATION IDOCS GENERATED&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     IT_COMM_IDOCS LIKE EDIDC OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;     IT_EDP13 LIKE EDP13 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;     wa_edp13 like edp13 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;     WA_EDIDC LIKE EDIDC OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;   PROGRAM LOGIC&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************&lt;STRONG&gt;SELECT APPLICATION DATA&lt;/STRONG&gt;************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM CATSDB WHERE PERNR = P_CATSEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;MESSAGE E001 WITH P_CATSEN.&lt;/P&gt;&lt;P&gt;EXIT.&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;STRONG&gt;BUILD CONTROL RECORD&lt;/STRONG&gt;***************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   FILL CONTROL RECORD INFORMATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROL_RECORD_OUT-MESTYP = P_MESTYP.&lt;/P&gt;&lt;P&gt;CONTROL_RECORD_OUT-IDOCTP = C_CATS_REPORT_IDOC_TYPE.&lt;/P&gt;&lt;P&gt;CONTROL_RECORD_OUT-RCVPRT = 'LS'.&lt;/P&gt;&lt;P&gt;CONTROL_RECORD_OUT-RCVPRN = P_LOGSYS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************&lt;STRONG&gt;BUILD DATA RECORDS&lt;/STRONG&gt;**************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="------------------" /&gt;CATSHEADER--&lt;P&gt;&lt;/P&gt;&lt;HR originaltext="------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*FILL THE CATSHEADER INFORMATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FS_CATSHEADER_DATA-EMPLOYEENUMBER = CATSDB-PERNR.&lt;/P&gt;&lt;P&gt;FS_CATSHEADER1_DATA-DATE_OF_APPROVAL = CATSDB-APDAT.&lt;/P&gt;&lt;P&gt;FS_CATSEXTENDED_DATA-LSTAR = CATSDB-LSTAR.&lt;/P&gt;&lt;P&gt;FS_CATSEXTENDED_DATA-LTEXT = CSLT-LTEXT.&lt;/P&gt;&lt;P&gt;FS_CATSHEADER_DATA-CATSHOURS = CATSDB-CATSHOURS.&lt;/P&gt;&lt;P&gt;FS_CATSHEADER_DATA-STARTTIME = CATSDB-BEGUZ.&lt;/P&gt;&lt;P&gt;FS_CATSHEADER_DATA-ENDTIME = CATSDB-ENDUZ.&lt;/P&gt;&lt;P&gt;FS_CATSEXTENDED_DATA-ZPBHRPAYROLLNO = PA0002-ZPBHRPAYROLLNO.&lt;/P&gt;&lt;P&gt;FS_CATSEXTENDED_DATA-ZPBHRPAYROLLSYS = PA0002-ZPBHRPAYROLLSYS.&lt;/P&gt;&lt;P&gt;FS_CATSEXTENDED_DATA-ZPBHRPAYROLLINS = PA0002-ZPBHRPAYROLLINS.&lt;/P&gt;&lt;P&gt;FS_CATSHEADER_DATA-WORKDATE = CATSDB-WORKDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*FILL THE ADMINISTRATIVE SECTION OF THE DATA RECORD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_EDIDD-SEGNAM = C_HEADER_SEGMENT.&lt;/P&gt;&lt;P&gt;IT_EDIDD-SDATA = FS_CATSHEADER_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*APPEND THE CATS HEADER DATA TO THE IDOC DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND IT_EDIDD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from edp13 into table IT_EDP13 where mestyp = p_mestyp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at IT_edp13 into wa_edp13.&lt;/P&gt;&lt;P&gt;    perform ale_determine_if_to_be_sent using wa_edp13.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      perform master_idoc_distribute using wa_edp13.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;    FORM ALE_DETERMINE_IF_TO_BE_SENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form ale_determine_if_to_be_sent using edp13 type edp13.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: logsys like t000-logsys,&lt;/P&gt;&lt;P&gt;        sent   type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select single logsys&lt;/P&gt;&lt;P&gt;    from t000&lt;/P&gt;&lt;P&gt;    into logsys&lt;/P&gt;&lt;P&gt;   where mandt = sy-mandt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear sent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'ALE_MODEL_DETERMINE_IF_TO_SEND'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    message_type           = edp13-mestyp&lt;/P&gt;&lt;P&gt;    sending_system         = logsys&lt;/P&gt;&lt;P&gt;    receiving_system       = edp13-rcvprn&lt;/P&gt;&lt;P&gt;    validdate              = sy-datum&lt;/P&gt;&lt;P&gt;  importing&lt;/P&gt;&lt;P&gt;    idoc_must_be_sent      = sent&lt;/P&gt;&lt;P&gt;  exceptions&lt;/P&gt;&lt;P&gt;    own_system_not_defined = 1&lt;/P&gt;&lt;P&gt;    others                 = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sent is initial.&lt;/P&gt;&lt;P&gt;    sy-subrc = 4.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " ALE_DETERMINE_IF_TO_BE_SENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****************&lt;STRONG&gt;PASS CONTROL TO THE ALE LAYER&lt;/STRONG&gt;***********************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form master_idoc_distribute using edp13 type edp13.&lt;/P&gt;&lt;P&gt;  data: idoc_control type edidc,&lt;/P&gt;&lt;P&gt;        xedidc type TABLE OF edidc.&lt;/P&gt;&lt;P&gt;  move-corresponding edp13 to idoc_control.&lt;/P&gt;&lt;P&gt;  idoc_control-idoctp = edp13-idoctyp.&lt;/P&gt;&lt;P&gt;  idoc_control-stdmes = edp13-idoctyp.&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                 =      CONTROL_RECORD_OUT&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;          COMMUNICATION_IDOC_CONTROL          =      IT_COMM_IDOCS&lt;/P&gt;&lt;P&gt;          MASTER_IDOC_DATA                    =      IT_EDIDD&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          ERROR_IN_IDOC_CONTROL               =      1&lt;/P&gt;&lt;P&gt;          ERROR_WRITING_IDOC_STATUS           =      2&lt;/P&gt;&lt;P&gt;          ERROR_IN_IDOC_DATA                  =      3&lt;/P&gt;&lt;P&gt;          SENDING_LOGICAL_SYSTEM_UNKNOWN      =      4&lt;/P&gt;&lt;P&gt;          OTHERS                              =      5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    commit work.&lt;/P&gt;&lt;P&gt;    loop at xedidc into wA_EDidc where docnum &amp;lt;&amp;gt; space.&lt;/P&gt;&lt;P&gt;      message i186 with wA_edidc-docnum.&lt;/P&gt;&lt;P&gt;      exit.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    message e187.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " master_idoc_distribute&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 14:52:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stand-alone-program-for-o-b-interface/m-p/1122015#M109157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T14:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Stand alone program for O/B interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stand-alone-program-for-o-b-interface/m-p/1122016#M109158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi praneeth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope its problem with the settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are using the Extended IDOC type in the program.Check the Extended one is assigned correctly or not to the Basic Type..Etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 16:35:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stand-alone-program-for-o-b-interface/m-p/1122016#M109158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T16:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Stand alone program for O/B interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stand-alone-program-for-o-b-interface/m-p/1122017#M109159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Along with the steps mentioned previously, I would also like to add that you need to confirm that the sending logical system and receiving logical system are correctly defined. Check out the Output mode defined in outb ound options also. Whether Transfer idocs immed is selected or collect idocs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please also add checks are various stages in your program to catch exceptions so you can get an error message and analyze properly the mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ketaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 16:44:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stand-alone-program-for-o-b-interface/m-p/1122017#M109159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T16:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Stand alone program for O/B interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stand-alone-program-for-o-b-interface/m-p/1122018#M109160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praneeth,&lt;/P&gt;&lt;P&gt;  the code seem to be right,&lt;/P&gt;&lt;P&gt;maybe there is a customizing problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to debug the program&lt;/P&gt;&lt;P&gt;- does FM ALE_MODEL_DETERMINE_IF_TO_SEND set flag "sent" to X?&lt;/P&gt;&lt;P&gt;- does select from edp13 extract some data ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not , probably the customizing is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know,&lt;/P&gt;&lt;P&gt;Manuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 16:54:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stand-alone-program-for-o-b-interface/m-p/1122018#M109160</guid>
      <dc:creator>manuel_bassani</dc:creator>
      <dc:date>2006-01-25T16:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Stand alone program for O/B interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stand-alone-program-for-o-b-interface/m-p/1122019#M109161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manuel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As u see my code this is based on a stand alone report program,instead of that i want to attach it as a Function module to the extended IDOC i.e i will define it in WE 57 and when ever there is a trigerring of IDoc from we19 this should run.How to achieve this?&lt;/P&gt;&lt;P&gt;Please advise&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;praneet&lt;/P&gt;&lt;P&gt;points awarded&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2006 11:55:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stand-alone-program-for-o-b-interface/m-p/1122019#M109161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-26T11:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Stand alone program for O/B interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stand-alone-program-for-o-b-interface/m-p/1122020#M109162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi praneet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  your code is intended for the generation of an Idoc (from SAP tables).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with WE19 you manually create an Idoc. To send an Idoc from WE19 choose "Standard outbound processing". The only things you need are the informations about ports, sender, receiver ecc.. inside the control record EDIDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outbound Idoc doesn't need specific FM, it is sufficient to send the idoc manually generated to the receiver specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards, Manuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2006 13:11:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stand-alone-program-for-o-b-interface/m-p/1122020#M109162</guid>
      <dc:creator>manuel_bassani</dc:creator>
      <dc:date>2006-01-26T13:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Stand alone program for O/B interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stand-alone-program-for-o-b-interface/m-p/1122021#M109163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi manuel!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;I will explain u my requirement below .Please advise&lt;/P&gt;&lt;P&gt;Actually i am doing an outbound interface for CATS trans.&lt;/P&gt;&lt;P&gt;I created an extended IDoc based on the basic IDoc cats_insert02.I had coded the idoc as given in my earlier post.i assigned the extended idoc to the basic IDoc.The partner profiles and distribution is succesful.my query is&lt;/P&gt;&lt;P&gt;1)I don't want the selection screen for the O/B interface and how to achieve this&lt;/P&gt;&lt;P&gt;2)can i trigger it from we19.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please advise&lt;/P&gt;&lt;P&gt;kumar&lt;/P&gt;&lt;P&gt;points rewarded&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2006 14:31:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stand-alone-program-for-o-b-interface/m-p/1122021#M109163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-26T14:31:51Z</dc:date>
    </item>
  </channel>
</rss>

