cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Removing payment block in SE16 in RBKP table?

walkerist79
Participant
0 Kudos
192

I was trying to release the block of an invoice document. However, I have encountered an issue wherein the payment block in RBKP in SE16 is still present after successfully releasing the invoice.

I've used BAPI_INCOMINGINVOICE_RELEASE for releasing the invoice and BAPI_INCOMINGINVOICE_CHANGE to remove the payment block value in RBKP table.

The flow is this:

Call BAPI_INCOMINGINVOICE_RELEASE to release the payment block of the invoice. After that, BAPI_INCOMING_CHANGE will be called.

CALL FUNCTION 'BAPI_INCOMINGINVOICE_RELEASE'
  EXPORTING
    invoicedocnumber = ls_blocked_inv-belnr
    fiscalyear       = ls_blocked_inv-gjahr
  TABLES
    return           = it_return.

lx_header-INV_DOC_NO = ls_blocked_inv-belnr.
lx_header-INV_YEAR   = ls_blocked_inv-gjahr.
lx_header-pmnt_block = ' '.
lx_headerX-PMNT_BLOCK = ' '.(Here I've tried to use X and R but no success)

CALL FUNCTION 'BAPI_INCOMINGINVOICE_CHANGE'
  EXPORTING
    invoicedocnumber = ls_blocked_inv-belnr
    fiscalyear       = ls_blocked_inv-gjahr
    headerdata_change = lx_header
    headerdata-changex = lx_headerx
  TABLES
    return = it_return.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

 

 

Accepted Solutions (0)

Answers (0)