Search This Blog

Thursday, June 22, 2017

Adding Attachments using GOS and testing a webservice with SOAPUI

SAP Tips:
  • Make SAP import parameter for file type XSTRING
  • Pseudo code:
    • call function 'SCMS_XSTRING_TO_BINARY'
    • Use include and SWC macros to build objects for calling cl_binary_relation->create_link
    • call cl_binary_relation - create_link 
      • Example params:
        • is_object_a-instid = vendor number or custom value
        • is_object_a-typeid = LFA1 or custom value
        • is_object_a-catid = 'BO'
        • is_object_b-instid = swc_get_object_key lo_message  lv_message_key
        • is_object_b-typeid = 'MESSAGE'
        • is_object_b-catid = 'BO'
        • ip_reltype = 'ATTA'


SOAPUI tips:

  • Click on attachments tab and upload attachment
  • Use cid:notation (i.e. cid:) in the element tag
  • Double click on UNKOWN in the TYPE column and select filename
  • Use the drop down in the PART column to select the filename, the TYPE column should change to CONTENT

Change URL to httpS

References:


Note: After adding the attachment and adding the "cid" notation I had to double-click on the "UNKNOWN" type, this somehow allowed me to select the file name under the Part field.

No comments: