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

reading a screen

Former Member
0 Likes
601

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!!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
571

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

4 REPLIES 4
Read only

Former Member
0 Likes
572

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

Read only

0 Likes
571

do i need to put any loop!!!

Read only

Former Member
0 Likes
571

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

Read only

Former Member
0 Likes
571

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