‎2007 Apr 23 2:28 PM
hi want to read a field from the screen sapmv45b where the table is fpla and the field is rfpln !!! can u plss tell me how to do it!! n how caan i read all the values!!
‎2007 Apr 23 2:30 PM
Are you in some user exit of that program??
Or do you want that value in some other program?
If you want that value in some user exit of the program, then you can do this.
create field symbol
FIELD-SYMBOLS: <status>.
Assign value of variable from calling prog to field symbol
ASSIGN ('(SAPMV45B)FPLA-RFPLN') TO <status>.
Now, the Field symbol <status> will hold the value of that field.
regards,
Ravi
‎2007 Apr 23 2:30 PM
Are you in some user exit of that program??
Or do you want that value in some other program?
If you want that value in some user exit of the program, then you can do this.
create field symbol
FIELD-SYMBOLS: <status>.
Assign value of variable from calling prog to field symbol
ASSIGN ('(SAPMV45B)FPLA-RFPLN') TO <status>.
Now, the Field symbol <status> will hold the value of that field.
regards,
Ravi
‎2007 Apr 23 2:39 PM
‎2007 Apr 23 2:33 PM
hi
U can read field RFPLN from table FPLA as in the usual manner.
SELECT RFPLN FROM FPLA INTO variable where condintion.
endselect.
I think u cant read a feild from the screen itself.
regards
sreeni
‎2007 Apr 23 2:41 PM
Hi,
depending on whether you are in Process Before Output or in Process After Input, you can access directly the contents of a screen field or not. There is a way to avoid this problem: you should use function module DYNP_VALUES_READ.
I hope it helps. Best regards,
Alvaro