Skip to Content
0
Jan 10, 2012 at 10:19 AM

Get data from more than 1 subtype using RP_PROVIDE_FROM LAST

119 Views

Hi all,

I need to get data from infotype 2013 subtype 90 and subtype 91.

Currently the codes only allow me to use it one time for the same infotype. If I use it again for the same infotype, pnp-sw-found will equal to zero. Anyone have any idea on this?

Example:

Get pernr.

Start of selection.

rp_provide_from_last p2013 0090 pn-begda pn-endda.

IF pnp-sw-found = 1.

**--> Populate internal table

MOVE p2013-ktart TO ls_quota-ktart.

MOVE p2013-aedtm to ls_quota-aedtm.

MOVE p2013-uname to ls_quota-uname.

MOVE p2013-accnu to ls_quota-accnu.

MOVE p2013-accop to ls_quota-accop.

ELSE.

REJECT.

ENDIF.

End of selection.