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

Screen input not getting cleared

Hi All,

I got a peculiar problem,

In my dialog screen(ztcode), i have make a field input enable based on machine and position(Ztable). Now my problem is, when this field gets input enabled im getting some value with this(some 30.12), i really dont know where it is comming from. Even i have cleared this field before endmodule (last stmt in PBO).

Now this looks strange when i jus change my code to screen-input = 0 without anyother modification, its coming disabled with value cleared (0.000). I need to get the value cleared when the input is on. Kindly let me know how to solve this.

if zmach = 'TCE1' and zpos = '01'.

loop at screen.

if screen-name = 'BASE_QTY'.

screen-input = 1.

endif.

modify screen.

endloop.

endif.

cleart base_qty.

endmodule.

Plz its urgent.

Will reward u definetly .

Regards,

Senthil

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2007 at 05:28 PM

    Hi,

    Instead of clear you mentioned CLEART..Is this a typo..

    Also this code should work..

    if zmach = 'TCE1' and zpos = '01'.

    loop at screen.

    if screen-name = 'BASE_QTY'.

    screen-input = 1.

    endif.

    modify screen.

    endloop.

    endif.

    <b>clear: base_qty</b>.

    endmodule.

    THanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2007 at 05:30 PM

    Hi,

    It should be cleare when you write the Clear statment in the PBO, it looks strange, just try this one also

    if screen-name = 'BASE_QTY'.

    screen-input = 1.

    <b>Write the Clear statment here</b>

    endif.

    and write the Clear statment in the PBO, but it should be the first statment, or write the CLEAR in the PAI which executed before that PBO.

    Regards

    Sudheer

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2007 at 05:32 PM

    Hi,

    Are you referring the field to any numeric data type?

    Check the properties of that field and refer to some other data type.

    Regards

    Subramanian

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2007 at 05:58 PM

    CHeck the screen attributes

    remove the hold data check box.

    Vasanth

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2007 at 06:01 PM

    Hi,

    Check in the debugging of when is this getting populated..

    Steps

    /h in the command field..Switch on the debugging..

    Create a watch point on the field BASE_QTY.

    Then press F8..It will stop where the field is getting modified..

    Thanks,

    Naren

    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.