Application Development 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: 

form in program RV60AFZZ

former_member581430
Participant
0 Kudos

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

Former Member
0 Kudos

Hi,

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

0 Kudos

i had to define it following a sap note 1330330

0 Kudos

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

0 Kudos

yes, this form is called in fm RV_INVOICE_HEAD_MAINTAIN

0 Kudos

Yup, just noticed.

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

0 Kudos

problem is that its not even passing in that fm

0 Kudos

should i define a project for that user exit?

0 Kudos

>

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

0 Kudos

no, i didnt see it passing in that exit

thats why im a bit confused

0 Kudos

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

Did you use debugging?

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

hi srinivas

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

0 Kudos

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

thanks everyone for your help