cancel
Showing results for 
Search instead for 
Did you mean: 

Node Mapping Problem

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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.