cancel
Showing results for 
Search instead for 
Did you mean: 

about the EE COSTS IN SCRIPT(urgent)

Former Member
0 Kudos

HI team,

i am working on the sap script on hr module : hr_ben_conf.... for the driver program of RPUBEN15. i want to display only EE costs only in that script .

In the script level i have to write the code : but i have written the code , still it is not working ...

can any one tell me where i need to write the code

u can check in the table of : pa0167......

structure name : Rpben_da.

field : depcv: depedent coverage ,

bplan : benefit plan ,

pltyp : benefit plan type

i have written the code in the script level............................................ but these code is not working can any one tell me the exact solution..

IF &RPBEN_DA-BPLAN& EQ 'DENT' OR &RPBEN_DA-BPLAN& EQ 'VISI' OR

&RPBEN_DA-BPLAN& EQ 'MEDI'

IF &RPBEN_DA-PLTYP& EQ 'STMD' OR &RPBEN_DA-PLTYP& EQ 'DENT' OR &RPBEN_DA-PLTYP& EQ 'VISI'

IF &RPBEN_DA-DEPCV& EQ 'EE'

DEFINE &PLANCOV& := 'EMPLOYEE ONLY'

ENDIF

ENDIF

ENDIF

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

write the code as mentioned below and call within the layout.

1. This structure ITSCSY

(which is actually of type ITCSY)

2. is usually used in SAPSCRIPT (SE71)

while calling EXTERNAL SUBROUTINES.

3. the DEFINITION of this

FORM,

contains two parameters, IN and OUT,

which are of tuype ITCSY

4. These internal tables, then , contain

the

VARIABLENAME, AND VARIABLE VALUE,

which is passed using PERFORM.

You can call a Routine in any program in SAPScript.

For eg: if you have a subroutine named ADD_INCOME in a program ZSHAIL_BASIC, you can call the subroutine in SAPScript as follows:

/: PERFORM ADD_INCOME IN PROGRAM ZSHAIL_BASIC

/: USING &var1&

/: CHANGING &var2&

/: ENDPERFORM.

Here the input parameter to the subroutine is var1 and the value returned by the subroutine is var2.

In the program ZSHAIL_BASIC, you have to call the subroutine as

FORM ADD_INCOME TABLES IN_TAB STRUCTURE ITCSY OUT_TAB STRUCTURE ITCSY.

ENDFORM.

IN_TAB is a structure of type ITCSY,which has 2 components, NAME and value.

So in the program, var1(which is sent from SAPScript) , will be stored as IN_TAB-NAME and its value will be in IN_TAB-VALUE. You can utilise the IN_TAB-VALUE and after performing the required operations, the return value should be assigned to table OUT_TAB.

This value can thus be obtained in var2 specified in SAPScript

Regards,

If helpful reward with points(Don't forget).