‎2011 Jun 02 12:04 PM
hi everybody,
currently iam using module pool i have declared an internal table with some fields in my program and in the layout of the screen iam clicking the dic/program fields and giving the name of internal table which i declared in the program and iam clicking the button get from program but iam unable to get those fields can anybody help me...
thanks in advance
‎2011 Jun 02 12:09 PM
Hi,
Try to Activate the whole program (including the screen) and then try again.
Ernesto.
‎2011 Jun 02 12:15 PM
Hi
i have activated the whole program it is giving a pop up showing the field xxxx does not exist in (the generated version of) program yyyyy
note xxxx is the internal table and
yyyy is the program name
‎2011 Jun 02 12:17 PM
Hi,
Then Create a Structure in SE11 containing the same fields of your internal table and use it in the program. You'll then see the fields.
Regards,
Ernesto.
‎2011 Jun 02 12:21 PM
In your program declare internal table correctly, problem seems to be with declaration only.
I suggest declare your internal table like this:
data: i_tab TYPE STANDARD TABLE OF mara.
‎2011 Jun 02 12:11 PM
You Get DICTIONARY FIELDS from that option.And not your local internal table fields.
Only tables Defined in Data Dictionary SE11 can be used there.NOT Internal Tables .
‎2011 Jun 02 12:22 PM
HI,
Just log off and re-login once again and check it.
Regards,
Dhina..
‎2011 Jun 02 12:45 PM
‎2011 Jun 02 12:48 PM
Create the screen elemnets manually.
Or if you have a lot of fields, goto se11 and create the structure there and use it here.
Or if you are referring to standard table fields, Select them individually by providing that standard table name.
you DONOT refer an INTERNAL table there!!!
‎2011 Jun 02 12:54 PM
In SE11 Create a Structure ZSTRUCTURE with the fields of your Internal Table.
Then Write the Following Declaration:
TYPES: begin of ty_table.
INCLUDE TYPE ZSTRUCTURE
TYPES: end of ty_table.
DATA: Gt_table type table of ty_table,
gs_table type ty_table.
Activate the program and then try again.
Ernesto.
‎2011 Jun 02 1:07 PM
Hi,
better way to Create a Structure in SE11 containing the same fields of your internal table and use it in the program.
Regards,
Dhina..
‎2011 Jun 02 12:52 PM
hi sir,
you haven't given the field in the correct format i think it would be a syntax error so the problem would in where statement .so you give according to the parameter or selection screen . so you error will be solved
thanking you
‎2011 Jun 02 1:01 PM
Hi,
Try out not clicking the option from Dictionary,
Basically the Dictionary Fields are something which are the DDIC Objects and the fields which you have declared in you program exist only in that session.
the Fields and their definition and declaration exist until the Instance of the program is present in the memory.
But considering the field MATNR is a Standard SAP DDIC Field MARA_MATNR.
In the above scenario we choose the option of Get from Dictionary
Normally if you want to use the field of an internal table dont choose the option get from Dictionary
Try out and revert for further clarification.
Thanks
Sri