cancel
Showing results for 
Search instead for 
Did you mean: 

VBRK-XBLNR not copied to BKPF-XBLNR in transaction VF11.

Former Member
0 Kudos

Hi gurus,

In VF01 we have implemented a modification through include RV60AFZC with USEREXIT_FILL_VBRK_VBRP to manually update field XBLNR (reference document number) in VF01. It had worked fine and it was saved in VBRK-XBLNR as well as transferred to the accounting document after saving the billing document (VBRK-XBLNR = BKPF-XBLNR).

In order to also manually update VBRK-XBLNR when cancelling a billing document trough VF11 include RV60AFZZ was used. VBRK-XBLNR was properly updated but as a difference to the modification through RV60AFZC VBRK-XBLNR is not copied to the FI document (BKPF-XBLNR) but instead VBRK-XBLNR from the cancelled document is being copied.

Do you know how to achieve requirement copying VBRK-XBLNR to BKPF-XBLNR in VF11?

Thanks,

VL

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi,

Problem with using EXIT_SAPLV60B_001 is that reference field is not included in structure ACCHD so that would probably make the exit not working. Reference field is not included under FI doc Header Data but instead under so called Business Data.

The so called "New cancellation procedure" that uses function module AC_DOCUMENT_REVERSE instead of AC_DOCUMENT_CREATE could make our exit not work but this is not the case as it is properly working, i.e. the reference number in billing doc (VBRK-XBLNR) is being mannually updated, but as a difference to VF01 it is not being transferred to the FI doc (BKPF-XBLNR). It is necessary to highlight here that the transfer from VBRK-XBLNR to BKPF-XBLNR is not part of the implemented EXIT but is carried out automatically by standard.

This is making us think there there is something different in the way AC_DOCUMENT_CREATE determines reference number to the one AC_DOCUMENT_REVERSE is doing it, but no information was found in the SAP notes regarding this issue.

Any help would be really appreciated.

Best regards,

VL

ivano_raimondi
Active Contributor
0 Kudos

Hello Victor,

in the new cancelation procedure the system performs the post to accounting by function AC_DOCUMENT_REVERSE.

This function receives very few informations from SD. VBRK-XBLNR of SD cancellation is NOT passed.

So the FI cancellation document will get the same data from the cancelled FI document.

The lonely way is to deactivate the new cancellation procedure.

The note [339928|https://bosap-support.wdf.sap.corp/sap/support/notes/339928] explains how to deactivate it: set RULE_NEW_CANCEL = A in USEREXIT_FILL_XKOMK1 in RV60BFZA.

Best regards,

Ivano.

Answers (2)

Answers (2)

ivano_raimondi
Active Contributor
0 Kudos

Hello Victor,

probably the system performs the so called new cancellation.

In this case the FI cancellation document has the same info of FI cancelled document.

Please see the SAP note [1259505|https://bosap-support.wdf.sap.corp/sap/support/notes/1259505] about system behaviour and possible workaround.

Best regards,

Ivano.

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

See Note 301077 - User exits for the interface to accounting. I think that the first userexit is the proper:

"EXIT_SAPLV60B_001: Change of header data in structure ACCHD

In this exit, you can influence the header information of the

accounting document"

I hope this helps you

Regards

Eduardo