Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BADI for release to accounting SD document

Former Member
0 Kudos

Hi to all,

I need to implement my own code in Release to Accounting (VF02 tcode) . I need to check accounting document (bkpf e bseg) in order to change some fields in header (bkpf) and in position item.

I need to check this before validation control (OB28) is triggered. I was trying to use BADI . But I wasn't able to find it . Anyone can help?

Thanks in advance

Andrew

8 REPLIES 8

Former Member
0 Kudos

Hi Andrew,

Please check below exits/customer exits, these all are trigger during VF02.

USEREXIT_NUMBER_RANGE (Module pool SAPLV60A, program RV60AFZZ)

The internal number range used in the standard system is specified in the billing type table and can be changed in this user exit. This user exit is only called when the billing documents is created.

USEREXIT_ACCOUNT_PREP_KOMKCV (Module pool SAPLV60A, program RV60AFZZ)

In this user exit additional fields for account determination that are not provided in the standard system are copied into communication structure KOMKCV (header fields).

USEREXIT_ACCOUNT_PREP_KOMPCV (Module pool SAPLV60A)

In this user exit additional fields for account determination that are not provided in the standard system are copied into communication structure KOMPCV (item fields).

USEREXIT_NUMBER_RANGE_INV_DATE (Module pool SAPLV60A, program RV60AFZC)

Depending on the number range, table TVFKD is used to set the billing date (country-specific requirments in Italy). USEREXIT_NUMBER_RANGE is automatically deactivated when this user exit is being applied.

USEREXIT_FILL_VBRK_VBRP (Module pool SAPLV60A, program RV60AFZC)

This user exit is only called when the billing document is created. It is used to provide the header and the item of the new billing document with deviating or additional data.

USEREXIT_PRINT_ITEM (Module pool SAPLV61A, program RV61AFZB)

Printing the item line of a billing document can be supplemented or changed.

USEREXIT_PRINT_HEAD (Modulpool SAPLV61A, Programm RV61AFZB)

Printing the header line of a billing document can be supplemented or changed.

User exits in program RV60AFZD

Short descriptions of the user exits are contained in the program:

USEREXIT_RELI_XVBPAK_AVBPAK

USEREXIT_NEWROLE_XVBPAK_AVBPAK

USEREXIT_NEWROLE_XVBPAP_AVBPAK

The following user exits are available in report SAPLV60B for transfer to accounting (function group V60B):

EXIT_SAPLV60B_001: Change the header data in the structure acchd

You can use this exit to influence the header information of the accounting document. For example, you can change the business transaction, "created on" date and time, the name of the person who created it or the transaction with which the document was created.

EXIT_SAPLV60B_002: Change the customer line ACCIT

You can use this exit to change the customer line in the accounting document. This exit is processed once the ACCIT structure is filled in with data from document header VBRK.

EXIT_SAPLV60B_003: Change the customer line in costing

The customer line is filled in differently for costing. You can use exit 003 to influence the ACCIT structure.

EXIT_SAPLV60B_004: Change a GL account item ACCIT You can add information to a GL account item (such as quantity specifications) with this exit.

EXIT_SAPLV60B_005: User exit for accruals

Once all relevant data for accruals was entered in the GL account item, you can add to this data with this exit.

EXIT_SAPLV60B_006: Change the control line ACCIT

You can use exit 006 to add information to the control line.

EXIT_SAPLV60B_007: Change the installment plan

You can use exit 007 to add information to the installment plan

parameters in the GL account item.

EXIT_SAPLV60B_008: Change the transfer structure ACCCR, ACCIT and ACCHD

After the accounting document is filled in with data, you can use exit 008 to change the document once again.

EXIT_SAPLV60B_010: Item table for customer lines

You can use exit 10 to influence the contents of customer lines before they are created.

EXIT_SAPLV60B_0011: Change the parameter for cash account determination or reconciliation account determination

You can use this exit to change inbound parameters in order to influence account determination.

--

Reddy

Former Member
0 Kudos

Hi,

Use enhancement "SDVFX008" , Component : "EXIT_SAPLV60B_008".

Regards

Vinod

0 Kudos

OK,

I've trying to use BADI 'AC_DOCUMENT' (implementation 'change_after_check') . I've put a break-point (written in code) but VF02 seems to be proceed without feel the breakpoint.

I've trying also to use SDVFX008 (in smod) putting a break in z function module but unsuccesfully (accounting document created without feel the break).

The only way to capture accounting document structures (bkpf and bseg) (from release to accounting reverse document SD) is to use BTE Enhancement (OPEN_FI_PERFORM_00001025_E) that needs to be modified (standard code modifying) in my release to work properly and I don't like it so much.

Any suggestion ?

Thanks

Andrew

0 Kudos

> I've trying also to use SDVFX008 (in smod) putting a break in z function module but unsuccesfully (accounting document created without feel the break).

>

Have you created project in CMOD? then only exit will work.

--

Reddy

0 Kudos

Yes, of course, I've tried also putting the component in a CMOD Project without success....

0 Kudos

Hi,

SDVFX008 will indeed trigger while you create accounting document through VF01 or VF02. We have done similiar development to update SGTXT field in BSEG. Check whether the function exit is activated.

Regards

Vinod

0 Kudos

Check the zinclude is activated in EXIT_SAPLV60B_008. or you can try where used list for FM EXIT_SAPLV60B_008, so that you can see whether VF01 program is calling it or not.

--

Reddy

0 Kudos

Maybe there is a difference in release to accounting REVERSE document ! I know that there are two different function module (referring to release o accounting) 'AC_DOCUMENT' and 'AC_DOCUEMENT_REVERSE'.

Andrew