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

function Module with no importing/exporting parameters???

Former Member
0 Likes
2,099

I am thinking of using an SAP FM SDBORA_GET_TSP_FREE_SPACE which will return a current snap short of information related to space management. My issue with this is that there are no importing/exporting parameters here. How is this possible? Also, there is a table in the "table" tab of this FM. I am assuming that results will get passed to this table, correct?

would appreciate if anyone could shed some light on this. Thanks!!

nv

1 ACCEPTED SOLUTION
Read only

sharadendu_agrawal
Active Participant
0 Likes
1,093

If there are no importing and exporting parameters then we cannot pass any variables to the FM, since we don't have anything to change.

In the FM SDBORA_GET_TSP_FREE_SPACE only the tables is geting populated, so jus see if that table is of any use to you in the code and based on the parameters required to fill the table you can pass some values to the table.

<REMOVED BY MODERATOR>

Cheers...!!!

Sharadendu

Edited by: Alvaro Tejada Galindo on Feb 28, 2008 11:33 AM

4 REPLIES 4
Read only

sharadendu_agrawal
Active Participant
0 Likes
1,094

If there are no importing and exporting parameters then we cannot pass any variables to the FM, since we don't have anything to change.

In the FM SDBORA_GET_TSP_FREE_SPACE only the tables is geting populated, so jus see if that table is of any use to you in the code and based on the parameters required to fill the table you can pass some values to the table.

<REMOVED BY MODERATOR>

Cheers...!!!

Sharadendu

Edited by: Alvaro Tejada Galindo on Feb 28, 2008 11:33 AM

Read only

Former Member
0 Likes
1,093

UR correct.

FM will populate Table TSPSTAT_LIST and return.

Inside the FM it selects on soramon by passing a hardcoded value ..

No need for us to pass anything ...

select * from soramon

where category = 'USE MAX_SIZE'.

use_size = soramon-value.

endselect.

Read only

Former Member
0 Likes
1,093

Hi

I don't know that fm, but it's not neccessary a fm has import/export parameters in order to work.

The parameters can be transfered to that fm from another fm of the same function group or perhaps your fm doesn't need any parameter.

I think the result will be stored in the TABLE parameter TSPSTAT1, so you're right.

Max

Read only

0 Likes
1,093

Thanks to all!!

Points awarded!!