Record not updating into table helpme

Advertisement
in the following functionmodule record is not commiting into table is there any wrong please hep me.
FUNCTION Z_MZPR_DETAILS.
""Local Interface:
*"  IMPORTING
*"     VALUE(ZPRHEADER) TYPE  BAPIMEREQHEADER OPTIONAL
*"     VALUE(ZPRHEADERX) TYPE  BAPIMEREQHEADERX OPTIONAL
*"  EXPORTING
*"     VALUE(ZNUMBER) TYPE  BAPIMEREQHEADER-PREQ_NO
*"     VALUE(RETURN) LIKE  BAPIRET2 STRUCTURE  BAPIRET2
*"  TABLES
*"      ZPRITEM STRUCTURE  BAPIMEREQITEMIMP
*"      ZPRITEMX STRUCTURE  BAPIMEREQITEMX OPTIONAL
*"      ZPRACCOUNT STRUCTURE  BAPIMEREQACCOUNT OPTIONAL
*"      ZPRACCOUNTX STRUCTURE  BAPIMEREQACCOUNTX OPTIONAL
DATA:ITAB LIKE TABLE OF ZPRDETAILS WITH HEADER LINE,
     ZRETURN LIKE TABLE OF RETURN WITH HEADER LINE.
CALL FUNCTION 'BAPI_PR_CREATE'
EXPORTING
   PRHEADER                    = ZPRHEADER
   PRHEADERX                   = ZPRHEADERX
  TESTRUN                     =
IMPORTING
   NUMBER                      = ZNUMBER
  PRHEADEREXP                 =
  TABLES
   RETURN                      = ZRETURN
   PRITEM                      = ZPRITEM
   PRITEMX                     = ZPRITEMX
  PRITEMEXP                   =
  PRITEMSOURCE                =
   PRACCOUNT                   = ZPRACCOUNT
  PRACCOUNTPROITSEGMENT       =
   PRACCOUNTX                  = ZPRACCOUNTX.
  PRADDRDELIVERY              =
  PRITEMTEXT                  =
  PRHEADERTEXT                =
  EXTENSIONIN                 =
  EXTENSIONOUT                =
  PRVERSION                   =
  PRVERSIONX                  =
  ALLVERSIONS                 =
ITAB-BANFN = ZNUMBER.
APPEND ITAB.
IF ZRETURN-NUMBER = '000'.
UPDATE ZPRDETAILS from TABLE ITAB.
COMMIT WORK.
ENDFUNCTION.
Advertisement

Replay

HI,
IF ZRETURN-NUMBER = '000'.
<b>MODIFY ZPRDETAILS from TABLE ITAB.</b>
COMMIT WORK.
<b>ENDIF.</b>
Best regards,
Prashant