I tried Shilpa's soultion and it worked for me (I was sending WBS element in txt file out of SAP):
call function 'CONVERSION_EXIT_ABPSP_OUTPUT'
exporting
input = ls_ebkn-ps_psp_pnr
importing
output = cs_file-pp_idaccnt
BR,
Tomek .