‎2011 Apr 11 7:45 AM
Hi ABAP GURUS & EXPERTS,
I am getting an ABAP error during F.05 (Posting of Foreign currency valuation):
Runtime errors CONV_EXIT_FIELD_TOO_SHORT
-
Source code extract
000010 FUNCTION CONVERSION_EXIT_ALPHA_INPUT.
000020 *" -
000030 *"Lokale Schnittstelle:
000040 *" IMPORTING
000050 *" INPUT
000060 *" EXPORTING
000070 *" OUTPUT
000080 *"
000090
> CALL 'CONVERSION_EXIT_ALPHA_INPUT' ID 'INPUT' FIELD INPUT
000110 ID 'OUTPUT' FIELD OUTPUT.
000120
000130 ENDFUNCTION.
-
I am using standard program and function. When I check the function (SE37) found there is no Type Spec. and Associated Type defined for Input (IMPORT) and Output (EXPORT)
I have checked on SDN but nor find any solution. I am new for ABAP. So, please help me.
Thanks in Advance.
DSC
‎2011 Apr 11 7:54 AM
May be length of output paramter is less than input parameter.
Ouptut paramter length should be equal or greater than input parameter's length. Change it.
Below code is an example that will go for runtime error
DATA: L_NUM(3) TYPE C,
L_NUM1(2) TYPE C.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = L_NUM " Length is 3
IMPORTING
OUTPUT = L_NUM1. " Length is 2. It should be greater than or equal to 3.
‎2011 Apr 11 8:03 AM
Go in debug mode (/h) it may happen you are missing some parameters whicle posting, check at the said function module and see the input-output field value and properties. I think at-least this much of information is required for any one to pinpoint or suggest any answer.
‎2011 Apr 11 8:12 AM
Thanks all for your reply,
During my testing I have come to know one more interesting thing.
The error is appearing only for some G/L. While for some G/L system generating the ABAP ERROR message.
Unable to understand WHY? and What to check??
Please help.
DSC
‎2011 Apr 11 8:20 AM
Hi,
The solution provided by SAP Fan above should work in both the scenarios.
Thanks,
Manish
‎2011 Apr 11 11:10 AM
Hi
as per my knowledge your GL account is of type HKONT which is of length 10 digits.
so define 2 variables of same type with same length as your gl account,
one variable for input and another for output.
pass the value to the FM via these variables and i hope this will solve your problem.
Thanks
LG
‎2011 Apr 12 6:19 AM
Dear Lalit,
Thanks for your reply.
I am new for ABAP, can you elaborate please. Will I have to change the standard program or function. If yes than please tell me name of the function / program and change which i have to make. Please.
With thanks,
DSC
‎2011 Apr 12 6:39 AM
Hi DSC,
you are getting this short dump in a SAP standard transaction (F.05 => Report SAPF100). 1st you should know which field causes this error. If it is no customer field, then you can look for SAP notes or contact SAP.
The reason of this issue should be a too long input for a special field!
Do not change SAP standard programs to correct this error without SAP notes!
Regards,
Klaus
Edited by: Klaus Babl on Apr 12, 2011 7:39 AM