Skip to Content
0

use one as many function not working as expected in sap pi mapping

Nov 21, 2016 at 09:24 AM

50

avatar image
Former Member

Hi,

My source structure is as follows:

IDOC--->ZINVI
|

ZBSERI--->ZPRICEI--->ZTEXTI(all are at same level)
| |

CHARG ZTEXTID
|
TDLINE

My receiver structure is as follows:

IDOC---->E1EDL24
|
E1EDL41
|
POSEX

Now E1EDL24 segment should be populated based on CHARG value from ZBSERI segment of the ZINVI source structure. That I am able to populate it.So, if I have 6 CHARG values from source structure then 6 E1EDL24 segments should populate and in that 6 E1EDL41 segments, I should have 6 POSEX values. Now POSEX is mapped to TDLINE of source structure. So, if there are 2 ZINVI segments coming in the source structure with 6 CHARG values and 2 ZTEXTID segments coming with 2 TDLINE values. I have to populate 6 POSEX values in receiver structure. i.e TDLINE should duplicate with two context changes of ZINVI.i.e if TDLINE has two values 40 and 50 then 6 POSEX should create(as there are 6 CHARG values) with first 3 values in each segment as 40 and next 3 values in each segment as 50.

But the above use one as many function is not working as expected.

Thanks,

Richa.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers