‎2008 Jul 04 2:15 PM
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*.
‎2008 Jul 04 2:21 PM
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.
‎2008 Jul 04 2:24 PM
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..
‎2008 Jul 04 2:32 PM
Hi again.
Looking to the exit, looks that you just have to change the value of field xaccit-kursk.
Regards.
Valter Oliveira.
‎2008 Jul 04 2:38 PM
can u tell how to change the value of xaccit-kursk? how to add this field to script?
‎2008 Jul 04 2:42 PM
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.
‎2008 Jul 04 2:51 PM
‎2008 Jul 04 4:28 PM
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.
‎2008 Jul 04 2:35 PM
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?
‎2008 Aug 06 3:48 PM