Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2878

Re: After enter date  in Selection Screen : Showing Invalid Date

$
0
0

Hi Vinay,

 

TABLES: zemployee.

CONSTANTS: c_view TYPE char30 VALUE 'ZEMPLOYEE',

  c_u TYPE char1 VALUE 'U',

  c_and TYPE char3 VALUE 'AND'.

 

DATA: gt_seltab TYPE STANDARD TABLE OF vimsellist,

           g_fieldname TYPE vimsellist-viewfield,

           gt_exclude TYPE TABLE OF vimexclfun,

  gwa_exclude TYPE vimexclfun.

 

 

SELECT-OPTIONS: s_id FOR zemployee-id,

                               s_date FOR zemployee-date.

 

 

*Add ID column to selection criteria of Table maintenanace view

g_fieldname = 'ID'.

 

CALL FUNCTION 'VIEW_RANGETAB_TO_SELLIST'

  EXPORTING

  fieldname = g_fieldname

  append_conjunction = c_and

  TABLES

  sellist = gt_seltab

  rangetab = s_id.

 

*Add Name column to selection criteria of Table maintenanace view

 

g_fieldname = 'DATE'.

 

CALL FUNCTION 'VIEW_RANGETAB_TO_SELLIST'

  EXPORTING

  fieldname = g_fieldname

  append_conjunction = c_and

  TABLES

  sellist = gt_seltab

  rangetab = s_date.

 

* Call to the 'VIEW_MAINTENANCE_CALL' function module

CALL FUNCTION 'VIEW_MAINTENANCE_CALL'

  EXPORTING

  action = c_u

  view_name = c_view

  TABLES

  dba_sellist = gt_seltab.

 

This is the coding.i am writing this is for callthe maintainance view(SM30) before maintainance view i need Selection Screen..I am Used this date field for report its working fine..i feel i did mistake in this coding onlly....


Viewing all articles
Browse latest Browse all 2878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>