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

macro help

Former Member
0 Likes
286

hallow

i wonder if some one now about macro that bring al the data he find in table

ex. rp_provide_from_last

bring just the last data thet he find in table

i wont macro that bring all the data

regards

1 ACCEPTED SOLUTION
Read only

suresh_datti
Active Contributor
0 Likes
265

or you can simply use the loop at..

for intotype 0001, I would use

get pernr

clear p0001.

loop at p0001.

**

endloop.

end-of-selection.

~Suresh

2 REPLIES 2
Read only

ferry_lianto
Active Contributor
0 Likes
265

Hi Antonio,

RP_PROVIDE_FROM_LAST macro will give the last value in the infotype for the given BEGDA and ENDDA.

Instead perhaps you can do something like this.


...

DATA: BEGIN OF i_tab1,
        pernr like pa0105-pernr,
        usrid like pa0105-usrid,
        abkrs like pa0001-abkrs,
        plans like pa0001-plans,
        agr_name like agr_users-agr_name,
END OF i_tab1.


GET pernr.

PROVIDE * FROM p0105 BETWEEN 01011900 AND 12319999.
MOVE-CORRESPONDING p0105 TO i_tab1.
ENDPROVIDE.

...

Regards,

Ferry Lianto

Read only

suresh_datti
Active Contributor
0 Likes
266

or you can simply use the loop at..

for intotype 0001, I would use

get pernr

clear p0001.

loop at p0001.

**

endloop.

end-of-selection.

~Suresh