Updating table t5utz in sap
Not found CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT' " Format for input EXPORTING INPUT = lv_matnr " The value is '1234567' IMPORTING OUTPUT = lv_matnr " The value will be formatted to '000000000001234567' EXCEPTIONS LENGTH_ERROR = 1 OTHERS = 2 . That might be a problem if you don't have the material number in the form you need for updates.
IF SY-SUBRC CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT' EXPORTING INPUT = wa-basic_data1-matnr IMPORTING OUTPUT = wa-basic_data1-matnr " Add zeroes at the left EXCEPTIONS LENGTH_ERROR = 1 OTHERS = 2 . * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. UPDATE mara SET zzmanu = wa-sales_data2-zzmanu zzmatnr_sf = wa-sales_data2-zzmatnr_sf WHERE matnr = wa-basic_data1-matnr. So Ax1123 would be AX1123 on database 123 would be 000000000000000123 on data base.
I am using the 'Commit work' on one update table statement but it is not working properly sometime it is work and sometime it is not work.SAP uses function modules like conversion_exit_alpha_input and conversion_exit_alpha_output to switch between DB values und UI-presentation.