Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to Know the datatype of the Parameter declared

0 Kudos

Hi,

I am working on displaying the report Variants, downloading and uploading the variants.

When i want to upload the same, i am having problems with the date and time field.

I am using RS_VARIANT_CONTENTS FM to get the variant contents.

After downloading ,for date and time fields, i need to do some sort of conversion during uploading it to SAP ( from DD/MM/YYYY to YYYYMMDD(SAP Internal format)).

To identify the parameter/selectoption field as DATE or TIME Field, i need to know the data type of the field.

Please let me know if any body know any function module which will give the data type of the paramter field by taking parameter name as input.

Thanks,

Manjunatha.T.S

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

You can try to use the fm RS_SELECTIONS_DESCRIPTION or

RS_VARIANT_SELECTIONS_DESCR

Max

Message was edited by: max bianchi

5 REPLIES 5

Former Member
0 Kudos

Hi

You can try to use the fm RS_SELECTIONS_DESCRIPTION or

RS_VARIANT_SELECTIONS_DESCR

Max

Message was edited by: max bianchi

0 Kudos

RS_REPORTSELECTSCREEN_INFO

Regards

Raja

Former Member
0 Kudos

You can use RS_SELSCREEN_INFO. Pass the program name and get back all the parameters / Selops. Later read this internal table with the parameter name and get the type of it in FIELD-INFO-DTYP. It will "DATE" or 'TIME".

Cheers

Former Member
0 Kudos

Hi,

RS_COVERPAGE_SELECTIONS :Returns an internal table that contains a formatted list of all the selection parameters entered for a report. Table is ready to print out.

RS_REFRESH_FROM_SELECTOPTIONS :Get the current contents of selection screen

RS_VARIANT_CONTENTS : Returns the contents of the specified variant in a table.

Thanks&Regards,

Ruthra.R

0 Kudos

Hi Everybody,

THanks for the quick VALUABLE information. I think, the function modules that you guys have provided will solve my problem.

THis was really very HELPFULL information for me.THanks for the information.

Regards,

Manjunatha.T.S