cancel
Showing results for 
Search instead for 
Did you mean: 

Crash in rv60afzz, xvbrp not assigned

0 Kudos

Hallo Experts,

I've used the userexit RV60AFZZ to make some adjustments to vbrp and xvbrp. Works great. But I get trouble as soon as I try to run an account determination analysis of the revenue account of an invoice. The program crashes when the first statement regarding xvbrp should be processed. Runtime error "getwa_not_assigned".

When I use se38 to change the userexit, "xvbrp" behaves like a structure or an internal table. All fieldsymbol related statements are not allowed by the syntax checker. But when I actually run the program, as said above, it seems to behave like a field symbol which was not assigned and throws a runtime error.

I haven't found a way to get a correct syntax and check if the "xvbrp" is assigned properly so that the following statements may be run without creating a runtime error.

Maybe someone has an idea? Thanks in advance for any ideas.

Chris

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

code please.

Regards

Prabhu

0 Kudos

Hallo Prabhu,

here's the coding. Thanks in advance.

Chris


FORM userexit_account_prep_kompcv.
.
.
.
* Falls die VBAK nicht im Zugriff ist (z.B. bei der
* nachträglichen Rechnungsfreigabe), muss sie hier in Zugriff gebracht
* werden, sonst funktionieren die Prüfungen unten nicht richtig.
  IF vbak IS INITIAL.
    SELECT SINGLE * FROM vbak WHERE vbeln = vbrp-aubel.
  ENDIF.

* Nur für Lastschriftanforderungen CS prüfen
  IF vbak-auart = 'L2CS' OR
     vbak-auart = 'G2CS'.
* Entfernt die Auftragsnummer, damit Einzel CO-PA Belege erzeugt
* werden und nicht auf den CS Auftrag abgerechnet wird
        vbrp-aufnr = space.
CHECK xvbrp is not INITIAL. <==== This is where it crashes
        xvbrp-aufnr = space.
.
.
.