2006 Sep 25 4:53 AM
Hi friends,
i want to use select options for a field, and then pass it on to a functional module,...is it possible, can anyone explain to me how to do it/// for eg, werks will be a select option and matnr will be parameter. using a fm, i want to populate data from other fields of diff tables...maktx, vmver, etc from mard marc tables....
Hi,
For the select options you can use table types for passing it in the FM parameters..
For werks there is a table type SD_WERKS_RANGES..
THanks,
Naren
2006 Sep 25 4:57 AM
Hi,
For the select options you can use table types for passing it in the FM parameters..
For werks there is a table type SD_WERKS_RANGES..
THanks,
Naren
2006 Sep 25 5:00 AM
hi Shakir,
Make use of table types to achieve the same...
Regards,
Santosh
2006 Sep 25 6:00 AM
Hi Shakir,
You can use the structure RSPARAMS for passing select options and parameters.
Hope this helps!
Regards,
Saurabh
2006 Sep 25 6:20 AM
hi,
use RSPARAMS.
Data : itseltab type standard table of rsparams,
waseltab type rsparams.
waseltab-SELNAME = 'V_BELNR'.
waseltab-sign = 'I'.
waseltab-option = 'EQ'.
waseltab-low = wabelnr-belnr.
append waseltab to itseltab.
so like that u can pass the table itseltab,
to the function module.
in the function module u gave a table type RSPARAMs
to receive the above table.
rgds
anver
pls mark hlpful answers
2006 Sep 25 6:55 AM
Hi shakir,
1. U will have a WERKS select-options
on the selection screen.
(This same thing, u want to pass in FM)
2. So in FM, the
parameter has to be
TABLES parameter (Not import, nor export)
3. And the type will be
WERKS_RANG
(This WERKS_RANG has 4 fields,
just like a select option
SIGN
OPTION
LOW
HIGH
)
4. Then inside your fm,
u can use SELECT Query,
and use IN WERKS.
regards,
amit m
2006 Sep 25 7:11 AM
hi amit, thanku very much for ur answer, i am now trying the way u told...i am still a novice ABAPer, can anyone tell me, how to get such knowledge of what is existing in DDIC, i mean i never knew there was a structure for werks, etc etc...pls guide
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |