‎2008 Aug 20 12:48 PM
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.
‎2008 Aug 20 12:51 PM
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
‎2008 Aug 20 12:51 PM
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.
‎2008 Aug 20 12:54 PM
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.
‎2008 Aug 20 1:07 PM
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.
‎2008 Aug 20 1:08 PM