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

form in program RV60AFZZ

Former Member
0 Likes
2,821

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

16 REPLIES 16
Read only

Former Member
0 Likes
2,498

Hi,

I dont think there is an form with that name in the include RV60AFZZ.

Read only

0 Likes
2,498

i had to define it following a sap note 1330330

Read only

0 Likes
2,498

Did you also code a PERFORM USEREXIT.... somewhere else?

Read only

0 Likes
2,498

yes, this form is called in fm RV_INVOICE_HEAD_MAINTAIN

Read only

0 Likes
2,498

Yup, just noticed.

Did you debug and see the the debugger coming to the PERFORM USEREXIT... without executing it?

Read only

0 Likes
2,498

problem is that its not even passing in that fm

Read only

0 Likes
2,498

should i define a project for that user exit?

Read only

0 Likes
2,498

>

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

Read only

0 Likes
2,498

no, i didnt see it passing in that exit

thats why im a bit confused

Read only

0 Likes
2,498

Okay.. seems i'm still not clear about it. Going to try step-by-step then.

Did you use debugging?

Read only

0 Likes
2,498

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

Read only

0 Likes
2,498

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

Read only

0 Likes
2,498

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

Read only

0 Likes
2,498

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

Read only

0 Likes
2,498

hi srinivas

I did execute the program RV80HGEN, it is still not triggering

Read only

0 Likes
2,498

i have removed the implementation there, because its not supposed to trigger at this specific point

thanks everyone for your help