cancel
Showing results for 
Search instead for 
Did you mean: 

Field on change

Former Member
0 Kudos

Hi all,

I am sure this had been answered many times. I am sorry that I couldnt find right thread.

My question is, how could I enhance the below program in such a way, i input parameter A and parameter B. Once these two parameters are filled, the program will immediately calculate A + B = C into p_total without click on the execute button?


  selection-screen begin of block b1 with frame title text-001.
  parameters: p_a type i,
              p_b type i,
              p_total type i.
  selection-screen end of block b1.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try like below:


selection-screen begin of block b1 with frame title text-001.
  parameters: p_a type i,
              p_b type i,
              p_total type i.
  selection-screen end of block b1.

at selection-screen output.

p_total = p_a + p_b.

hitting enter would populate the value in p_total

Regards,

Himanshu

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

U need to insert in the AT SELECTION-SCREEN event:

AT SELECTION-SCREEN.

  P_TOTAL = P_A + P_B.

Anyway the use has to press enter

Max

Former Member
0 Kudos

Dear Administrator,

I am sorry that I posted into the wrong thread. Could you please redirect this into ABAP general?