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: 

Custom Function Module in VF01

Former Member
0 Kudos

Hi to all..

i have created a function module that will popup a screen and ask for a data and will update a custom table that i created.

i want to put the FM in VF01 t-code.

my function module will get also the billing docs and save it to ztable.

could someone guide me on this.

thanx

1 ACCEPTED SOLUTION

madhu_vadlamani
Active Contributor
0 Kudos

Hi,

Try with this exit EXIT_SAPLV60B_008. This will trigger while saving sales invoice.

Regards,

Madhu.

31 REPLIES 31

madhu_vadlamani
Active Contributor
0 Kudos

Hi,

Try with this exit EXIT_SAPLV60B_008. This will trigger while saving sales invoice.

Regards,

Madhu.

0 Kudos

- To use [EXIT_SAPLV60B_001|http://www.sdn.sap.com/irj/scn/advancedsearch?query=exit_saplv60b_001] - display via transaction SMOD SDVFX001 - Create a project via transaction CMOD, then attach Enhancement, and double-click on include ZXWFU08 in exit function module to create, then activate project)

- You could also use BAdI [BADI_SD_ACCOUNTING|http://www.sdn.sap.com/irj/scn/advancedsearch?query=http://www.sdn.sap.com/irj/scn/advancedsearch?query=exit_saplv60b_001] Method [ACCOUNTING_DOC_HEADER|http://www.sdn.sap.com/irj/scn/advancedsearch?query=badi_sd_accounting+accounting_doc_header] (call at same level, use SE19 to implementation and activation).

- You could also try [BTE 00501010|http://www.sdn.sap.com/irj/scn/advancedsearch?query=bte+00501010] Invoice- save data (use transaction FINF to display sample FM to be copied to a Z_FM and activated via transaction FIBF)

Read also some documentation at [Changing the SAP Standard (BC)|http://help.sap.com/saphelp_nw04s/helpdata/en/eb/3e7cf1940e11d295df0000e82de14a/frameset.htm] or [sdn Wiki|http://www.sdn.sap.com/irj/scn/advancedsearch?query=userCustomerexitBAdIBTE#sdn_content_category_value_wiki]

Regards,

Raymond

Former Member
0 Kudos

can you guide me on how to use this exit.

thanx in advance

0 Kudos

Hi Jhay,

Just in that exit call your fm and write your code what you want to do.

Regards,

madhu.

Former Member
0 Kudos

I want my custom function module to popup when the user save on VF01.

my function module will ask for external invoice no which the user will fill up.

and it will save both the external invoice no and system invoice no to the ztables.

0 Kudos

Hi,

This exit will trigger while saving invoice time only. You write a code to create entry in ztable.

Regards,

Madhu.

Former Member
0 Kudos

ill try this one . thanx

ill update this if solve my problem...

Former Member
0 Kudos

could you guide what tcode should i use so ill be able to modify the user exit you gave. thanx

0 Kudos

Hi,

Here no need to modify the exit. Just double click on that and keep your code in that.

Regards,

Madhu.

Former Member
0 Kudos

im sorry for this im new at user exit's

how will i access the user exit..

thanx

Former Member
0 Kudos

Thanks mond.

right now im having problem with using the user exit. when i try to change it ask for a access key to insert my custom function.

will my custom function modules popup when the user press on save button in VF01.with the badi and bte you mentioned

0 Kudos

Use transaction CMOD to manage customer-exits.

- First create a project (starting with Z, Y or one of you customer namespace, attach to one of your packages)

- Attach the Enhancement (found via SMOD)

- then double-click on the FM starting with exit, you must be in display mode here

- then double-click on the include starting with Z, ignore any warning (click "ok" then press "Enter"), and create the include in one of your packages.

- develop and activate the include (insert your call in the exit)

- activate the project (else the exit FM will not execute)

- test...

Don't update the exit FM itself, use the include whose name starts with Z in it for your coding. Access key are required to update SAP standard objects.

The BAdI is called a the same time that this exit (perform some where-used search) , the BTE is called before the commit during invoice save (read the documentation via transaction FINF)

And then test, test, and test.

Regards,

Raymond

Former Member
0 Kudos

i recieve an error when i double click the include in EXIT_SAPLV60B_001.

it says "! Program names ZX.... are reserved for includes of exit function groups."

0 Kudos

Hi,

This is simple question.

1) Go to cmod create a project.ez zprj

2) In enhnacement assignment part SDVFX001.

3) Now double click on the exit that will open another window .Click on components and double click on EXIT_SAPLV60B_001.

4) It will open a Fm there you can see an include INCLUDE ZXVVFU01 double click on this and write your code.

[Create Project and Assign|http://wiki.sdn.sap.com/wiki/display/ABAP/USEREXITCREATE]

Regards,

Madhu.

Former Member
0 Kudos

"! Program names ZX.... are reserved for includes of exit function groups."

I recieve this error when i double click on the INCLUDE ZXVVFU01.

0 Kudos

Hi,

It is a just warning. Just double click one more time and go a head.When you are doing first time this is the message you will get.

Regards,

Madhu.

0 Kudos

Hi Ihay,

Is it ok now.

Regards,

Madhu.

Former Member
0 Kudos

For those who wants to know my solutions.

i followed Raymond's guide. with help from madhura.

thanx guys...

Since i wasnt able to edit the zincludes in the EXIT_SAPLV60B_001.

i opened the function modules in the SE80

from there create the includes then insert my custom Include program..

cheers..

than again guys...

%

Former Member
0 Kudos

For those who wants to know my solutions.

i followed Raymond's guide. with help from madhura.

thanx guys...

Since i wasnt able to edit the zincludes in the EXIT_SAPLV60B_001.

i opened the function modules in the SE80

from there create the includes then insert my custom Include program..

cheers..

than again guys...

%

Former Member
0 Kudos

For those who wants to know my solutions.

i followed Raymond's guide. with help from madhura.

thanx guys...

Since i wasnt able to edit the zincludes in the EXIT_SAPLV60B_001.

i opened the function modules in the SE80

from there create the includes then insert my custom Include program..

cheers..

than again guys...

%

Former Member
0 Kudos

For those who wants to know my solutions.

i followed Raymond's guide. with help from madhura.

thanx guys...

Since i wasnt able to edit the zincludes in the EXIT_SAPLV60B_001.

i opened the function modules in the SE80

from there create the includes then insert my custom Include program..

cheers..

than again guys...

%

Former Member
0 Kudos

For those who wants to know my solutions.

i followed Raymond's guide. with help from madhura.

thanx guys...

Since i wasnt able to edit the zincludes in the EXIT_SAPLV60B_001.

i opened the function modules in the SE80

from there create the includes then insert my custom Include program..

cheers..

than again guys...

%

Former Member
0 Kudos

For those who wants to know my solutions.

i followed Raymond's guide. with help from madhura.

thanx guys...

Since i wasnt able to edit the zincludes in the EXIT_SAPLV60B_001.

i opened the function modules in the SE80

from there create the includes then insert my custom Include program..

cheers..

than again guys...

%

Former Member
0 Kudos

For those who wants to know my solutions.

i followed Raymond's guide. with help from madhura.

thanx guys...

Since i wasnt able to edit the zincludes in the EXIT_SAPLV60B_001.

i opened the function modules in the SE80

from there create the includes then insert my custom Include program..

cheers..

than again guys...

%

Former Member
0 Kudos

For those who wants to know my solutions.

i followed Raymond's guide. with help from madhura.

thanx guys...

Since i wasnt able to edit the zincludes in the EXIT_SAPLV60B_001.

i opened the function modules in the SE80

from there create the includes then insert my custom Include program..

cheers..

than again guys...

%

Former Member
0 Kudos

For those who wants to know my solutions.

i followed Raymond's guide. with help from madhura.

thanx guys...

Since i wasnt able to edit the zincludes in the EXIT_SAPLV60B_001.

i opened the function modules in the SE80

from there create the includes then insert my custom Include program..

cheers..

than again guys...

%

Former Member
0 Kudos

For those who wants to know my solutions.

i followed Raymond's guide. with help from madhura.

thanx guys...

Since i wasnt able to edit the zincludes in the EXIT_SAPLV60B_001.

i opened the function modules in the SE80

from there create the includes then insert my custom Include program..

cheers..

than again guys...

%

Former Member
0 Kudos

For those who wants to know my solutions.

i followed Raymond's guide. with help from madhura.

thanx guys...

Since i wasnt able to edit the zincludes in the EXIT_SAPLV60B_001.

i opened the function modules in the SE80

from there create the includes then insert my custom Include program..

cheers..

than again guys...

%

Former Member
0 Kudos

For those who wants to know my solutions.

i followed Raymond's guide. with help from madhura.

thanx guys...

Since i wasnt able to edit the zincludes in the EXIT_SAPLV60B_001.

i opened the function modules in the SE80

from there create the includes then insert my custom Include program..

cheers..

than again guys...

%

Former Member
0 Kudos

For those who wants to know my solutions.

i followed Raymond's guide. with help from madhura.

thanx guys...

Since i wasnt able to edit the zincludes in the EXIT_SAPLV60B_001.

i opened the function modules in the SE80

from there create the includes then insert my custom Include program..

cheers..

than again guys...

0 Kudos

Thanks...madhu