add spaces at the end of file while transfer to app server

ABAP, Java, BSP, etc.
4 Beiträge • Seite 1 von 1
4 Beiträge Seite 1 von 1

add spaces at the end of file while transfer to app server

Beitrag von abapper ( / / 0 / 3 ) »
Hi,

I have a requirement where I need to have 10 spaces at the end of every record that I download onto the file on the application server.
I am using OPEN DATASET to open the file on the app server and then using TRANSFER to transfer each record.
The record that I transfer is a work area of 10 fields each of character type out of which the last field is supposed to be of 10 spaces.
When I transfer the work area, the last field with 10 spaces is not being shown on the output file. How could I handle this.

Thanks in advance.

gesponsert
Stellenangebote auf ABAPforum.com schalten
kostenfrei für Ausbildungsberufe und Werksstudenten


Beitrag von Asaph (Expert / 580 / 6 / 1 ) »
Hi,


look F1 to transfer

transfer wa to file LENGTH len .

so when wa = 90 -> len = 100.



try it

Andreas

Re: add spaces at the end of file while transfer to app serv

Beitrag von Gast ( / / 0 / 3 ) »
abapper hat geschrieben:When I transfer the work area, the last field with 10 spaces is not being shown on the output file.
That's how TEXT MODE works.
Press F1 on OPEN DATASET.

Beitrag von Gast ( / / 0 / 3 ) »
And next time, please don't copy and paste the same question into several forums, if your question got answered 6 minutes after posting:
http://www.sapfans.com/forums/viewtopic ... 49067b1ccf

Seite 1 von 1

Vergleichbare Themen

3
Antw.
8509
Views
URL File-Server Internet File Download /Delet cl_http_client
von Luigi91 » 04.10.2016 08:28 • Verfasst in ABAP Objects®
2
Antw.
2490
Views
TRANSFER to FILE
von Bjuti » 21.03.2014 13:02 • Verfasst in ABAP® für Anfänger
12
Antw.
3969
Views
FUBA für File Transfer von int.Tabelle in Text-Datei
von cuncon » 21.02.2018 12:13 • Verfasst in ABAP® für Anfänger
2
Antw.
10379
Views
Wie JCo 3 Server ohne Property-File erstellen ?
von Albert » 25.02.2009 08:29 • Verfasst in Java & SAP®
1
Antw.
1437
Views
XML File vom UNIX Server in ABAP aufrufen
von axel.mohnen » 14.06.2006 09:08 • Verfasst in ABAP® Core

Über diesen Beitrag


Unterstütze die Community und teile den Beitrag für mehr Leser und Austausch

Aktuelle Forenbeiträge

Zwischensumme Adobe Forms
vor 2 Tagen von Lucyalison 1 / 64
Interne Tabelle
vor 5 Tagen von black_adept 2 / 133
MaLo-Checker in ABAP
vor einer Woche von A6272 6 / 254

Newsletter Anmeldung

Keine Beiträge verpassen! Wöchentlich versenden wir lesenwerte Beiträge aus unserer Community.
Die letzte Ausgabe findest du hier.
Details zum Versandverfahren und zu Ihren Widerrufsmöglichkeiten findest du in unserer Datenschutzerklärung.

Aktuelle Forenbeiträge

Zwischensumme Adobe Forms
vor 2 Tagen von Lucyalison 1 / 64
Interne Tabelle
vor 5 Tagen von black_adept 2 / 133
MaLo-Checker in ABAP
vor einer Woche von A6272 6 / 254

Unbeantwortete Forenbeiträge

Zwischensumme Adobe Forms
vor 2 Tagen von Lucyalison 1 / 64
Group Items auf einer Filterbar
vor einer Woche von Bright4.5 1 / 107
tRFC Transaktionen SM58
vor 4 Wochen von A6272 1 / 140