Академический Документы
Профессиональный Документы
Культура Документы
IZING
---------------------------------------------------------------------------------------------------------------------------------------------------------------An IDOC consists of a control record and a data record .
Control record is represented by a type EDIDC.
Data Record is represented by a type EDIDD.
Control records contains the sender and receiver details as well as the informat
ion
of type of message .
Distribution model is the central controlling instance for ALE.
The ALE layer always interrogated the distribution model, if the application doe
s not specify
a receiver all receivers are determined and a IDOC is created for each one. If s
pecified a check
is made against the distribution model to see whether the necessaru authorizatio
n.
There are two functional modules that can interrogate the Distribution model whi
ch are given below
-> ALE_MODEL_DETERMINE_IF_TO_SEND
-> ALE_MODEL_INFO_GET
The first module is called with the parameters message type and logical receivei
ng system.
First of all , with the given parameters it check the ale distribution model whe
ther a
message flow is maintained for that type if 'Yes' it will send a parameter IDOC_
MUST_BE_SEND
with 'X' else it is returned from the function module as initial which is '' / [
NULL].
Similarly the second function module which is ALE_MODEL_INFO_GET used for comple
x queries made
to the distribution model. This is callled with message type and inturn we get a
ll the recipients
of this message type as well as associated filter objects. If nothing is present
we get an exception
'no_model_info' found.
All the filtrations are performed in the ALE layer itself.
List of the fields of the control record.
Field
Description
Comment
Mandatory/optional
------------------------------------------------------------------------------------------------------------mestyp Logical message type
Conveys the business meaning of the mes
sage.
M
idoctp Basic structure of the IDoc.
Identifies the layout set that uses thi
s message.
M
--------------error_in_idoc_control
oc type specified.
No IDoc create
d, although recipient was preset by application.
error_in_idoc_data
- No data records passed.
error_writing_idoc_status
- Technical problems when writing status records
.
sending_logical_system_unknown - Own logical system could not be determined.
-----------------------------------------------------------------------------------------------Filtration of IDOC's bases on material number or Material type:
---------------------------------------------------------------If, as in the above example, you want to link the outbound IDoc with the materia
l number,
the material number has to be read from the IDoc data part. However the ALE laye
r takes the IDoc data
as unformatted character strings. ALE therefore needs to know from which message
type, segment and fields
the ALE object material number can be read. The same applies to the ALE object "ma
terial type", which is
used to determine the receiver.
To define ALE objects, choose ALE Development ?IDocs ? Data Filtering ? Define F
ilter Object Type (BD95).
---------------------------------------------------------------------------------------------------------To assign the ALE object type that you want to link to each outbound IDoc to you
r message type,
-----------------------------------------------------------------------------------------------------------choose IDoc ? Relationships ?Define Link Object Type for Message Type (BD57).
-----------------------------------------------------------------------------------------------------------The link between the application object and the outbound IDoc is created using t
he BOR.
For this, the BOR object type must be specified for the message type. Example: B
US1001 for the material number.
To carry out these functions choose IDoc ? Relationships Assign Business Object
to Message Type (BDA4).
---------------------------------------------------------------------------------------------------------------Outbound processing using Message control .
------------------------------------------IDoc dispatch is triggered in Message Control and not in the application.
In this process must create an outbound process code. The process code determine
s the function module of the application that creates the IDoc.
For the combination application / message type, you can use the following transm
ission media: "6"
(without ALE model, no conversion of NAST recipient on corresponding logical sys
tem) and
"A" (with ALE model).
Transmission medium 6: you should call form routine edi_processing(rsnasted) fro
m Message Control.
Transmission medium A: you can use form routine ale_processing(rsnasted) or writ
bdwfap_p
-------------> Not used
Mass_Pro
cessing
It is initial when the methods
InputForeground or InputBackground are invoked;
otherwise it contains "X".
------------------------------------------------------------------------------------------------Export
<-In_Update_Task
---- IF UPDATE TASK IS PERFORMED
<-Call_Tra
nsaction_Done --- IF CALL TRANSACTION IS DONE
<-Workflow
_Result ----- IF ANY EVENTS ARE TRIGGERED
<-Applicat
ion_Variable ---- OPTIONAL PARAMETER PASSED ON TO WORKFLOW
-------------------------------------------------------------------------------Tables
edidc
-->
-------------> This table contains one entry for
Idoc_Contrl
Idoc_Dat
---------------> This
the
segment s data.
tus
ble should contain one record for each IDOC
ariables
ining document numbers of IDOc
<-Idoc_Sta
bdidocstat --------------> A ta
<-Return_V
bdwfretvar -------------->A table conta
<--
ation_Info
tion exists
bdi_ser
Serializ
--------------> if serializa
-------------------------------------------------------------------------------Exception
Wrong_Function_C
alled