Hello guys iam migrating open ar line items using lsmwand i need to create reconciliation key automatically so iam using below code which is working fine in abap editor but i inserted in the lsmw abap code block at step 5 mapping fields iam getting error as that function module does not exits .can any body go through the code and give me suggestion.your will be greatly appreciate.
types: begin of ty_fikey,
fikey type fikey_kk,
resob type resob_kk,
end of ty_fikey.
data: wa_fikey type ty_fikey.
CALL FUNCTION 'FKK_FIKEY_CHECK'
EXPORTING
I_FIKEY = 'jana56481'
I_OPEN_ON_REQUEST =
I_OPEN_WITHOUT_DIALOG =
I_FOR_MASS_POSTING =
I_RESOB = '24 '
I_RESKY = ' '
I_NON_EXISTING_ALLOWED = ' '
I_FOR_POSTING_IN_UPD = ' '
EXCEPTIONS
NON_EXISTING = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
select single fikey resob from dfkksumc into corresponding fields of wa_fikey where resob = '24'.
e1bpdfkkko-fikey = wa_fikey-fikey.
Regards
Janapathi