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

Refresh Icon button problem in ALV

Former Member
0 Likes
766

Hi all,

I have developed a report using the ALv grid , everything works fine, except for the Refresh icon in the tool bar menu,

when i click it my column placement go for a toss(only for the currency field.) all the currency field in the report are placed at one place ( which shouldn't have been like that)did anyone of you had the same problem.

its the same with the Excel sheet placement for the report (it does the same thing)

For e.g..

My field catalog is as defined below.

PO number

Po item

Po value

currency

PO value in Local currency

Currency

Invoice value

Currency

Invoice value in Local Currency

Currency

after the refresh or the Excel sheet placed in the screen button is used in the menu

my output is as below.

PO number

Po item

Po value

Currency

Currency

Currency

Currency

PO value in Local currency

Invoice value

Invoice value in Local Currency

could some one help me out in this part .

Thanks in advance.

Regards

5 REPLIES 5
Read only

Former Member
0 Likes
691

Try this..

wa_stable-col = c_check.

wa_stable-row = c_check.

CALL METHOD pw_grid->refresh_table_display

EXPORTING

is_stable = wa_stable

i_soft_refresh = pw_refresh

EXCEPTIONS

finished = 1

OTHERS = 2.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Read only

0 Likes
691

Hi Ramani,

Thanks for the reply.

I have already used the method

buti havent passed the IS_STABLE parameter value into the method.

Can you please let me know what value do i need pass into thois varaible as i have tried with teh 'X' but it doesnt work out.

Regards

Seshidhar

Read only

Former Member
0 Likes
691

Pass 'X' to column and row and it should work

wal_stable-col = 'X'.

wal_stable-row = 'X'.

Read only

0 Likes
691

Hi

It still doesn't work out with the refresh method.

did anybody face the same kind of problem.

if so please let me know how it was solved.

Regards

Read only

0 Likes
691

Hi try this code

FORM user_command USING r_ucomm LIKE sy-ucomm

rs_selfield TYPE slis_selfield.

rs_selfield-refresh = 'X'.

Thxs,

vind