on 04-03-2006 3:46 PM
Hi helpers!
I'm still learning and I wonder how can I do the next:
I have one source file that has two types of lines, one header and 'n' normal lines. There is an field in the header with information I need in every normal line of the target file.
I imagine that there is a way to record the value in that field into a variable so I can access to it for every target line.
Hope I've explained myself. Thankyou!.
HI,
If i am getting you correctly , you want to map a value from the header of the source to the target field on the details (normal) lines.
I think this can be achieved through a normal mapping to .
just map the value in the source header to the target field.
so the target field will extract the value from the header source field whenever the line occurs.
Thanks
Nikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Just you need to set the value for Date field in the Global Variables ( SP14) /Global Containers. And in the line item level, you need to get that value.
This blog explains in detail-
/people/michal.krawczyk2/blog/2005/03/04/globalcontainer--in-graphical-mapping-xi
Hope this helps
Thanks,
Moorthy
Hi,
You can adopt one of the logics below
1) store it in a global variable and use it in mapping (as suggested by others)
2) store it ina global container (in a simple user-defined mapping) and use it in item level mapping
3) use the standard node function useOneAsMany..which doesnt require any java mapping. But this is resource intensive.
praveen
Hi Smitha,
Assume the following
Source:
RECORD
--LINE_H (1 ocurrence)
-
DATE (The field I want)
--LINE_I (n ocurrences)
-
FLD_I (1 occurrence)
Target:
RECORD
--LINE_I (n ocurrences)
-
DATE_EXEC (1 occrrence)
-
FLD_I (1 occrrence)
/Record/LINE_I = /Record/LINE_I/FLD_I[context=Record]
/Record/LINE_I/DATE_EXEC = useOneAsMany(
/Record/LINE_H/DATE ,
/Record/LINE_I/FLD_I[context=Record] ,
/Record/LINE_I/FLD_I)
/Record/LINE_I/FLD_I = /Record/LINE_I/FLD_I
Check whether this works out. I dint test it yet.
Its possible using useOneAsMany.
praveen
hi,
you can use global variables if you are on SP14 or above.
Just save the value in the global variable and then use it in your mapping for other fields.
Refer this blog on the same,
/people/sap.user72/blog/2005/10/01/xi-new-features-in-sp14
If you are not on SP14, you can use the CONCAT function available in the standard functions-- TEXT functions and concat this value with the value of other fields also,
Refer top this link for standard functions in XI,
http://help.sap.com/saphelp_nw04/helpdata/en/2c/2d8c4024d26e1de10000000a1550b0/content.htm
Regards,
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
There is a concept of Global Container. You can use this for this reason.
http://help.sap.com/saphelp_nw2004s/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm
And you can write small java user defined to achieve this without using Global Container.
Hope this helps.
Regards,
Moorthy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.