Issue in opening Notepad attachment using class CL_FITV_GOS=>GET_CONTENT

Let’s start on Issue in opening Notepad attachment using class CL_FITV_GOS=>GET_CONTENT. You have a GOS scratch pad connection in your business object (for this post let us expect your business object is BUS1001006 for example Material). You chose to utilize the class technique CL_FITV_GOS=>GET_CONTENT to peruse the substance of the connection and utilize the class strategy CL_WD_RUNTIME_SERVICES => ATTACH_FILE_TO_RESPONSE to open the document in the internet browser. Issue in opening Notepad attachment using class CL_FITV_GOS=>GET_CONTENT.

Amazingly, when you open the notebook text record, it is shown void. Despite the fact that the scratch pad has text in it (see figure underneath).

However, the more intricate records like PDF, JPG opens accurately.

2

So what turned out badly?

Appears, SAP missed to put the rationale to peruse scratch pad information (which are joined straightforwardly utilizing t-code in the event that MM02 or OAER). We observed that the notebook which were connected utilizing the class technique SAVE, would open accurately with this class. Issue is just with scratch pad which were NOT stacked with the class strategy SAVE.

5

Troubleshooting inside the class technique cl_fitv_gos=>get_content uncovers that for scratch pad, the hexadecimal result isn’t populated (as displayed in above figure).

Main driver:
In the technique for the class, object kind of text document is ‘EXT’ however it isn’t taken care of accurately.

Work Around for this issue:
In the event that ev_content_hex is clear, utilize standard FM ‘SO_DOCUMENT_READ_API1’ to get the substance of the text record. Convert the text content to hexadecimal utilizing FM ‘SCMS_TEXT_TO_XSTRING’ and show it.

6

Suspicion: The class technique doesn’t work for scratch pad record provided that you transfer the notebook text document utilizing MM01/MM02 or OAER straightforwardly (not utilizing class CL_FITV_GOS=>SAVE).

YOU MAY BE INTERESTED IN

SAP ALE IDoc Configuration Steps: Streamlining Communication

ABAP Development Environment in the Cloud

Message Processing and Transformation in SAP PO

  • Related Posts

    ABAP on SAP HANA. Part VI. New Age Open SQL ABAP 740

    New Age Open SQL ABAP 740 In this article, we would have some time off from HANA. We would respite and check what is accessible in Open SQL. For what…

    Secondary Index in Traditional SAP Database and SAP HANA Database

    Let’s get started with secondary Index in Traditional SAP Database and SAP HANA Database. We as a whole know File in a data set table assists with getting the chosen…

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    You Missed

    ABAP on SAP HANA. Part VI. New Age Open SQL ABAP 740

    • By Varad
    • May 16, 2025
    • 15 views
    ABAP on SAP HANA. Part VI. New Age Open SQL ABAP 740

    Secondary Index in Traditional SAP Database and SAP HANA Database

    • By Varad
    • May 15, 2025
    • 20 views
    Secondary Index in Traditional SAP Database and SAP HANA Database

    Taking one step back after EhP7.4, does it make sense for Web Dynpro UI?

    • By Varad
    • May 14, 2025
    • 23 views
    Taking one step back after EhP7.4, does it make sense for Web Dynpro UI?

    NEW Operator – Structures and Internal Tables

    • By Varad
    • May 13, 2025
    • 46 views
    NEW Operator – Structures and Internal Tables

    NEW Operator – Single Value for All Data Types

    • By Varad
    • May 12, 2025
    • 57 views
    NEW Operator – Single Value for All Data Types

    Hello SAP EhP7 !!

    • By Varad
    • May 11, 2025
    • 42 views
    Hello SAP EhP7 !!