Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SAPScript to TXT (behavior spaces)

tschenke
Explorer
0 Kudos
1,117

Hey together,

Are any of you familiar with SAPScript? Specifically with regard to spaces in the TXT export?

When exporting TXT from the spool via SP01, I get spaces that I currently don't know how to handle:

In the window itself in the form, it technically looks like this:

The tabulator is maintained as follows:

But I can't explain the spaces based on this. In the spool (PDF) it looks like this:

Does anyone have an idea how to find out how the spaces are created?

6 REPLIES 6

raymond_giuseppi
Active Contributor
1,038

(Some pictures are missing)

Basically the spool is generated in OTF format (SAP format) FM CONVERT_OTF convert this data

  • by default to ASCII text file, format 'ASCI'
  • called by CONVERT_OTF_2_PDF with format 'PDF, to generate PDF file

So

  • Are you ready to debug this FM to find how tabs are handled?
  • Did you try to export using 'Text with tabs' to compare

tschenke
Explorer
0 Kudos
1,038

Yes, I tried "Text with tabs" but no changing.

0 Kudos
1,038

Please use the COMMENT button for comments, asking for complements, adding details, replying to a comment or a proposed solution or to the OP question, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.

Sandra_Rossi
Active Contributor
1,038

Please use Actions > Edit to edit your question.

Please use a tool to do screenshots, and paste directly in the question. e.g. works nicely with Greenshot.

tschenke
Explorer
1,038

thanks, I updated the screenshots after your suggestion.

Sandra_Rossi
Active Contributor
0 Kudos
1,038

The generation of spaces is managed by the SAPScript engine, there's nothing surprising in what you show.

Could you explain what is your issue?