cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Issue: How to split the value of Lineitem

Former Member
0 Kudos

Hi All,

I have issue in Mapping .XML-> BAPI Scenario

1 line item has the one 50% Cost Centre , another 50% Cost centre data

2 line item has only 100% WBS elemnt

WBS elemnt mapping :

If A |EQUALS (Text) | WBS_ELEMNT |If without else| B(WBS value) |REmoveContexs| SplitByValue| WBS_ELEMNT(BAPI field)

But this supress second line item : WBS_ELEMNT data and uploads into1.Item .Hence PO is not getting created in SAP.

Could you please giv me a logic to actaually split the value into 2 seperate so that respective data of each line item are split properly .

Thank you ,

Vara

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi I think you need an udf for this:


int total = Integer.parseInt(value[0]);
result.addValue(Integer.toString(a/2));
result.addValue(Integer.toString(a/2));

and after it you can add a splitbyvalue