07-10-2008 11:22 AM
hi ,
Requirement like
Input wbs element posid = M-GA-0022-007 ( i.e 24 char )
output wbs element pspnr = 00000619 (i.e 8 numc )
so any Funtion module which convert the posid(24 char ) to pspnr ( 8 numc) ?
07-10-2008 11:25 AM
Hi,
You can check the conversion routine in such cases.
For your requirement it is CONVERSION_EXIT_ABPSP_INPUT
Hope this helps.
07-10-2008 11:31 AM
Check these Functions
From 8 to 24 char
CALL FUNCTION 'CONVERSION_EXIT_ABPSP_OUTPUT'
EXPORTING
input = nr_num
IMPORTING
output = nr_char.
From 24Char to 8 Char
CALL FUNCTION 'CONVERSION_EXIT_ABPSP_INPUT'
EXPORTING
input = wbs
IMPORTING
output = wpspnr
07-10-2008 11:58 AM
As with any database field conversion, you can find this out yourself in about 5 seconds by looking at the conversion routine field on the domain that underlies the field.