Skip to Content

Force Language in Standard MSS Webdynpro Java page – EP 7.3

This is to force the MSS WD Java application content in any Language as static content to display while irrespective of language selection, we had a similar Requirement to force the WD java Application page content in English.

Requirement: The Employee profile (Personnel Development) page needs to be displayed in English, which is running under Standard Webdynpro Java Applications.

Blog1.jpg

Applications under MSS content – mss~eepro

Blog2.jpg

We copied the “PersonnelDevelopment” Application view and pasted under our customized folder.

It was created as WD java Page, which is like a Standard page.

Blog3.jpg

Wherein we had tried with two approaches, in terms of controlling the WD java page content in English language, the first was not working and only the second approach was working.

We have successful implemented with second approach as per our client requirement.

Approach 1:

Firstly we had tried to control the WD application page to display the content in English by changing the Portal page content properties in PCD inspector.

By changing PCD properties in PCD inspector content as follows.

We had set the “English” text for all the language’s text by selecting the corresponding WD application Page

Blog4.jpg in “com.sap.portal.pcm.Title/Description”

But, we controlled only the Portal Properties display not the WD application content “texts”.

The Application content was still displaying in respective Language selection.

Note: This was not working based on our Requirements.

Approach 2:

Secondly we had come up with different initiative which is to control whole standard WD java application page in iView content.

This is like standard way of creating an iView by using new option rather than creating from iView Template.

Before we do this method, we need to ensure that we have copied the Webdynpro Application page from mss~eepro component to your customized folder location.

Now the application page looks as follows.

Blog3.jpg

Main steps to create iView from the above page.

1.     Create an iview by selecting following option.

Blog5.jpg

Note: There will be question against this like why don’t we try this with “iView from Template” – Yes, we created an iView from default iView template and tried to replicate the standard Webdynpro java iview’s properties in the custom iView which we created, but again it was not up to the requirement that we expected.

2.     Select the System Alias Name, Application Id, Application type, Implementation and Role location from the respective Dropdown options as mentioned below.

3.     Select the Role from the location of add-on standard package’s role as indicated in the screen shot.

  Blog6.jpg

        4.     Click on “Go” button, you will be navigated to Popup window for inputting Webdynpro application page under the standard MSS package, Select the “Personnel Development” page as indicated in below screen.              

         

          Blog7.jpg 

          Blog8.jpg                                    

         5.     Click on “Start upload”.

              Blog9.jpg

6.     Click on “Finish”.        

7.     You will get a created iView with standard MSS WD java page content.

                 Blog10.jpg

8.     The iView will contain WD page details of multiple iviews content as mentioned below.

        Blog11.jpg

9.     The next step which is to set the Force Language in the iView properties, The “Force Request Language” property has to be set to desired language (Ex. English) to display the content when the language is being selected irrespectively.

                Blog12.jpg

10.  Preview the content – now the Standard webdynpro Java iview got the Personnel Development page as a single iView.

       Blog13.jpg

11.  To test the behavior of this during multi language selection, we need to create a test role or assigned to existing role.

                Blog14.jpgOnce it’s done with role assignments, just go to “Personalize’ option of Portal.

                     Blog15.jpg                

12.  Change the portal language to any other language as mentioned above, Just do “log off” and “Login” back to portal, then check the Portal screen is displayed in your selected portal language(French) except the our English Test role and it’s content.

13.  The Result Screen will be displayed in English for French login.

       Blog16.jpg

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply