2005 Dec 13 6:57 PM
Hi All,
Gud to c many threads on ALV and very good they get there answers, well i am also on the same boat
I have given the option for saving the grid under the method SET_TABLE_FOR_FIRST_DISPLAY
with I_SAVE = 'U'
but when i am saving the Grid it is giving a dump:-)
Some suggestion will surely make a difference for me in solving .
Cheers.
2005 Dec 13 7:08 PM
What does the dump say and please post the relevant code.
Regards,
Rich Heilman
2005 Dec 13 7:08 PM
2005 Dec 13 7:13 PM
have a look at your fieldcatalog, it's may wrong.
Alexandre Nogueira.
2005 Dec 13 7:17 PM
Hi Rich,
As expected ! thanx
i am using this snippet of code
CALL METHOD GO_GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
I_SAVE = 'A'
I_DEFAULT = 'X'
IS_LAYOUT = GS_LAYOUT
IT_TOOLBAR_EXCLUDING = GS_EXCLUDE
CHANGING
IT_OUTTAB = ITAB[]
IT_FIELDCATALOG = GT_FLDCAT
.
The termination occurred in the ABAP/4 program
"CL_ALV_VARIANT================CP " in
"SAVE_VARIANT".
The main program was "ZMD_UA ".
The termination occurred in line 118
of the source code of program "CL_ALV_VARIANT================CM001 " (when
calling the editor 1180).
Kindly Suggest me where am i going wrong.
2005 Dec 13 7:32 PM
<b>LS_VARI TYPE DISVARIANT.</b>
<b>**Vaiant to save the layout
LS_VARI-REPORT = SY-REPID.
LS_VARI-HANDLE = SPACE.
LS_VARI-LOG_GROUP = SPACE.
LS_VARI-USERNAME = SPACE.
LS_VARI-VARIANT = SPACE.
LS_VARI-TEXT = SPACE.
LS_VARI-DEPENDVARS = SPACE.</b>
**Calling the Method for ALV output
CALL METHOD G_GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IT_TOOLBAR_EXCLUDING = LT_EXCLUDE
<b> IS_VARIANT = LS_VARI</b>
IS_LAYOUT = GS_LAYOUT
I_SAVE = 'A'
CHANGING
IT_FIELDCATALOG = IT_FIELDCAT
IT_OUTTAB = IT_FINAL[].try to give Bold ones or remove is_save = 'A'.
it will work....
2005 Dec 13 7:35 PM
Hi Azee,
Try to see the code which i have given, you gave
i_save = 'A'. and but you didn't specified variant,
you should specify both together, or don't give any thing..
regards
vijay
2005 Dec 14 9:11 AM
Hi Vijay,
Sorry for late responce,Thanq for reminding me!
I have seen ur responces ,it is really great job from ur side:)
I ill surely reward u for ur kindfull remainder.
Cheers.
2005 Dec 14 9:31 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |