SAP APO_BAPI_GUID_CONVERT Function Module for Conversion of GUIDs with Buffer
APO_BAPI_GUID_CONVERT is a standard apo bapi guid convert SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Conversion of GUIDs with Buffer processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for apo bapi guid convert FM, simply by entering the name APO_BAPI_GUID_CONVERT into the relevant SAP transaction such as SE37 or SE38.
Function Group: SCMB_BAPI_GEN
Program Name: SAPLSCMB_BAPI_GEN
Main Program: SAPLAPO_BAPI_GEN
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function APO_BAPI_GUID_CONVERT pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'APO_BAPI_GUID_CONVERT'"Conversion of GUIDs with Buffer.
EXPORTING
* IV_INIT_BUFFER = "Puffer löschen
* IV_ACTIVATE_BUFFER_USAGE = "Auswahl einer Option (ja = 'X', nein = ' ')
* IV_DEACTIVATE_BUFFER_USAGE = "Auswahl einer Option (ja = 'X', nein = ' ')
* IV_GUID_C22 = "UUID in komprimierter Form (22 Stellen UUENCODEd)
* IV_GUID_X16 = "UUID-Formate
* IV_NO_C22_TO_C32_CONV = "Auswahl einer Option (ja = 'X', nein = ' ')
IMPORTING
EV_GUID_C32 = "UUID in Character-Darstellung
EXCEPTIONS
PARAMETERS_ERROR = 1
IMPORTING Parameters details for APO_BAPI_GUID_CONVERT
IV_INIT_BUFFER - Puffer löschen
Data type: BAPIYESNOOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_ACTIVATE_BUFFER_USAGE - Auswahl einer Option (ja = 'X', nein = ' ')
Data type: BAPIYESNOOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_DEACTIVATE_BUFFER_USAGE - Auswahl einer Option (ja = 'X', nein = ' ')
Data type: BAPIYESNOOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_GUID_C22 - UUID in komprimierter Form (22 Stellen UUENCODEd)
Data type: SYSUUID-C22Optional: Yes
Call by Reference: Yes
IV_GUID_X16 - UUID-Formate
Data type: SYSUUID_XOptional: Yes
Call by Reference: Yes
IV_NO_C22_TO_C32_CONV - Auswahl einer Option (ja = 'X', nein = ' ')
Data type: BAPIYESNOOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for APO_BAPI_GUID_CONVERT
EV_GUID_C32 - UUID in Character-Darstellung
Data type: SYSUUID-COptional: No
Call by Reference: Yes
EXCEPTIONS details
PARAMETERS_ERROR - Fehlerhafte Parameterübergabe
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for APO_BAPI_GUID_CONVERT Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_ev_guid_c32 | TYPE SYSUUID-C, " | |||
| lv_iv_init_buffer | TYPE BAPIYESNO, " | |||
| lv_parameters_error | TYPE BAPIYESNO, " | |||
| lv_iv_activate_buffer_usage | TYPE BAPIYESNO, " | |||
| lv_iv_deactivate_buffer_usage | TYPE BAPIYESNO, " | |||
| lv_iv_guid_c22 | TYPE SYSUUID-C22, " | |||
| lv_iv_guid_x16 | TYPE SYSUUID_X, " | |||
| lv_iv_no_c22_to_c32_conv | TYPE BAPIYESNO. " |
|   CALL FUNCTION 'APO_BAPI_GUID_CONVERT' "Conversion of GUIDs with Buffer |
| EXPORTING | ||
| IV_INIT_BUFFER | = lv_iv_init_buffer | |
| IV_ACTIVATE_BUFFER_USAGE | = lv_iv_activate_buffer_usage | |
| IV_DEACTIVATE_BUFFER_USAGE | = lv_iv_deactivate_buffer_usage | |
| IV_GUID_C22 | = lv_iv_guid_c22 | |
| IV_GUID_X16 | = lv_iv_guid_x16 | |
| IV_NO_C22_TO_C32_CONV | = lv_iv_no_c22_to_c32_conv | |
| IMPORTING | ||
| EV_GUID_C32 | = lv_ev_guid_c32 | |
| EXCEPTIONS | ||
| PARAMETERS_ERROR = 1 | ||
| . " APO_BAPI_GUID_CONVERT | ||
ABAP code using 7.40 inline data declarations to call FM APO_BAPI_GUID_CONVERT
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single C FROM SYSUUID INTO @DATA(ld_ev_guid_c32). | ||||
| "SELECT single C22 FROM SYSUUID INTO @DATA(ld_iv_guid_c22). | ||||
Search for further information about these or an SAP related objects