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

Converting Number into words while Display

VenkatRamesh_V
Active Contributor
0 Likes
1,240

Hello Sir,

I am working on Project System.

I am getting Field  MAT_PSPNR(Valuated Sales Order Stock WBS Element) in MSEG Table.

In table the Corresponding field  stored in Numbers while Display its converted into Some other Content  Please Explain Me ?.

REPORT  zdemo LINE-SIZE 600.

tables: mseg.

select-options: so_mblnr for mseg-mblnr.      " Document No

start-of-selection.

select mat_pspnr from mseg into mseg-mat_pspnr    " Valuated Sales Order Stock WBS Element

where mblnr in so_mblnr.

check sy-subrc = 0.

write:/01 mseg-mat_pspnr.

endselect.

Table Stored value  for MAT_PSPNR  = 00000293


Report Display: WSP/RAM/02/03.


Kindly Explain how the Contents has been changed ?.



Regards,

Venkat.



1 ACCEPTED SOLUTION
Read only

narendar_naidu
Active Participant
0 Likes
1,142

Hi Venkat,

please check  the Domain of the field you are trying to display .

it will have a conversion routine.

for field MAT_PSPNR domain is PS_POSNR

In the domain definition tab you will have a conversion routine .

because of this conversion routine your data is represented in internal format in the table and external format when displayed.

please read  conversion routine documentation.

regards,

Hello Sir,

I am working on Project System.

I am getting Field  MAT_PSPNR(Valuated Sales Order Stock WBS Element) in MSEG Table.

In table the Corresponding field  stored in Numbers while Display its converted into Some other Content  Please Explain Me ?.

REPORT  zdemo LINE-SIZE 600.

tables: mseg.

select-options: so_mblnr for mseg-mblnr.      " Document No

start-of-selection.

select mat_pspnr from mseg into mseg-mat_pspnr    " Valuated Sales Order Stock WBS Element

where mblnr in so_mblnr.

check sy-subrc = 0.

write:/01 mseg-mat_pspnr.

endselect.

Table Stored value  for MAT_PSPNR  = 00000293


Report Display: WSP/RAM/02/03.


Kindly Explain how the Contents has been changed ?.



Regards,

Venkat.



6 REPLIES 6
Read only

narendar_naidu
Active Participant
0 Likes
1,143

Hi Venkat,

please check  the Domain of the field you are trying to display .

it will have a conversion routine.

for field MAT_PSPNR domain is PS_POSNR

In the domain definition tab you will have a conversion routine .

because of this conversion routine your data is represented in internal format in the table and external format when displayed.

please read  conversion routine documentation.

regards,

Read only

FredericGirod
Active Contributor
0 Likes
1,142

Hi,

it's because the field you use is define by a domain that have a field-exit. The field exit convert automatically the Internal format to External format when you use the WRITE statement.

If you want to bypass the field-exit, you only have to use a variable define in characters and use the MOVE statement

but ... it's really strange to do that. Internal format is only for developer, you will hurt your enduser with this kind of data

regards

Fred

Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
1,142

Hello Venat,

Convert  MAT_PSPNR  to external before displaying.

USE FM CONVERSION_EXIT_ABPSP_OUTPUT for conversion.


Read only

yogendra_bhaskar
Contributor
0 Likes
1,142

This message was moderated.

Read only

himanshu_gupta13
Product and Topic Expert
Product and Topic Expert
0 Likes
1,142

Hi,

It uses the conversion for WBS element using the FM CONVERSION_EXIT_ABPSP_INPUT, you can use the CONVERSION_EXIT_ABPSP_OUTPUT, to convert back.

It uses the table nhprps for getting the value of pspnr. in against of posid.

Many Thanks / Himanshu Gupta

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,142

This come from a conversion-exit associated to domain. Read first some document like Input and Output Conversions.

Regards,

Raymond