How To use Data Referenece ...
2007-10-09 10:56
411 查看
*-----------------------------------------------------------------------
*
* Company XXX Company Limited
*
* ProgrameName: ZZW_DATA_REFERENCE
*
* Author: Lilo.Zhu
*
* Date: 10/08/2007
*
* Description: Practice ABAP Data Reference.
*
*-----------------------------------------------------------------------
REPORT ZZW_DATA_REFERENCE .
Types:
Begin Of Struc_1,
A Type i,
B type ref to sflight,
C type P,
End Of Struc_1.
Data: S1 Type Struc_1.
Types:
Begin Of Struc_2,
X(10) Type C,
Y Type ref to struc_1,
Z type i,
End Of Struc_2.
Data: S2 Type Struc_2,
R2 Type ref to Struc_2.
s1-A = 11.
If S1-A > 10.
Create data s1-b.
S1-B->Carrid ='LH'.
S1-B->Paymentsum = 1000.
EndIf.
create data s2-y.
create data s2-y->b.
S2-X = '100'.
s2-Y->A = 200.
s2-Y->*-A = 200. "same as s2-Y->A
s2-Y->B->Fldate = Sy-Datum.
Write: / s2-Y->A,
s2-Y->*-A,
s2-Y->B->Fldate.
*
* Company XXX Company Limited
*
* ProgrameName: ZZW_DATA_REFERENCE
*
* Author: Lilo.Zhu
*
* Date: 10/08/2007
*
* Description: Practice ABAP Data Reference.
*
*-----------------------------------------------------------------------
REPORT ZZW_DATA_REFERENCE .
Types:
Begin Of Struc_1,
A Type i,
B type ref to sflight,
C type P,
End Of Struc_1.
Data: S1 Type Struc_1.
Types:
Begin Of Struc_2,
X(10) Type C,
Y Type ref to struc_1,
Z type i,
End Of Struc_2.
Data: S2 Type Struc_2,
R2 Type ref to Struc_2.
s1-A = 11.
If S1-A > 10.
Create data s1-b.
S1-B->Carrid ='LH'.
S1-B->Paymentsum = 1000.
EndIf.
create data s2-y.
create data s2-y->b.
S2-X = '100'.
s2-Y->A = 200.
s2-Y->*-A = 200. "same as s2-Y->A
s2-Y->B->Fldate = Sy-Datum.
Write: / s2-Y->A,
s2-Y->*-A,
s2-Y->B->Fldate.
相关文章推荐
- How To use Data Referenece ...
- How to use dt.Rows.Cast<System.Data.DataRow>().Take(n)
- How to use ActiveSync Remote Display on Windows Embedded CE 6
- how_to_use_ant_query_data_and_mail
- How to use (data_member | member function) pointers in class
- How to use Microsoft Dynamics Connector to sync data between different crm organizations
- How to Use Cocoa Bindings and Core Data in a Mac App
- How to use IMGDECMP.DLL in WindowsCE
- How to use epoll_event data.ptr
- How to use HTML-5 data-* attributes in ASP.NET MVC
- How To Use a DataReader Against an Oracle Stored Procedure in Visual C# .NET
- how to use Properties and File to Save Data
- AES - how to use OpenSSL to decrypt Java AES-encrypted data?
- How to use HttpURLConnection POST data to web server?
- How to Use 'Exec Sp_executesql' to Read SQL String with Data Exchange(Interface)
- How to use the Erase Data and Disable Handheld command
- How to use Connector to sync data between AX and CRM
- How to use fb.data.query to get friends info?
- How to use Cipher.exe to overwrite deleted data in Windows Server 2003
- WPF Tutorial - How To Use A DataTemplateSelector