‎2009 May 19 1:17 PM
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
‎2009 May 19 1:51 PM
Hi,
Create a custon search help and View ( with your condtion)
Call the View in your search help.
‎2009 May 19 1:38 PM
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.
‎2009 May 19 1:51 PM
Hi,
Create a custon search help and View ( with your condtion)
Call the View in your search help.
‎2009 May 20 10:19 AM
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.
‎2009 May 20 10:19 AM