Skip to content

Instantly share code, notes, and snippets.

@Ripley6811
Last active March 7, 2018 21:24
Show Gist options
  • Select an option

  • Save Ripley6811/610b69eead3eab20af7d891660f1aa38 to your computer and use it in GitHub Desktop.

Select an option

Save Ripley6811/610b69eead3eab20af7d891660f1aa38 to your computer and use it in GitHub Desktop.
ABAP: How to get the GUID for an inbound file.
* Get the originating file GUID.
DATA: lv_aif_msgguid TYPE /aif/sxmssmguid,
lo_exception TYPE REF TO cx_root.
TRY .
CALL FUNCTION '/AIF/FILE_GET_GLOBALS'
IMPORTING
ximsgguid = lv_aif_msgguid.
CATCH cx_uuid_error INTO lo_exception.
CATCH cx_root INTO lo_exception.
ENDTRY.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment