Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Increase the length

Former Member
0 Likes
734

hi all,

i have a WBS Element field from bseg table in ALV Report. the length for this field is 8.

whereas when i execute it in background the output length for WBS Element should extend to 24.

i have given in field catalog the outputlen as 24.its not getting.

please help how can i increase the length.

is it possible with the conversion _ exit function module.

please help how to use this function module with code or is their any other way.

please its urgent

hi all,

i have a WBS Element field from bseg table in ALV Report. the length for this field is 8.

whereas when i execute it in background the output length for WBS Element should extend to 24.

i have given in field catalog the outputlen as 24.its not getting.

please help how can i increase the length.

is it possible with the conversion _ exit function module.

please help how to use this function module with code or is their any other way.

please its urgent

2 REPLIES 2
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
494

Instead of BSEG definition, try defining the field as LIKE PRPS-PSPNR, this should show it in the 24-character format in ALV.

If this does not work, just use your own field (TYPE C LENGTH 24) for WBS Element. You will need to add a line to the ALV field catalog table. Something like this:

CLEAR wa_fieldcat.

wa_fieldcat-fieldname = 'PSPNR'. " <---- your field name here in CAPS !!!)

wa_fieldcat-col_pos = ??. " <----- next available number )

wa_fieldcat-seltext_s = 'WBS'. " <------- column header here

APPEND wa_fieldcat TO itab_fieldcat.

And use function module CONVERSION_EXIT_ABPSP_OUTPUT to convert from "internal" (i.e. how it's stored in the database) 8-character format to an "external", 24-character one.

I hate those WBS elements.

Read only

Former Member
0 Likes
494

Hi,

The eight-byte length is for the internal value of the WBS element. If you want to convert to the external value simply call conversion exit function module 'CONVERSION_EXIT_ABPSP_OUTPUT'. You only need to pass the 8-byte internal value to the function module and it will give you back the 24-character external value that you are looking for.

In the future, you can find a conversion exit function module name by looking at the domain definition in the Output Characteristics section (Convers. routine field). For domain PS_POSNR the conversion routine is ABPSP. Double-click the ABPSP conversion routine name to see a popup with the conversion routine function modules. The "output" function module takes the internal value and converts to the external value, and the "input" function module takes the external value and converts it to the internal value.

Alternatively, you should be able to simply refer to the data element/domain value for BSEG-PROJK in your ALV field catalog.

Regards,

Jamie