ale for functioanl

Upload: reachsoumen

Post on 07-Apr-2018

214 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/6/2019 ALE for Functioanl

    1/87

    IBM Global Services

    Copyright IBM Corporation 2003

    Application Link Enabling(ALE)

    for Functional Consultants

  • 8/6/2019 ALE for Functioanl

    2/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 2

    Topics to coverTopics to cover

    What is ALE ?

    Components of ALE.

    Anatomy of an IDoc.

    ALE Processing

    Transactions For Processing and Monitoring IDocs.

    ALE in typical Project Scenario.

    Questions

  • 8/6/2019 ALE for Functioanl

    3/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 3

    ALE!! What is it ??

    It is a set ofIt is a set of

    Tools,

    programs and

    data definitions

    that provides the mechanism forthat provides the mechanism for

    distributing functionality and data acrossdistributing functionality and data across

    multiple system.multiple system.

  • 8/6/2019 ALE for Functioanl

    4/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 4

    What Data can be Exchanged ?What Data can be Exchanged ?

    Transaction DataSD, MM, FI, CO, etc.

    Master Data

    Material, Customer, Vendor, etc.

    Control DataOrganizational Reference Information

    Plants, Sales Orgs, etc.

    Data required to enable tightly coupled,distributed applications

    Separate HR, Separate Treasury, etc.

  • 8/6/2019 ALE for Functioanl

    5/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 5

    What is ALE ?

    Components of ALE.

    Anatomy of an IDoc.

    ALE Processing

    Transactions For Processing and Monitoring IDocs.

    Trouble Shooting

    ALE in typical Project Scenario.

    Questions

    Topics to coverTopics to cover

  • 8/6/2019 ALE for Functioanl

    6/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 6

    Components of ALEComponents of ALE

    Services:Services:

    Application ServicesApplication Services

    Distribution ServicesDistribution Services

    Communication ServicesCommunication Services

  • 8/6/2019 ALE for Functioanl

    7/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 7

    Application ServicesApplication Services

    Services:Services:

    Application ServicesApplication Services

    Distribution ServicesDistribution Services

    Communication ServicesCommunication Services

    This is where the SAP

    applications ( SD, FI,

    MM etc. ) generatetheir data and

    documents

  • 8/6/2019 ALE for Functioanl

    8/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 8

    Distribution ServicesDistribution Services

    Services:Services:

    Application ServicesApplication Services

    Distribution ServicesDistribution Services

    Communication ServicesCommunication Services

    Recipients

    Formats and

    Filters the data

    Creates IDocs

    ( Intermediate

    Documents

  • 8/6/2019 ALE for Functioanl

    9/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 9

    Communication ServicesCommunication Services

    Services:Services:

    Application ServicesApplication Services

    Distribution ServicesDistribution Services

    Communication ServicesCommunication Services TCP/IP

    RFC

    tRFC

    etc

  • 8/6/2019 ALE for Functioanl

    10/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 10

    Application

    Data

    Master

    IDOC DetermineReceipients

    Filter/Convert

    Data, Create IDOCComm.

    IDOC

    Application

    Functions

    Filter/Convert

    Data

    Comm.

    IDOC

    Carrier

    Application

    Layer

    Application

    LayerDistribution/ ALE

    Layer

    Distribution/ ALE

    LayerCommunication

    Layer

    Communication

    Layer

    Application

    In a Nut ShellIn a Nut Shell

  • 8/6/2019 ALE for Functioanl

    11/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 11

    Topics to coverTopics to cover

    What is ALE ?

    Components of ALE.

    Anatomy of an IDoc. ALE Processing

    Transactions For Monitoring and Processing IDocs.

    Trouble Shooting

    ALE in typical Project Scenario.

    Questions

  • 8/6/2019 ALE for Functioanl

    12/87

    IBM Global Services

    Copyright IBM Corporation 2003|

    ALE BUILDING BLOCKS & CONCEPTS

    Logical system

    Message Type

    Idoc Type and Idoc

    Customer Distribution Model Filter object type and Filter objects

    Change Pointers

    Ports

    Process Codes

    Message Control and Output Type

    Partner Profile

  • 8/6/2019 ALE for Functioanl

    13/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 13

    LOGICAL SYSTEM

    A logical system ( LS ) is the representation of an R/3 or external system in

    SAP R/3 for the distribution of data to and from the R/3 system.

  • 8/6/2019 ALE for Functioanl

    14/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 14

    MESSAGE TYPE

    A message type represents the application message exchanged between

    R/3 systems and R/3 and an external system. A message type characterises

    the data sent across systems and relates to the structure of the data called

    an IDOC type.

    Example: MATMAS is message type for Material Master

  • 8/6/2019 ALE for Functioanl

    15/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 15

    IDOC TYPE & IDOC

    An IDOC type represents the structure of the data associated with a

    message type ( DEBMAS02 for message type DEBMAS ) while an IDOC is

    an object containing the data of a particular message type.

    An IDOC consists of three record types:

    - Control Record ( EDIDC ).

    - Data Record ( EDIDD )

    - Status Record ( EDIDS )

  • 8/6/2019 ALE for Functioanl

    16/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 16

    CUSTOMER DISTRIBUTION MODEL

    It is a tool that stores information about the flow of messages across various

    systems

    The model stores data that dictates which messages flow to which logicalsystems

    TCODE-----> BD64

  • 8/6/2019 ALE for Functioanl

    17/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 17

    CHANGE POINTER

    Change Pointers are R/3 objects that mark changes to SAP Master data.

    CD objects record the changes in table CDHDR & CDPOS.

    Internal mechanisms update table BDCP & BDCPS which host the change pointer.

    Activate change pointers for message type or generally.

  • 8/6/2019 ALE for Functioanl

    18/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 18

    PORTS

    A port is a logical representation of a communication channel in SAP with the data

    communicated being IDOCs.

    Types of Ports:

    - tRFC

    - File

    - ABAP

    - XML

    ALE can use all port types to distribute IDOC

    EDI typically uses a File-based port

    TCODE -------> WE21

  • 8/6/2019 ALE for Functioanl

    19/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 19

    PROCESSCODES

    Process Codes are used in ALE and EDI to identify the function modules to be invoked

    for subsequent processing

    Inbound interface uses a process code to determine the application module that will

    process the inbound IDOC. Stored in table TEDE1.

  • 8/6/2019 ALE for Functioanl

    20/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 20

    Scenario analysisScenario analysis

    How does the IDOC look like ?

    How is data being sent ?

    How is the data being received ?

    Who is sending?

    To whom is it being sent?

    What has been done with the idoc?

  • 8/6/2019 ALE for Functioanl

    21/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 21

    Idoc Documentation

    WE60WE60

  • 8/6/2019 ALE for Functioanl

    22/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 22

    Idoc definition

    WE30WE30

  • 8/6/2019 ALE for Functioanl

    23/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 23

    1 Idoc contains1 Control record

    N Data RecordsN Status Records

    IDOC

    IntermediateDocument

  • 8/6/2019 ALE for Functioanl

    24/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 24

    First record of an IDoc package is always acontrol record. It describes the contents of thedata contained in the idoc.

    Control RecordControl Record

    Control Recordcontainsinformation about:

    IDOC type (whatdata is in the

    IDOC)

    Message type(how is the IDOCbeing processed)

    Senderinformation (whois the sender of

    that IDOC)

    Receiverinformation (who

    is the receiver ofthat IDOC)

    Latest status ofEDI processing.

    EDI standard andversion.

  • 8/6/2019 ALE for Functioanl

    25/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 25

    All records in the IDoc, which come after the

    control record, are the IDoc data. They are allstructured alike, with a segment information partand a data part, which is 1000 character inlength, filling the rest of the line.

    Data RecordData Record

    Hierarchicalstructure (internal

    representation as flatstructure)

    Contains the actualbusiness data

  • 8/6/2019 ALE for Functioanl

    26/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 26

    Status RecordStatus RecordInformation about the IDoc statuslike:IDoc identification number

    Status number - table verifiedIDoc typeDirectionData and time stamp

    Idoc has been processed

    yes/no?Processingsuccessful/erroneous

    What type of error?

  • 8/6/2019 ALE for Functioanl

    27/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 27

    Topics to coverTopics to cover

    What is ALE ?

    Components of ALE.

    Anatomy of an IDoc.

    ALE Processing.

    i.Outbound Processing

    ii.Inbound Processing

    Transactions For Monitoring and Processing IDocs.

    Trouble Shooting

    ALE in typical Project Scenario.

    Questions

  • 8/6/2019 ALE for Functioanl

    28/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 28

    Basic Configuration ElementsBasic Configuration Elements

    Create and allocate Logical System BD54

    Define Ranges (Idocs, Ports, IDoc types, segment version, change

    pointers )

    Define RFC Destinations

    SM59 Define Ports WE21

    Maintain Customer Model BD64

    Create Partner Profiles WE20

  • 8/6/2019 ALE for Functioanl

    29/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 29

    Partner ProfilesPartner Profiles

    TCODE:

    WE20

  • 8/6/2019 ALE for Functioanl

    30/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 30

    Partner ProfilesPartner Profiles--OutboundOutbound

  • 8/6/2019 ALE for Functioanl

    31/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 31

    Distribution ModelDistribution ModelTCODE:

    BD64

    Required mainly formaster data

    Filter values set up for

    master data outbound

  • 8/6/2019 ALE for Functioanl

    32/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 32

    Outbound program development

    Program logic

    How is the IDOC being created ?

    Triggering

    How is the IDOC creation kicked off ?

  • 8/6/2019 ALE for Functioanl

    33/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 33

    Sending Master Data IdocsSending Master Data Idocs

    Only sendobjects that have

    changed ?

    Change

    Pointer

    available?

    Master

    data ?

    Standalone with

    custom logic to keep

    track of changes

    Change Pointer

    based Program

    y

    N

    Y

    Standalone programwith user-definable

    selection criteria

    N

    Y

  • 8/6/2019 ALE for Functioanl

    34/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 34

    Sending Transactional Data IdocsSending Transactional Data Idocs

    Ensure trans-

    actional

    Integrity?

    Output

    Determinat

    ionavailable ?

    Transaction

    Data ?

    hard coded ALE

    layerModification

    Output determination

    based Program

    y

    N

    Y

    N

    Y

    User-Exit

    available?

    N

    Hardcoded ALE layer

    no Modification

    Y

    See Master data

  • 8/6/2019 ALE for Functioanl

    35/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 35

    Change PointersChange Pointers

    Application Posting

    Post Application document

    Create Change Document

    Are changes ALE relevant ?

    Write Change Pointers

    Commit Work

    ALE configuration

    ALE relevant Fields

    Batch Program(RBDMIDOC)

    IDOCModule(Masteridoc_Create_

    SMD_)

    Read Change Pointers

    Fill IDOC

    Call ALE layer

    Update Change Pointer

    Master data

    Change pointers

    ALE layer

    Master_IDOC_DISTRIBUTE

    Determine IDOC module

    Call IDOC module

  • 8/6/2019 ALE for Functioanl

    36/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 36

    ALE Configuration ForChange PointersALE Configuration ForChange Pointers

    Define change pointer creation

    Define which change document fields are to be logged

    Change pointer activation

    Activate generally

    Activate per message type

    Publish new function module

    Link message type to function module

  • 8/6/2019 ALE for Functioanl

    37/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 37

    ALE For Transactional dataALE For Transactional data -------- Output DeterminationOutput Determination

    NACE

  • 8/6/2019 ALE for Functioanl

    38/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 38

    Output TypesOutput Types ---- Partner FunctionsPartner Functions

  • 8/6/2019 ALE for Functioanl

    39/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 39

    Output TypesOutput Types ---- Processing RoutinesProcessing Routines

  • 8/6/2019 ALE for Functioanl

    40/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 40

    Inbound Processing

  • 8/6/2019 ALE for Functioanl

    41/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 41

    Partner ProfilesPartner Profiles--InboundInbound

  • 8/6/2019 ALE for Functioanl

    42/87

  • 8/6/2019 ALE for Functioanl

    43/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 43

    Topics to coverTopics to cover

    What is ALE ?

    Components of ALE.

    Anatomy of an IDoc.

    ALE Processing

    Transactions For Processing and Monitoring IDocs.

    ALE in typical Project Scenario.

    Questions

  • 8/6/2019 ALE for Functioanl

    44/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 44

    Case 1: Distribution ofMaterial Master Data

    - Through Standalone program

    Steps Involved:

    1. Define Logical Systems [ SALE ].

    2. Assign Client to Logical System [ SALE ].

    3. Create RFC Destination [ SM59 ].

    4. Create Port [ WE21 ].

    5. Maintain the Distribution Model [ BD64 ].

    6. Create Partner Profiles [ WE20 ] or Generate them from distribution model [ BD82 ].

    7. Distribute the Distribution Model [ BD64 ].

    8. Ensure that Logical Systems, partner profiles are generated in the receiver too.

    (Configured when you distribute a distribution model)

    9. In the outbound parameters for sender partner profiles add the message type

    SYNCH and IDOC type SYNCHRON along with the material master message type

    and IDOC types: MATMAS and MATMAS03 respectively.

    10. Execute the process [ BD10 ].

  • 8/6/2019 ALE for Functioanl

    45/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 45

    ALE Monitoring Transactions

    List Of All IDocs CreatedList Of All IDocs Created - WE02/WE05

    Search using idoc data content - WE09

    Selection Program For Issuing OutputSelection Program For Issuing Output ---- WE15WE15

    Process All Selected IDocsProcess All Selected IDocs -- WE14WE14

    Process/monitor idoc

    BD87

  • 8/6/2019 ALE for Functioanl

    46/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 46

    Select IDocs BD87Select IDocs BD87

    Select for

    Re-processing error/unprocessed

    idocs

    Status-wise number if idocs

    Display Idocs

    Trace Idocs

  • 8/6/2019 ALE for Functioanl

    47/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 47

    BD87 contd

  • 8/6/2019 ALE for Functioanl

    48/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 48

    BD87 Contd

  • 8/6/2019 ALE for Functioanl

    49/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 49

    Some common idoc status

    Inbound :

    Success 53

    Errors 51

    Outbound

    Successfully created 30

    Successfully sent out 03

    Errors - 26

    G S

  • 8/6/2019 ALE for Functioanl

    50/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 50

    Idoc Test Transaction WE19 various options

    IBM Gl b l S i

  • 8/6/2019 ALE for Functioanl

    51/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 51

    Idoc Processing through test transaction WE19

    4 Processing Options

    Standard Inbound

    Inbound Function Module

    Inbound File

    Standard Outbound Processing

    New idoc gets created at end

    IBM Gl b l S i

  • 8/6/2019 ALE for Functioanl

    52/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 52

    Topics to coverTopics to cover

    What is ALE ?

    Components of ALE.

    Anatomy of an IDoc.

    ALE Processing.

    Transactions For Monitoring and Processing IDocs.

    ALE in typical Project Scenario.

    Questions

    IBM Gl b l S i

  • 8/6/2019 ALE for Functioanl

    53/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 53

    Appendix A

    Some Useful Transactions

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    54/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 54

    Appendix A

    To Create Idoc we need to follow these steps:

    Create Segment ( WE31)Create Idoc Type ( WE30 )Create Message Type ( WE81 )Assign Idoc Type to Message Type ( WE82 )

    Creating a SegmentGo to transaction code WE31

    Enter the name for your segment type and click on the Create iconType the short textEnter the variable names and data elementsSave it and go backGo to Edit -> Set ReleaseFollow steps to create more number of segments

    Create IDOC TypeGo to transaction code WE30Enter the Object Name, select Basic type and click Create iconSelect the create new option and enter a description for your basic IDOC type and press enter

    Select the IDOC Name and click Create iconThe system prompts us to enter a segment type and its attributesChoose the appropriate values and press EnterThe system transfers the name of the segment type to the IDOC editor.Follow these steps to add more number of segments to Parent or as Parent-child relationSave it and go backGo to Edit -> Set release

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    55/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 55

    Appendix A

    Create Message TypeGo to transaction code WE81

    Change the details from Display mode to Change mode

    After selection, the system will give this message The table is cross-client (see Help for further info). Press Enter

    Click New Entries to create new Message Type

    Fill details

    Save it and go back

    Assign Message Type to IDoc TypeGo to transaction code WE82

    Change the details from Display mode to Change mode

    After selection, the system will give this message The table is cross-client (see Help for further info). Press Enter.

    Click New Entries to create new Message Type.

    Fill details

    Save it and go back

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    56/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 56

    Idoc SegmentsIdoc Segments

    TCODE:

    WE31

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    57/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 57

    Idoc TypesIdoc Types

    TCODE:

    WE30

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    58/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 58

    How to Attach SegmentsHow to Attach Segments

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    59/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 59

    Message TypesMessage Types

    WE81WE82

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    60/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 60

    Logical SystemLogical System

    TCODE:

    BD54

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    61/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 61

    Allocate Logical System to the clientAllocate Logical System to the client

    SALE > BASIC SETTINGS > SET UP

    LOGICALSYSTEM >ASSIGN LOGICAL

    SYSTEMTOTHE CLIENT

    TCODE:

    SCC4

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    62/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 62

    Maintaining RFC DestinationsMaintaining RFC Destinations

    TCODE:

    SM59

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    63/87

    IBM Global Services

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 63

    Displaying and Maintaining PortsDisplaying and Maintaining Ports

    AA portport isis aa logicallogical representationrepresentation ofof aa

    communicationcommunication channelchannel inin SAPSAP withwith

    thethe datadata communicatedcommunicated beingbeing IDocsIDocs.

    TCODE:

    WE21

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    64/87

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 64

    Filter ObjectsFilter Objects

    BD95BD59

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    65/87

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 65

    FM Assignment to Message Type and IDoc typeFM Assignment to Message Type and IDoc type

    TCODE:

    WE57

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    66/87

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 66

    Process CodesProcess Codes

    WE41WE42

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    67/87

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 67

    Process Codes in Inbound and OutboundProcess Codes in Inbound and Outbound

    TCODE:

    WE64

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    68/87

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 68

    Change PointersChange Pointers

    BD61BD50

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    69/87

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 69

    Change Pointers ContinuedChange Pointers Continued

    BD52BD60

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    70/87

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 70

    FM For Inbound EDIFM For Inbound EDI

    TCODE:

    BD67

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    71/87

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 71

    Output DeterminationOutput Determination ---- Access SequenceAccess Sequence

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    72/87

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 72

    Output DeterminationOutput Determination ---- Output TypesOutput Types

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    73/87

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 73

    Output TypesOutput Types ---- DetailsDetails

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    74/87

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 74

    Output TypesOutput Types ---- ProceduresProcedures

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    75/87

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 75

    Output TypesOutput Types ---- Procedures ControlProcedures Control

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    76/87

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 76

    Output TypesOutput Types ---- Condition recordsCondition records

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    77/87

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 77

    List Of All IDocs Created. (Default, Additional, EDI)List Of All IDocs Created. (Default, Additional, EDI)---- WE02WE02

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    78/87

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 78

    Selection Program For Issuing OutputSelection Program For Issuing Output ---- WE15WE15

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    79/87

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 79

    Process All Selected IDocs. WE14Process All Selected IDocs. WE14

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    80/87

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 80

    Idoc Search For Business Contents (Database). WE09Idoc Search For Business Contents (Database). WE09

  • 8/6/2019 ALE for Functioanl

    81/87

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    82/87

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 82

    Case 1: Distribution ofMaterial Master Data

    - Through Standalone program

    Steps Involved:

    1. Define Logical Systems [ SALE ].

    2. Assign Client to Logical System [ SALE ].

    3. Create RFC Destination [ SM59 ].

    4.C

    reate Port [W

    E21 ].5. Maintain the Distribution Model [ BD64 ].

    6. Create Partner Profiles [ WE20 ] or Generate them from distribution model [ BD82 ].

    7. Distribute the Distribution Model [ BD64 ].

    8. Ensure that Logical Systems, partner profiles are generated in the receiver too.

    (Configured when you distribute a distribution model)

    9. In the outbound parameters for sender partner profiles add the message typeSYNCH and IDOC type SYNCHRON along with the material master message type

    and IDOC types: MATMAS and MATMAS03 respectively.

    10. Execute the process [ BD10 ].

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    83/87

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 83

    Send Material transaction BD10

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    84/87

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 84

    Case 2: Distribution ofMaterial Master Data

    - Through Change Pointers

    Steps Involved:

    1. Define Logical Systems [ SALE ].

    2. Assign Client to Logical System [ SALE ].

    3. Create RFC Destination [ SM59 ].

    4.C

    reate Port [W

    E21 ].5. Create Partner Profiles [ WE20 ].

    6. Enable Change Pointers globally [ BD61 ].

    7. Enable Change Pointers for a Message Type [ BD50 ].

    8. Specify the fields for which Change Pointers are to be written [ BD52 ].

    9. Changing the field in Master Data [ MM02 ].

    10. Execute the program RBDMIDOC to process the change pointers [ SE38 ].

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    85/87

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 85

    Case 3: Distribution of Transaction Data

    - Purchase Orders

    Steps Involved:

    1. Define Logical Systems [ SALE ].

    2. Assign Client to Logical System [ SALE ].

    3. Create RFC Destination [ SM59 ].

    4.C

    reate Port [W

    E21 ].5. Maintain the Distribution Model [ BD64 ].

    6. Create Partner Profiles [ WE20 ] or Generate them from distribution model [ BD82 ].

    7. Distribute the Distribution Model [ BD64 ].

    8. Ensure that Logical Systems, partner profiles are generated in the receiver too.

    (Configured when you distribute a distribution model)

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    86/87

    Copyright IBM Corporation 2003 ABAP | Confidential | ALE For Functional .ppt | 8/2/2011Slide 86

    Distribution of Transaction Data

    - Purchase Orders contd.

    9. OUTPUT DETERMINATION:

    a) Maintain condition table for PO:

    SPRO -> Materials Management -> Purchasing -> Message Determination ->

    Message Determination -> Condition Table forMessages -> Define condition

    table for purchase order -> Messages: Display Condition Table:

    b) Define Access sequence:

    SPRO ->Materials Management -> Purchasing ->Message Determination ->

    Message Determination -> Access Sequences -> Define Access sequence

    for purchase order.

    c) Configuring the output type:

    SPRO -> Materials Management -> Purchasing -> Message Determination ->

    Message Determination -> Message Types -> Define message types forpurchase order -> Maintain output types: Purchase order

    IBM Global Services

  • 8/6/2019 ALE for Functioanl

    87/87

    Distribution of Transaction Data

    - Purchase Orders contd.

    d) Indicate the permitted operations for which the output is activated

    SPRO -> Materials Management -> Purchasing -> Message Determination ->

    Message Determination -> Message Types -> Define message types for

    purchase order -> Fine- Tuned Control: Purchase Order

    e) link it to an output procedure (message schema):

    SPRO -> Materials Management -> Purchasing -> Message Determination ->Message Determination -> Message Schemas -> Define message schemas for

    purchase order -> Maintain output determination procedure: Purchase order

    f) Create condition records for the tables that are being accessed in certain

    sequences that we incorporated in the output type.

    Logistics -> Materials Management -> Purchasing -> Master Data -> Messages ->

    Purchase Order -> Create

    10. Create the PO [ ME21 ]

    enter a purchase order document type that was used for creating condition

    records during the configuration of output determination.

    11. Process the output [ WE15 ]