2009 Oct 13 7:43 AM
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
2009 Oct 13 7:43 AM
2009 Oct 13 7:46 AM
still not working.....i want to read the entered value in the lifnr field in the internal table
2009 Oct 13 7:51 AM
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
2009 Oct 13 8:33 AM
yes inside the user command.....canu tell me exactly which functional module to use.........
2009 Oct 13 8:47 AM
Hi Balaji,
Try this way to update entered values when you click on UPDATE button.
I hope that it solves your problem.
Thanks
Venkat.O
*------------------------------------------------------------------*
* 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
2009 Oct 13 8:52 AM
2009 Oct 13 8:54 AM
Hi Balaji, <li>Paste your USER_COMMAND code here . Thanks Venkat.O
2009 Oct 13 9:09 AM
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.
2009 Oct 13 9:22 AM
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
2009 Oct 13 9:28 AM
Hi Balaji, <li>As you solved yourself, you can close the thread. Having open threads not good. Thanks Venkat.O
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |