on 02-16-2007 10:35 AM
Hi,
I want to pull the Contact no from PA0006 and put into Garnishment (PE51)form. This i can do it using PE51_CHECKTAB's tables and filed tab strip.
My problem is i need display specific format for contact no. i think we can do it thru conversio tab strip. but i do not know where we have to define this format.
if i'm not clear,please write me back.
...Nandha
I have defined a new conversion in FORM CONVERT-NATIO (include PCEDXPL0) when I wanted to print on a payslip short text of an organizational unit instead of it's numerical code. But it is a repair-you probably need an access key to modify an object. May be the following code will be helpful:
1. add your conversion in CASE statement (like mine between comments RMU).
[code]FORM CONVERT-NATIO USING VALUE($CONV) $FOUND.
$FOUND = TRUE.
CASE $CONV.
WHEN 'Y1'. PERFORM CONVERT-Y1.
WHEN 'Y2'. PERFORM CONVERT-Y2.
*RMU 2004-07-12
*#Zlecenie #DEVK908437 Renata Murat 2004-07-12 #INSERT
WHEN 'Z1'. PERFORM convert-z1 USING fld_info.*#
*RMU
WHEN OTHERS.
$FOUND = FALSE.
ENDCASE.
ENDFORM.[/code]
2. define a form with your conversion
[code]FORM convert-z1 USING fld_info TYPE tr_fld_info..
DATA: pos LIKE sy-index,
feld16(16).
TABLES: hrp1000.
FIELD-SYMBOLS: <strng1>.
ASSIGN LOCAL COPY OF (fld_info-pname-strng) TO <strng1>.
SELECT SINGLE * FROM hrp1000 WHERE plvar = '01'
AND otype = 'O'
AND objid = <strng1>
AND begda <= versc-fpend
AND endda >= versc-fpend.
IF sy-subrc EQ 0.
fld_info-value = hrp1000-short.
ELSE.
CLEAR fld_info-value.
ENDIF.
ENDFORM. " CONVERT-Z1[/code]
Note that you can use WRITE statement to format your output. As far as I remember (it was almost 3 years ago) the above change is everything you need to create new conversion.
Regards,
Renata
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi there,
i am trying to put on Pe51 the field 0337-<client field>. I already wnet to Pe51_Checktab and fill all necessary steps in order that this field appear on Pe51. The only thin that is missing is that when I run Payroll the field appear empty.
Any idea
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check in PE51 itself. There are some standard converison rules, which u can attach to that field. Did u check that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.