06-12-2014 9:33 AM
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
06-12-2014 9:43 AM
Hi Karthik,
Try to clear values in ROCESS BEFORE OUTPUT under MODULE status option......
Regards,
Ritesh
06-12-2014 9:45 AM
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
06-12-2014 9:58 AM
Hi Karthik,
Can you please send your code, so that it will be easy to find PAI error.
Regards,
Ritesh
06-12-2014 10:53 AM
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.
06-12-2014 11:29 AM
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??
06-12-2014 11:48 AM
And more than that my field is in a sub screen (Enhancement ) and in subscreen i cannot use that LEAVE TO SCREEN comment.
06-12-2014 11:51 AM
In a subscreen, make use of CALL SCREEN.
Are you clearing all the three variables simultaneously in PAI module?
06-12-2014 12:18 PM
06-12-2014 12:21 PM
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.
06-12-2014 12:41 PM
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