on 05-01-2012 4:07 PM
Hi,
This is my source file extract.
Cost Center ExtractId Amount
C1 1
C1 1
B2 2
B2 2
Based on each cost center, I need to create the idoc.
Please advise me how to achieve it using graphical mapping.
Regards
Anandh.B
first change IDoc occurance to 1 to unbounded(take xsd of IDoc and change it manually and upload as external definition) and use the same XSD in message mapping.
Cost centre----->splitbyvalue(value change)------>IDoc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
My other requirement is I also need to add an extra dummy record on the total amount of summing of costcentre at group level and create one more debit entry in the idoc.
For Eg.,
Cost Center ExtractId Amount
C1 1 1000
C1 2 2000
B2 1 3000
B2 2 4000
With this I will have two idocs based on C1 and B2. In first idoc, i will need to add an mapping by summing the amount for C1 alone and similarly for B2 as well. Say 3000 for C1 and 7000 for B2.
Assume that the field is WRBTR
One entry of WRBTR will contain 3000 for C1 and 7000 for B2 at cost centre level.
Regards
Anandh.
Hi,
Here is how I would calculate the totals for each Cost Center, without using UDF:
Amount -----------------------------------------------> formatByExample -> sum -> WRBTR
CostCenter -> SplitByValue(ValueChange) ->
It assumes that your entries are sorted by CostCenter value as in your example, if this is not true, use sort for CostCenter and sortByExample(CostCenter) for Amount.
Hope this helps,
Greg
If you have difficulty in changing the idoc occurence and import it as external definition, Please go through this link
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.