cancel
Showing results for 
Search instead for 
Did you mean: 

Adding another Selection Criteria in a Feature

Former Member
0 Kudos

Wanted to have paygrade TRFGR in EDTIN feature as a certain grade needed to have different payslip renum. Amended the std structure PME74 into ZME74. Made feature too and activated. Under TRFGR two options are there GT or otherwise. It default goes to otherwise even though the test data is GT. Pl advice

Accepted Solutions (1)

Accepted Solutions (1)

ted_dinh
Active Contributor
0 Kudos

Instead of changing structure PME74, you should have EDTIN feature called an external routine. As PME74 is  accessibled in this routine, you should be able to read ee's pay grade, and assign proper

form based on the pay grade into 'BACK' value (return value from feature).

Former Member
0 Kudos

Ted, kindly brief.

ted_dinh
Active Contributor
0 Kudos

As pernr is not included in PME74 structure, see if you can fetch pernr through SAP memory using

'GET PARAMETER ID 'PER' FIELD g_pernr . ' where g_pernr is your variable to hold pernr.

Answers (3)

Answers (3)

Former Member
0 Kudos

through program could bring in P0008 but its empty as pernr is not pulled. If we put GET PERNR in the program still no use. Any guidance?

Former Member
0 Kudos

Ok...any other possibility?

former_member17522
Active Contributor
0 Kudos

Hi Vivek,

Within a feature you can always insert an abap routine in an external include form which you can read TRFGR.

Regards,

Carlos.

former_member17522
Active Contributor
0 Kudos

Hi Vivek,

By looking at the abap code involved I'd say your change to the standard feature should't work:

FUNCTION GET_PAYSLIP .

* get variant name

IF PAYSLIP_VARIANT IS INITIAL.

CLEAR: PME74.

MOVE-CORRESPONDING P0001 TO PME74. "

MOVE-CORRESPONDING RGDIR TO PME74.

PME74-MOLGA = T500P-MOLGA. "

* determine payslip variant from feature 104 PERFORM RE549D USING 'EDTIN' '1' PAYSLIP_VARIANT RET_CODE.

there should be something like

MOVE-CORRESPONDING P0008 TO PME74.

Regards,

Carlos.