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

Reading values from editable ALV

Former Member
0 Likes
1,349

hi guru's,

i have created ALV repor with lifnr field editable....i have entered the vendor code and clicked update...but the internal table(final)

does not have the entered vendor code in the lifnr field...means reading the entered value in the lifnr field..how to do that

plz help...

with regards,

Balaji.S

hi guru's,

i have created ALV repor with lifnr field editable....i have entered the vendor code and clicked update...but the internal table(final)

does not have the entered vendor code in the lifnr field...means reading the entered value in the lifnr field..how to do that

plz help...

with regards,

Balaji.S

10 REPLIES 10
Read only

Former Member
0 Likes
1,278

keep i_save = 'X'

Read only

0 Likes
1,278

still not working.....i want to read the entered value in the lifnr field in the internal table

Read only

0 Likes
1,278

this i_save saves the table after you come out of alv..

where do you want it to be accessed??

in any user_command event?

if yes,

then you need to call data_changed event in this user_command too

Read only

0 Likes
1,278

yes inside the user command.....canu tell me exactly which functional module to use.........

Read only

0 Likes
1,278

Hi Balaji, Try this way to update entered values when you click on UPDATE button.


*------------------------------------------------------------------*
*       FORM USER_COMMAND                                          *
*------------------------------------------------------------------*
FORM user_command USING r_ucomm LIKE sy-ucomm rs_selfield TYPE slis_selfield.
* Check function code
  CASE r_ucomm.
    WHEN 'UPDATE'.  "user presses SAVE
      rs_selfield-refresh = 'X'.
  ENDCASE.
ENDFORM.                    "user_command
I hope that it solves your problem. Thanks Venkat.O

Read only

0 Likes
1,278

no still not solved/.....

Read only

0 Likes
1,278

Hi Balaji, <li>Paste your USER_COMMAND code here . Thanks Venkat.O

Read only

0 Likes
1,278

FORM user_command USING pv_ucomm LIKE sy-ucomm selfield TYPE slis_selfield.

BREAK-POINT.

DATA v_par(10).

CASE pv_ucomm.

WHEN '&IC1'.

IF selfield-value IS NOT INITIAL.

READ TABLE final INDEX selfield-tabindex.

SET PARAMETER ID: 'MRV' FIELD final-belnr,

'MRVP' FIELD final-blpos.

GET PARAMETER ID 'KBL' FIELD v_par.

CALL TRANSACTION 'FMY3' AND SKIP FIRST SCREEN.

ENDIF.

WHEN 'APPR'.

loop at final where sel = 'X' and also lifnr field will have a value

i need to read that lifnr

endloop.

Read only

0 Likes
1,278

i have changed the program like this..now its perfect thanks for your efforts.....

FORM user_command USING pv_ucomm LIKE sy-ucomm selfield TYPE slis_selfield.

BREAK-POINT.

DATA v_par(10).

CASE pv_ucomm.

WHEN '&IC1'.

IF selfield-value IS NOT INITIAL.

READ TABLE final INDEX selfield-tabindex.

SET PARAMETER ID: 'MRV' FIELD final-belnr,

'MRVP' FIELD final-blpos.

GET PARAMETER ID 'KBL' FIELD v_par.

CALL TRANSACTION 'FMY3' AND SKIP FIRST SCREEN.

ENDIF.

WHEN 'APPR'.

CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'

IMPORTING

e_grid = lv_ref_grid.

IF NOT lv_ref_grid IS INITIAL.

CALL METHOD lv_ref_grid->check_changed_data.

ENDIF.

regards,

Balaji.S

Read only

0 Likes
1,278

Hi Balaji, <li>As you solved yourself, you can close the thread. Having open threads not good. Thanks Venkat.O