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: 

ALV grid after update of record it goes to the bottom of ALV

0 Kudos
408

I have ALV grid wherein when i update a record the record goes to the bottom of alv kindly suggest.

SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L0S31 { font-style: italic; color: #808080; } .L0S33 { color: #4DA619; } .L0S52 { color: #0000FF; } .L0S55 { color: #800080; } .L0S70 { color: #808080; } CALL METHOD ref1->CHECK_CHANGED_DATA.
ENDIF.
rs_selfield-refresh = 'X'.
PERFORM get_data.

4 REPLIES 4

abo
Active Contributor
0 Kudos
355

Switch to display mode before copying code: this will avoid pasting HTML formatting.

Then you may use the CODE button to format it properly.

0 Kudos
355


SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}
.L0S31 {
font-style: italic;
color: #808080;
}
.L0S33 {
color: #4DA619;
}
.L0S52 {
color: #0000FF;
}
.L0S55 {
color: #800080;
}
.L0S70 {
color: #808080;
}

   CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
E_GRID = ref1.
ENDIF.
IF NOT ref1 IS INITIAL.
CALL METHOD ref1->CHECK_CHANGED_DATA.
ENDIF.


*
rs_selfield-refresh = 'X'.
PERFORM get_data.

SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L0S31 { font-style: italic; color: #808080; } .L0S33 { color: #4DA619; } .L0S52 { color: #0000FF; } .L0S55 { color: #800080; } .L0S70 { color: #808080; }

0 Kudos
355

As you can see by yourself, you are still not able to paste code correctly. Try with Ctrl+Shift+V.

NB: Please use the COMMENT button for comments, asking for complements, adding details, replying to a comment or a proposed solution or to the OP question, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.

Sandra_Rossi
Active Contributor
0 Kudos
355

Somewhere in your code, you probably change the order of the lines. Could you post the relevant code please?