Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to clear initial value of PACKED (P) ABAP type

hi Gurus,

here i am giving one example

CLEAR : itab1-posnr,

itab1-matnr,

itab1-arktx,

itab1-kwmeng.

this statement Resets the contents of fields to its initial value.

i.e posnr is of type char and it is set to SPACE(blank)

matnr is of type char and it is set to SPACE(blank)

arktx is of type char and it is set to SPACE(blank)

kwmeng is of type packed and it is set to 0.000 as it is INITIAL value.

now when i am trying to ommit this 0.000 in order to get only space in the output using following code

if itab1-kwmeng is initial.

itab1-kwmeng = ' '.

endif.

APPEND itab1 TO itab3 .

it is showing the initial value 0.000 again

so i want to know what code/statement i shall use to remove initial value of PACKED (P) ABAP type in the output

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question