Skip to Content
0
Former Member
Jan 29, 2008 at 02:48 PM

Macros Vs Subroutine pool code change

15 Views

Hi All,

I need to chage the code as per my company coding standards.

As per the requiremnt i am using the PERFORM statment more time to dispaly Field Catalog based on some coditions.

PERFORM Statments:

PERFORM F_FIRST_FIELD_CATALOG USING C_HKONT

C_BSIS

W_COL_POS

TEXT-010

SPACE.

FORM Statments:

FORM F_FIRST_FIELD_CATALOG USING US_FIELDNAME TYPE ANY

US_REF_TAB TYPE ANY

US_COL_POS TYPE ANY

US_COLTEXT TYPE ANY

US_DO_SUM TYPE ANY.

CLEAR E_CATLOG.

MOVE : US_FIELDNAME TO E_CATLOG-FIELDNAME,

US_REF_TAB TO E_CATLOG-TABNAME,

US_COL_POS TO E_CATLOG-COL_POS,

US_COLTEXT TO E_CATLOG-SELTEXT_L,

US_DO_SUM TO E_CATLOG-DO_SUM.

APPEND E_CATLOG TO I_CATLOG1.

CLEAR E_CATLOG.

ENDFORM. " f_first_field_catalog

I need to change this code using MACROS.

Can any one help how to to this code using MACROS..

and also send me documnt for Macros.

Best Regards,

Sridhar Amruth