‎2006 Feb 10 7:09 AM
How to display the contents of the internal table in a smartform whose structure is not defined in the ABAP Dictionary.
Points guaranteed.
‎2006 Feb 10 7:54 AM
hi
Even i got the same problem. I think we should use Field Symbols for doing this or using DATA reference.
Hello Abapers if any one have solution for this question plz post it.
regards
kishore
‎2006 Feb 10 8:07 AM
Hi,
describe the table has type any.
describe an internal table with the good structure in the smartforms, and copy the type any to the describe into the smartforms.
Or you can pass the info with a table containing only characters.
Rgd
Frédéric
‎2006 Feb 10 8:15 AM
Hi Frédéric Girod,
My internal table has the follwing structure,
DATA: BEGIN OF itab,
VKORG LIKE VBAK-VKORG,
VTWEG LIKE VBAK-VTWEG,
POSNR LIKE VBAP-POSNR,
MATNR LIKE VBAP-MATNR.
END OF itab.
I am not clear on your answer. Can you please tell me the procedure for displaying it in smartform.
Thanks in advance.
‎2006 Feb 10 8:22 AM
If I have right understand your problem, you have this internal table in your program. And you would like to export it into the smartforms and display the content ?
so, the most simple, is to describe a structure like this internal table.
In your smartforms, set a table with the structure that you just create.
use the function module to send the table into the smartforms (the function module generate by the smartforms)
and in the smartforms, create a table, loop into this table into a structure (describe in the global variable, a structure like the structure you have create into the dictionnary).
...
‎2006 Feb 10 8:31 AM
Hi,
If it is not passed through program,you can declare the types in Global Definitions->Types as follows.
types : begin of ty,
matnr type mara-matnr,
end of ty.
In Global Definitions->Global Data,declare internal table and work area as follows.
itab type standard table of ty
wa type ty
Then in program logic,you can use itab and wa.
But if you are passing the internal table thro' program,as far I know,you need to define satructure in SE11 for it.
KIndly reward points by clicking the star on the left of reply,if it helps.