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

Date and Number from internal to user formats

SAP users can pick different formats for date and quantity fields display.

SAP users can pick different formats for date and quantity fields display. This means that when you are writing a batch input program you have to convert the internal field representation into the one the user has picked.

Fortunately, this has already been solved by ABAP's WRITE statement. WRITE outputs the field to the screen using the user format, but you can also use WRITE to move the value to another variable using the 'TO g' addition.

If datum is a variable of type d and c_datum is a variable of type c with length 10, then after this single line of code c_datum contains the value of datum in the user's date format.


WRITE datum TO c_datum.

Dig Deeper on SAP ABAP

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchContentManagement

SearchHRSoftware

Close