2007 Jun 12 6:05 PM
Hi forum:
How can i pass a selection-option like an input parameter of a function-module?. Put one example in the answer, please.
After pass this value i want to put this into an IN select condition.
But for i only need know how to pass this value
thnks
Josué
Thnks
Josue Cruz
2007 Jun 12 6:19 PM
What is the field in which you want to pass a select-option(range) of? There may be some standard structures and table types that we can use. Otherwise you can create your own in the dictionary and use them in the function module.
If known exits, then you need to create a structure which has the struction of a selection options, including the fields SIGN OPTION LOW HIGH, then you can make a table type of it and use it in the EXPORTING paramters of your functino module, or you can use the structure in the TABLES parameter of the funciton module.
So let me know the actually field that you want to pass as selection option.
I need to know the data type and length.
Regards,
Rich Heilman
Hi forum:
How can i pass a selection-option like an input parameter of a function-module?. Put one example in the answer, please.
After pass this value i want to put this into an IN select condition.
But for i only need know how to pass this value
thnks
Josué
Thnks
Josue Cruz
2007 Jun 12 6:15 PM
create structure like select-option in se11 ,use that structure in se37 ,so this would be easy method.
2007 Jun 12 6:19 PM
What is the field in which you want to pass a select-option(range) of? There may be some standard structures and table types that we can use. Otherwise you can create your own in the dictionary and use them in the function module.
If known exits, then you need to create a structure which has the struction of a selection options, including the fields SIGN OPTION LOW HIGH, then you can make a table type of it and use it in the EXPORTING paramters of your functino module, or you can use the structure in the TABLES parameter of the funciton module.
So let me know the actually field that you want to pass as selection option.
I need to know the data type and length.
Regards,
Rich Heilman
2007 Jun 12 6:25 PM
2007 Jun 12 6:28 PM
2007 Jun 12 6:30 PM
Hi Rich.
this is a little example of my code.
DATA: wa_bukrs TYPE bkpf-bukrs,
wa_budat TYPE bkpf-budat,
wa_gjahr TYPE bkpf-gjahr.
SELECT-OPTIONS: se_bukrs FOR wa_bukrs OBLIGATORY,
se_gjahr FOR wa_gjahr OBLIGATORY,
se_budat FOR wa_budat OBLIGATORY.
HERE i can to put the call to the function.
Thnks
2007 Jun 12 6:36 PM
2007 Jun 12 6:41 PM
Ok, so you can start by creating your structure in the ABAP dictionary, define 4 fields, SIGN, OPTION, LOW and HIGH. SIGN should be character with length 1, OPTION should be character length 2, LOW and HIGH should be the same type as your select-option fields, for example, the first one BUKRS, it should be typed like this field. Now that you have your structure, you can now use it in the definition of your funciton module in the TABLES tab, now all you need to do is pass the select-option to your function call via this new TABLES parameter.
Thats really it.
Regards,
RIch Heilman