‎2013 Feb 20 8:55 AM
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(4) TYPE C,
DAY_2(4) TYPE C,
DAY_3(4) TYPE C,
DAY_4(4) TYPE C,
DAY_5(4) TYPE C,
DAY_6(4) TYPE C,
DAY_7(4) TYPE C,
DAY_8(4) TYPE C,
DAY_9(4) TYPE 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(2) TYPE 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 ?
‎2013 Feb 20 9:10 AM
Hello,
create structure in se11. in smartform use it like <your structure name> in tables tab.
Thanks
Sabyasachi
‎2013 Feb 20 9:15 AM
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
‎2013 Feb 20 9:44 AM
thanks for reply Gurunath Kumar Dadamu but same problem exists
‎2013 Feb 20 10:07 AM
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
‎2013 Feb 20 10:02 AM
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