‎2008 Apr 30 10:40 AM
Hi All,
I have created a function module where in i have populated a workarea and an int table to display header n details data. both of them are populated but data is not being displayed. what is the reason?
‎2008 Apr 30 11:04 AM
Hello SAP User,
Can you please send the code, that would be helpful to tell you the answer.
Regards.
Abhijit.
‎2008 Apr 30 11:09 AM
Hi,
Ur work area must be declared under EXPORTING parameters(In function module) and internal table must be declared under TABLES parameters.
If u populate wa and internal table which are declared in function module then it will not be displayed. U have to declare these in FM interface i.e EXPORTING and TABLES tabs.
Check this and let me know if u still have problems. Also check whether u are clearing/Refreshing any where in the code after populating the data.
Thanks,
Vinod.
‎2008 Apr 30 11:28 AM
The workarea and int table are declared like in top include:
z_material LIKE zheader_data,
z_components LIKE zdetails_data OCCURS 0 WITH HEADER LINE.
and z_material is declared under exporting tab
z_components under tables tab
‎2008 Apr 30 11:44 AM
hi,
change the name of exporting parameters and internal table.
than before endfunction assign values like this,
z_material_exp = z_material.
z_components_exp[] = z_components[].
reward if useful.
‎2008 Apr 30 11:51 AM
Hi ,
u declared ur parameters in top include which will take the preceedense. So change the name to some other and assign these values just before end of the FM source code.
z_material LIKE zheader_data,
z_components LIKE zdetails_data OCCURS 0 WITH HEADER LINE.
and z_material1 declare under exporting tab
z_components1 under tables tab
put this code at the end.
z_material1 = z_material.
z_components1[] = z_components[].
But why are u taking 2 work areas and internal tables. U can directly populate ur exporting and tables parameters.
Thanks,
Vinod.
‎2008 Apr 30 11:15 AM