04-12-2010 9:44 AM
Hi
I have to create a FM where I have to code Select-options to FM .
how could I create FM (input/table ) parameter in FM for LIFNR field.
Regards,
Vinesh.
04-12-2010 9:54 AM
Hi
Use Ranges Table *FAGL_RANGE_S_LIFNR* "in Tables Parameters of Function Module
or Ranges structure *RANGE_LIFNR* in Tables Parameter of Function Module " Ignore this one
Cheerz
Ram
04-12-2010 9:45 AM
I personally would just give him a table of LIFNR´s and build your select option internally.
04-12-2010 9:50 AM
Hi Vine,
In the report if the select-option was like
select-options: s_matnr for mara-matnr.
Now in the TOP include of the function module declare a types like,
types: t_matnr type range of mara-matnr.
In the function module use like
FUNCTION ztest.
*"----
""Local Interface:
*" IMPORTING
*" VALUE(I_MATNR) TYPE t_MATNR OPTIONAL
Now this will act as a select-options .
Regards,
Raj.
04-12-2010 9:52 AM
Hi vine,
For Eg, In the report if the select-option was like
select-options: s_lifnr for lfa1-lifnr.
Now in the TOP include of the function module declare a types like,
types: t_lifnr type range of lfa1-lifnr.
In the function module use like
FUNCTION ztest.
*"----
""Local Interface:
*" IMPORTING
*" VALUE(I_LIFNR) TYPE t_lifnr OPTIONAL
Now this will act as a select-options .
Regards,
Raj.
04-12-2010 9:54 AM
Hi
Use Ranges Table *FAGL_RANGE_S_LIFNR* "in Tables Parameters of Function Module
or Ranges structure *RANGE_LIFNR* in Tables Parameter of Function Module " Ignore this one
Cheerz
Ram
04-12-2010 9:58 AM
04-12-2010 6:32 PM
Hi,
This is pretty simple. If any time you checked the structure of select option in debugg mode then you can able to find the solution. Anyway just check any structure in your system having fields sign (1) option (2) low(10) and high(10).
Use this structure as the table type.
Thanks
Subhankar