09-27-2005 11:36 AM
Hi,
How can I substitute for a field thats not in the 'Substitutable Fields' list?
I saw OSS Note#42615, but that requires changing the standard.
Is there any other way out?
Thanks in advance!
-Arthi
09-27-2005 11:51 AM
Hi,
I did it our system using this note. But you should update table GB01 by yourself with open sql statement.
Svetlin
09-27-2005 11:58 AM
Thanks Svetlin.
But is there any other option?
Thanks,
Arthi.
Message was edited by: Arthi Nagarajan
09-27-2005 12:11 PM
Hi,
Another way to implement a substitution in FI is to use BTEs(tr.code FIBF) in FI ( process No 1120 ). But fields are limited again. See FM 'SAMPLE_PROCESS_00001120'.
Svetlin
09-27-2005 1:24 PM
Thanks Svetlin, But I already looked up that option and as you said, the fields are limited and the field that I want to sunstitute does not exist there.
09-27-2005 2:40 PM
Hi Arthi,
I have had your same problem in my last project (I needed some PO fields inside a CO validation).
A few days before I found a <a href="/people/brad.williams/blog/2005/04/25/userexits--how-do-i-access-inaccessible-data">great weblog</a> explaining how to get inaccessible <b>GLOBAL DEFINED</b> variables, tables and other data from inside a User-Exit (but the same concept is applicable to validations.
the main concept is:
data: global_field_name(100).
field-symbols: <fs> type any.
global_field_name = '(MAIN_PROGRAM_NAME)field_name'.
assign (global_field_name) to <fs>.
if field_name is globally defined in program MAIN_PROGRAM_NAME, you can get it.
MAIN_PROGRAM_NAME must be loaded in memory. (For a list of program look in debug in the "Calls" section")
I hope this will help.
Manuel