Skip to Content
0
Former Member
Nov 28, 2004 at 07:39 AM

RS_LIST_SELECTION_TABLE , printing format DD.MM.YYYY

77 Views

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.