Skip to Content
avatar image
Former Member

OTF-Spool to ASCII via "list display" ?

I have a spool file of type OTF, but need to output as TXT (ASCII).
CONVERT_OTF does not work, the format is wrong and limits the character length to 132, I need 141 characters.
When viewed in the spool can select list display, the display is correct and the output file as well.

Unfortunately I can not find that performs the conversion code.
When you call the list display MSSCDFLS is traversed to set the display parameters, then I lose the track.

Does somebody has any idea?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 21, 2015 at 10:32 AM

    Hi,

    Well, the display function module used by spool system is SSFDISPLAY_OTF_LIST, but it's not really intended for the kind of use you need (it displays the list).

    I guess, if going for unreleased/undocumented SAP's internal stuff is ok in your case, you could try to "wrap" the FM in a REPORT program, which could be SUBMITed EXPORTING LIST TO MEMORY and import the list from memory.

    cheers

    Jānis

    Add comment
    10|10000 characters needed characters exceeded

    • Yup, fascinating stuff and code that was state of the art maybe 30 or so years ago 😊.

      Ok, so there should be functionality for at least two distinct "OTF spool as ABAP List" viewers in SAP then, because I can't seem to come into MSSCDFLS (SAPMSSCD) functionality when working with Smartform OTF Spool... I mean, why the hell not - one viewer is good, two is no doubt doubly good for keeping folks busy! 😊

      Edit in: ok, so the magic of choosing the viewer (at least on 702) happens in RSPO_ROUTPUT_JOB:

      I suspect there must have been very compelling reasons for having Smartform specific OTF viewer - something like handling Smartform copy windows in preview correctly or who knows what else...

      cheers

      Jānis

      sp012.png (21.0 kB)