‎2008 Feb 14 4:23 PM
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?
‎2008 Feb 14 5:06 PM
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...
‎2008 Feb 14 5:16 PM
thnkx pranjali
but if i just check if
sy-subrc ne 0
then will it work?
‎2008 Feb 15 2:27 PM
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