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.
Dig Deeper on SAPscript and Smart Forms
Related Q&A from Matthew Billingham
An SAP user is trying to run a report in an SAP ALV Grid online and wants to know how to get the data in the report to appear along with the header. Continue Reading
An SAP user needs to transfer customer purchase order spreadsheet data to SAP VA01 to create a new sales order. Continue Reading
An SAP user needs information on how to change the password on several SAP user accounts from a central location. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.