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

function module

Former Member
0 Likes
637

can anyone explain me the use and the purpose of

<b>k_group_select</b> function module .

5 REPLIES 5
Read only

Former Member
0 Likes
520

Hi,

IT is used for Cost Centre group selection.

Best regards,

Prashant

Read only

Former Member
0 Likes
520

chk this

Read only

Former Member
0 Likes
520

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

Read only

Former Member
0 Likes
520

this FM will be used to get F4 Help of Internal Order Group

Read only

abhishek_shukla3
Explorer
0 Likes
520

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.

*----