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

DYNP_VALUES_READ

rahul2000
Contributor
0 Likes
693

Dear all,

My below code is not returning any value...Please let me know where I am going wrong..I am trying to read Cheque Lot No from F-58 screen.Fieldvalue comes blank..

DATA : SCR_PSTAP TYPE PCEC-STAPL.

DATA : BEGIN OF SCRFIELD OCCURS 10.

INCLUDE STRUCTURE DYNPREAD.

DATA : END OF SCRFIELD.

SCRFIELD-FIELDNAME = 'OPAYF-PSTAP'.

APPEND SCRFIELD.

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

DYNAME = 'SAPMF05A'

DYNUMB = '0130'

TABLES

DYNPFIELDS = SCRFIELD

EXCEPTIONS

INVALID_ABAPWORKAREA = 1

INVALID_DYNPROFIELD = 2

INVALID_DYNPRONAME = 3

INVALID_DYNPRONUMMER = 4

INVALID_REQUEST = 5

NO_FIELDDESCRIPTION = 6

INVALID_PARAMETER = 7

UNDEFIND_ERROR = 8

OTHERS = 9.

READ TABLE SCRFIELD INDEX 1.

SCR_PSTAP = SCRFIELD-FIELDVALUE.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
615

>read Cheque Lot No from F-58 screen.Fieldvalue comes blank..

From where you are reading it. can you let me know. Since F-58 is standard transaction, But you are using the logic in your program means then how you are linking those two...

4 REPLIES 4
Read only

bpawanchand
Active Contributor
0 Likes
615

Hi

Check the below link

Regards

Pavan

Read only

Former Member
0 Likes
616

>read Cheque Lot No from F-58 screen.Fieldvalue comes blank..

From where you are reading it. can you let me know. Since F-58 is standard transaction, But you are using the logic in your program means then how you are linking those two...

Read only

0 Likes
615

Dear Vijay,

I have passed F-58 program name and screen no to the FM.

Read only

0 Likes
615

I don;t think you can get the values from another program. This is not possible.

If you pass the program name etc of your program then ok . But if there is no relation between your program and F-58 program then how you get the values(even if there is some value in the selection screen of F-58).

up to my knowledge it is not possible.