Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

Data Types in Map Editor:

String - Alphabets, Numbers, Special Characters(,.-)()


Integer - Numbers
DateTime - Date & Time

#E1 ---> String

#F1 ---> Number DataType

#F1 = #E1;

// Declaration
string[10] PONum;
integer PO_CNT;
datetime dtmCurrentDate;
string[20] a_arr[10];

{112233445321,2,3,4,5,6,7,8,9,10}

// Initialization

PONum="";
PO_CNT=0;
dtmCurrentDate=date(0,0,0);

Map Indexing:

1) Identify the No. of Indexing Places

2) How to manage the indexing

3) Identify the dependency to generate the occurance

4) Initialize Child Indexing to Zero in Parent Incrementation

Map Requirement:

Map S1 to R1 when S101 is "A"

Input:

S1*A*100*200*300~ ---> 1
S1*A*200*200*300~
S1*B*300*200*300~
S1*A*400*200*300~
S1*D*500*200*300~
S1*A*600*200*300~

Output Should be:

R1 A 100 200 300


R1 A 200 200 300
R1 A 400 200 300
R1 A 600 200 300

Logic in S1 OE:

If #E1="A" Then
Begin
R1_CNT = R1_CNT + 1;
$Temp_R1[R1_CNT].#Temp_F1 = #E1;
$Temp_R1[R1_CNT].#Temp_F1:2 = #E1:2;
$Temp_R1[R1_CNT].#Temp_F1:3 = #E1:3;
$Temp_R1[R1_CNT].#Temp_F1:4 = #E1:4;
End

Map Execution:

R1_CNT = 4

$Temp_R1[4].#Temp_F1 = A;
$Temp_R1[4].#Temp_F1:2 = 400;
$Temp_R1[4].#Temp_F1:3 = 200;
$Temp_R1[4].#Temp_F1:4 = 300;

Incrementation Inside IF condition:


R1 A 100 200 300
R1 A 200 200 300
R1 A 400 200 300
R1 A 600 200 300

Incrementation Outside IF condition:


R1 A 100 200 300
R1 A 200 200 300
3rd instance is empty
R1 A 400 200 300
5th instance is empty
R1 A 600 200 300

You might also like