‎2007 Feb 28 4:32 PM
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.
‎2007 Feb 28 4:37 PM
'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
‎2007 Feb 28 4:40 PM
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
‎2007 Feb 28 4:43 PM
Hi ,
Thanks for good reply and i give expected reward points for your HELP.
Have a nice time.
Thanks,
Sheethal.