[SAP ABAP] - Convert BDC Message

FUNCTION yofm_convert_bdc_message.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  TABLES
*"      RETURN_IN STRUCTURE  BDCMSGCOLL OPTIONAL
*"      RETURN_OUT STRUCTURE  YST_RETURN OPTIONAL
*"----------------------------------------------------------------------

  LOOP AT return_in.
    return_out-type return_in-msgtyp.


    MESSAGE ID return_in-msgid TYPE return_in-msgtyp NUMBER return_in-msgnr
            WITH return_in-msgv1 return_in-msgv2 return_in-msgv3 return_in-msgv4 INTO return_out-message_v1.


    APPEND return_out.
  ENDLOOP.
ENDFUNCTION.


YST_RETURN
 

Comments