Application Development and Automation 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: 
Read only

User exit for VF01

Former Member
0 Likes
1,223

Hi All,

Is there is any BADI or USER exit that's being triggered after saving the Invoice. Here my requirement is upadating the Z table with billing document number after billing has been done.

Regards,

Ashwin

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,013

Hi,

U can do it in the following include program.

***INCLUDE RV60AFZZ .

-


FORM USEREXIT_ACCOUNT_PREP_KOMPCV *

-


This userexit can be used to move additional fields into the *

communication table which is used for account allocation: *

KOMPCV for item fields *

This form is called from form KONTENFINDUNG *

-


FORM USEREXIT_ACCOUNT_PREP_KOMPCV.

IF SY-TCODE = 'VF01'.

zsd_billinfo-bukrs = vbrk-bukrs.

zsd_billinfo-vbeln = vbrk-vbeln.

zsd_billinfo-fkdat = vbrk-fkdat.

zsd_billinfo-ZFLAG = 'I'.

insert zsd_billinfo.

commit work.

ENDIF.

ENDFORM.

Rewards points if helpful.

Regards,

Srinivas

3 REPLIES 3
Read only

Former Member
0 Likes
1,013

Hi,

U can use the user exit RV60AFZZ

or BADI SD_CIN_LV60AU02

Regards,

Omkar.

Read only

Former Member
0 Likes
1,013

The exit is USEREXIT_SAVE_DOCUMENT.

RV60AFZZ is an include that has multiple user exits. The appropriate exit to use can be determined by reading the documentation associated with the IMG entry "SYSTEM MODIFICATIONS". As others stated you can use SE38.

Regards.

Read only

Former Member
0 Likes
1,014

Hi,

U can do it in the following include program.

***INCLUDE RV60AFZZ .

-


FORM USEREXIT_ACCOUNT_PREP_KOMPCV *

-


This userexit can be used to move additional fields into the *

communication table which is used for account allocation: *

KOMPCV for item fields *

This form is called from form KONTENFINDUNG *

-


FORM USEREXIT_ACCOUNT_PREP_KOMPCV.

IF SY-TCODE = 'VF01'.

zsd_billinfo-bukrs = vbrk-bukrs.

zsd_billinfo-vbeln = vbrk-vbeln.

zsd_billinfo-fkdat = vbrk-fkdat.

zsd_billinfo-ZFLAG = 'I'.

insert zsd_billinfo.

commit work.

ENDIF.

ENDFORM.

Rewards points if helpful.

Regards,

Srinivas