‎2009 Apr 10 10:33 AM
Hi All,
I have to use one function module I have to pass kunnr and one structure.
Following is the code.
LOOP AT I_FINAL.
I_CHARACT-ATINN = I_FINAL-ATINN.
I_CHARACT-KLART = '011' .
I_CHARACT-ATWRT = I_FINAL-ATWRT.
append i_charact.
CALL FUNCTION 'Z_SD_CHARACT_CHANGE'
EXPORTING
IV_KUNNR = I_FINAL-KUNNR
IT_CHARACT = I_CHARACT[]
ENDLOOP.
I have defined I_CHARACT like IT_CHARACT.
IT_CHARACT-ATINN IS NUMERIC TYPE AND no.of charectar is 10.But its output lenght is 30 and having conversion routine ATINN.
Now our requirmrnt is that we have to pass some text like AMAR_KUMAR in that ATINN field but it is not reading this value thr program but when I give this thr sm37 then it reads.
And I tried to change I_charact table type but it gives dump.
Please tell me solution.
‎2009 Apr 10 10:51 AM
Hi ,
try passing 'AMAR_KUMAR' via FM CONVERSION_EXIT_ATINN_INPUT first and then append the output to I_CHARACT.
e.g.
data : lv_atinn type atinn value 'AMAR_KUMAR' .
CONVERSION_EXIT_ATINN_INPUT
IMPORTING
VALUE = lv_atinn
EXPORTING
VALUE = lv_atinn
then use lv_atinn .
Regards.
‎2009 Apr 10 10:46 AM
Hi Check the data type in the function module & in the program.
‎2009 Apr 10 10:51 AM
Hi ,
try passing 'AMAR_KUMAR' via FM CONVERSION_EXIT_ATINN_INPUT first and then append the output to I_CHARACT.
e.g.
data : lv_atinn type atinn value 'AMAR_KUMAR' .
CONVERSION_EXIT_ATINN_INPUT
IMPORTING
VALUE = lv_atinn
EXPORTING
VALUE = lv_atinn
then use lv_atinn .
Regards.
‎2009 Apr 10 11:55 AM
‎2009 Apr 10 10:53 AM
use the data element of I_CHARACT-ATINN same as required for IT_CHARACT-ATINN.
Regards,
Lalit Mohan Gupta.