2009 Sep 18 4:37 PM
Hello,
I have some problem with a transformation of a field in a dynpro.
I make a button to make INPUT or NON INPUT the field.
The data element of that field is DATUV.
My code is :
LOOP AT SCREEN.
CASE screen-name.
WHEN 'RC271-STTAG'.
screen-input = 1.
gv_flag = 'X'.
MODIFY SCREEN.
WHEN OTHERS.
ENDCASE.
ENDLOOP.
That code is in a PAI, and before that, i have tested the SY-UCOMM .
That code works, BUT, when the field is in state INPUT = 1, the old value which was filled, appear on the field.....
Example :
Open transaction
FIELD -- INPUT 0
Push button
FIELD -- INPUT 1
Field value is empty
Fill value '00001' on the field
Out to transaction
Open transaction
FIELD -- INPUT 0
Push button
FIELD -- INPUT 1
Field value not emply, the value is '00001'.
Out to transaction
Thx for your help....
Hello,
I have some problem with a transformation of a field in a dynpro.
I make a button to make INPUT or NON INPUT the field.
The data element of that field is DATUV.
My code is :
LOOP AT SCREEN.
CASE screen-name.
WHEN 'RC271-STTAG'.
screen-input = 1.
gv_flag = 'X'.
MODIFY SCREEN.
WHEN OTHERS.
ENDCASE.
ENDLOOP.
That code is in a PAI, and before that, i have tested the SY-UCOMM .
That code works, BUT, when the field is in state INPUT = 1, the old value which was filled, appear on the field.....
Example :
Open transaction
FIELD -- INPUT 0
Push button
FIELD -- INPUT 1
Field value is empty
Fill value '00001' on the field
Out to transaction
Open transaction
FIELD -- INPUT 0
Push button
FIELD -- INPUT 1
Field value not emply, the value is '00001'.
Out to transaction
Thx for your help....
2009 Sep 18 4:44 PM
>
> That code is in a PAI, and before that, i have tested the SY-UCOMM .
Hi, Guilaume
Always USE MODIFY SCREEN in PBO so Please Move you Code to PBO.
USE CLEAR for your Screen Parameter or Select Option just before screen-input = 1. this line
Please Reply if any Issue,
Regards,
Faisal
2009 Sep 21 12:44 PM
Thx for your help.
I Have an other question...
I want clear a variable when a user launch a transaction,
that is the sequence i would make :
Launch transaction ->: Screen 1000 - Variable clear -> Fill variable with '0000' and Push button ->: Screen 1200 - Back
-> Screen 1000 variable '0000'. Exit transaction
And when the user will launch again the transaction, the variable should be clear, but the last data still appear....
I make a clear on it, but the variable still appear... it is a variable in the system...? why i cant clear that...?
I wanna the variable clear for the begining of the transaction, always.
Thx for your answer.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |