Älykkäät lomakkeet SAP ABAP: ssa

Sisällysluettelo:

Anonim

SAP Smart Forms -sovelluksella luodaan ja ylläpidetään lomakkeita massatulostusta varten SAP-järjestelmissä. Tulostusvälineenä SAP Smart Forms tukee tulostinta, faksia, sähköpostia tai Internetiä (käyttämällä luotua XML-lähtöä).
SAP esitteli SmartFormsin vuonna 1998 voittamaan SAP-komentosarjojen rajoitukset. SmartFormeja on helpompi kehittää, ylläpitää ja kuljettaa kuin SAP-komentosarjoja.

Tässä opetusohjelmassa opit:

  • Älykkäät lomakkeet ja SapScripts-vertailu
  • Älykkäät lomakkeet
  • SAP Smart Form -arkkitehtuuri
  • Smartforms-opas
  • Windows älykkäissä muodoissa
  • Älylomakkeiden ohjelmointivirta

Älykkäät lomakkeet ja SapScripts-vertailu

  • Useat sivumuodot ovat mahdollisia SmartFormsissa, mikä ei ole asia SAPScriptsissä
  • On mahdollista saada SmartForm ilman pääikkunaa.
  • Rutiinit voidaan kirjoittaa SmartForms-työkalulla.
  • SmartForms luo toimintomoduulin, kun se on aktivoitu.
  • Tunnisteita ei voi luoda SmartFormsiin.

Älykkäät lomakkeet

  • Ne auttavat lomakkeiden mukauttamisessa ilman mitään ohjelmointitietoa täysin graafisen käyttöliittymän takia
  • Älylomaketta aktivoitaessa järjestelmä luo toimintomoduulin automaattisesti ja ajon aikana.
  • Muutosten tekemiseksi meidän on käytettävä vedä, pudota, leikkaa ja liitä. Nämä toiminnot eivät sisällä koodausrivien kirjoittamista tai komentosarjakielen käyttöä.
  • Voimme lisätä staattisia ja dynaamisia taulukoita. Näitä ovat rivin syötteet yksittäisissä taulukon soluissa, laukaisevat tapahtumat taulukon otsikoille ja välisummille sekä tietojen lajittelu ennen tulostusta.
  • Älylomakkeiden avulla käyttäjä voi sisällyttää grafiikkaa, joka voidaan näyttää osana lomaketta tai taustagrafiikkana. Tulostuksen aikana käyttäjä voi estää taustagrafiikan tarpeen mukaan.
  • Verkkojulkaisu on mahdollista käyttämällä luotua XML-ulostuloa

SAP Smart Form -arkkitehtuuri

Smartforms-opas

Antaa sen käydä läpi SAP-järjestelmässä

  1. Kirjoita tapahtuman SMARTFORMS tapahtumakoodiruutuun.
  2. Kirjoita seuraavaan näyttöön Lomakkeen nimi ja napsauta Luo

Seuraava näyttö on jaettu kolmeen osaan -

Navigointi-ikkuna koostuu solmuista ja alisolmuista. Ne sisältävät kaikki nestemuotoihin kuuluvat elementit (teksti, ikkuna jne.)

  • Ylläpito-ikkuna näyttää elementtien määritteet
  • Lomaketulostin- ikkuna näyttää sivun asettelun

Aina kun luomme älykkäitä lomakkeita, SAP luo / luo toimintomoduulin. Toisin kuin SAPscripts, SAP-lomakkeet sallivat sinun vaihtaa kieltä.
Navigaatioikkunassa löydät
Global Data julistukset : Data määritellään tässä voidaan käyttää koko SmartForm koodausta varten.
Lomarajapinta : Tässä määritetään kaikki tiedot, jotka viedään älyohjelmalle Print-ohjelmasta.

Sivuja napsauttamalla hiiren kakkospainikkeella voit luoda uuden sivun, ikkunan, grafiikan tai osoitteen.

Tulostus tapahtuu 'seuraava sivu' -kentän perusteella.
Mutta käsittely tapahtuu navigointiikkunan järjestyksen mukaan!


For background picture and graphics you can pick up either black and white or color bitmap images and are stored in the form of standard texts. You may take a detour from the smartform screen and open Form Graphics screen. Transaction code: Se78

Setting in the Graphics in Smart Form Window-

Windows in Smart Forms


There are two types of Windows

  1. Main
  2. Secondary

Important Points to Note

  • You cannot have more than 1 main window in a page. You can have multiple secondary windows
  • Whatever you print in secondary window… it has to be static. (If u have 20 lines in a PO and there is page constraint the lines get carried forward to next page in the main window. i.e. In a predecessor and successor type of content, they will be printed in sequence in main window. This is not allowed in Secondary windows.


Inside the main window we can add text as introduction to customize the form output.

The Output options on each window determine the Line size, Width, Colors and background to be put.

Smartforms gives the option of giving the address number which is maintained in the central address management. The address will be directly taken from ADRC table and will be populated in the form.

The two different editors are available in Smartforms viz. Normal Editor

and the Graphics Editor.

This setting can be changed using the Configure editor in Utilities.

In Table painter, you can draw the format as per client requirement (e.g. Heading, Sub Heading, Item, Sub Total, Grand Total etc.)
You can use the table layout to determine:

  • The number of lines and cells
  • The height of each line
  • The width of each cell
  • The alignment of the table in the window


The Table shows the different line types which will be used in the table. The Line types define the size of each cell and the number of cells in each line.

Smart Forms Programming Flow

When an SAP Smart Form template is created, a user creates the form layout, defines the required fields, conditions, and special programming instructions in the Smart Form template using the Smart Form Builder.
After the form design is complete, the form needs to be activated before it can be tested or accessed by the print programs.Activating the form initiates the generation of a function module that handles all of the form's processing.
This function module interacts with the application program/print program to create the output in the user-defined output media for the specified device.
In case of smart forms, we use 2 function modules for the processing of the smart form. To the first function module , we pass the name of the smart form as the import parameter. This then returns the name of the dynamically generated function module which will actually call the smartform.
The smartform name can be passed on to the function Module - 'SSF_FUNCTION_MODULE_NAME'

This will return the Function module name of the smartform which is referenced.

The Print program will be calling the FM 'SSF_FUNCTION_MODULE_NAME' to get the Function module name at Runtime. Therafter it will call the Function module thus obtained to execute the smartform.

Templates

Mallia voidaan käyttää, kun tiedät lähdön tarkan koon tai tulos on kiinteässä muodossa.
Esimerkiksi verolomake / sekit / lentolomake / rautatielippu: kaikki nämä käyttävät malleja.
Iso taulukon ja mallin välillä on se, että taulukon korkeus muuttuu dynaamisesti. Kutsumme riviä riviksi mallissa.


Älykkäät tyylit

Älykäs tyyli sisältää:

  • Otsikkodata, joka sisältää älykkään tyylin oletusarvot
  • Kappalemuodot, mukaan lukien sisennykset ja välit, fontin määritteet, välilehdet sekä ääriviivat ja numerointi
  • Merkkimuodot, mukaan lukien tehosteet (yläindeksi, alaindeksi), viivakoodi ja fontin määritteet
  • Kappaleen tai merkkimuodon värit ja alleviivat

Voit luoda tapahtuman 'smartforms' / 'smartstyles' älykkään tyylin luomiseksi.

Se on kaikki tähän opetusohjelmaan