Skip to Content
author's profile photo Former Member
Former Member

On click of Button

Hello Experts,

I have develop one sreen , in which i want once the user click on save button, entries get disable and save button also,

and edit button in appliaction toolbar get enable.

Plz suggest,

Aastha

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 30, 2009 at 11:23 AM

    Hi.

    Have You ever heard the concept of Screen table? Using this concept you can achieve your desired functionality.

    Regards,

    D.Kiran Kumar

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 30, 2009 at 11:34 AM

    Hi,

    Refer:-

    Take the group for all the screen fields as ABC using their respective properties when you double click the controls on screen.

    Declare this as global parameter:

      DATA v_save TYPE c. "<--to identify whether SAVE button is clicked or not
    

    Use this code in PAI when user clicks SAVE button.

    In PAI:-

    METHOD user_command_8001.
    
      DATA v_ucomm TYPE sy-ucomm.
    
      CLEAR v_save.
      v_ucomm = sy-ucomm.
    
      CASE v_ucomm.
        WHEN ' SAVE'.
          v_save = 'X'.
          "rest your code as per your requirement
      ENDCASE.
    ENDMETHOD.
    

    In PBO use code:-

    METHOD status_8001.
    
      IF v_save = 'X'.
        LOOP AT SCREEN.
          IF screen-group = 'ABC'.
            screen-input = 0.
            screen-active = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF screen-group = 'ABC'.
            screen-input = 1.
            screen-active = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    
    ENDMETHOD.
    

    Hope this helps you.

    Regards,

    Tarun

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 02, 2009 at 08:37 AM

    data : begin of gt_extab occurs 0,

    fcode like rsmpe-func,

    end of gt_extab.

    CASE SY-UCOMM.

    when 'SAVE'.

    REFRESH GT_EXTAB.

    MOVE 'SAVE' TO GT_EXTAB-FCODE.

    APPEND GT_EXTAB.

    CLEAR GT_EXTAB.

    SET PF-STATUS 'STATUS' EXCLUDING GT_EXTAB.

    ENDCASE.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 02, 2009 at 09:08 AM

    Hi ,

    you can use Tarun code it seem to correct only thing is

    screen-group1= 'ABC' .

    Try it will work fine.

    Regards

    Nilesh

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.