Enterprise Resource
Planning Portal

 

Advertise | Founder BLOG

ERPGenie.COM ABAP Tips and Tricks Database

THE ultimate
ERP website

 

Forums | Vote for us |

Google    Other Search Options

Login

Login to view more content!!!





Lost Password?
No account yet? Register

Registered Access

Poll

What area of ABAP are you interested in?
 
Home arrow Utilities arrow ABAP Utilities arrow Std. Include with some good macros
Std. Include with some good macros PDF Print E-mail
User Rating: / 0
PoorBest 
Written by Kevin Wilson   
Wednesday, 01 April 2009
INCLUDE RADBTMAC
  • MACRO: DEFINE_TABLE     Definition of internal table
  • MACRO: DEFINE_STRUCT     Definition of structure
  • MACRO: GET_FIELD_POS    Get offset and length of field
    GET_FIELD_POS <tabname> <field> <offset> <length>
    Example: Get the offset and length of the field ROLLNAME in structure DD03L:
        DATA: OFFSET LIKE SYST-FDPOS.
        DATA: LENGTH LIKE SYST-FDPOS.
        TABLES: DD03L.
        GET_FIELD_POS DD03L ROLLNAME OFFSET LENGTH.
  • MACRO: RANGE_DEF    Definition of a range
    Example: range_def tbatg: object, tabname.
        defines a 'low' and 'high' like tbatg-object or tbatg-tabname
DEFINE RANGE_DEF.
DATA: BEGIN OF &1_&2_RANGE,
       SIGN(1),
       OPTION(2),
       LOW  LIKE &1-&2,
       HIGH LIKE &1-&2,
      END OF &1_&2_RANGE.
END-OF-DEFINITION.
  • MACRO: NAME_LEN     Provides the length of names of DD objects if input

Related Items:

 
< Prev   Next >

Google Search

Statistics

Contribution Activity
Utilities: 41
Tips and Tricks: 362
Sample Code: 174
Total Contributions: 592

Member Activity
Members: 6795 since 2/1/2007!
New: 2 since yesterday!
Visitors: 2163982
We have 2 guests online

Newest Members

Welcome our newest members:

Google Ads