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 T-code

Former Member
0 Likes
2,869

Hi Friends,

I need to know the user exit in t-code VF01, which will execute just after saving the billing document in vbrk and vbrp tables, i.e. i need the the data of VBRK and VBRP tables along with the billing document number.

I need the billing document number and its data from VBRK and VBRP tables, which i will insert in a Z-table. Please provide me the Userexit name for the same which will cover my requirement.

Krishan Raheja.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,418

Hi,

Follow this steps, you will get the exact BADI.

1. Go to the TCode SE24 and enter CL_EXITHANDLER as object type.

2. In 'Display' mode, go to 'Methods' tab.

3. Double click the method 'Get Instance' to display it source code.

4. Set a breakpoint on 'CALL METHOD cl_exithandler => get_class_name_by_interface'.

5. Then run your transaction.

6. The screen will stop at this method.

7. Check the value of parameter 'EXIT_NAME'. It will show you the BADI for that transaction.

Regards

Chaitanya

9 REPLIES 9
Read only

GauthamV
Active Contributor
0 Likes
2,418

hi,

check this badi.

SD_CIN_LV60AU02 BADI for billing

this contains both vbrk and vbrp structures.

reward points if hlpful.

Read only

Former Member
0 Likes
2,418

hi,

the badi you have mentioned is not going to execute, the menthod is IF_EX_SD_CIN_LV60AU02~EXCISE_INVOICE_CREATE.

I have written a break point in this method bystem is stoping there.

Please rectify if i am wrong. and tell the correct method name.

Read only

Former Member
0 Likes
2,418

pls reply

Read only

Former Member
0 Likes
2,418

Hi,

Try to use exit USEREXIT_FILL_VBRK_VBRP in the include RV60AFZC.

Refer the list of exits available for VF01.

https://forums.sdn.sap.com/click.jspa?searchID=12979345&messageID=3161782

Regards

Kiran Sure

Read only

Former Member
0 Likes
2,418

Krishan,

in MV45AFZZ search the term

FORM USEREXIT_SAVE_DOCUMENT.

start your coding in this section.

Amit.

Read only

Former Member
0 Likes
2,418

Hi,

Open class CL_EXITHANDLER in se24 and put a breakpoint @CALL METHOD cl_exithandler=>get_class_name_by_interface

It will give u all exits,BAdi's or enhancement points.

Reward if useful.

Regards

Susheel

Read only

Former Member
0 Likes
2,419

Hi,

Follow this steps, you will get the exact BADI.

1. Go to the TCode SE24 and enter CL_EXITHANDLER as object type.

2. In 'Display' mode, go to 'Methods' tab.

3. Double click the method 'Get Instance' to display it source code.

4. Set a breakpoint on 'CALL METHOD cl_exithandler => get_class_name_by_interface'.

5. Then run your transaction.

6. The screen will stop at this method.

7. Check the value of parameter 'EXIT_NAME'. It will show you the BADI for that transaction.

Regards

Chaitanya

Read only

0 Likes
2,418

Hi,

I got the list of BADIs, but from all of these BADIs I am not able to get the required BADI, cann't you suggest me ant user-exit or customer exit.

My requirement is as follow.

I need the data of VBRK and VBRP tables and the Billing dcoument number while saving the Billing document i.e. after saving the document i need the space where i can write the code, and i can get the billing document number as well as the data of VBRK and VBRP tables.

Please reply me ASAP.

Read only

0 Likes
2,418

Dont expect Spoon Feeding!

have you reward all guys as they replied?

Amit.