Q
Problem solve Get help with specific problems with your technologies, process and projects.

Change screen attributes

When I retrieve a value from an internal table and put it onto a screen, the value comes truncated, say, if I am retrieving VBELN from VBAK the value displayed is '5045' while in database it is '0000005045'. Is there a way that I can change the screen attributes?

When I retrieve a value from an internal table and put it onto a screen, the value comes truncated, say, if I am...

retrieving VBELN from VBAK the value displayed is '5045' while in database it is '0000005045'. Is there a way that I can change the screen attributes?

VBAK-VBELN is on domain VBELN. If you look at this, you will see in its definition is has a conversion routine. (ALPHA). If you get the F1 help for the conversion routine, you'll see that when data is entered into this field, a function module runs which converts between the display format and the database format.

So if you really want the value to appear on screen as it does in the database, then don't use the data dictionary as reference for your screen field. However, if you do this, your program will work differently from SAP programs using the same field.


This was last published in February 2004

Dig Deeper on SAPscript and Smart Forms

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close