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 query

Former Member
0 Likes
476

In my FM i call another FM which creates a entry in kna1 and knvp

i checked tht FM in that if

entry is not created in kna1 it gives a return code ot equal to 0

i want that in my fm when i run it

if it doesnt creates a kna1 entry it should pass a return code

how can i do it?

3 REPLIES 3
Read only

Former Member
0 Likes
437

Try to check the return code of the inner function fmodule... and using that you can check in ur functional module whether entry has been created or not...

Read only

0 Likes
437

thnkx pranjali

but if i just check if

sy-subrc ne 0

then will it work?

Read only

0 Likes
437

If the called function is returning value 0 when it saves data into table then after call to that function module if u just check value of sy-subrc i think it should work fine.

-Pranjali