Application Development and Automation 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: 
Read only

help in SELECTION-SCREEN

Former Member
0 Likes
812

Hallow I doing a program for managers to see employee that doing courses.

I wont that in field name automatic bring the usrid of the user how can I do that ?maybe sap have a function for that it will help help.

Thanks

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-t02.

SELECT-OPTIONS c_course FOR z_course_table NO INTERVALS.

<b>PARAMETERS uname TYPE sy-uname.</b>

PARAMETERS switch AS CHECKBOX.

SELECTION-SCREEN END OF BLOCK b2.

2) Other thing in SELECT-OPTIONS c_course FOR z_course_table NO INTERVALS.

When I run the selection-option the field is full with <b>zero 00000000</b> how can I do this field empty

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
753

Hi,

1) SELECT-OPTIONS c_course FOR <b>z_course_table-Field</b> NO INTERVALS.

2) PARAMETERS uname TYPE sy-uname <b>default SY-uname</b>

Regards

Sudheer

8 REPLIES 8
Read only

Former Member
0 Likes
753

Hi

PARAMETERS uname TYPE sy-uname default sy-uname.

2) Other thing in SELECT-OPTIONS c_course FOR z_course_table NO INTERVALS.

When I run the selection-option the field is full with zero 00000000 how can I do this field empty

It depends on the output format of the z_course_table: you should assign a convertion routine like APLHA.

Max

Read only

0 Likes
753

refer -

tables pa0001.

select-options p_pernr for pa0001-pernr no intervals.

parameters uname like sy-uname default sy-uname.

initialization.

if p_pernr[] is initial.

clear p_pernr.

endif.

Read only

0 Likes
753

refer -

tables pa0001.

select-options p_pernr for pa0001-pernr no intervals.

parameters uname like sy-uname default sy-uname.

Read only

Former Member
0 Likes
753

1. PARAMETERS uname like usr02-bname.

initialization.

uname = sy-uname.

2.

Message was edited by:

Chandrasekhar Jagarlamudi

Read only

Former Member
0 Likes
754

Hi,

1) SELECT-OPTIONS c_course FOR <b>z_course_table-Field</b> NO INTERVALS.

2) PARAMETERS uname TYPE sy-uname <b>default SY-uname</b>

Regards

Sudheer

Read only

Former Member
0 Likes
753

for the 2nd one

try this..


SELECT-OPTIONS c_course FOR z_course_table NO INTERVALS.

INITIALIZAION.

if c_course[] is initial.
  clear c_course.
  refresh c_course.
endif.

Read only

Former Member
0 Likes
753

Hi,

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-t02.

SELECT-OPTIONS c_course FOR z_course_table NO INTERVALS.

<b>PARAMETERS uname TYPE sy-uname Default sy-uname.</b>

PARAMETERS switch AS CHECKBOX.

SELECTION-SCREEN END OF BLOCK b2.

Here c_course value depends on the type of Z_COURSE_TABLE. If it is of type N it wont be having zeros.

SELECT-OPTIONS c_course FOR z_course_table NO INTERVALS

Can also defien as

DATA: course(6) TYPE NUMC.
SELECT-OPTIONS c_course FOR course NO INTERVALS.

Read only

Former Member
0 Likes
753

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-t02.

<b>SELECT-OPTIONS c_course FOR z_course_table NO INTERVALS default space.

PARAMETERS uname TYPE sy-uname default sy-uname.</b>

PARAMETERS switch AS CHECKBOX.

SELECTION-SCREEN END OF BLOCK b2.

1. PARAMETERS uname TYPE sy-uname default sy-uname.

2. SELECT-OPTIONS c_course FOR z_course_table NO INTERVALS default space.