Skip to Content
0
Former Member
Jan 03, 2006 at 09:36 AM

Understanding the Source Code

242 Views

Hi All,

Pasted below is the Source Code of a Conversion Routine(CONVERSION_EXIT_ABPSP_INPUT).Can anyone tell me the fnctionality of this code.

Thanks

Sajan.M

if flg_exists_abpsp = '?'.

call function 'FUNCTION_EXISTS'

exporting

funcname = 'CONVERSION_EXIT_KONPR_INPUT'

exceptions

function_not_exist = 1.

if sy-subrc <> 0.

clear flg_exists_abpsp.

else.

flg_exists_abpsp = 'X'.

endif.

endif.

check flg_exists_abpsp = 'X'.

call function 'CONVERSION_EXIT_KONPR_INPUT'

exporting

input = input

importing

output = output

exceptions

not_found = 1.

if not sy-subrc is initial.

MESSAGE E021(ABPS) WITH INPUT RAISING NOT_FOUND.

endif.

endfunction.