Application Development 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: 

rp_provide_from_last infotype subtype pn-begda pn-endda.

Former Member
0 Kudos

Hi All,

Is there a way to find out if a subtype exists before using this macro. If a subtype does not exist then it crashes.

rp_provide_from_last infotype subtype pn-begda pn-endda.

Thanks,

~Mark

2 REPLIES 2

Former Member
0 Kudos

Mark,

Check the View V_T591A - Subtype Characteristics.

It will have all Subtypes maintained in your sytem for infotype.

Additionally if you want to Use the Macro for an Infotype without Subtype, Pass SPACE instead of Subtype.

RP_PROVIDE_FROM_LAST P0001 SPACE PN-BEGDA PN-ENDDA.

Hope this helps.

Vinodh Balakrishnan

Edited by: Vinodh Balakrishnan on Jan 15, 2008 3:19 PM

0 Kudos

Thanks for your reply.

The problem is that the user might select three subtypes from the initial screen for a pernr that might not actually exist for that specific pernr.

I have to first figure out which subtypes exist and then process those.

Is there a better way to handle this?

Thanks,

~Mark