cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping IDOC ORDERS -> Xcbl orders 3.0

laurent_touillaud
Contributor
0 Kudos

Hi,

Could anyone tell me where i can find standard mapping for IDoc ORDERS03 to the Xcbl Orders 3.0?

We have strange mapping issues with the texts as these can be empty. This is causing problems in the mappings.

Thanks for your help.

Regards,

Laurent.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hey

>>We have strange mapping issues with the texts as these can be empty

what is the error you are getting?and in case the field is empty,what do u wanna do?

thanx

Aamir

Former Member
0 Kudos

may be try with mapWithDefault function or write some UDF.

Thanks

Shubhankar

laurent_touillaud
Contributor
0 Kudos

Ok here is my case example:

source structure :

E1EDP01 (item 1)

POSEX

-E1EDPT1(0..9999)

--E1EDPT2(0..9999)

---TDLINE(0..1)

E1EDP01 (item 2)

POSEX

-E1EDPT1

--E1EDPT2

---TDLINE

-E1EDPT1

--E1EDPT2

---TDLINE

E1EDP01 (item 3)

POSEX

E1EDP01 (item 4)

POSEX

-E1EDPT1

--E1EDPT2

---TDLINE

Target structure :

ListOfStructuredNote(0..1)

-StructuredNote(0..9999)

--GeneralNote(0..1)

mapping one to one:

POSEX -> ListOfStructuredNote

E1EDPT2 -> StructuredNote (context on E1EDP01)

TDLINE -> GeneralNote(0..1)

The two first structures are mapped ok

But the General note is missing one context because item3 has no texts.

I need to add this context otherwise the 4th TDLINE is getting in the 3rd Structurednote.

Is UDF obligatory because it would be my first?

Thanks....

Laurent

Former Member
0 Kudos

Hi

Just try with this UDF..

String lflag = "";

int cnt = 0;

cnt = b.length;

for(int i=0;i<a.length;i++)

{

if(a<i>.equals("true"))

{

result.addValue(b[cnt -1]);

lflag = "X";

}

}

if(lflag.equals(""))

{

result.addValue("");

}

Regards,

Kumar

laurent_touillaud
Contributor
0 Kudos

Hi Kumar,

are the two import like this?

E1EDPT2----->UDF(a)

TDLINE----


>UDF(b)

Because the result is blank everytime.

The entries in (a) are just context changes with blank values.

In the UDF ot tests 'true'.

regards

Laurent.

laurent_touillaud
Contributor
0 Kudos

Solution has been found with standard function 'FormatByExample'.

You have one input with context changes and other input with list of values without context change. The result adds the context change to your input list.

Regards,

Laurent.

Former Member
0 Kudos

Hey

i m not sure about Xcbl but is this what you are looking for ?

/people/ravikumar.allampallam/blog/2005/02/28/creating-sales-order-through-idoc

Thanx

Aamir

laurent_touillaud
Contributor
0 Kudos

Hi Aamir,

It's from Idoc to xcbl (not to IDOC like your thread)

The problem is in text mappings to the xcbl format.

Please help,

Thanks

Laurent.