cancel
Showing results for 
Search instead for 
Did you mean: 

user-command

Former Member
0 Kudos

hi,

im my scenario in the output field,if i change the quantity value the output should change automatically.

i used at user-command its not working

Delivery DAY SAP 10.000

Delivery DAY Manual 10.000 (it is in change mode)

1 2 3 4 5 6 7 8 9 10

0.38 0.38 0.38 0.38 0.38 0.38 0.38 0.38 0.38 0.38

11 12 13 14 15 16 17 18 19 20

0.38 0.38 0.38 0.38 0.38 0.38 0.38 0.38 0.38 0.38

21 22 23 24 25 26 27 28 29 30

0.38 0.38 0.38 0.38 0.38 0.38 0.38 0.38 0.38 0.38

31

0.38

if i change the quantity as 100 means i should get output as 3.8 instead of 0.38

but in my output value is coming based on quantity 10

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

where are u entering teh values, IN selection screen or where? If it is in selection screen use At selection screen. At user command is for Interactive list in the output for a pushbutton

Former Member
0 Kudos

hi,

in output only im using.

AT USER-COMMAND.

CASE SY-UCOMM.

WHEN '&ENT'.

LOOP AT ITAB.

ITAB-DAY1 = ITAB-QUAN / 26.

ITAB-DAY2 = ITAB-QUAN / 26.

ITAB-DAY3 = ITAB-QUAN / 26.

ITAB-DAY4 = ITAB-QUAN / 26.

..........................................

.......................................

MODIFY ITAB.

ENDLOOP.

ENDCASE.

i used this coding.

but i didnt get the output.

0 Kudos

Hi,

Put break-point at at user command and check the sy-ucomm value,and don't use system variables directly take another temp. variable and move sy-ucomm value to local variable .

regards,

surendar reddy.

Answers (1)

Answers (1)

Former Member
0 Kudos

CHeck after modify statment whether it is modifying the records or not. IF possible use Field symbols