‎2008 Apr 24 9:38 AM
hi guys
i have a custom BAPI with a BDC within it..however im getting an error on process screen saying input value is longer than screen field. i added the code below to go around that error but now again another error occurs
DATA: BEGIN OF itab_amount OCCURS 0,
turnover_local(29) TYPE c,
turnover_export(29) TYPE c,
interest(29) TYPE c,
other_income(29) TYPE c,
tax(29) TYPE c,
trading_acc_exp(29) TYPE c,
opening_v_assets(29) TYPE c,
expenses(29) TYPE c,
closing_v_assets(29) TYPE c,
capital_employed(29) TYPE c,
non_ded_exp(29) TYPE c,
penalty(29) TYPE c,
cap_allowances(29) TYPE c,
withholding_tax(29) TYPE c,
non_taxable_inc(29) TYPE c,
directors_wh_tax(29) TYPE c,
other_all_ded(29) TYPE c,
other_tax_paid1(29) TYPE c,
assessed_loss_bf(29) TYPE c,
other_tax_paid2(29) TYPE c,
other_tax_paid3(29) TYPE c,
tax_on_taxable(29) TYPE c,
credits(29) TYPE c,
provisional_tax(29) TYPE c,
history(1),
END OF itab_amount.
MOVE-CORRESPONDING assessment_import TO itab_amount.
the fields have he same definition data element which is a currency field of 21.2
now i get the error that i shud enter values in the format __,___,___,___,___,___,___.__ since the output length is 29 for the domain of the data element.
please can i have some ideas on how to go around this error??
regards
prince
‎2008 Apr 24 9:55 AM
Hi,Prince,
Try to shorten the fields length in your definition , in sap the length of amount field is often 13.
Best Regards
Pole
‎2008 Apr 24 10:02 AM
unfourtunately Pole im in an environment with an inflation rate of 165 000% so within the next few weeks the fields currently accomodating 21 will have to take on more.
anyway i cannot reduce the lengths..
any more ideas??
‎2008 Apr 24 10:14 AM
Isaac,Which tcode you used in BDC? you can not fill data longer than the definition of the fields in standard tcode.
‎2008 Apr 24 10:58 AM
i have a custom process with a custom tcode, i need to have a simulation thru a BDC call transaction afta data has been passed thru a BAPI.
‎2008 Apr 29 4:12 PM
Hie gurus,
i have made some progress regarding my issue however i am experiencing another error. the requirement for the data is that i moved data to an internal table with data type with equivalent length however wen i pass that value which is coming from data type C i get the error that values shud be in currecy format...how can i solve this????
‎2009 Jul 15 5:27 PM
hie guys
Fiscal policies changed and we are now using a stabler currency. No more 29 Char fields
regards
Isaac Prince