12-17-2012 1:24 PM
Hi,
in my code, I am using above method to create a dynamic table based on a set of fields made up from several DB_tables.
Right now, I am working on a Fly&Smile-example, SAPScript_form S_EXAMPLE_1, so I have fields from tables SBOOK, SCUSTOM and SPFLI.
I am calling this method with only two parameters:
- A fieldcatalog i_fcat which I generate with that type LVC_T_FCAT and fill beforehand via a WA with type LVC_S_FCAT, with fields FIELDNAME, TABNAME, INTTYPE, INTLEN and DECIMALS filled;
- An output table TAB_REF which I have created beforehand with type REF TO DATA.
When I set a BREAK-POINT just before that method, all looks fine: i_fcat is filled with those values for all the fields I need and TAB_REF is there as a reference. Something must be missing, however: When I execute that method, I get an error message saying that at some point, an empty method was called. All the more strange because this has been working just like it is now for a while.
Can anyone give me a hint what is amiss with the function call to cause it to fail? I cannot find anything that I haven't got in the code.
Thanks a lot!
Best regards,
Sapperdapper
12-17-2012 3:03 PM
Hi Friedrich,
If that has been working before I think there must be something related to the data you fill or the fields contained finally in the dynamic table.
You could copy that part of the code maybe we can see anything strange in it.
Regards,
12-17-2012 3:10 PM
Hi,
finally, I found the reason the function failed, though I don't yet know how that happened: There were duplicate lines in i_fcat. I deleted those and it's fine now. Also, the information from different parts of my code fit, so those duplicates were not in there from the beginning. I think I had that issue once before, though. I will try to find the cause for this and fix it.
Thanks anyway!
Best regards,
Sapperdapper