‎2008 Jul 22 1:16 PM
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
‎2008 Jul 22 1:21 PM
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.
‎2008 Jul 22 1:20 PM
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
‎2008 Jul 22 1:21 PM
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.
‎2008 Jul 22 1:22 PM
‎2008 Jul 22 1:21 PM
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
‎2008 Jul 22 1:24 PM
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