Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Run Macro

Former Member
0 Likes
942

Hi

How can we run macros in SAP?

Thanks

Tharani

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
895

hi Tharani,

Yes we can run

Check this out for the same

http://help.sap.com/saphelp_erp2005/helpdata/en/a5/631f0f43a211d189410000e829fbbd/frameset.htm

Regards,

Santosh

6 REPLIES 6
Read only

suresh_datti
Active Contributor
0 Likes
895

Hi Tharani,

Pl take a look at DEMO_MOD_TECH_MACROS.

Regards,

Suresh Datti

Read only

Former Member
0 Likes
896

hi Tharani,

Yes we can run

Check this out for the same

http://help.sap.com/saphelp_erp2005/helpdata/en/a5/631f0f43a211d189410000e829fbbd/frameset.htm

Regards,

Santosh

Read only

Former Member
0 Likes
895

U define macros in the ABAP

DEFINE INCR

&1

&2

END-OF-DEFINAITON

and u can call this macro as

INCR par1 par2

&1 &2 in the macro gets replaced with par1 and par2

Read only

Former Member
0 Likes
895

hi

define macro ( concatenate charectors and append into table )

DEFINE mac_zcom_append_line.

clear &6.

concatenate &1 &2 &3 &4

into &6-line

separated by space.

append &6 to &5.

END-OF-DEFINITION.

Call Macro

mac_zcom_append_line text-003 'BAC' space space table_name.

order of the value should be maintained.

Feel free to ask further question

Message was edited by: Manoj Gupta

Read only

0 Likes
895

In this link http://help.sap.com/saphelp_erp2005/helpdata/en/a5/631f0f43a211d189410000e829fbbd/frameset.htm

I could see the details like..

To execute a macro:

In the planning table, choose Edit ® Macro.

The Macro Selection dialog box appears.

Where is this planning table? Do we have any Tcodes for this ?

Read only

Former Member
0 Likes
895

Use transactions MF50(Planning Table Change mode) and MF52(Display mode).