on 04-01-2008 11:57 AM
Hi Friends,
I am working on WP_PLU Idoc, i got struck with one mapping issue.
In my article master , line items text description is available in one segment which repeats twice for each article.
based on the logic
if qualifiertxt = LTXT then i have to pick the description
if qualifiertxt= 02 then i have to pick and copy the same to sales description
when i map based on condition one line item will work fine.
the problem, if i have more no of line items..
in second line item , i am not getting first description .But i am gettingsalesdescriiption.
Can any suggest on this..
Regards,
Vijay
Hi Vijay,
for more no of line items you should use "UseOneAsMany" function for the line item description.
reply if you need more help.
**Reward points if helpful.
--Sankar Choudhury
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for all your inputs. If i use copy value function i will get the repeated text description for all the line items...
It should work as per input description for each line item
In idoc the same segment is repeating twice,
with two values..
First segment it is coming like ..
If qualifier text = LTXT t
value. ..... pick
during display queue..my output is
first two values are populating followed by two suppress values..then values, again suppress..
Second segment with same name..
if qualifier text = 02
value . ..... pick
I have to map to two target desctiptons
here both the descriptions are same
..
description
sales descripti
..
Hope i am clear..
Any suggestions please..
Regards,
Vijay
Hi,
Here you are getting same description in each line item, so by using copyValue() it just coping your first line item descand sinc two desc are same it seems like taking the 2nd line item desc, but the problem will occur when the description will be different so i suggest you to use "UseOneAsMany", it will copy the desc from each line item(no matter the desc are same or different).
**Let me know if any issue with it...
--Sankar Choudhury
Hi,
if you are getting in output display queue first two values are populating followed by two suppress values..then values, again suppress.
then, just add the following functions in the target mapping of sales description...
->removeContexts>splitByValue[EachValue]-->SalesDescription
by it you can get two descriptions in target.
*Reward points if helpful.
--Sankar Choudhury
Hi,
Have u applied Context change in mapping
/people/riyaz.sayyad/blog/2006/04/23/introduction-to-context-handling-in-message-mapping
Regards
Seshagiri
Edited by: N V Seshagiri on Apr 1, 2008 1:04 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
use copyValue function for line item.
reward points if helpful.
regards,
arijit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.