cancel
Showing results for 
Search instead for 
Did you mean: 

Billing Creation/Cancellation Issue due to accounting interface error

Former Member
0 Kudos

Hi,

 

Standard SAP process always allows to cancel invoice even after period closing. .There is a requirement related to Invoice Creation & Cancellation ,for any acounting interface error( period closing) there should be warning or error message triggerd.ICould you please share  valuable suggestion.

Regards,

Shachi

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member182708
Active Participant
0 Kudos

Hi shachi johari,

it is not fully clear what is done, and what is the requirement.

In a standard cancellation process with transaction VF11 the billing date VBRK-FKDAT is copied from the original invoice.

This date is taken as the document date of the accounting document.

If you do not modify the date and the period is closed then for the cancellation the accounting document can not be created.

There is an information message "document saved - no accounting document created" issued at the bottom of the screen.

Then the user can either have the period opened, or change the billing date manually in VF02.

Why and where should be an additional warning message be issued?

The problem in cancellation is that with the new cancellation procedure (see note 1259505) no user-exits are available. Even if you force the old cancellation (note 339928) then the question is what do you want to achieve with a user-exit?

The one mentioned (EXIT_SAPLV60A_002) is as far as I know executed in the creation phase with transaction VF01, not in case of cancellation with VF11.

If only the date (VBRK-FKDAT) should be checked, then I would suggest to use a requirement in VOFA in section "Cancellation" - Field "Copying requirements" (V_TVFK-GRBED_S) for the invoice type you cancel. Therein you could check if VBRK-FKDAT is equal to current date sy-datum.

More complicated would be if you want to post in the accounting period which is closed.

Standard copy requirement 29 is available for a check if the accounting document of the original invoice is cleared already.


But for a check billing date in the past - accounting period closed - something else would have to be defined.


However it remains unclear, what for is the requirement? The standard information message is in my opinion already enough.


Best regards,
Tobias



Former Member
0 Kudos

Hi Tobias,

Thanks for Reply, Standard system creates Billing Document even there is an accounting
interface error. Later we need to release the same to accounting. The
requirement is whenever accounting interface error triggered system should not
create/cancel any billing document (SD).

Regards,

Shachi

former_member182708
Active Participant
0 Kudos

Hi shachi johari,

in such general form this is not possible.

The problem is, that the posting status for transfer to accounting, field VBRK-RFBSK, is determined during the saving process.

If the field remains blank "  " then you have the status "Error in Accounting Interface".

But the invoice document itself will be saved, only the accounting document is not yet created.

Usually you want to create an invoice, so the standard behavior does not prevent the saving to the database. To release to accounting, you have then the possibilities described in my previous reply. Either change the billing date or open the period.

Best regards,

Tobias

siva_vasireddy2
Active Contributor
0 Kudos

Hi,

you can use the Function module-EXIT_SAPLV60A_002 and ask your Abaper to write the logic based on the erdat if the billing month is previous do not allow to cancel the invoice.

Former Member
0 Kudos

Hi ,

Thanks for reply.

In Function module-EXIT_SAPLV60A_002  ,include ZXV60AU01 but its not having content and we are trying to pass invoice type & date manually but its not showing any relevant enteries.

Please suggest for creation of Billing too.

Regards,

Shachi

siva_vasireddy2
Active Contributor
0 Kudos

Hi,

In Include you need to write your own code