Application Development 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: 

Reg : Clearing Screen Text Field

karthik_snair
Participant
0 Kudos

Hi Team ,

In the above image , When ever the Customer Agreed Date is changed , Code group and Code field becomes enabled and what ever the previous value which were there initially will get cleared.

Now The field beside the Code shows the Description(Text) of the code.

The issue is that field is not getting cleared.

I am clearing , and while debugging the variable that is passing the description value to this screen field don't have any value after clearing.But still in the screen its the cleared value are not reflecting.

There is an error message which is written immediately after the clear statement.

The problem happens only while clearing.

Instead if i pass another value then no issue its displaying that new value.

So how to clear the text from screen field.I thing its some thing buffering issue.

Please suggest me some idea to achieve this.

Thanks!

Karthik.S

10 REPLIES 10

ritesh_inamdar
Explorer
0 Kudos

Hi Karthik,

Try to clear values in ROCESS BEFORE OUTPUT under MODULE status option......


Regards,

Ritesh

0 Kudos

Hi Rithesh,

In PAI there is a validation and if it fails it will throw an error.So it wont go to PBO once it throws the error.

Regards,

Karthik.S

0 Kudos

Hi Karthik,

Can you please send your code, so that it will be easy to find PAI error.

Regards,

Ritesh

karun_prabhu
Active Contributor
0 Kudos

It happens if you throw TYPE 'E' message. Reason is PBO won't be executed on throwing TYPE 'E' message.

Instead use,

MESSAGE 'Error text' TYPE 'S' DISPLAY LIKE 'E'.

LEAVE TO SCREEN sy-dynnr.

0 Kudos

Hi Arun,

Once the error occured i want to stop there by throwing the message.But if I display the message as you said it goes further after displaying the message(I have already tried).

My question is why only this text is having issue while other fields are getting cleared??

0 Kudos

And more than that my field is in a sub screen (Enhancement ) and in subscreen i cannot use that LEAVE TO SCREEN comment.

0 Kudos

In a subscreen, make use of CALL SCREEN.

Are you clearing all the three variables simultaneously in PAI module?

0 Kudos

yes i am clearing all .

0 Kudos

Can you paste that CLEAR and ERROR statement portion in a screen shot?

Only when PBO is executed, it will be reflected in the screen.

0 Kudos

Hi ,

I have done with that.What I did is I displayed like the error message as below.

Before displaying i am clearing the variables.

type S display like E.

Then i kept EXIT commant immediately after that.

So it goes to PBO AS well there.

So its working.

Thanks!

Karthik.S