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

Query relaated to Function Module

Former Member
0 Likes
284

Hi all,

I've a situation where if a value is sent to a function module (lets say integer 1), a result incremented by 1, i.e 2, is expected. The incrementing should be done inside the FM itself. Any addition or logic should happen in the FM itself. No SE38 coding except calling functions or declaring some fields.

If the FM has importing parameters, it should not have exporting parameters and vice-versa. Changing parameters should also not be used. Any number of function modules can be used. Please guide me how I can achieve this. I need to call only 1 FM inside my program.

Regards,

Satya Prakash

Moderator Message: Training sort of questions are not allowed here.

Message was edited by: Kesavadas Thekkillath

1 REPLY 1
Read only

former_member193464
Contributor
0 Likes
248

what do you want to achieve by this ...
If i am right then you just want to send a value to a F.M. do the calculation inside it and then fetch you want that new value in your program , but you do not want to use Exporting parameters or changing or tables....
if this is what you want , (i could not understand why) then you can use EXPORT and IMPORT commands in abap...
inside the F.M. after calculation export that variable to memory  ,inside se38 import from memory that variable... if you do not know how to use IMPORT , EXPORT there are plenty of discussions in this command in SCN search and you can use them...