‎2008 May 28 3:17 PM
Hi Guys,
I have to use select-option with function module
Sample Code:
Select-options: s_pernr for pa0001-pernr
Call function u2018ZABDCu2019
EXPORTING
PARM1 = u2018ABCDu2019
TABLES
T_USER = ITAB.
There are 2 fields in internal table ITAB:
PERNR
LEVEL
From ITAB I only want to work with records with PERNR in select-option parameter S_PERNR.
Thanks,
mini
‎2008 May 28 3:24 PM
Hello,
Do this:
DELETE itab WHERE pernr NOT IN s_pernr.
Regards.
‎2008 May 28 3:22 PM
Hi,
can you please elaborate your requirement. Are you importing that table or exporting to the function module?
You want to build the function module or The function module is already existing?
Please put ur requirement in detail.
Regards
Sandeep Reddy
‎2008 May 28 3:25 PM
Hi Sandeep,
I am importing the table ITAB and function module is already created in the system. I am just using this FM.
Thanks,
‎2008 May 28 3:24 PM
Hi
use select pernr level into itab
from perner
where pernr between s_pernr-low s_pernr-high
regards
Vamshi
‎2008 May 28 3:24 PM
Hello,
Do this:
DELETE itab WHERE pernr NOT IN s_pernr.
Regards.
‎2008 May 28 3:26 PM
‎2008 May 28 7:07 PM
Hi,
Try this.
LOOP AT ITAB WHERE PERNR >= s_pernr-LOW AND PERNR <= s_pernr-HIGH.
STATEMENT GOES HERE
ENDLOOP.
Hope it helps you.
Murthy
‎2008 May 29 3:57 AM
Hi,
If you want to remove all PERNR from ITAB which are not in S_PERNR , then
DELETE ITAB WHERE PERNR NOT IN S_PERNR.
If you want to do some operation in a loop.
LOOP ATV ITAB WHERE PERNR IN S_PERNR.
ENDLOOP.
Reward if helpful.