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 0 when insert into table

Former Member
0 Likes
923

the ITAB is

DATA: BEGIN OF BESTAND OCCURS 100,

BWKEY LIKE MBEW-BWKEY,

WERKS LIKE MSEG-WERKS,

MATNR LIKE MSEG-MATNR,

CHARG LIKE MSEG-CHARG,

*(DEL) endmenge like mard-labst, "Bestand zu 'datum-high' XJD

ENDMENGE(09) TYPE P DECIMALS 3, "Bestand zu 'datum-high' XJD

*(DEL) anfmenge like mard-labst, "Bestand zu 'datum-low' XJD

ANFMENGE(09) TYPE P DECIMALS 3, "Bestand zu 'datum-low' XJD

MEINS LIKE MARA-MEINS, "Mengeneinheit

  • values at date-low and date-high "n497992

endwert(09) TYPE P DECIMALS 2, "n497992

anfwert(09) TYPE P DECIMALS 2, "n497992

*(DEL) soll like mseg-menge, "XJD

SOLL(09) TYPE P DECIMALS 3, "XJD

*(DEL) haben like mseg-menge, "XJD

HABEN(09) TYPE P DECIMALS 3, "XJD

SOLLWERT(09) TYPE P DECIMALS 2, "n497992

HABENWERT(09) TYPE P DECIMALS 2, "n497992

WAERS LIKE T001-WAERS, "Wהhrungsschlssel

END OF BESTAND.

in my ztable i declare insread of

(09) TYPE P DECIMALS

menge that is the reson i get 0.00

if yes?

what is the element needed for this

<b>(09) TYPE P DECIMALS</b>

10 REPLIES 10
Read only

Former Member
0 Likes
872

Hi Liat,

Remove the suffixes after variables. This doesn't make sense with TYPE P declarations.

Replace all statements with out suffixes. Save and activate and Rerun the program.

Instead of this ENDMENGE(09) TYPE P DECIMALS 3

write as <b>ENDMENGE TYPE P DECIMALS 3</b>.

Thanks,

Vinay

Read only

0 Likes
872

Vinay

i talk about data elemnt in se11

thanks

Read only

0 Likes
872

Do you want to have decimals (0.00) instead of 0.

or 0 instead of 0.00, for data type P it is controlled from program attribute Fixed point arithmetic

You set the program attribute Fixed point arithmetic.

Regds

Manohar

Read only

0 Likes
872

where can i set it

Read only

0 Likes
872

In Prgram attributes, will be under EDIT menu.

Regds

Manohar

Read only

0 Likes
872

se38>prg>attribute->edit

Read only

LucianoBentiveg
Active Contributor
0 Likes
872

Try with VGWRT.

Regards.

Read only

0 Likes
872

How many decimal places to you want in your ztable? If you want three, then just use the MENGE_D data element.

Regards,

Rich Heilman

Read only

0 Likes
872

rich i use this data element but i get 0.00 instead of numbers

bcs of that i asked.

Read only

Manohar2u
Active Contributor
0 Likes
872

Yes, but hope its an custom program right??

Regds

Manohar