Skip to Content
0
Former Member
Dec 17, 2012 at 01:24 PM

Pertinent problems with method cl_alv_table_create=>create_dynamic_table

18 Views

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