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

Absence Type

Former Member
0 Likes
910

Hi <<text removed>>

I'm trying to use a select-option command to display absence types from table T554S.

But I want the absence type to be limited to only those relevant to me i.e. where T554S-MOABW = 08

How do I do this and link the 2 together - I want the screen p_mowab parameter to be hidden from view i.e. it will have a default value of 08.

A small code example would be really useful.

Many thanks in advance.

Raj

Edited by: Matt on May 20, 2009 1:22 PM - salutation removed after complaints

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
718

Hi,

Create a custon search help and View ( with your condtion)

Call the View in your search help.

4 REPLIES 4
Read only

vallamuthu_madheswaran2
Active Contributor
0 Likes
718

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_mowab .

SELECT * from T554S INTO TABLE gt_itab

WHERE MOABW = '08'.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'MOABW'

dynpprog = sy-repid

dynpnr = '1000'

dynprofield = 'P_MOWAB'

value_org = 'S'

TABLES

value_tab = gt_itab.

Read only

Former Member
0 Likes
719

Hi,

Create a custon search help and View ( with your condtion)

Call the View in your search help.

Read only

Former Member
0 Likes
718

Managed to solve it via using the following:-

Create structure zhr_absence_type_selection via SE11 (Select the Data Type Radio Button)

with the following fields:-

On the Component Tab

=================

Start of Structure zhr_absence_type_selection


Component	Component Type	Data Type   	Length	Decim	Short Decs.
========	=============	========  	=====	====	=========
 
MOABW		MOABW		NUMC	   	2	0	Personnel subarea grouping 
SUBTY		SUBTY		CHAR4	   	0	0	Subtype

End Of Structure zhr_absence_type_selection

On the Entry help/check Tab

=====================

Select the SUBTY line and press the Search Help Button


Search Help Name :- H_T554S
 
Search help parameter	Table Name			Field name	Constant
=================	========			========	=======
ATEXT
BEGDA
ENDDA
MOABW			ZHR_ABSENCE_TYPE_SELECTION      MOABW
SUBTY			ZHR_ABSENCE_TYPE_SELECTION      SUBTY
 

Green Tick.

After the above has been done the Entry help/check tab should look like this


Component	Component Type	Data Type	Origin	Srch Help	Domain
========	============	=======  	====	=======		======
 
MOABW		MOABW		NUMC					MOABW
SUBTY		SUBTY		CHAR		Explict	H_T554S		SUBTY
 

Within the main program the code should be as follows:-


SELECTION-SCREEN BEGIN OF BLOCK absence_schemes WITH FRAME TITLE text-008.
 
* This parameter is used by the selection screen option s_abstyp.
* The binding between the 2 parameters p_moabw and s_abstyp is done
* within the search help <b>for</b> structure zhr_absence_type_selection.
PARAMETER p_moabw TYPE zhr_absence_type_selection-moabw NO-DISPLAY DEFAULT '08'.
 
SELECT-OPTIONS: s_abstyp FOR zhr_absence_type_selection-subty NO INTERVALS.
 
SELECTION-SCREEN END OF BLOCK absence_schemes.

Read only

Former Member
0 Likes
718

Answered by originator.