I have done the recording for ME11, and ME12 transactions code. And this is working fine.
Now the issue is i have converted the records in Function Module, in the recording i have records for 4 conditions, but its not necessary that every time all four condition will come.
It is possible that either one will come or two conditions.
So when i pass data for two conditions in ME11 the Function module terminates because its not able to find any data for other two conditions.
how do i make sure, even if condition arrive or not, the records should proceed.