on 06-23-2009 5:42 PM
We have a smart form that is showing a date from the wrong variable. I when to global definitions and added a new variable V_GSTRP TYPE AFKO-GSTRP. I changed the variable name in the smart form from &V_ERDAT& to &V_GSTRP&. I then added the following line to initialization routine.
SELECT SINGLE gstrp INTO V_GSTRP FROM afko WHERE aufnr = wa_aufk-aufnr.
When I activate the program, I get the following error
Global Definitions The field "V_GSTRP" is unknown, but there is a field with the similar name "V_GLTRP". .
The field V_GLTRP is declared as Type AFKO-GLTRTP
There is also a line of code in the initialization routine
SELECT SINGLE gltrp INTO v_gltrp FROM afko WHERE aufnr = wa_aufk-aufnr.
When I comment out the line SELECT SINGLE gstrp INTO V_GSTRP FROM afko WHERE aufnr = wa_aufk-aufnr, The form will activate.
Any help will be appreciated.
Hi Scott,
Sorry if this is a stupid question, but have you added V_GSTRP to the 'Output Parameters' list on the initialisation?
Regards,
Nick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not a stupid question. I had reviewed the output parameters. In the list, there were several empty lines. Had I continued to scroll, I would have seen that V_GLTRP was also in the list.
Thanks a bunch, the program now activates...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.