How to get the value of global field from SAP generated prog

Question: is there any function module to get the value of a global field from sap generated program.

there is a function module get_global_symbols to get all the attributes of a global field for the given program.

is there a way to get the value assigned to the field(the value that is written to the list screen when the program is executed).For eg. in lsmw when we execute read text a program is executed and the presents an abap list.Is it possible to capture the value of a single field present on the list.

Answer:
is there any function module to get the value of a global field from sap generated program.

there is a function module get_global_symbols to get all the attributes of a global field for the given program.

is there a way to get the value assigned to the field(the value that is written to the list screen when the program is executed).For eg. in lsmw when we execute read text a program is executed and the presents an abap list.Is it possible to capture the value of a single field present on the list.[/quote]

Answer:
I'm not sure what you after but I reckon the magic Field symbols should be thing you're after
_________________
Only sheep and Tuly Idiots need a leader

Answer:
I'm not sure what you after but I reckon the magic Field symbols should be thing you're after

no, when u execute lsmw a read or conv program is generated.there is a field in /1CADMC/SAP_LSMW_READ_xxxxxxxx named g_cnt_transactions(or g_cnt_transactions_transferred, and related fields). Is it possible to get the value of that field so that i could use that value in another program.

Answer:
Aha , that is what you're after.
Maybe exporting all the values to memory in the END_OF_PROCESSING event , so you can read them from memory, even after the session?
_________________
Only sheep and Tuly Idiots need a leader

Answer:
Is it possible to get the value of that field so that i could use that value in another program.
What do you mean 'in another program'? That runs at the sime time? Before? Later? A userexit?

Maybe you should step back & tell us in broad terms what you're trying to achieve?

Answer:
Aha , that is what you're after.
Maybe exporting all the values to memory in the END_OF_PROCESSING event , so you can read them from memory, even after the session?

is it possible to specify the name of the program along with the variable in export statement.
eg export (itab) to memory id 'xx'.

can we specify the program to which itab belongs in this statement.

thanks and regards
reddy.

Answer:
Is it possible to get the value of that field so that i could use that value in another program.
What do you mean 'in another program'? That runs at the sime time? Before? Later? A userexit?

Maybe you should step back & tell us in broad terms what you're trying to achieve?

my requirement is to run a bdc to execute lsmw from read text step.and get the no of transactions read,written , and transferred.This value are given as list output while executing lsmw for read program generated.So is there any function module where in i give the program name,field name and get the associated value.If there is no function module is there any other way

thanks and regards
reddy

Answer:

can we specify the program to which itab belongs in this statement.

thanks and regards
reddy.
You can do what ever you like with memory ID's. As long as the receiver program reads the data in the exact same format as it is stored in. And if you want to be a bit more flexibility , go for a cluster database instead of a memory id. It is all explained in the SAP Help
_________________
Only sheep and Tuly Idiots need a leader
Copyright ?2007 - 2008 www.jt77.com