<?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: objects in ale/idocs, bapi in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/objects-in-ale-idocs-bapi/m-p/2241690#M483378</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 have sent to you one outbound idoc between sap and biztalk. &lt;/P&gt;&lt;P&gt;Plz reward points if useful...........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2007 06:41:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-30T06:41:04Z</dc:date>
    <item>
      <title>objects in ale/idocs, bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/objects-in-ale-idocs-bapi/m-p/2241687#M483375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1)can any one give me any good object in ale /idocs and BAPI and explain them (senario where that is used and why and how  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i will give you maximun reward points if  i can understand them .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 05:54:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/objects-in-ale-idocs-bapi/m-p/2241687#M483375</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-30T05:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: objects in ale/idocs, bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/objects-in-ale-idocs-bapi/m-p/2241688#M483376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;give me ur email id so that i can send u an outboud idoc scenario.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 06:24:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/objects-in-ale-idocs-bapi/m-p/2241688#M483376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-30T06:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: objects in ale/idocs, bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/objects-in-ale-idocs-bapi/m-p/2241689#M483377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my email id vijay.sap25@gmail.com&lt;/P&gt;&lt;P&gt;please send idoc real time senario senarios&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 06:31:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/objects-in-ale-idocs-bapi/m-p/2241689#M483377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-30T06:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: objects in ale/idocs, bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/objects-in-ale-idocs-bapi/m-p/2241690#M483378</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 have sent to you one outbound idoc between sap and biztalk. &lt;/P&gt;&lt;P&gt;Plz reward points if useful...........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 06:41:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/objects-in-ale-idocs-bapi/m-p/2241690#M483378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-30T06:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: objects in ale/idocs, bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/objects-in-ale-idocs-bapi/m-p/2241691#M483379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruchika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please send me any information you have on ale/idocs/bapis. my email id&lt;/P&gt;&lt;P&gt;sk2608@googlemail.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 14:32:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/objects-in-ale-idocs-bapi/m-p/2241691#M483379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T14:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: objects in ale/idocs, bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/objects-in-ale-idocs-bapi/m-p/2241692#M483380</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;IDOC Programming&lt;/P&gt;&lt;P&gt;There are two processes in IDOC processing one is INBOUND PROCESS( IDOC coming to the system and its handling at various stages)  and the other is OUTBOUND PROCESS( IDOC is send to other system  . Separate ABAP programs are written for these 2 processes and different configuration settings are required for each one .Depending upon the trigeering mechanism different programming approaches are used.OUTBOUND PROGRAMS handle the IDOC creation and INBOUND PROGRAMS handle the inbound IDOC and the data trasfer from the IDOC to the database tables.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;NEED FOR ABAP PROGRAMMING arises if&lt;/P&gt;&lt;P&gt;1)New IDOC was created&lt;/P&gt;&lt;P&gt;   Depending upon the triggering mechanism i.e change pointer,message control&lt;/P&gt;&lt;P&gt;   etc the programming technique changes and the type of process.&lt;/P&gt;&lt;P&gt;2)Existing IDOC was extended&lt;/P&gt;&lt;P&gt;   User Exits are used to populate data in new segments added and to read them  &lt;/P&gt;&lt;P&gt;   back.&lt;/P&gt;&lt;P&gt;3)To enhance an exsiting process.&lt;/P&gt;&lt;P&gt;   User Exits are used .  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic structure of an OUTBOUND PROGRAM&lt;/P&gt;&lt;P&gt;The basic structure of all outbound programs is same. The CONTROL&lt;/P&gt;&lt;P&gt;record which is of TYPE EDIDC has to be filled. It contains important fields like&lt;/P&gt;&lt;P&gt;IDOCTP      IDOC type&lt;/P&gt;&lt;P&gt;MESTYP    Message Type&lt;/P&gt;&lt;P&gt;RCVPRN    Recieving Partner (Destination) &lt;/P&gt;&lt;P&gt;RCVPRT    Partner Type (it is LS i.e Logical System) &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The DATA RECORD internal table which is of TYPE EDIDD has to be filled&lt;/P&gt;&lt;P&gt;in the same order as there are segments in the IDOC definition.&lt;/P&gt;&lt;P&gt;It has 2 important fields which are to be filled ,these are&lt;/P&gt;&lt;P&gt;SEGNAM  Name of the segment&lt;/P&gt;&lt;P&gt;SEGDATA Data in the segment and can be upto 1000 bytes.This field &lt;/P&gt;&lt;P&gt;                is corresponds to each data segment in the IDOC.&lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;P&gt;DATA INT_EDIDD LIKE EDIDD OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA W_SEGDATA LIKE zsegment "custom segment zsegment&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;       INT_EDIDD-SEGNAM = 'ZSEGMENT' &lt;/P&gt;&lt;P&gt;       W_SEGDATA-field1 = value    "taken from some table&lt;/P&gt;&lt;P&gt;       W_SEGDATA-field2 = value    "taken from some table&lt;/P&gt;&lt;P&gt;       INT_EDIDD-SEGDATA = W_SEGDATA&lt;/P&gt;&lt;P&gt;       APPEND INT_EDIDD&lt;/P&gt;&lt;P&gt;This will fill the data record corresponding to the segment ZSEGMENT . For all&lt;/P&gt;&lt;P&gt;segments the sam steps will be repeated until all the data corresponding to all the&lt;/P&gt;&lt;P&gt;segments in the idoc is filled in the internal table of type EDIDD.&lt;/P&gt;&lt;P&gt;      There is only one control record and can be multile data records in the idoc&lt;/P&gt;&lt;P&gt;structure.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;Which data is to be extracted from the tables to be filled in EDIDD type internal table is determined in standalone programs from the objects which are specified in the selection screen and from the object key passed to the function module in case of message control and is taken from BDCP table in case of change pointers using function modules "CHANGE_POINTERS_READ"&lt;/P&gt;&lt;P&gt;      In case of stand alone programs and function modules based on change pointers method the function module "MASTER_IDOC_DISTRIBUTE" is used to send the IDOC to ALE layer for distribution ,in case of message control it is handled automatically by the RSNASTED program invoked by the message control.                      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUTBOUND PROCESS AND OUTBOUND PROGRAM&lt;/P&gt;&lt;P&gt; Outbound programs are used in outbound process to genearte IDOCs . There&lt;/P&gt;&lt;P&gt;purpose is to extract the data from the tables and to fill the IDOC data records&lt;/P&gt;&lt;P&gt;and the control record in the IDOC and pass ito the ALE layer for distribution to the recieving system .&lt;/P&gt;&lt;P&gt; Depending upon the triggering mechanism (how and when the outbound program will be started different techniques and interface is used for outbound program.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;1)Message control &lt;/P&gt;&lt;P&gt; Application like PO(purchase order) creation use this technique , where the output type is linked to the application(Message control is a configurable cross application component which can be set in IMG .Such programs are created in the form of function modules and linked to the output type which is linked to the apllication.These have predefined interfaces. &lt;/P&gt;&lt;P&gt;In outbound programs(function module) that use message control the key of the&lt;/P&gt;&lt;P&gt;application document is passed to the function module whcig will read the data from the table depending upon the key passed(NAST structure) and fill the IDOC segemnts with the application data.The control record is also passed to the function module but is not fully filled, the rmaining fields are filled and the control is passed back to the calling program which is RSNASTED and is invoked by the &lt;/P&gt;&lt;P&gt;message control to process ALE and EDI output types and this program on recieving the IDOC data will create the physical IDOC in the system.&lt;/P&gt;&lt;P&gt;The parameteers passed to the function module are&lt;/P&gt;&lt;P&gt;IMPORTING PARAMETERS&lt;/P&gt;&lt;P&gt; OBJECT LIKE NAST &lt;/P&gt;&lt;P&gt;  It contains documents key.&lt;/P&gt;&lt;P&gt; CONTROL_RECORD_IN  LIKE EDIDC &lt;/P&gt;&lt;P&gt;  It contains the partailly filled control record&lt;/P&gt;&lt;P&gt;EXPORETING PARAMETER&lt;/P&gt;&lt;P&gt; OBJECT_TYPE &lt;/P&gt;&lt;P&gt; CONTROL_RECORD_OUT LIKE EDIDC&lt;/P&gt;&lt;P&gt;TABLES &lt;/P&gt;&lt;P&gt; INT_EDID LIKE EDIDD&lt;/P&gt;&lt;P&gt; The internal table used to fill the data records in the same order as they exists in  &lt;/P&gt;&lt;P&gt; the IDOC.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; The important parameters that should be filled in the custom function module are&lt;/P&gt;&lt;P&gt; CONTROL_RECORD_OUT and  INT_EDIDD .The OBJK field of the structue NAST contains the key of the apllication document. &lt;/P&gt;&lt;P&gt;2)Stand alone programs&lt;/P&gt;&lt;P&gt;  Generally used for Master Data transfer and as such depending upon the requirement can have different interfaces.The programs have a selection screen which has select options to select the objects, and parameters for specifying the recipient Logical System and the Message Type.&lt;/P&gt;&lt;P&gt; Data is selected based on the specified objects from the tables . and control record of type EDIDC is created and filled with important values like DIRECTION ,IDOCTP,RCVPRT,RCVPRN and MESTYP .&lt;/P&gt;&lt;P&gt; Data is filled in an internal table of TYPE EDIDD according to segment definitions&lt;/P&gt;&lt;P&gt;and in same order and the function module MASTER_IDOC_DISTRIBUTE is called passing the control record and the internal table containg IDOC data and importing an internal table consisting of control records for each communication IDOCS created.&lt;/P&gt;&lt;P&gt;3)Change pointer &lt;/P&gt;&lt;P&gt;Change Pointer table is read and checked if changes were made to important fields , if so the outbound program will be triggered automatically , these have predefined interfaces &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******&lt;STRONG&gt;please reward points if the information is helpful to you&lt;/STRONG&gt;**********&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 06:35:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/objects-in-ale-idocs-bapi/m-p/2241692#M483380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T06:35:02Z</dc:date>
    </item>
  </channel>
</rss>

