on 02-18-2005 1:21 AM
i am working with fs10 transaction
I want to sum up the balance amount with respect to all
companycode and post SUM to the bseg table using Batch input.
i defined sum variable as below and coded.
-
data : sum like glt0-hsl01. (currency format)
After all SUM operation.
I have done like this to diplay SUM in report first(to check SUM output)
SUM = SUM * 100.
write : sum decimals 0.
>>>>Now in report output i get value '17,222-'
if u see in fs10 screen we are getting same value.
-
but when i try to post in Batch input.
i have done like this below.(before posting i have checked
for negative value )
if sum < 0.
sum = sum *100.
compute sum = abs( sum )
now...
perform open_group................
perform bdc_field using 'bseg-wrbtr' (currency format)
sum.
-
when i execute this BI i get error in Amount(Sum)value
display screen. (saying something differs in length )
how to match the field.
ambichan.
Hello,
Go to the Domain of the Field BSEG-WRBTR, which is WERT7. There you see the Output length as 16. So you decalre a local variable in BDC which is of CHAR16 in length to hold the value of WRBTR.
Hope this helps you.
Regds, Murugesh AS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.