Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FUNCTION CONVERSION_EXIT_ALPHA_INPUT Error CONV_EXIT_FIELD_TOO_SHORT

Former Member
0 Likes
2,427

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

7 REPLIES 7
Read only

awin_prabhu
Active Contributor
0 Likes
1,277

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.

Read only

Former Member
0 Likes
1,277

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.

Read only

0 Likes
1,277

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

Read only

0 Likes
1,277

Hi,

The solution provided by SAP Fan above should work in both the scenarios.

Thanks,

Manish

Read only

0 Likes
1,277

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

Read only

0 Likes
1,277

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

Read only

0 Likes
1,277

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