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

Report Doubt

Former Member
0 Likes
447

Hi All,

I Have one doubt regarding below statements .

what is the meaning of this statements ( i mean to ask abt '2' and IF PNP-SW-FOUND = 1. )

RP_PROVIDE_FROM_LAST P0006 '2' PN-BEGDA PN-ENDDA.

IF PNP-SW-FOUND = 1.

RP_PROVIDE_FROM_FRST P0006 '1' PN-BEGDA PN-ENDDA.

IF PNP-SW-FOUND = 1.

Thanks In Advance,

Sheethal.

3 REPLIES 3
Read only

suresh_datti
Active Contributor
0 Likes
415

'2' means subtype '2' fo the address infotype 0006.. similarly '1' is for subtype 1.

PNP-SW-FOUND is like the sy-subrc for a SELECT statement.

If PNP-SW-FOUND eq 1 means your macro call returned a record, else it wasn't successful.

~Suresh

Read only

Former Member
0 Likes
415

Hi,

In the Statment RP_PROVIDE_FROM_LAST P0006 '2' PN-BEGDA PN-ENDDA. this RP_PROVIDE_FROM_LAST will have 4 parameters, first one is for PERNR and second one for Sub type, Third one and 4th parameters for Begin and End date. so here '2' is the Subtype

IF PNP-SW-FOUND = 1 --> This is similar to Sy-SUBRC check

Regards

Sudheer

Read only

Former Member
0 Likes
415

Hi ,

Thanks for good reply and i give expected reward points for your HELP.

Have a nice time.

Thanks,

Sheethal.