Hi
As part of a requirement, we are generating a message log handle every time a custom program is run to log messages.
The FM used is BAL_LOG_CREATE which internally calls FM GUID_CREATE. Now the requirement is to consume the GUID of type GUID_22 generated by this FM.
GUID_CREATE internally generates a GUID of type GUID_16 and then converts it to type GUID_22. In some cases, the output of the GUID_22 type has a special character '}' in the output, which is causing the applications to crash.
To replicate, I have written a small snippet
________________________________________________________________
REPORT zvc_test_log_handle1.
DATA lv_guid_22 TYPE guid_22.
PARAMETERS: p_num TYPE i.
START-OF-SELECTION.
DO p_num TIMES.
CLEAR lv_guid_22.
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_22 = lv_guid_22.
NEW-LINE.
WRITE: lv_guid_22.
ENDDO.
_____________________________________________________
if this is executed for a large P_NUM, lets say 200, in the output you can see GUIDs with '}' in them. This is causing some applications working with the GUID to short dump.
Sample Output
01LTS3u87kEDtfbsBnyOuG
01LTS3u87kEDtfbsBnyuuG
01LTS3u87kEDtfbsBnzOuG
01LTS3u87kEDtfbsBnzuuG
01LTS3u87kEDtfbsBn{OuG
01LTS3u87kEDtfbsBn{uuG
01LTS3u87kEDtfbsBn}OuG
01LTS3u87kEDtfbsBn}uuG
01LTS3u87kEDtfbsBo0OuG
01LTS3u87kEDtfbsBo0uuG
01LTS3u87kEDtfbsBo1OuG
Is there any way to avoid this special character - or do I have to manually check each GUID generated for special character and replace it?