ale-idoc-end-to-end

Upload: ssannue-laema

Post on 04-Jun-2018

219 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/14/2019 ALE-IDOc-END-TO-END

    1/24

    ALE-IDOC Scenario using Custom IDOC

    Aim: Transfer the data from one system to another using user customized IDOC.

    Sender System:

    Client: 800

    Data from Z table: zsach1 is having fields MANDT, NAM!, "NAM

    ReceiverSystem:

    Client: 810

    Data from Z table: zsach1

    Data is fetched from Z table on the sender s#stem and inserted it in the Z table of $eceiver s#stem %singA!&'D(C)

    Settings on the Sender End

    Table Creation T * Code +!11) The table contains data that is to be sent to $eceiver)

    ALE Configuration

    TCode * +A!

    Defining Logica System

  • 8/14/2019 ALE-IDOc-END-TO-END

    2/24

    !"" is our sender

    #"" is our receiver

    Assigning Cient to Logica System

    !"" is our sender

    #"" is our receiver

    Defining Target System for R$C Cas %Tcode & S'()*

  • 8/14/2019 ALE-IDOc-END-TO-END

    3/24

    Clic- on $&. Connections and then Create TA/

    +te 1

    Ste+ !

  • 8/14/2019 ALE-IDOc-END-TO-END

    4/24

    +ave and test the connection)

    Defining ,ort

    The sender s#stem is connected to the receiver s#stem thro%gh this ort)

  • 8/14/2019 ALE-IDOc-END-TO-END

    5/24

    Defining ,artner ,rofies

    The artner for client 2003+ender4 is the client 800 3$eceiver4

    +ince this is a sender 5e have to define onl# (%tbo%nd arameters in this case)

    6ere #o% can see the Message t#e is Z message t#e)

    2) Maintaining Distrib%tion Model 3 TCode /D7 4

  • 8/14/2019 ALE-IDOc-END-TO-END

    6/24

    Create ne5 Distri-ution 'ode

  • 8/14/2019 ALE-IDOc-END-TO-END

    7/24

    Add Message T#e

  • 8/14/2019 ALE-IDOc-END-TO-END

    8/24

    o/ Distri-ute this 'ode 0ie/

    Distrib%te it from !ditModel 9ie5Distrib%te

  • 8/14/2019 ALE-IDOc-END-TO-END

    9/24

    Defining the 1 Segment ty+e

    Tcode & 2E34

    Defining the 5asic Ty+e

    T Code 2E3"

    Cic6 on e/

  • 8/14/2019 ALE-IDOc-END-TO-END

    10/24

    This /i ta6e you to ne7t screen as foo/s

  • 8/14/2019 ALE-IDOc-END-TO-END

    11/24

    8ere you have connected the -asic ty+e to the segment ty+e.

    !nter again and this 5ill ta-e #o% to screen as follo5s

    This sho5s the relation bet5een the basic and the segment t#es)

    Net #o% need to ma-e the entr# of the segment in the s#stem table)

    Tcode : 2E#4

    e7t is the foo/ing entry /hich is re9uired.

  • 8/14/2019 ALE-IDOc-END-TO-END

    12/24

    8ere you are s+ecifying the message ty+e and the-asic ty+e and the reease version.

    This is a a-out the configuration you need to do on the sender side.

    o/ on the sender side you aso need a +rogram that /i fetch the re9uired data cou+e it in theIDOC format and +ost it.

    8ere is a sma +iece of code that coud -e usefu.

    ;+T='D(C ;;< ;;

  • 8/14/2019 ALE-IDOc-END-TO-END

    13/24

  • 8/14/2019 ALE-IDOc-END-TO-END

    14/24

    Settings on the Receiver side %In-ound idoc*

    The A! config%ration is same as 5e did it on the sender side) lease refer to earlier ages)

    The receiver secific differences are mentioned belo5)

    TCode * +A!

    200 is o%r sender

    800 is o%r receiver

    Ste+s

    Defining ogical +#stem 3+ame as sender4

    Assigning Client to ogical +#stem 3+ame as sender4

    Defining Target +#stem for $"C Calls 3Tcode * +MG4 3+ame as sender4

    Defining ort3+ame as sender4

    Defining artner rofiles * 6ere 5e are acceting the data from +ender s#stem) 6ence 5e need toconfig%re it as 'nbo%nd)

  • 8/14/2019 ALE-IDOc-END-TO-END

    15/24

    Clic- on the sign above to go to net screen)

  • 8/14/2019 ALE-IDOc-END-TO-END

    16/24

    6ere the message t#e is to be created again as it 5as created on the sender side)

    The follo5ing stes are reeated, as done on the sender side, on the receiver end

    Tcode H!.0

    Tcode H!.1

    Tcode H!82

    Tcode H!81

    6ere on the receiver end, 5e need to secif# a rocess code at the time of defining the artner rofile)

    rocess code is something that has the logic defined abo%t 5hat to be done after receiving the 'D(C)

    'n o%r case, on receit of the 'D(C, 5e are %dating the Z Table) i)e 'nserting the data from the 'D(C intothe Z Table)

  • 8/14/2019 ALE-IDOc-END-TO-END

    17/24

    Creating a ,rocess Code

    Tcode & 2E;!

  • 8/14/2019 ALE-IDOc-END-TO-END

    18/24

    The logic associated is coded in the $unction 'odue 5hich is secified in the 'dentification "ield above)

    Also the rocessing t#e is selected as ,rocessing -y $unction 'odue as above)

    The f%nction Mod%le is secified in the follo5ing screen)

    To have your function Module in the above drop down list, the entry is to be made using the

    following transaction

  • 8/14/2019 ALE-IDOc-END-TO-END

    19/24

    TCode & 5D(4

    (nce the entr# is done here, the f%nction mod%le aears in the dro do5n list in the revio%s stage)

    Aso it is im+ortant to ma6e the foo/ing entry

    Tcode 2E(CT>$! MA+++A9'N";I (T'(NA;I !K($T'N;I 9A>!3H($J"(H=$!+>T4 'J! /DH"=A$AM$!+>T;I 9A>!3A'CAT'(N=9A$'A/!4 'J! /DH"=A$AMA=9A$;I 9A>!3'N=>DAT!=TA+J4 'J! /DH"A=A$>DAT!TA+J;I 9A>!3CA=T$AN+ACT'(N=D(N!4 'J! /DH"A=A$CAT$AN+;I TA/!+;I 'D(C=C(NT$ +T$>CT>$! !D'DC;I 'D(C=DATA +T$>CT>$! !D'DD;I 'D(C=+TAT>+ +T$>CT>$! /D'D(C+TAT;I $!T>$N=9A$'A/!+ +T$>CT>$! /DH"$!T9A$;I +!$'A'ZAT'(N='N"( +T$>CT>$! /D'=+!$;I !KC!T'(N+;I H$(N=">NCT'(N=CA!D;I data:5a=data li-e edidd, it=data li-e table of 5a=data, 5a=cont li-e edidc, it=cont li-e table of 5a=cont,

    5a=stat%s li-e bdidocstat, it=stat%s li-e table of 5a=stat%s)data : gen=segment li-e ediddsegnam val%e ?Z+AC6?)

    data: 5a=em li-e zsach1,

    begin of 5a=em=tem, lname li-e zsach1lname, fname li-e zsach1fname, end of 5a=em=tem)

    it=data @ idoc=dataL) it=cont @ idoc=contrlL)

    loo at it=data into 5a=data) read table it=cont into 5a=cont 5ith -e# docn%m @ 5a=datadocn%m) if s#s%brc @ 0)

    if 5a=datasegnam @ gen=segment) 5a=em=tem @ 5a=datasdata) movecorresonding 5a=em=tem to 5a=em) insert zsach1 from 5a=em) if s#s%brc @ 0) 5a=stat%sdocn%m @ 5a=datadocn%m) 5a=stat%sstat%s @ ?.?)

    else) 5a=stat%sdocn%m @ 5a=datadocn%m) 5a=stat%sstat%s @ ?1?) endif) aend 5a=stat%s to it=stat%s) clear 5a=stat%s); 'D(C=+TAT>+L @ 'T=+TAT>+) endif)

    endif)

  • 8/14/2019 ALE-IDOc-END-TO-END

    22/24

    endloo)

    idoc=stat%sL @ it=stat%s)endf%nction)

    OTE: 2e can aso /rite the a-ove as discussed in Cass

    TESTI=

    Running the A++ication

    Sender system

    !ec%te the rogram 5e created earlier

    Chec-ing the 'D(C

    T Code 2E"!

  • 8/14/2019 ALE-IDOc-END-TO-END

    23/24

    Chec6ing the data on the Receiver end

    Tcode: 2E"!

    The 'D(C has arrived here

    Chec6ing the Data

    Do%ble clic- on the 'D(C

  • 8/14/2019 ALE-IDOc-END-TO-END

    24/24

    Chec-ing the Database

    This way, the data has come to the receiver end successfully.