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

Push button codings

Former Member
0 Likes
553

Hi experts

Pls help me out in the coding for below,,,,

i have 3 button inside my screen

SAVE

CHANGE

DISPLAY

when i click on SAVE button the feild inputs shud get saved,

when i click on CHANGE it shud be in a editable mode m where i can change the inputs which is already SAVE

when i click on DISPLAY , i shud only be able to see (ie not editable mode).

Thanx in advance

Rach

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
532

Arun,

Only when you start coding then only you will understand the difficulties . Please try to use SDN for Trobule shooting. Not for

the Code.

Your post seems like You are inputting the Spec and expecting the Code.

Please use the forum for Problems or issues.

5 REPLIES 5
Read only

Former Member
0 Likes
532

hi,

While creating the Buttons you have defines F CODES for the Buttons.

Use AT USER-COMMAND.

case sy-ucomm.

when 'SAVE'.

<your code>

when 'DISPLAY'.

<your Code>

endcase.

regards

Sumit AGarwal

Read only

Former Member
0 Likes
533

Arun,

Only when you start coding then only you will understand the difficulties . Please try to use SDN for Trobule shooting. Not for

the Code.

Your post seems like You are inputting the Spec and expecting the Code.

Please use the forum for Problems or issues.

Read only

0 Likes
532

ok then

thanx

Read only

Former Member
0 Likes
532

hiii

you can do this by using following code

START-OF-SELECTION.

  SET PF-STATUS 'STATUS'.
  PERFORM get_data_kna1.

END-OF-SELECTION.

 CASE sy-ucomm.
  WHEN 'CUSTOMER'.

      SELECT SINGLE kunnr
      FROM kna1
      INTO w_kna1
      WHERE kunnr = w_kunnr.

      IF sy-subrc <> 0.
         MESSAGE e015(zmsg9).
       ENDIF.

   WHEN 'ORDER'.
            SELECT SINGLE vbeln
      FROM vbak
      INTO w_vbak
      WHERE vbeln = w_vbeln.

      IF sy-subrc <> 0.
       MESSAGE e015(zmsg9).
      ENDIF.

  ENDCASE.

regards

twinkal

Read only

Former Member
0 Likes
532

hi

use the AT USERCOMMAND EVENT

NOW IN THIS

use case on Sy-ucomm like this

CASE sy-comm.

when 'SAVE'

append the input in the field to the appropiate internal table or database table .

When 'change'.

loop at screen and make the fields input enable by

making

Screen-input = '1'.

When 'display'.

again loop at screen and make the fields input disable by

making

Screen-input = '0'

hope ur problem will lead to a solution after this post

Cheers

Snehi