Rahmen anpassen SAP-Script

Getting started ... Alles für einen gelungenen Start.
8 Beiträge • Seite 1 von 1
8 Beiträge Seite 1 von 1

Rahmen anpassen SAP-Script

Beitrag von L0w-RiDer (Expert / 535 / 83 / 2 ) »
Hallo zusammen,

ich wollte gerne den Rahmen von einem Fenster bei einem SAPScript anpassen (Siehe Bild 1).

Ich dachte eigentlich, dass man das hier anpasst (Siehe Bild 2). Leider hat es keine Veränderung ergeben, als ich die cm-Zahl nach oben gesetzt habe und jetzt steh ich ein bisschen auf dem Schlauch.

Weiß jemand von man den Rahmen von diesen Fenstern von SAP-Scripts anpasst?

Vielen Dank im Voraus.

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


Re: Rahmen anpassen SAP-Script

Beitrag von wreichelt (Top Expert / 1031 / 29 / 188 ) »
Hallo,
bestimmt gibt es ein Fenster das drüber liegt und damit eine Verschiebung nach oben nicht zulässt, ich würde mal alle Fenster
auf der Seite 'First' prüfen.

Gruß Wolfgang

Re: Rahmen anpassen SAP-Script

Beitrag von Alpmann (ForumUser / 62 / 5 / 19 ) »
Hallo L0w-RiDer,

so gehts:

Boxes, Lines, Shading: BOX, POSITION, SIZE

The BOX, POSITION and SIZE commands for drawing boxes, lines and shadowing can be used for specifying that within a layout set particular windows or passages of text within a window are to be output in a frame or with shadowing.
The SAP printer drivers that are based on page-oriented printers (the HP LaserJet driver HPL2, the Postscript driver POST, the Kyocera Prescribe driver PRES) employ these commands when outputting. Line printers and page-oriented printers not supported in the standard ignore these commands. The resulting printer output may be viewed in the SAPscript print previewer.
Syntax:

1. /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
2. /: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
3. /: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]

BOX Command
Syntax
/: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
Effect: draws a box of the specified size at the specified position.
Parameters: For each of XPOS, YPOS, WIDTH, HEIGHT and FRAME both a measurement and a unit of measurement must be specified. The INTENSITY parameter should be specified as a percentage between 0 and 100.

1. XPOS, YPOS: Upper left corner of the box, relative to the values of the POSITION command.

Default: Values specified in the POSITION command.
The following calculation is performed internally to determine the absolute output position of a box on the page:
X(abs) = XORIGIN + XPOS
Y(abs) = YORIGIN + YPOS

2. WIDTH: Width of the box. Default: WIDTH value of the SIZE command.
3. HEIGHT: Height of the box. Default: HEIGHT value of the SIZE command.
4. FRAME: Thickness of frame.
Default: 0 (no frame).

5. INTENSITY: Grayscale of box contents as % .

Default: 100 (full black)

Measurements: Decimal numbers must be specified as literal values (like ABAP numeric constants) by being enclosed in inverted commas. The period should be used as the decimal point character. See also the examples listed below.
Units of measurement: The following units of measurement may be used:

· TW (twip)
· PT (point)
· IN (inch)
· MM (millimeter)
· CM (centimeter)
· LN (line)
· CH (character).

The following conversion factors apply:

· 1 TW = 1/20 PT
· 1 PT = 1/72 IN
· 1 IN = 2.54 CM
· 1 CM = 10 MM
· 1 CH = height of a character relative to the CPI specification in the layout set header
· 1 LN = height of a line relative to the LPI specification in the layout set header

/: BOX FRAME 10 TW
Draws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT).
/: BOX INTENSITY 10
Fills the window background with shadowing having a gray scale of 10 %.
/: BOX HEIGHT 0 TW FRAME 10 TW
Draws a horizontal line across the complete top edge of the window.
/: BOX WIDTH 0 TW FRAME 10 TW
Draws a vertical line along the complete height of the left hand edge of the window.
/: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
/: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW
/: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
/: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
Draws two rectangles and two lines to construct a table of three columns with a highlighted heading section.

Mit freundlichen Grüßen
Matthias Alpmann

Re: Rahmen anpassen SAP-Script

Beitrag von L0w-RiDer (Expert / 535 / 83 / 2 ) »
@wreichelt: Das habe ich gerade geprüft. Nein, daran liegt es leider nicht.

@Alpmann: Wo kann ich diese Einstellungen denn finden? In der SE71 in das Formular rein und dann?

Könntest du mir da vielleicht bitte ein Bild schicken, falls es nicht zu umständlich ist.

Vielen Dank im Voraus.

Re: Rahmen anpassen SAP-Script

Beitrag von wreichelt (Top Expert / 1031 / 29 / 188 ) »
Hallo,

auch das Formular aktiviert?

Gruß Wolfgang

Re: Rahmen anpassen SAP-Script

Beitrag von Alpmann (ForumUser / 62 / 5 / 19 ) »
Hallo L0w-RiDer,

in das passende Fenster gehen zur Bearbeitung. Dann gehe ich auf springen / Editor wechseln um in den Legcy-Text-Editor zu kommen.

Mit freundlichen Grüßen
Matthias Alpmann

Folgende Benutzer bedankten sich beim Autor Alpmann für den Beitrag:
L0w-RiDer


Re: Rahmen anpassen SAP-Script

Beitrag von L0w-RiDer (Expert / 535 / 83 / 2 ) »
Okay, super.

Jetzt hats funktioniert.

Re: Rahmen anpassen SAP-Script

Beitrag von a-dead-trousers (Top Expert / 4271 / 213 / 1140 ) »
Zusammenfassend:
Die Rahmen in SAP-Script sind nicht an Fenster gebunden, sondern funktionieren mehr wie die Formen-Objekte in Word, die man frei (Objekt hinter Text) im Dokument platzieren kann.
Theory is when you know something, but it doesn't work.
Practice is when something works, but you don't know why.
Programmers combine theory and practice: Nothing works and they don't know why.

ECC: 6.18
Basis: 7.50

Seite 1 von 1

Vergleichbare Themen

1
Antw.
2179
Views
SMARTFORMS: Rahmen drucken
von mazu » 13.08.2008 13:10 • Verfasst in ABAP® Core
2
Antw.
1456
Views
Dynpro mit mehreren Rahmen
von Cola » 05.05.2008 16:55 • Verfasst in ABAP® Core
3
Antw.
2592
Views
Dynpro Rahmen set_parent?
von abapz » 08.07.2015 13:14 • Verfasst in Dialogprogrammierung
1
Antw.
2576
Views
SapScript: Rahmen um eine Zeile
von abapo » 03.05.2006 13:15 • Verfasst in ABAP® Core
6
Antw.
3107
Views
Helle Rahmen auf normalem Dynpro
von black_adept » 07.07.2004 11:13 • Verfasst in ABAP® Core

Aktuelle Forenbeiträge

Zwischensumme Adobe Forms
vor 3 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 3 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 3 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