2007 Jun 01 1:02 PM
I'm working with ECC6.0 and I was wondering if there is a neat way to compare a function with variable values in debugging with another function in debugging.
I have build an z programm which uses the function CV100_DOCUMENT_SEARCH
I give or at least I try to give alle the values in the same manner as this function is working in tcode CV04N
somehow I still don't get any results back in my zprogramm while all the variables are the same . is there perhaps an easy way to compare the variable and table values from CV04N with the variables and table values from my z programm ??
I'm getting nuts checking all the variables from the structures between the 2 programms by clicking on every one and scrolling down all the time
ofcourse points for the one who prevents me from getting rsi on these kind of things
2007 Jun 01 1:19 PM
Hi,
Set a break point exactly before the function module in both program i.e in trasaction CV04N and ur Z program. now execute both and compare values for each import variable and tables u r passing to this function module with values in CV04 transaction.
I doubt if there is any other way..
EnjoySAP.
Pankaj Singh.
2007 Jun 01 1:49 PM
yep that's the way I'm working now and it's totally inefficient when you have tables and structures with a lot of values which I have to compare
hope that there is a smarter way to compare ?
2007 Jun 01 2:21 PM
and to make things more confusing I manually checked all the variables from CV04N and put them in testing data for the function CV100_DOCUMENT_SEARCH
but in testing mode no results show up while in cv04n with the same data I get results ??
what is happening here ?
2007 Jun 01 2:24 PM
We have a functionality to download the internal table to excel sheet. in the frist program download the data to excel sheet and save it .
Use the excel sheet to compare the data when in debugger of other program.
Hope this help, Just an idea
2007 Jun 01 2:57 PM
yep I know that option for downloading to excel but still when you have multiple structures or tables then it's still a lot of work.
it would be handy if you could just set all the data in debugging for a specific funtion to testdata for that function. and also from the other program and let sap compare both of the datasets perhaps an idea for the next release ??
oh and I solved the problem with the function above
in the function
CALL FUNCTION 'CV100_DOCUMENT_SEARCH'
EXPORTING
max_rows = restrict
the global variable restrict is used inside the function (instead of max_rows) which caused it to return no results.
thank god it's almost weekend
kind regards
arthur
2010 Jul 21 3:57 PM
2010 Jul 21 4:00 PM
Moderator message - When closing old threads, there is no need to add a comment. Adding a pasted answer like "to old have to close down" only brings old threads to the top of the forum list and pushes current ones down. If you do add a comment, please indicate just how the problem was resolved. Rob
2010 Jul 22 11:53 AM
OK will leave out an auto reply when cleaning up, but then there is no clue for those who search for answers on sdn where the answer is since the question can only be marked as answered. so then you search for an answer in the replies and will find none that's why I put the reason in the topic why I mark it as answered so it will save time for those searching.
if a topic is not answered and I want to close it down why can't I just push a button 'closed no-answer'
tha fact that you always have to mark it as answered while they are not is a bit weird.
kind regards
arthur
2010 Jul 22 2:31 PM
Yes - I agree. Forcing people to mark threads as "answered" when they are not is confusing and is something that the powers that be are looking at. Hopefully, it will be resolved soon.
Rob