Skip to Content
1

Storage consumption of file GUI_UPLOAD & SCMS_BINARY_TO_XSTRING

May 07 at 11:04 AM

49

avatar image
Former Member

Dear experts,

In our business process, there is no Document Management System or external SAP Content server.

I am using GUI_UPLOAD function to attach a PDF file from user PC to SAP and convert the Binary content to XString through SCMS_BINARY_TO_XSTRING function.

Then, I move the XSTRING Hexadecimal content to a custom database table field (Type: RAWSTRING) & store it. Everything works fine.

  1. Now, I want to check the Memory storage consumption of my Production SAP system which has over 200 documents now. Please guide me how would I do it?
  2. Is there any better method than this to store user application files if there is no separate SAP content server?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

ROBERTO Forti Santos May 08 at 03:55 AM
0

Hi Karthikeyan,

1. Regards comprehending memory storage with SAP BASIS.

2. Consider working with Application Server using SAP ABAP File Interface.

Example:

...

*Open DataSet files (Application Server)
  OPEN DATASET iv_file_path_s FOR OUTPUT IN BINARY MODE.

  IF sy-subrc NE 0.
*Exception
    RAISE ex_open_file_source.
  ENDIF.

*Read and transfer
  LOOP AT it_file[] INTO wa_file.

*Transfer source file
        TRANSFER wa_file TO iv_file_path_s.

        IF sy-subrc NE 0.
*Exception
          RAISE ex_transfer_file_source.
        ENDIF.

        CLEAR wa_file.
  ENDLOOP.

*Close DataSet source file
  CLOSE DATASET iv_file_path_s.

  IF sy-subrc NE 0.
*Exception
    RAISE ex_close_file_source.
  ENDIF.

Regards,

Share
10 |10000 characters needed characters left characters exceeded