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

Passing data between Function modules

Former Member
0 Likes
1,027

Hi All,

There are two function modules SD_CONDITION_CHANGE_DOCS_LOAD and SD_CONDITION_CHANGE_DOCS_DISPL which belongs to the same function group.The first FM fetches data in internal table i_level1 and the same data is available in second FM with the same inetrnal table i_level1.Now i have copied the second FM into a Z FM.But the data of i_level1 is not available in the second FM.What do i need to do?

Thanks,

Rakesh.

5 REPLIES 5
Read only

Former Member
0 Likes
831

Hi,

Top include will have the global data to be shared because they are udner the same funciton group. Include the things in the TOP INCLUDE of the funciton group in SE80 transaction.

Regards

Lekha

Read only

Former Member
0 Likes
831

Hi,

Try this.

Since the Z fm which you have created is in the different function group, the internal table i_level1may not have value. So, u have to pass the values to i_level1 before calling the Zfm.

Sharin.

Read only

0 Likes
831

The data is being populated in i_level1 in the first FM.But its local variable only.Its not passed through import or tables parameter.so i cant access i_level1 outside this FM.

Read only

0 Likes
831

Hi Rakesh,

Instaed of copying the second function module into another function group , try copying both the function modules to same function group and declare that I_level1 in the top include. This may solve the problem since now I_level1 would be accessible by both the function modules.

Hope this will help.

Regards,

Swarna Munukoti.

Read only

0 Likes
831

Thats SAP standard Funcion Group.I cant copy into it.