Application Development and Automation 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: 
Read only

SAPScript to TXT (behavior spaces)

tschenke
Explorer
0 Likes
4,207

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?

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
Read only

RaymondGiuseppi
Active Contributor
4,128

(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
Read only

tschenke
Explorer
0 Likes
4,128

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

Read only

0 Likes
4,128

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.

Read only

Sandra_Rossi
Active Contributor
4,128

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.

Read only

tschenke
Explorer
4,128

thanks, I updated the screenshots after your suggestion.

Read only

Sandra_Rossi
Active Contributor
0 Likes
4,128

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?