SHARE
TWEET

Untitled

a guest Jan 15th, 2020 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  conv = cl_abap_conv_out_ce=>create(
  2.            encoding = 'UTF-8'
  3.            endian = 'L' ).
  4.  
  5.   view = cl_abap_view_offlen=>create_legacy_view( i_headerdata ).
  6.  
  7.   conv->convert_struc( exporting data = i_headerdata
  8.                                  view = view
  9.                                  importing buffer = buffer1 ).
  10.  
  11.   ls_log_data-name = 'I_HEADERDATA'.
  12.   ls_log_data-sdata = buffer1.
  13.   append ls_log_data to lt_log_data.
  14.  
  15.   view = cl_abap_view_offlen=>create_legacy_view( ls_tax ).
  16.   loop at i_taxdata into ls_tax.
  17.     conv->convert_struc( exporting data = ls_tax
  18.                          view = view
  19.                          importing buffer = buffer1 ).
  20.     ls_log_data-name = 'I_TAXDATA'.
  21.     ls_log_data-sdata = buffer1.
  22.     append ls_log_data to lt_log_data.
  23.   endloop.
  24.  
  25.   view = cl_abap_view_offlen=>create_legacy_view( ls_ext ).
  26.   loop at i_extensionin into ls_ext.
  27.     conv->convert_struc( exporting data = ls_ext
  28.                          view = view
  29.                          importing buffer = buffer1 ).
  30.     ls_log_data-name = 'I_EXTENSIONIN'.
  31.     ls_log_data-sdata = buffer1.
  32.     append ls_log_data to lt_log_data.
  33.   endloop.
  34.   .
  35.  
  36.   view = cl_abap_view_offlen=>create_legacy_view( ls_bapiret2 ).
  37.   loop at lt_bapiret2 into ls_bapiret2.
  38.     conv->convert_struc( exporting data = ls_bapiret2
  39.                         view = view
  40.                         importing buffer = buffer1 ).
  41.  
  42.     ls_log_data-name = 'BAPIRET2'.
  43.     ls_log_data-sdata = buffer1.
  44.     append ls_log_data to lt_log_data.
  45.   endloop.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top