In this SAP ABAP tutorial I will show you some important conversion exits in SAP ABAP.
Why conversion exits: Suppose we are loop a table to populate final internal table,
So in order 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.
- To convert matnr, input: 000000000005000700
CALL FUNCTION ‘CONVERSION_EXIT_MATN1_OUTPUT’
EXPORTING
input = gs_ekpo-matnr
IMPORTING
output = gs_ekpo-matnr.
- To convert lifnr (vendor), input: 0000301593
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
Contact : serkurumsal@yandex.com
Social Plugin