Important
conversion exits:
Why conversion exits : Suppose we are loop a table to
populate final internal table,
So inorder the read statement to be successful, we need to
take the value with zeros (example : 000000000005000700) then only the read statement
will be successful.
So , verify the condition and assign the value before using
conversion routine.
Now we don’t want the output to be displayed with 000000 in
ALV , so to suppress that we use ALV.
1.To convert matnr , input : 000000000005000700
Output : 5000700
CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT'
EXPORTING
input = gs_ekpo-matnr
IMPORTING
output = gs_ekpo-matnr.
EXPORTING
input = gs_ekpo-matnr
IMPORTING
output = gs_ekpo-matnr.
2.To convert lifnr (vendor), input: 0000301593
Output: 301593
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = gs_ekko-lifnr
IMPORTING
output = gs_ekko-lifnr.
Serkan AKKAVAK
Computer Engineer
ABAP Developer & SAP MM SD Consultant
Social Plugin