Wednesday, March 16, 2011

SAP Tutorials - Translate Text Select Options at Selection Screen

In a SAP report which displays a selection screen for SAP users to provide selection criteria for ABAP report execution, the select options titles may be un-arranged as follows.

selection-screen-select-options-text

The ABAP code source of the above selection screen configuration is as follows :

SELECTION-SCREEN BEGIN OF BLOCK 100 WITH FRAME TITLE TEXT-101.
SELECT-OPTIONS:
SO_WERKS FOR T001W-WERKS,
SO_LGORT FOR T001L-LGORT,
SO_VKORG FOR MVKE-VKORG DEFAULT 'IT00',
SO_VTWEG FOR MVKE-VTWEG,
SO_VMSTA FOR MVKE-VMSTA.
SELECTION-SCREEN END OF BLOCK 100.

In this case where select options don't have title text assigned, and not yet translate in any language the select options will be displayed with parameter names as above.





First, ABAP developers should assign select option label text using SAP menu : Goto > Text elements > Selection texts

set-selection-screen-select-options-text

Then assing the following label text to selection screen select options :
SO_LGORT Storage Location
SO_VKORG Sales Organization
SO_VMSTA Material Sales Status
SO_VTWEG Distribution Channel
SO_WERKS Plant

After activating selection texts, the SAP screen with select criterias will be shown as follows.

assign-selection-screen-select-option-label

Now, we can translate the selection options labels into different languages using Goto > Translation menu selections.

abap-report-goto-translation-menu-for-text-translate

Enter the target language. I'll translate the select options to Italian so I chose "IT".

target-language-for-translation-of-abap-select-options-text

Then drill-through the task list until you reach the ABAP report you want to translate text for.

abap-text-translation-work-list

Double click on the ABAP program. This action will list ABAP text items and existing translations for the defined text in the related ABAP report and target language.
Provide text translations into the empty input areas or edit existing text translation.
After you complete selection text translations, click SAVE icon to save changes.
Go back until you reach ABAP text elements list, activate the list.

rpt4-text-translation

Now, the ABAP selection screen select options translation to other languages, for example from EN to IT is completed.
SAP users can now logon SAP using target language in the SAP GUI logon screen and then execute ABAP report to display select criterias labels translated in target language.

http://www.kodyaz.com/articles/sap-tutorials-translate-text-select-options-at-selection-screen.aspx

No comments:

Post a Comment