‎2007 Jul 06 3:51 PM
i have to made some changes in material master..
i foung following code
DATA: h_name(30).
FIELD-SYMBOLS: <h_aktvstatus>.
Maintained views are retrieved
h_name = '(SAPLMGMU)aktvstatus'.
ASSIGN (h_name) TO <h_aktvstatus>.
r_pstat_m = <h_aktvstatus>.
please explain it specially "'(SAPLMGMU)aktvstatus'." part
thanks in advance ..
‎2007 Jul 06 4:07 PM
Hi,
see this below code.
so that u can understand how ur code works.
data:var(10) value 'abcd'.
data:abcd(10) value 'xyz'.
field-symbols:<fs> type any.
assign (var) to <fs>.
write:/ <fs>."here it will give value of 'abcd'
rgds,
bharat.
‎2007 Jul 06 3:56 PM
What is happening here, is that the code is trying to access a variable field within the callstack and not within the local program memory, this is a little trick that we do when working within user exits and we don't have a specific field or internal table being passed to the exit's funciton module. Here the program name is specified and then immediately, the variable name, or this could be an internal table name as well. By assign to a field symbol, you can then gain access to this variable from your program, which of course could be very dangerous, so be careful.
Regards,
Rich Heilman
‎2007 Jul 06 4:07 PM
Hi,
see this below code.
so that u can understand how ur code works.
data:var(10) value 'abcd'.
data:abcd(10) value 'xyz'.
field-symbols:<fs> type any.
assign (var) to <fs>.
write:/ <fs>."here it will give value of 'abcd'
rgds,
bharat.