‎2007 Aug 29 4:22 PM
Hi All,
I have to develop a customized function module to calucualte the interest rate.
because sap standard program doesn't pass the date value into function module so I need to get the value by using field symbol and reference back to the main program.
Normally I can use the code
FIELD-SYMBOLS: <fs_date> type sy-datum.
assign ('(SAPLDUZI)WF_VONDT') to <fs_date>.
to get date value, but I cannot do that in ECC 6.
even though in debug mode if I put (SAPLDUZI)WF_VONDT into variable tab, it won't show the value. However, If I return to the main program, it will show the value.
How can I reference to main program's variable?
Thanks, Phon
‎2007 Aug 29 4:42 PM
Hi Phon,
May be you can use Memory Id concept. Just a thought...
Sri
‎2007 Aug 29 4:45 PM
Thanks, but then I have to change an SAP standard program. That would be my last choice.
‎2007 Aug 29 5:07 PM
Try This..
FIELD-SYMBOLS: <fs_date> type sy-datum.
DATA: l_fld(50) VALUE '(SAPLDUZI)WF_VONDT'.
ASSIGN (l_fld) TO <fs_date>.
Sri
‎2007 Aug 29 5:11 PM
Thanks Sri,
Same result, I tried that code already.
Is it because WF_VONDT a local varible?
‎2007 Oct 24 3:56 PM