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

how to do coding for VF02 user exit?

Former Member
0 Likes
1,178

i m working on a script of vf02 i.e. for commercial invoice for japan (fjci). i have to add exchange rate field to this script using user exit. i got 1 user exit for the same i.e. exit_saplv60b_003. using this exit i got one include program 'zxvVfu03'. but i don't know how to do codding in that include program to add that field. plz suggest me how to do codding to add exchange rate field to script? the name of script is something SD_EXPORT*.

9 REPLIES 9
Read only

valter_oliveira
Active Contributor
0 Likes
1,053

Hello.

First of all create a Zproject in tcode CMOD. There, include ampliation SDVFX003 (the one that contains your exit). After that, activate the project.

Then, press components button in CMOD, and double click on component exit_saplv60b_003 (or go to se37 with exit and press dispplay). Then double click on include zxvVfu03. A warning message will appear, press enter, and create the include.

Regards.

Valter Oliveira.

Read only

0 Likes
1,053

thnk u for ur help. but whatever u suggest me i have already done that. i got one include program also 'zxvVfu03' but i don't know how to do coding in that. can u suggest me how to do coing in that include program to add the exchange rate field in that script..

Read only

0 Likes
1,053

Hi again.

Looking to the exit, looks that you just have to change the value of field xaccit-kursk.

Regards.

Valter Oliveira.

Read only

0 Likes
1,053

can u tell how to change the value of xaccit-kursk? how to add this field to script?

Read only

0 Likes
1,053

In your include, you have 3 type of parameters:

IMPORTING

VALUE(XACCIT) LIKE ACCIT STRUCTURE ACCIT

VALUE(VBRK) LIKE VBRK STRUCTURE VBRK

REFERENCE(DOC_NUMBER) LIKE VBRK-VBELN OPTIONAL

EXPORTING

VALUE(XACCIT) LIKE ACCIT STRUCTURE ACCIT

TABLES

CVBRP STRUCTURE VBRPVB OPTIONAL

CKOMV STRUCTURE KOMV

So, that exit exists for you to using IMPORTING and TABLES parameters, to change the value of EXPORTING and TABLES parameters.

As an example, you should can do like this:

IF doc_number IS INITIAL.

xaccit-kursk = 'ABC'.

ENDIF.

Regards.

Valter Oliveira.

Read only

0 Likes
1,053

plz more describe your example..

Read only

0 Likes
1,053

In my example (invented requirement), if the document number that is passed as input to the ampliation is empty, the value of the rate will be transformed in 'ABCD'. "dummy value I invented

If document number has a value, the rate isn't changed by me.

Regards,

Valter Oliveira.

Read only

Former Member
0 Likes
1,053

i have to add the selection field to standard report of t.c. MCBZ. i don't know how to add that. and the field to be add is Planned ordr no. 'plnum'. can u suggest me how to add that field to selection criteria of MCBZ t.c?

Read only

Former Member
0 Likes
1,053

thank u