on 03-17-2011 9:02 AM
Hello!
In the Full and Final Settlement form(HR Forms - PE51), we need to print the reason of leaving action. I have used following values but it does not work.. Any ideas?
Table = WPBP - Basic pay/work center
Table field = MASSG - Reason for action
Output length = 10
Conversion = 01 - Replace key with text
Regards
Yash
Would using custom conversion class 9x and coding in FORM CONVERT-MOD of INCLUDE RPCEDSZ9. "Form routines for customer-modifications be an option?
Code will be
when 9x (your convertion class)
CALL METHOD cl_hr_t530t=>read
EXPORTING
sprsl = sy-langu
massn = wpbp-massn
massg = wpbp-massg
RECEIVING
t530t = ls_530t.
And fill FILL_INFO structure according to your requirements.
BEGIN OF tr_fld_info,
lname TYPE tr_lname, "logical fieldname
pname TYPE tr_pname, "physical fieldname
linno LIKE sy-index, "line
offset LIKE sy-index, "column - 1
fldoffs LIKE sy-index, "shift (field) by n places
length LIKE sy-index, "output length
conv LIKE t514c-fconv, "conversion
value TYPE t_str255, "field value
END OF tr_fld_info.
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
They are use to convert
They permit you to enhance and customize value output according to your need. There is a number of standard convertion rules available.
00 Suppress printing
01 Replace key with text
06 1 Decimal Place
07 2 Decimal Places
09 Eliminate decimal places
10 Eliminate leading zeros
11 Company code text
13 Date formatting
14 No number formatting
15 Personnel area text
16 Reverse +/- sign
18 No num.format. w.+/- sign
19 No +/- sign
21 No dec.places, no +/-
22 Text for constant
23 Numbers in words (w/o DP)
24 Numbers in words(only DP)
27 No num.format. w.+/- sign
30 No format.of thousands
31 Print time with minutes
35 Quota types text
39 Decimalization
40 Currency
41 Currency, reverse +/-
42 Currency, leading +/-
43 Curr., reverse lead. +/-
44 Currency, no +/- sign
46 Currency, w/o dec.place
50 Alternative Currency
51 Alt.currency, rev. +/-
52 Alt.currency, leading +/-
53 Alt.curr.,rev.leading +/-
54 Alt.currency, no +/- sign
56 Old currency, w/o decimal
94 Period formatting
You can also add new convertion rules and enhance FORM CONVERT-MOD of INCLUDE RPCEDSZ9 with the logic you need. Those rules can be added or not in view T514C - this would make it appear in the search-help of ppe51_4020-fconv field (PE51 sceen 4020).
Example:
FORM CONVERT-MOD USING FLD_INFO TYPE TR_FLD_INFO $FOUND LIKE BOOLEAN.
$FOUND = TRUE.
CASE FLD_INFO-CONV.
WHEN xx.
do blablabla.
WHEN '93'.
loop at rt where lgart = '/103'.
l_flag = 'X'.
endloop.
if l_flag EQ 'X'.
l_valor = TPCCO.
* SHIFT l_valor BY 2 PLACES RIGHT.
CONDENSE l_valor no-gaps.
translate l_valor using '.,'.
FLD_INFO-value = l_valor.
endif.
WHEN yy.
do bliblibli.
ENDCASE.
ENDFORM.
Convertion rules are country dependant and form type dependent (in your case - your molga value and CEDT form type)
User | Count |
---|---|
102 | |
13 | |
10 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.