Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Interrogating field data in a called Function Module

Former Member
0 Likes
527

Good day to all;

I'd like to call a function module within my program and interrogate one of its fields once it is complete. The field itself is not returned through the function module's interface, so in stead of trying to rewrite the thing, I'm wondering if I can just request it?

I've ran a search on this and noted that someone said it may be possible to assign a field symbol to a program's variable, but that in order to actually gain access your program must be on the same calling stack.

2 REPLIES 2
Read only

Former Member
0 Likes
437

Hi. Maybe I don`t understant what you mean, but

when you first call a function module, the system assigns their data areas firmly to the main program of the program group. Subsequent calls from other program groups do not change this initial assignment. The main program whose data is shared by an external subroutine can depend on the call sequence.

And when you call a function module, work areas of the function group are not linked to the calling program. When you call an external subroutine from a function module, the work areas of the subroutine are linked to the main program of the function group.

Read only

andreas_mann3
Active Contributor
0 Likes
437

Hi,

i think you mean the "dirty assign"

A.

Message was edited by: Andreas Mann