on 04-18-2007 1:14 PM
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
code please.
Regards
Prabhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
.
.
.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.