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 or user exit for VF01 while save

Former Member
0 Kudos

Hi all

what is the badi or user exit used in transaction VF01 to validate the billing date with the system date..

If the billing date is not equal to system date, then it has to throw a message.. and it should not allow the user to save..

I have written the coding in program RV60AFZC and

in form USEREXIT_NUMBER_RANGE_INV_DATE USING US_RANGE_INTERN...

It is working fine.. but this event is not triggered while save..During save , even if the date is different it is saving..

Can anyone tell me the User exit or BADI that is called during save in vf01.

Cheers

Christina

1 ACCEPTED SOLUTION

former_member203305
Active Contributor
0 Kudos

Hi,

there is a user-exit that can be useful for u

SDVFX008

go to tx cmod, create a project and assign the user-exit to it. Write ur code there.

Regards

14 REPLIES 14

Former Member
0 Kudos

hi Christina Lavanya

you will be unable stop the transaction frm creating billing document, but u will be unable to post the accounting document

try going to vf02 and try to post the document ur error will be displayed

so try telling the client dat we can t restrict the creatign of billing document but we can restrict the account document creation

i have faced the same prob if u hav a better option jus reply me

shiva

0 Kudos

Hi shiva

I got the answer for my question.. u can try with that..

User Exit : SDVFX008

go to tx cmod, create a project and assign the user-exit to it. Write ur code there.

Cheers

Christina

0 Kudos

helo,

when i put my code in this exit my control not comes under my code

will u help me out how u solved the same

my prob. is i want user exit while saving ( called at pressing saving button)

mukesh

0 Kudos

Hi,

Could you please tell me the user exit or badi which gets prompt while saving the billing document VF01?

Regards,

SATYA

Former Member
0 Kudos

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.

Regards,

Suraj

Former Member
0 Kudos

Hi

Good

Check the below SDN link, hope this will give you the idea about the BADI present in VF01 TCODE.

Thanks

mrutyun^

0 Kudos

hi

u did not give the link...

Former Member
0 Kudos

hi

use the following steps to find the badi on vf01 save

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.

hope it works .....

thanks

sam

Former Member
0 Kudos

Hi,

This is a wonderful blog to find any BADI.

Regards

Mudit

former_member203305
Active Contributor
0 Kudos

Hi,

there is a user-exit that can be useful for u

SDVFX008

go to tx cmod, create a project and assign the user-exit to it. Write ur code there.

Regards

0 Kudos

Hi,

I used the same user exit but does not work, anyone know if sap not using this exit or if there are any other exit or badi like because I have almost the same problem.

Best regards.

Diego Villalba

0 Kudos

Diego, let me tell you few things:

1) if you raise a dead thread, we will not be able to know you are in a trouble (the thread appears as "SOLVED", and if not looking for the solution, people don't use to look at solved threads).

2) Telling us "it doesn't work" is a waste of time. Now we shall start asking you things like "what's the error message?", "why it doesn't work?" and the thread will be filled with a long chain of url links to help.sap.com...

I should ask you to open a new thread with:

1) a good subject: "VF01: User-Exit SDVFX008 problem" (if you can add some information about the problem with few words, add them)

2) a link to this thread (it will prove us you used the search tool, something that makes us happy and eager to help you)

3) a description of your problem (ie: "I created the project, activated the exit, and I expected to have XXXXXXXXXXXXXXX behaviour, but the system returns me YYYYYYYYYYYY"

4) a list of things you made/tried to solve your problem (it will prevent -some of- us to fill the thread with useless advices)

5) the code you added to the USER-EXIT (remember to use code tags to make them easier to read)

Good luck

PS: I don't know why it doesn't work, mainly because I don't have a clue about what you are trying nor what the system returns to you...because that, I can only give you these small advices.

0 Kudos

Hi Diego,

Please do as suggested by Lozano to get better visibility to your Q's.

BR.

0 Kudos

Thanks