2007 May 29 11:43 AM
can anyone explain me the use and the purpose of
<b>k_group_select</b> function module .
2007 May 29 11:49 AM
2007 May 29 11:52 AM
2007 May 29 11:53 AM
this can be used for F4 help on a field (Internal Order Group).
u can refer standard program - RKWBKT00 for its use..
in this report this FM is used for field KTSET as below -
*----
-
F4-Hilfe für Gruppen
*----
-
AT SELECTION-SCREEN ON VALUE-REQUEST FOR KTSET.
DATA: SET_S_FIELD LIKE T800S-SEARCHFLD.
SET_S_FIELD = KOKRS.
CALL FUNCTION 'K_GROUP_SELECT'
EXPORTING
FIELD_NAME = 'KSTRG'
SEARCHFLD = SET_S_FIELD
IMPORTING
SET_NAME = KTSET
EXCEPTIONS
NO_SET_PICKED = 01.
reward points if helpfull
amit
2007 May 29 11:54 AM
2007 May 29 12:03 PM
Here are the details for fn module k_group_select :
Fn grp : KAB2
Fn grp description : CO Reporting: General Functions
Fn module : k_group_select
Fn module description : Searching for cost-object groups via a pop-up window
Description:
Good for F4 (on value-request) function. Imports a field name and returns chosen Group name for the field: KSATR Cost element group RACCT Account group
PRZNR Business process group KSTRG Cost object group
KOSTL Cost center group AUFNR Order group
LSTAR Activity type group STAGR Statistical key figure group
SKOST Sender cost center group SLSTA Sender activity group
PRCTR
RPRCTR Profit center group VORNR Network activity group
POSID
Example :
constants: c_x(1) type c value 'X',
c_kstar like t800s-feld value 'KSTAR '.
parameters: p_kstar like t800s-setnr. "Cost Element Group
*----
F4 for Cost Element Group -
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_KSTAR.
CALL FUNCTION 'K_GROUP_SELECT'
EXPORTING
FIELD_NAME = C_KSTAR
SELECT_SETS_WITHOUT_CLASS = C_X
IMPORTING
SET_NAME = P_KSTAR
EXCEPTIONS
NO_SET_PICKED = 02.
CASE SY-SUBRC.
WHEN 1. MESSAGE S003(GR).
WHEN 2. MESSAGE S004(GR).
ENDCASE.
*----