10-15-2008 6:21 PM
Hi guys , There is a field called PROJN Work breakdown structure element (WBS element), if you go to data browser , for this field you can see for example 'O/84/N ...' , however if you put this field in a program you see a number , why is that ?? , How could i change the O for P for the example, in the program I always see a number ???.
10-15-2008 6:25 PM
Hi,
To get the correct WBS element you need to use the conversion FM. Please see th sample code below.
CALL FUNCTION 'CONVERSION_EXIT_ABPSP_OUTPUT'
EXPORTING
input = i_bseg-projk
IMPORTING
output = l_posid.
i_alv-pspnr = l_posid.
Hope this helps.
Thanks,
Senthil
10-15-2008 6:25 PM
Hi,
To get the correct WBS element you need to use the conversion FM. Please see th sample code below.
CALL FUNCTION 'CONVERSION_EXIT_ABPSP_OUTPUT'
EXPORTING
input = i_bseg-projk
IMPORTING
output = l_posid.
i_alv-pspnr = l_posid.
Hope this helps.
Thanks,
Senthil
10-15-2008 6:28 PM
This is must be due to Conversion routines.
CONVERSION_EXIT_ABPSP_INPUT Conversion External > Internal WBS Element Number
CONVERSION_EXIT_ABPSP_OUTPUT Conversion Internal > External WBS Element Number