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

data type error

harshsisodia31
Participant
0 Likes
622

Hi experts

I m using following code to create a internal table

DATA : BEGIN OF IT_MASTER OCCURS 0,
         PERNR            TYPE P0001-PERNR,
         ENAME(60),
         SEX              TYPE PA0002-GESCH,
         AGE(2)           TYPE I,
         POS_TEXT(50)     TYPE C,
         DOJ              TYPE SY-DATUM,
         AREATXT          TYPE T500P-NAME1,
         WORKING_START(4) TYPE C,
         WORKING_END(4)   TYPE C,
         INTERVAL_FROM(4) TYPE C,
         INTERVAL_TO(4)   TYPE C,
         DAY_1(4TYPE C,
         DAY_2(4TYPE C,
         DAY_3(4TYPE C,
         DAY_4(4TYPE C,
         DAY_5(4TYPE C,
         DAY_6(4TYPE C,
         DAY_7(4TYPE C,
         DAY_8(4TYPE C,
         DAY_9(4TYPE C,
         DAY_10(4) TYPE C,
         DAY_11(4) TYPE C,
         DAY_12(4) TYPE C,
         DAY_13(4) TYPE C,
         DAY_14(4) TYPE C,
         DAY_15(4) TYPE C,
         DAY_16(4) TYPE C,
         DAY_17(4) TYPE C,
         DAY_18(4) TYPE C,
         DAY_19(4) TYPE C,
         DAY_20(4) TYPE C,
         DAY_21(4) TYPE C,
         DAY_22(4) TYPE C,
         DAY_23(4) TYPE C,
         DAY_24(4) TYPE C,
         DAY_25(4) TYPE C,
         DAY_26(4) TYPE C,
         DAY_27(4) TYPE C,
         DAY_28(4) TYPE C,
         DAY_29(4) TYPE C,
         DAY_30(4) TYPE C,
         DAY_31(4) TYPE C,
         PRVL      TYPE ABWTG,
         CASL      TYPE ABWTG,
*       CASL   TYPE P DECIMALS 2,
         ALWP(2)   TYPE I,
         ULWP(2)   TYPE I,
         COFF(2)   TYPE I,
         WKLY(2)   TYPE I,
         PAIDH(2TYPE I,
         PRST TYPE ABWTG,
         HULP   TYPE ABWTG,
         HALP   TYPE ABWTG,
       END OF IT_MASTER.


When i m creating similar structure in se11 ....and  my internal table to smartforms.....it is giving dump saying that both structure not compatible.

can anybody pls help me ?

5 REPLIES 5
Read only

Former Member
0 Likes
579

Hello,

create structure in se11. in smartform use it like <your structure name> in tables tab.

Thanks

Sabyasachi

Read only

gurunathkumar_dadamu
Active Contributor
0 Likes
579

Hi Harsh,

please remove the occurs 0 and use the following sample code.

data:begin of it_master,

        .....

         end of it_master.

then to declare the internal tab check the following code,

data: ITAB type standard table of it_master,

         wa_  type it_master.

while referring the internal table in smart form also use this same structure(i think your are created already as same).

hope your problem will resolve.

Regards,

Gurunath Kumar

Read only

0 Likes
579

thanks for reply but same problem exists

Read only

0 Likes
579

Hi,

please can you check the structure (se11) data types and lengths will be same as declared.

if possible can you share the struct.

Regards,

Gurunath

Read only

vinoth_aruldass
Contributor
0 Likes
579

hi,

the structure you are using in the smartforms put all as char dont specify any currency or quantity fields..

then this will solve..

hope it helps,

Vinoth