Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

smartform

Former Member
0 Likes
676

hi all including RAM,

i've declared'DATA: LVBDKA TYPE TABLE OF VBDKA' IN THE INITIALIZATION TAB OF GLOAL DEFINITIONS OF SMARTFORM BUILDER.

BUT IT IS RETURNING AN ERROR MSG. L_VBDKA IS NOT AN STRUCTURE OR INTERNAL TABLE WITH HEADER LINE.

PLZ HELP TO SOLVE THIS PROBLEM ASAP.

THNKS IN ADVANCE.

KIND REGARDS,

VINAY.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
634

Hello Vinay,

DATA: LVBDKA TYPE TABLE OF VBDKA.

If you are using this variable in otherwindows and pages of same form, you should declare it in the global definations.

If you simply used it in local routines like FORM routines, then you should declare them in the FORM ROUTINES only.

You might needed it just for work area. So just create as below

DATA: LVBDKA TYPE VBDKA.

let me know if you have any questions.

ram

5 REPLIES 5
Read only

Former Member
0 Likes
634

IF you need a variable you should declare the internal table in the Global Data tab. If you want to have table, then you should refer it to a table type in the data dcitonary. So, search if VBDKA is used in a table type, if yes use that to declare a table type.

Regards,

Ravi

Read only

Former Member
0 Likes
634

Hi

The declaration you're using creates an internal table without header line, if you need it you should use the options WITH HEADER LINE.

DATA: LVBDKA TYPE TABLE OF VBDKA WITH HEADER LINE.

Max

Read only

Former Member
0 Likes
635

Hello Vinay,

DATA: LVBDKA TYPE TABLE OF VBDKA.

If you are using this variable in otherwindows and pages of same form, you should declare it in the global definations.

If you simply used it in local routines like FORM routines, then you should declare them in the FORM ROUTINES only.

You might needed it just for work area. So just create as below

DATA: LVBDKA TYPE VBDKA.

let me know if you have any questions.

ram

Read only

abdul_hakim
Active Contributor
0 Likes
634

hi

you should declare it in the global data declaration..

have you done it?

Cheers,

Abdul Hakim

Read only

Former Member
0 Likes
634

Hi Vinay,

Do not do any declaration in initialization tab.Do the declaration as types in the type tab and after that declare it in global definiton.

Example :

types:

BEGIN OF it_list_type,

PAYER_name1 LIKE IDWTFIDOC-US_PAYER_NAME1,

END OF it_list_type.

types:

it_list_table type it_list_type OCCURS 0.

in the global definition declare your internal table as type of this it_list_table.Use this format.

Regards,

Mukesh Kumar