cancel
Showing results for 
Search instead for 
Did you mean: 

VF11 billing cancelling with the automatically clearing

Former Member
0 Kudos

DEAR ALL:

I met an problem with the billing cancelling ,there are two business scenario with the client dev and prd.

in dev,when billing cancelling the two fi documents' status with unclearing;and in prd when billing canceling the two fi documents' status with clearing.then i check the configuration with the background,and find nothing difference between dev and prd.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello,

Please review the SAP Note 1259505.

Regards,

Raghavendra

Former Member
0 Kudos

ths,

in the spro,what is the path to configure the parameter:RULE_NEW_CANCEL

ivano_raimondi
Active Contributor
0 Kudos

Hello,

the field RULE_NEW_CANCEL cannot be set by customizing.

In the standard it is hardcoded blank.

You can change it to 'A' or 'B' in the userexit, as described in note 339928.

Best regards,

Ivano.

Former Member
0 Kudos

tks,I know.

but,i read the program ,and don't find the difference between dev and prd system.

in the two systems,the USEREXIT_FILL_XKOMK1 is also set by blank.

and in our company,nobody use the userexit :USEREXIT_FILL_XKOMK1.and the userexit is blank.

so the dev's system environment is the same as prd's.

but,i don't find the reason for the issue.

when canceling in dev,the reversal document is always with notes VF216.

refering to the notes 339928

whether VF216 can terminate the processing?

and i don't know why can lead to the message vf216.

Former Member
0 Kudos

I debug the program,and find the program moves to the line.

in prd,the sy-subre=0

{call function 'AC_DOCUMENT_REVERSE'

exporting

i_accrev = loc_accrev

i_comp = i_comp

exceptions

reverse_impossible = 1

error_message = 2

others = 3.

if sy-subrc = 0.

exit.}

and in dev,the sy-subre=1,and check=blank

{ if sy-subrc eq 1 or sy-subrc = 3.

if check eq con_x.

message id 'VF' type 'I' number '208'

with vbrk-sfakn vbrk-vbeln.

else.

o_new_cancel_fail = 'X'.

endif.

endif.}

SO,in dev the o_new_cancel_fail = 'X'.BUT,I don't know how can the two fields get the vlaues.

{CALL FUNCTION 'RV_ACCOUNTING_DOCUMENT_CREATE'

EXPORTING

invoice_header = vbrk

document_old = beleg

cash_sale_account = kassenkonto

cpd_adress = xvbrk-adrnr

check = freigabe

rrrel = xvbrk-rrrel

bokre = xvbrk-bokre

oir_invinfo = oir_invinfo "SO5K000056

IMPORTING

o_vbrk_rfbsk = xvbrk-rfbsk

o_konv_changed = da_konv_geaendert

o_new_cancel_fail = new_cancel_fail}

{ when 'C'.

if new_cancel_fail is initial.

message s311 with xvbrk-vbeln.

else.

message s216 with xvbrk-vbeln.

clear: new_cancel_fail.

endif.}

ivano_raimondi
Active Contributor
0 Kudos

Hello,

if function AC_DOCUMENT_REVERSE returns SY-SUBRC = 1, then the automatic clearing cannot be done for one (or more) of the reasons listed in note 309208.

Best regards,

Ivano.

Former Member
0 Kudos

with the notes ,i also don't find the answer to the issues.

link to the site

http://sap.ittoolbox.com/groups/technical-functional/sap-log-sd/automatic-clearing-procedure-1584112...

I used sap standard in prepare automatic clearing config, but still im encountering message no. vf 216

In IDES, its SAP standard

jpfriends079
Active Contributor
0 Kudos

Hopefully it can be helpful.

There can be a possibility of:

- The FI follow-on document of the SD document to be cancelled already contains cleared document items.

- There is no FI follow-on document for the SD document to be cancelled. The FI document has already been cancelled.

- The cancellation date is before the posting date of the FI document to be cancelled.

- The reason for cancellation allows no difference between cancellation date and posting date.

Check SAP notes:

Note 1236623 - Release cancellation: Incomplete log

Note 496296 - No reference to missing clearing

Note 309208 - Negative posting not performed

Note 1133979 - Cancellation: log with error instead of information

Note 1119064 - Cancellation: log with error instead of information

Thanks & Regards

JP

Former Member
0 Kudos

from these notes,i sense that the problem maybe is the update package of the system.

Former Member
0 Kudos

Hi,

Check in revenue account settings > account determination procedure >select assign account determination procedure>

where the billing document type is having assignment of CAac as EVV- cash cleare

If this does exist then system automacally clear the customer outstanding

Regards,

Caprin........

Former Member
0 Kudos

your meaning is an cash sales order.when billing will be automatically cleared.But my issues is the normal sales business,when billing ,it will be not cleared,but when with the t-code vf11 canceling the billing ,the new billing (canceling) will automatically clear the cancelled billing.

for example:

so(s001)-dn(d001)-billing(b001),the billing status is not cleared.now i find the price of the order is not correct,i want to update the price,first i must to cancel the billing(b001),then to update the price.When I cancel the billing(b001),it will create a new

billing (b002).the new billing(b002) will clear the reference document (b001),then the status of the two billing documents are clearing.

IN my company's sap system,this can be shew in prd,not in dev.IN dev,the status of the two billing documents are not clearing.

jpfriends079
Active Contributor
0 Kudos

The difference could b'coz of Allocation Number & Reference number.

Check Allocation Number & Reference number field in your copying control (VTFF).

Thanks & Regards

JP