Skip to Content
avatar image
Former Member

Put a table content on the context


I've made a method in an ABAP Web Dynpro that returns a table taken from the database via a SELECT statement.

The table that is returned by the method is of TYPE ZTESTTABLE.

I've created in my context a node with the wizard Attributes from Component of Structure passing ZTESTTABLE as the structure.

Now I've tried to get the context node filled with values with the BIND_TABLE method on the context node, but I get a type mismatch error.

Can someone help me?

Thank you,


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Dec 16, 2011 at 10:11 AM

    Have you selected all the feilds of that structure or only a few fields are selected?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      If you know that the method always returns a single record then it is better to make it as a structure.. if you want to return the internal table data either import or export to a method, in that case it will always take a table type. Create a table type using that structure either in SE11 or using the way you declared at class public section level.