Skip to Content
avatar image
Former Member

Reading Long Text with PHP

Hi Guys,

I've successfully used SAPRFC and RFC_READ_TABLE to fetch confirmation data from table AFRU and am trying to retrieve the associated long texts fom tables STXH and STXL.

However, I've discovered the actual texts are stored in Interchange Text Format (ITF) rather than plain text (table STXL, field CLUSTD).

On the systems I use, function module READ_TEXT is not remote-enabled, so it's not an option. I don't know of any other function modules that can read long text.

Does anyone know of an alternative function module for reading long text or has anyone developed a PHP function to convert ITF into plain text or have a link to the ITF spec so I can write one myself?

Thanks!

Jim

Edited by: Jim Wolfe on Jun 11, 2009 8:26 AM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jul 02, 2009 at 02:11 PM

    Hi Jim,

    I have just tried with RFC_READ_TEXT (that is remote enabled) and it appeared to work.

    With RFC_READ_TEXT, just pass

    TDOBJECT as READ_TEXT-OBJECT

    TDNAME as READ_TEXT-NAME

    TDID as READ_TEXT-ID

    TDSPRAS as READ_TEXT-LANGUAGE

    Hope this could help.

    Flavio

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 11, 2009 at 02:28 PM

    Sorry to ask for this...but can't you just create an "Z" READ_TEXT?

    [SO10 on PHP/SAP|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/6416] [original link is broken] [original link is broken] [original link is broken];

    Greetings,

    Blag.

    Edited by: Alvaro Tejada Galindo on Jun 11, 2009 10:28 AM (Forgot to put the link)...

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Yes Jim,

      - Create "Z" Function module.

      - Pass the same parameters.

      - Make it Remote Enabled.

      Regards,

      RH