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

Reg: Conversion exit

Former Member
0 Likes
673

Hi All,

I am updating a custom table with insert statement.

The table contains a field which is of type KUNNR which will have conversion exit in the domain level. I am populating that field in the workarea with padded zeros, even then it is updating that field in the table with zeros.

Awaiting your replies..

Thanks,

Ravee

5 REPLIES 5
Read only

Former Member
0 Likes
638

no need to worry.. just chk if u are passing without zeros or not... if u are passing as u need it... just let SAP do the things for its domains...

when u will retrieve or see the data.... 0s wont come

Read only

Former Member
0 Likes
638

This happens if the KUNNR value is not populated in your program before inserting the same into the data base table. Please check if the KUNNR value population is happening or not for this record in debug mode.

Read only

Former Member
0 Likes
638

Hi..

no need to worry.. just chk if u are passing without zeros or not... if u are passing as u need it... just let SAP do the things for its domains...

For your point, I have already mentioned that I am populating the KUNNR field with zeros padded...but it is updating the table without zeros and even while fetching it is returning values without zeros..

Thanks,

Ravee..

Read only

0 Likes
638

Hi,

I guess it is just the way it is displayed in SE11

Just display the table data in SE11 and then Settings --> User parameter

There will be a check box "Check conversion exits". Try checking and unchecking it. This will change how data is displayed

The padded zeros should appear once you do this

Regards

Edited by: Rajvansh Ravi on Jun 9, 2009 1:32 PM

Read only

Former Member
0 Likes
638

Hi,

Please check with the below code

tables: ztest.

data: kunnr type kunnr.

kunnr = '0000100008'.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
  EXPORTING
    input         = kunnr   "pass your internal table 
 IMPORTING
   OUTPUT        = kunnr 
          .

ztest-kunnr = kunnr.

if sy-subrc = 0.

  insert into ZTEST values ztest.

endif.

write:/ kunnr.

Regards,

Sandhya