Hi All ,
I have one requirement Ie to upload data into KP06 Tcode using Flat file (. txt) and using Fm below . my problem is i am unable to capture the error messages because there is no return parameter how can i capture the error messages i want to display this messages into alv format .
CALL FUNCTION 'K_COSTS_PLAN_INTERFACE_TOTAL'
EXPORTING
BLTXT = ' '
commit = 'X'
DELTA = ' '
gjahr = ls_gjahr
kokrs = ls_kokrs
messages_show = 'X'
perab = ls_perab
perbi = ls_perbi
update_values = 'X'
versn = ls_versn
vrgng = 'RKP1'
ONLINE_VB = ' '
irku01_cur = ls_irku01_cur
TESTMODE = ' '
KEEP_TWAER = ' '
TABLES
irku01g = lt_irku01g
EXCEPTIONS
messages_occured = 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.