on 05-18-2012 6:28 AM
HI
I am working on File to IDOC scenario, and did the mapping.
It is based on company code at source and trigger IDOCs.
I am in a sitation that i am passing the Amount from Source to target(IDOC). but the thing is i need to send the negative amount based on Credit.
right now my flow is like below:
companycode ---> removecontexts --->
sort by Key ----> Splitby value change(Each) ---> amount (in target IDOC)
amount (source) --->removecontexts --->
Please let me know how can i pass the negative value when the other fileld of Source is credit/debit.
Looks like simple....but tried to implement like below
by using if condition at the Source amount and sending the negative value....but no luck...
Please help...
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Amit,
It looks like your logic is working ....only the issue is for the first record as it is Credit and taking as (--)
double hyphen ...ie - - 1000.88
where as for Debit it is taking as ( - ) single hyphen...ie. -1000.88
Which are wrong......need to do small correction.....
which will show as below
Credit : - 1000.88
Debit : 1000.88
I changed my logic same way....Please help in this.
Thanks
What is the reqirement to send negative/Positive values, give some sample values for creedit then we will try give logic.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sample Data:
companycode credit/debit Amount
1000 C 1234.00
1000 D 1234.00
2000 C 4321.00
2000 D 4321.00
These are the few field values......so based on Compnay code i need to pass the first two records to a BAPI with amount one is positive and the second one is negative like this.... to post one IDOC.
have mentioned the logic above and see it below also that i am passing the amount to IDOC....
companycode ---> removecontexts --->
sort by Key ----> Splitbyvalue(Each) -->amount (in target IDOC)
amount (source) ->removecontexts -->
thanks
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.