‎2010 Dec 07 1:40 PM
hi everyone
I have added code in the form userexit_exchange_rate_type.
I wanted to know if I have to declare that form somewhere else because the code in the form is not triggering
thanks for your help
‎2010 Dec 07 1:43 PM
Hi,
I dont think there is an form with that name in the include RV60AFZZ.
‎2010 Dec 07 1:47 PM
‎2010 Dec 07 1:54 PM
‎2010 Dec 07 1:55 PM
‎2010 Dec 07 2:01 PM
Yup, just noticed.
Did you debug and see the the debugger coming to the PERFORM USEREXIT... without executing it?
‎2010 Dec 07 2:03 PM
‎2010 Dec 07 2:05 PM
‎2010 Dec 07 2:08 PM
>
> problem is that its not even passing in that fm
Just to make sure: you actually saw that during debugging? And it's not just a conclusion because the result is not what you expected?
And no, you don't need to define a project.
‎2010 Dec 07 2:11 PM
no, i didnt see it passing in that exit
thats why im a bit confused
‎2010 Dec 07 2:21 PM
Okay.. seems i'm still not clear about it. Going to try step-by-step then.
Did you use debugging?
‎2010 Dec 07 2:36 PM
Hi,
in is 1330330 written:
*The exit is only needed if users are allowed to change the billing date after the billing document is created. In this case, the
exchange rate date and the exchange rate needs to be re-determined following the logic above.*
Are your users allowed to do this?
regards, dieter
‎2010 Dec 07 2:57 PM
Hi
That exit is called in fm RV_INVOICE_HEAD_MAINTAIN:
*---------------------------------------------------------------------*
* Steuerung *
*---------------------------------------------------------------------*
* Faktura ändern
LOOP AT xvbrk.
IF xvbrk-vbeln = vbrk-vbeln.
xvbrk_tabix = sy-tabix.
beleg = xvbrk-vbeln.
zvbrk = xvbrk.
vbrkvb = xvbrk.
LOOP AT xvbpa WHERE vbeln = xvbrk-vbeln.
PERFORM kundenviews_fuellen USING sy-subrc.
ENDLOOP.
* evtl. Kurs neu ermitteln
* if vbrk-fkdat ne xvbrk-fkdat.
IF vbrk-fkdat NE xvbrk-fkdat AND
vbrk-sfakn IS INITIAL.
PERFORM t001_lesen USING vbrk-bukrs sy-subrc.
IF sy-subrc = 0 AND vbrk-cpkur = space.
vbrk-kurrf_dat = vbrk-fkdat.
IF vbrk-waerk NE t001-waers.
kurstyp = vbrk-kurst.
IF kurstyp IS INITIAL OR vbrk-vbtyp NA vbtyp_fkiv.
kurstyp = 'M'.
ENDIF.
PERFORM userexit_exchange_rate_type
IN PROGRAM saplv60a IF FOUND.Try tp checl if the program run it in according to the note 1330330 (see what Dieter has said)
Max
‎2010 Dec 07 3:22 PM
Hi,
Please execute the program RV80HGEN in your system and see whether it will trigger after this. I guess it should now be triggering.
Regards,
SRinivas
‎2010 Dec 08 4:53 AM
hi srinivas
this program should not be executed only after adding entries in tcode VOFM?
here I have only added a code in the program
‎2010 Dec 08 5:24 AM
hi srinivas
I did execute the program RV80HGEN, it is still not triggering
‎2010 Dec 09 7:59 AM
i have removed the implementation there, because its not supposed to trigger at this specific point
thanks everyone for your help