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

dialog programing

hi,

i am working on the dialog programing and i have a button with FCode 'DET' which is pressed after selecting some rows.

The problem is when i minimize the GUI window and maximize i keep on executing this FCOE 'DET" and check for selected rows and gives message which i had post. i am clearing the sy-ucomm afer my code but why i am getting the sy-ucomm as DET when minimize /maximize GUI window. how to avoid that.

Please help me.

Mahesh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2008 at 01:30 PM

    Hi mahesh,

    Usually this happens in Dialog Program, for that you have to assign a name to the OK_CODE(Assign as OK_CODE) in the element list(the last entry) in your screen painter.

    Then declare a variable with same name(OK_CODE) in your program. Also create a additional variable to hold the same.

    In you Top include or program declare as;

    Data : OK_CODE TYPE SY-UCOMM,
              SAV_OK_CODE TYPE SY_UCOMM.

    Now on PAI the function code will be transfered to your program variable OK_CODE, use it as below in the PAI.

    Module PAI.
    Clear SAV_OK_CODE.
    SAV_OK_CODE = OK_CODE.
    Clear OK_CODE.
    CASE SAV_OK_CODE.
    WHEN 'DET'.
    ----
    -----
    -----
    ENDCASE.
    END MODULE.

    Surely this will solve your problem.

    Regards

    Karthik D

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 23, 2008 at 10:02 AM

    Hi,

    Check your 'pf-status' GUI status what you have cassign in screen. Otherwise use some other user command instead of DET and try.

    Regards,

    Saran

    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.