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: 

RS_LIST_SELECTION_TABLE , printing format DD.MM.YYYY

Former Member
0 Kudos

Hello all,

I'm trying to create a query with sq02 and sq01, that the input fields will be printed in the output.

I used the following code, but the problem is that the DATE fields are printed in the format YYYYMMDD, I want it to be printed <b>DD.MM.YYYY</b>

Do you know another code to do it right?

Or fix my code?

<b><u>The Code:</u></b>

data: lt_seltab type standard table of rsparams

with header line.

data: lv_report like sy-repid.

lv_report = sy-repid. "do not pass sy-repid directly

call function 'RS_REFRESH_FROM_SELECTOPTIONS'

exporting

curr_report = lv_report

tables

selection_table = lt_seltab.

  • you can remove some parameters with

  • 'DELETE LT_SELTAB WHERE...' statement,

  • before display, if necessary

call function 'RS_LIST_SELECTION_TABLE'

exporting

report = lv_report

seltext = 'X'

  • dyn_range =

newpage = ' '

  • screennr = 1000

tables

sel_tab = lt_seltab

exceptions

sel_tab_empty = 1.

*****************************************

thanks,

Itzhak.

1 REPLY 1

Former Member
0 Kudos

This might not be the best answer, but you can give it a try:

In the <b>Own Settings(or is it Data)</b>, you can change the date to show as DD.MM.YYYY in the menu bar(Menu - System).

Regards,

Subramanian V.