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

Custom Function Module in VF01

Former Member
0 Likes
5,431

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
Read only

madhu_vadlamani
Active Contributor
0 Likes
3,613

Hi,

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

Regards,

Madhu.

31 REPLIES 31
Read only

madhu_vadlamani
Active Contributor
0 Likes
3,614

Hi,

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

Regards,

Madhu.

Read only

0 Likes
3,613

- 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

Read only

Former Member
0 Likes
3,613

can you guide me on how to use this exit.

thanx in advance

Read only

0 Likes
3,613

Hi Jhay,

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

Regards,

madhu.

Read only

Former Member
0 Likes
3,613

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.

Read only

0 Likes
3,613

Hi,

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

Regards,

Madhu.

Read only

Former Member
0 Likes
3,613

ill try this one . thanx

ill update this if solve my problem...

Read only

Former Member
0 Likes
3,613

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

Read only

0 Likes
3,613

Hi,

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

Regards,

Madhu.

Read only

Former Member
0 Likes
3,613

im sorry for this im new at user exit's

how will i access the user exit..

thanx

Read only

Former Member
0 Likes
3,613

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

Read only

0 Likes
3,613

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

Read only

Former Member
0 Likes
3,613

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."

Read only

0 Likes
3,613

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.

Read only

Former Member
0 Likes
3,613

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

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

Read only

0 Likes
3,613

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.

Read only

0 Likes
3,613

Hi Ihay,

Is it ok now.

Regards,

Madhu.

Read only

Former Member
0 Likes
3,613

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...

%

Read only

Former Member
0 Likes
3,613

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...

%

Read only

Former Member
0 Likes
3,613

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...

%

Read only

Former Member
0 Likes
3,613

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...

%

Read only

Former Member
0 Likes
3,613

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...

%

Read only

Former Member
0 Likes
3,613

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...

%

Read only

Former Member
0 Likes
3,613

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...

%

Read only

Former Member
0 Likes
3,613

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...

%

Read only

Former Member
0 Likes
3,613

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...

%

Read only

Former Member
0 Likes
3,613

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...

%

Read only

Former Member
0 Likes
3,613

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...

%

Read only

Former Member
0 Likes
3,613

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...

%

Read only

Former Member
0 Likes
3,613

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...

Read only

0 Likes
3,613

Thanks...madhu