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.
23259
Views
URL File-Server Internet File Download /Delet cl_http_client
von Luigi91 » 04.10.2016 08:28 • Verfasst in ABAP Objects®
2
Antw.
3110
Views
TRANSFER to FILE
von Bjuti » 21.03.2014 13:02 • Verfasst in ABAP® für Anfänger
12
Antw.
6141
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.
2769
Views
File-Informationen vom Server lesen z.B. Erstelldatum
von MindMOB » 13.08.2008 14:45 • Verfasst in ABAP® Core
2
Antw.
14385
Views
Wie JCo 3 Server ohne Property-File erstellen ?
von Albert » 25.02.2009 08:29 • Verfasst in Java & SAP®

Über diesen Beitrag


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

Aktuelle Forenbeiträge

FOR mit CORRESPONDING
vor 6 Stunden von LeMinion 2 / 65
line_exists evaluieren
vor 3 Tagen von Radinator gelöst 6 / 317

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

FOR mit CORRESPONDING
vor 6 Stunden von LeMinion 2 / 65
line_exists evaluieren
vor 3 Tagen von Radinator gelöst 6 / 317

Unbeantwortete Forenbeiträge

Erweiterung in ME51N/ME52N:
vor 2 Wochen von ABAPlerv 1 / 1810
Erweiterung in ME51N/ME52N:
vor 2 Wochen von ABAPlerv 1 / 1690