Alle Ergebnisse anzeigen …


Generic selectors

Exact matches only

Search in title

Search in content

Post Type Selectors

Wenn eine SAP Rechnung mehrere Seiten aufweist, dann soll die Summe aller Positionen der aktuellen Seite am Ende einer Seite dargestellt werden. Es ist die klassische Forderung nach einer Darstellung des Übertrags auf einer Rechnung.

Beispiel

Wir haben eine Rechnung vorliegen, die 3 Seiten umfasst.

[av_hr class=’invisible‘ height=’10‘ shadow=’no-shadow‘ position=’center‘ custom_border=’av-border-thin‘ custom_width=’50px‘ custom_border_color=“ custom_margin_top=’30px‘ custom_margin_bottom=’30px‘ icon_select=’yes‘ custom_icon_color=“ icon=’ue808′ font=’entypo-fontello‘ av_uid=’av-7ffszv8′]

[av_image src=’http://solidforms.de/solid_wp_2014/wp-content/uploads/2016/04/Rechnung-mit-3-Seiten.png‘ attachment=’16085′ attachment_size=’full‘ align=’center‘ styling=“ hover=“ link=“ target=“ caption=“ font_size=“ appearance=“ overlay_opacity=’0.4′ overlay_color=’#000000′ overlay_text_color=’#ffffff‘ animation=’no-animation‘ av_uid=’av-793w9hw‘][/av_image]

Rechnung mit 3 Seiten

[av_hr class=’invisible‘ height=‘-50′ shadow=’no-shadow‘ position=’center‘ custom_border=’av-border-thin‘ custom_width=’50px‘ custom_border_color=“ custom_margin_top=’30px‘ custom_margin_bottom=’30px‘ icon_select=’yes‘ custom_icon_color=“ icon=’ue808′ font=’entypo-fontello‘ av_uid=’av-6t7fzck‘]

[av_heading heading=’Schritt 1) Anlegen eines numerischen Feldes hinter der Ausgabe des Positionswertes‘ tag=’h3′ style=“ size=“ subheading_active=“ subheading_size=’15‘ padding=’0′ color=“ custom_font=“ av_uid=’av-6f8rpas‘][/av_heading]

In jeder Zeile, wo der Positionswert ausgegeben wird, wird ein Feld mit folgenden Eigenschaften angefügt. In unserem Beispiel betrifft dies die Zeile auf Ebene der Materialnummer (wenn keine Konditionen ausgegeben werden) bzw. in der Zeile der Konditionen (wenn Konditionen im Detail ausgegeben werden).

[av_image src=’http://solidforms.de/solid_wp_2014/wp-content/uploads/2016/04/SAP-Adobe-Form-Übertrag.png‘ attachment=’16086′ attachment_size=’full‘ align=’center‘ styling=“ hover=“ link=“ target=“ caption=“ font_size=“ appearance=“ overlay_opacity=’0.4′ overlay_color=’#000000′ overlay_text_color=’#ffffff‘ animation=’no-animation‘ av_uid=’av-5lvsv1w‘][/av_image]

[av_hr class=’invisible‘ height=‘-50′ shadow=’no-shadow‘ position=’center‘ custom_border=’av-border-thin‘ custom_width=’50px‘ custom_border_color=“ custom_margin_top=’30px‘ custom_margin_bottom=’30px‘ icon_select=’yes‘ custom_icon_color=“ icon=’ue808′ font=’entypo-fontello‘ av_uid=’av-55lcw6s‘]

 

  • Typ: numeric field
  • Präsenz: unsichtbar (aus Layout ausgeblendet)

[av_image src=’http://solidforms.de/solid_wp_2014/wp-content/uploads/2016/04/SAP-Adobe-Form-Übertrag-2.png‘ attachment=’16087′ attachment_size=’full‘ align=’center‘ styling=“ hover=“ link=“ target=“ caption=“ font_size=“ appearance=“ overlay_opacity=’0.4′ overlay_color=’#000000′ overlay_text_color=’#ffffff‘ animation=’no-animation‘ av_uid=’av-50ghsus‘][/av_image]

  • Anzeigemuster: 2 Dezimalstellen

[av_image src=’http://solidforms.de/solid_wp_2014/wp-content/uploads/2016/04/SAP-Adobe-Form-Subtotal.png‘ attachment=’16088′ attachment_size=’full‘ align=’center‘ styling=“ hover=“ link=“ target=“ caption=“ font_size=“ appearance=“ overlay_opacity=’0.4′ overlay_color=’#000000′ overlay_text_color=’#ffffff‘ animation=’no-animation‘ av_uid=’av-4l10dg4′][/av_image]

[av_image src=’http://solidforms.de/solid_wp_2014/wp-content/uploads/2016/04/SAP-Adobe-Form-Subtotal-2.png‘ attachment=’16089′ attachment_size=’full‘ align=’center‘ styling=“ hover=“ link=“ target=“ caption=“ font_size=“ appearance=“ overlay_opacity=’0.4′ overlay_color=’#000000′ overlay_text_color=’#ffffff‘ animation=’no-animation‘ av_uid=’av-44gv1f8′][/av_image]

  • Bindung: Positionswert (muss ein Feld vom Typ DEC oder CURR oder QUAN sein, also kein Feld vom Typ CHAR)

[av_image src=’http://solidforms.de/solid_wp_2014/wp-content/uploads/2016/04/SAP-Adobe-Form-Subtotal-3.png‘ attachment=’16090′ attachment_size=’full‘ align=’center‘ styling=“ hover=“ link=“ target=“ caption=“ font_size=“ appearance=“ overlay_opacity=’0.4′ overlay_color=’#000000′ overlay_text_color=’#ffffff‘ animation=’no-animation‘ av_uid=’av-3jrgc1g‘][/av_image]

Schnittstelle

[av_image src=’http://solidforms.de/solid_wp_2014/wp-content/uploads/2016/04/SAP-Adobe-Form-Übertrag-3.png‘ attachment=’16091′ attachment_size=’full‘ align=’center‘ styling=“ hover=“ link=“ target=“ caption=“ font_size=“ appearance=“ overlay_opacity=’0.4′ overlay_color=’#000000′ overlay_text_color=’#ffffff‘ animation=’no-animation‘ av_uid=’av-2xyr0qc‘][/av_image]

[av_hr class=’invisible‘ height=‘-50′ shadow=’no-shadow‘ position=’center‘ custom_border=’av-border-thin‘ custom_width=’50px‘ custom_border_color=“ custom_margin_top=’30px‘ custom_margin_bottom=’30px‘ icon_select=’yes‘ custom_icon_color=“ icon=’ue808′ font=’entypo-fontello‘ av_uid=’av-2cversk‘]

[av_heading heading=’Schritt 2) Anlegen einer Zeile zur Ausgabe des Übertrags am Ende jeder Seite‘ tag=’h3′ style=“ size=“ subheading_active=“ subheading_size=’15‘ padding=’0′ color=“ custom_font=“ av_uid=’av-23j9fn8′][/av_heading]

  • Am Ende des DATA-Bereichs wird ein Teilformular CARRY_OVER zur Ausgabe des Übertrags am Ende jeder Seite angelegt.

[av_image src=’http://solidforms.de/solid_wp_2014/wp-content/uploads/2016/04/SAP-Adobe-Form-Übertrag-4.png‘ attachment=’16096′ attachment_size=’full‘ align=’center‘ styling=“ hover=“ link=“ target=“ caption=“ font_size=“ appearance=“ overlay_opacity=’0.4′ overlay_color=’#000000′ overlay_text_color=’#ffffff‘ animation=’no-animation‘ av_uid=’av-1sr73jo‘][/av_image]

Auf der Registerkarte „Paginierung“ im Teilformular DATA ist im „Überlauffußbereich“ CARRY_OVER einzutragen.

[av_image src=’http://solidforms.de/solid_wp_2014/wp-content/uploads/2016/04/SAP-Adobe-Form-Übertrag-5.png‘ attachment=’16097′ attachment_size=’full‘ align=’center‘ styling=“ hover=“ link=“ target=“ caption=“ font_size=“ appearance=“ overlay_opacity=’0.4′ overlay_color=’#000000′ overlay_text_color=’#ffffff‘ animation=’no-animation‘ av_uid=’av-1c5sr5g‘][/av_image]

 

[av_image src=’http://solidforms.de/solid_wp_2014/wp-content/uploads/2016/04/SAP-Adobe-Form-Übertrag-6.png‘ attachment=’16098′ attachment_size=’full‘ align=’center‘ styling=“ hover=“ link=“ target=“ caption=“ font_size=“ appearance=“ overlay_opacity=’0.4′ overlay_color=’#000000′ overlay_text_color=’#ffffff‘ animation=’no-animation‘ av_uid=’av-wegst0′][/av_image]

Es wird ein Feld KWERT_CARRY_OVER im Teilformular CARRY_OVER mit folgenden Eigenschaften eingefügt.

  • Typ: numeric field
  • Anzeigemuster: 2 Dezimalstellen
  • Bindung: keine Datenbindung

Im Element KWERT_CARRY_OVER wird zum Zeitpunkt CALCULATE folgendes Scripting vom Typ JAVASCRIPT platziert:

var fields = xfa.layout.pageContent(xfa.layout.page(this), „field“, 0);
var total = 0;

for (var i=0; i <= fields.length-1; i++)
{
if (fields.item(i).name == „KWERT_CO“)
{
total = total + fields.item(i).rawValue;
}
}

this.rawValue = total;

 

Jetzt kann das Adobe Form aktiviert und auf die Ausgabe der Zwischensumme pro Seite / des Übertrags getestet werden.

 

Weitere Informationen

Tutorial Adobe Scripting (1): Bedingter Seitenaufruf via Scripting mit SAP Adobe Forms

Tutorial Adobe Scripting (2): Dynamische Ermittlung der Fonthöhe in einem SAP Adobe Formular

Spezialthemen zu SAP Formularen

SAP Formulare zum Festpreis

SAP Formularentwicklung