cancel
Showing results for 
Search instead for 
Did you mean: 

Problem to map conditional tag deep in Graphical mapping

Former Member
0 Kudos

Hi expert,

I have a problem to map the following:

Source

OrderTag 1..1

OperationTag 0..unbounded

StatusTag 0..unbounded

User 1..1

Target

OrderTag 1..1

OperationTag 0..unbounded

UserStatusTag 0..unbounded

SystemStatusTag 0..unbounded.

For each StatusTag with field User=X in Target XML has to be UserStatusTag otherwise SystemStatusTag.

The following mapping doesn't work because Operationtag is 0..unbounded:

( StatusTag=>SplitByValue(EachValue)=>exists ) AND

( Status = X ) =>removecontext => CreateIf =>UserStatusTag

This one also does not work:

User=>RemoveContext=> Equals( with Constant(X))

=>CreateIf=>UserStatusTag.

How to get User or SystemStatusTag onder right OperationTag???

Anyone to help with this mapping?

Thank you.

Kind regards,

Danijela Zivanovic

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

HI,

make use of The node function UseOneAsMany...

your problem will get solved....

refer to this blog....

and refer to this document

http://help.sap.com/saphelp_nw04/helpdata/en/ef/df564b6aa24fc9ab0d685460747de5/frameset.htm

thanks,

Madhu

Edited by: Madhu sudhan Reddy on Jul 22, 2008 11:52 AM

Former Member
0 Kudos

Hi Madhu,

UseOneAsMany doesn't work.

I still get all StatusTags onder first OperationTag, like all StatusTags from all Operations from Source are colleacted and put into first OperationTag in Target.

Any other help?

Regards,

Danijela

Former Member
0 Kudos

Hi,

You need to play around the context changes.....

Thanks,

Madhu