‎2014 Jan 29 12:45 PM
Hello experts,
I have created a function module to replace old coding in program. Its working fine while testing for some entries but for some inputs its displaying lesser number of entries. Those entries are correct as per program but it skips some entries. If anybody have any idea regarding this issue please share it with me. Here i am attaching code for program and FM and also screen shots for function module with this discussion
This is displaying 7 entries in table but in actual there are 15 entries in program
Here is the screen shot for program
Here are entries for Function Module
If anybody have any idea regarding this issue please share it with me. I am also attaching codes for program and function module.
Thanks,
Avadhut
‎2014 Jan 29 4:23 PM
‎2014 Jan 29 1:10 PM
Hi Avadhut
Rather than putting your whole code here why dont you try and debug both program and function module in parllel sessions and find out the difference.
Nabheet
‎2014 Jan 29 1:25 PM
Hi Nabheet,
I have debugged code and adjusted code according to program. But What i want to do is FM should not work as per program there are four parameters referring to internal table in code as
as per the program when we select one of the parameters then more than one tables were populated but according to new requirement suppose when i select R_VENJU EQ 'X'. then only itafla should be populated. I have achieved this but for some cases FM displaying less entries.
Thanks
Avadhut
‎2014 Jan 29 1:27 PM
Avadhut
My point still is you will have to debug it to understand why some records are missing we can not tell you from here. Just switch on the debugger and debug each statement where the data is not fetched..
Nabheet
‎2014 Jan 29 4:18 PM
Hi,
Debug in parallel and set the watchpoint on final internal table for both FM & program and check at which stage number of entries are different.
Check the :
1) Select where conditions
2) Append statements
3) Delete statements.
Regards,
DPM
‎2014 Jan 29 4:23 PM
‎2014 Jan 29 4:31 PM
‎2014 Jan 30 6:33 AM
Hi nabheet,
I have done with entries problem can you just tell me where to initialize the internal table as entries were repeating.
Thanks
Avadhut