Primul program in ABAP

Vineri, 29 Mai 2009 19:12 administrator
Imprimare

 

Această scurtă descriere a sintaxei ABAP începe în mod inevitabil cu omniprezentul program "Hello World".

"Helloworld"

 PROGRAM TEST. PROGRAM DE TESTARE. 
WRITE 'Hello World'. Scrie "Hello World".

Acest exemplu conţine două declaraţii, câte unul pe fiecare rând. Cuvintele cheie sunt PROGRAM şi scrie. Programul afişează o listă de pe ecran.  În acest caz, lista este format din linie "Hello World".

 

Comments
Comentariu nou Cautare
psorin  - Copiere date din Tabela cu zboruri FLIGHT in Excel   |SAdministrator |2011-10-13 01:19:38
[color=blue]REPORT DEMOCOPY NO STANDARD PAGE HEADING.* this report demonstrates how to send some ABAP d ata to an
* EXCEL sheet
using OLE automation.
IN CLUDE OLE2INCL.
* handles for OLE objects
DATA
:  H_EXCEL TYPE OLE2_OBJECT, " Excel objec t
H_MAPL
TYPE OLE2_OBJECT, " li st of workbooks
H_MAP TYPE OLE2_O
BJECT,   " workbook
H_ZL TYPE OLE2_OBJECT, 
" cell
H_F TYPE OLE2_OBJECT.  " font
TABLES:
SPFLI.
DATA H TY PE I.
* table of flights
DATA: IT_SPFLI LIKE SPF 
LI OCCURS 10 WITH HEADER LINE.

*&-------------- ------------------------
-------------------------- -----*
*& Event START-OF-SELECTION
*&-------
-- -------------------------------------------------- ----------*
STA
RT-OF-SELECTION.
* read flights
  SELECT * FROM SPFLI INTO TABLE IT_SPFL
Scrieti comentariu
Nume:
Email:
 
Web:
Titlu:
UBB:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
 
Va rog sa introduceti codul anti-spam pe care il puteti citi in imagine.

!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved."

 
SEO by Artio