2008 Aug 22 10:56 AM
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.
2008 Aug 22 11:17 AM
>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...
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.
2008 Aug 22 11:12 AM
2008 Aug 22 11:17 AM
>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...
2008 Aug 22 11:18 AM
Dear Vijay,
I have passed F-58 program name and screen no to the FM.
2008 Aug 22 11:24 AM
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.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |