Application Development and Automation 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: 
Read only

ALV GRID

Former Member
0 Likes
1,058

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.

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,034

What does the dump say and please post the relevant code.

Regards,

Rich Heilman

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.

7 REPLIES 7
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,035

What does the dump say and please post the relevant code.

Regards,

Rich Heilman

Read only

0 Likes
1,034

have a look at your fieldcatalog, it's may wrong.

Alexandre Nogueira.

Read only

0 Likes
1,034

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.

Read only

0 Likes
1,034
<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....

Read only

0 Likes
1,034

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

Read only

0 Likes
1,034

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.

Read only

0 Likes
1,034

Good to see your response..