‎2009 Jun 09 12:11 PM
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
‎2009 Jun 09 12:15 PM
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
‎2009 Jun 09 12:22 PM
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.
‎2009 Jun 09 12:27 PM
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..
‎2009 Jun 09 12:31 PM
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
‎2009 Jun 09 12:28 PM
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