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

Screen input not getting cleared

Former Member
0 Likes
944

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

10 REPLIES 10
Read only

Former Member
0 Likes
893

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

Read only

0 Likes
893

Yeah sry, its a typo error, its clear only in the code.

Read only

Former Member
0 Likes
893

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

Read only

Former Member
0 Likes
893

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

Read only

0 Likes
893

HI,

I have given clear after screen-input, its not getting cleared.

The base_qty type is curr (9).

base_qty like plfh-mgvgw.

Plz help.

Regards,

senthil

Read only

0 Likes
893

its a typo error. so clear the quanitity in PBO.

It will work fine.

Read only

0 Likes
893

Plz understand its not a typo error. If it is it will tell syntax error.

Regards,

S

Read only

Former Member
0 Likes
893

CHeck the screen attributes

remove the hold data check box.

Vasanth

Read only

0 Likes
893

Its already unchecked.

Read only

Former Member
0 Likes
893

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