on 06-23-2011 6:22 PM
HI ,
Scenario : WS to SAP R/3 3.i BAPI.
Source structure.
ITEM_DETAILS 0..unbounded
a 1..1
b 1..1
c 1..1
d 1..1
Receiver :
ITEMv0..unbounded
SEQ 1..1
VAL 1..1
Mapping
I have Duplicate Receiver ITEM 4 items
Mapping
ITEM_DETAILS--- ITEM[1]
global counter ->SEQ
a----
>VAL
ITEM_DETAILS--- ITEM[2]
global counter ->SEQ
b----
>VAL
ITEM_DETAILS--- ITEM[3]
global counter ->SEQ
c----
>VAL
ITEM_DETAILS--- ITEM[4]
global counter ->SEQ
d----
>VAL
Problem:
when ITEM_DETAILS repeating more than once
my results are coming in this order
ITEM[1]
SEQ=1
VAL=x
ITEM[1]
SEQ=2
VAL=x
ITEM[2]
SEQ=3
VAL=x
ITEM[2]
SEQ=4
VAL=x
ITEM[3]
SEQ=5
VAL=x
ITEM[3]
SEQ=6
VAL=x
ITEM[4]
SEQ=7
VAL=x
ITEM[4]
SEQ=8
VAL=x
I need it in this order
ITEM[1]
SEQ=1
VAL=x
ITEM[2]
SEQ=2
VAL=x
ITEM[3]
SEQ=3
VAL=x
ITEM[4]
SEQ=4
VAL=x
ITEM[1]
SEQ=5
VAL=x
ITEM[2]
SEQ=6
VAL=x
ITEM[3]
SEQ=7
VAL=x
ITEM[4]
SEQ=8
VAL=x
I need the above sequence to disply , Kinldy help in doing this sequence and Sequence Number.
Thanks
Hi,
Create a reciver structure as
Record 0.. Unbounded
ITEMv0..unbounded
SEQ 1..1
VAL 1..1
Map Item_Detail to record and Item with a constant
To increment the counter, you need to develop the UDF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.