1

Allow users to enter a value to alv and get that value to internal table.

 1 year ago
source link: https://answers.sap.com/questions/13691619/allow-users-to-enter-a-value-to-alv-and-get-that-v.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
39 secs ago

Allow users to enter a value to alv and get that value to internal table.

2 Views

Hello everyone,

the task is to allow users to enter numeric values and by pressing Enter or clicking some button, to calculate that value in another column.

TYPES: BEGIN OF ls_invent_alv,
werks TYPE iseg-werks,
name1 TYPE t001w-name1,
wekgr TYPE maw1-wekgr,
eknam TYPE t024-eknam,
matkl TYPE mara-matkl,
wgbez TYPE t023t-wgbez,
matnr TYPE iseg-matnr,
maktx TYPE makt-maktx,
netwr TYPE vbrp-netwr,
budat TYPE iseg-budat,
dmbtr1 TYPE mseg-dmbtr,
dmbtr2 TYPE mseg-dmbtr,
dmbtr3 TYPE mseg-dmbtr,
dmbtr4 TYPE mseg-dmbtr,
sumdmb TYPE mseg-dmbtr,
decres TYPE p DECIMALS 2,
END OF ls_invent_alv.
DATA: gt_invent TYPE STANDARD TABLE OF ls_invent_alv,
wa_invent LIKE LINE OF gt_invent.

This is my table, which is filled with some data.

This is how it should look like:

image.png

on the left columns, data, which is gathered from tables, on the left side (after first green column) are the columns, which should be allow for users to enter value and in green columns, they should be calculated.

Any ideas of how to do this? I have read somethig about REUSE_ALV_GRID_DISPLAY_LVC FM, but have no idea of how to implement this to my program.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK