01-29-2020 10:20 AM
Hi,
I am working on custom time function.I need the screen field values entered on the selection screen of standard program RPTIME00 ( Tcode : PT60 ) into my custom time function program.
How to read the values ?
Screenshot attached.time-evaluation-pt60.png
Thanks & Regards,
Shabbir
01-29-2020 4:05 PM
Hi.
You can use field symbols to read the value of any variable in another program. This example fetchs value from parameter SCHEMA in RPTIME00.
DATA: LV_SCHEMA LIKE RPTAXXXX-RSCHEMA,
L_VAR_NAME(16) TYPE C VALUE '(RPTIME00)SCHEMA'.
FIELD-SYMBOLS: <L_FS> TYPE ANY,
<WA> TYPE RESBB.
ASSIGN (L_VAR_NAME) TO <L_FS>.
LV_SCHEMA = <L_FS>.
01-29-2020 4:05 PM
Hi.
You can use field symbols to read the value of any variable in another program. This example fetchs value from parameter SCHEMA in RPTIME00.
DATA: LV_SCHEMA LIKE RPTAXXXX-RSCHEMA,
L_VAR_NAME(16) TYPE C VALUE '(RPTIME00)SCHEMA'.
FIELD-SYMBOLS: <L_FS> TYPE ANY,
<WA> TYPE RESBB.
ASSIGN (L_VAR_NAME) TO <L_FS>.
LV_SCHEMA = <L_FS>.
02-04-2020 6:10 AM
Hi Dairo,
Thanks for the reply.
I am trying to get the end date as follows but is giving dump saying field symbol not assigned.
Ex:
DATA: LV_ENDDA LIKE RPTAXXXX-ENDDA,
L_VAR_NAME(16)TYPECVALUE'(RPTIME00)ENDDA'.
FIELD-SYMBOLS:<L_FS>TYPEANY,
<WA>TYPE RESBB.
ASSIGN(L_VAR_NAME)TO<L_FS>.
LV_ENDDA =<L_FS>.