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

    Pop Up Debugging

    We all know this Pop Up Debugging. Simply posting for speedy (in a hurry) reference. For those people who don’t know how to troubleshoot pop-ups. Save the under 3 lines…

    How to enable table entries maintenance in SE16N (Alternative for &SAP_EDIT and UASE16N)

    Before answering How to enable table entries maintenance in SE16N (Alternative for &SAP_EDIT and UASE16N). First At this point a large portion of us can’t involve &SAP_EDIT and UASE16N as…

    Leave a Reply

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

    You Missed

    Issue in opening Notepad attachment using class CL_FITV_GOS=>GET_CONTENT

    • By Varad
    • April 26, 2025
    • 19 views
    Issue in opening Notepad attachment using class CL_FITV_GOS=>GET_CONTENT

    Pop Up Debugging

    • By Varad
    • April 25, 2025
    • 29 views
    Pop Up Debugging

    How to enable table entries maintenance in SE16N (Alternative for &SAP_EDIT and UASE16N)

    • By Varad
    • April 24, 2025
    • 31 views
    How to enable table entries maintenance in SE16N (Alternative for &SAP_EDIT and UASE16N)

    Steps to stop debugger at ELM BADI CRM_MKTLIST_BADI from Web UI Screen

    • By Varad
    • April 23, 2025
    • 42 views
    Steps to stop debugger at ELM BADI CRM_MKTLIST_BADI from Web UI Screen

    Single Popup Instead Multiple Popup for BAPI Return and Custom Messages

    • By Varad
    • April 22, 2025
    • 62 views
    Single Popup Instead Multiple Popup for BAPI Return and Custom Messages

    How to pass Reversal Date & Reason to BAPI_ACC_DOCUMENT_POST?

    • By Varad
    • April 21, 2025
    • 77 views
    How to pass Reversal Date & Reason to BAPI_ACC_DOCUMENT_POST?