Beruflich Dokumente
Kultur Dokumente
Share 0
learnwdabap.blogspot.in/2011/05/using-assistance-class-in-web-dynpro.html
1/19
11/5/12
and click on save.
2. Go to the methods tab and create methods. In the current case, I am creating a method name 'Get Name' and with one import and one export parameter. functionality of the method is to give name of the dealer based on the ID.
learnwdabap.blogspot.in/2011/05/using-assistance-class-in-web-dynpro.html
2/19
11/5/12
learnwdabap.blogspot.in/2011/05/using-assistance-class-in-web-dynpro.html
3/19
11/5/12
learnwdabap.blogspot.in/2011/05/using-assistance-class-in-web-dynpro.html
4/19
11/5/12
4. You can test the functionality of the method by using the TEST option as shown below.
learnwdabap.blogspot.in/2011/05/using-assistance-class-in-web-dynpro.html
5/19
11/5/12
5. ON the properties tab you can find one field called super class there give the name CL_WD_COMPONENT_ASSISTANCE. save and activate the class.
learnwdabap.blogspot.in/2011/05/using-assistance-class-in-web-dynpro.html
6/19
11/5/12
6. Go to SE80 and open the WD component where you want to use the assistance class. give the name of the class in the assistance class field.
learnwdabap.blogspot.in/2011/05/using-assistance-class-in-web-dynpro.html
7/19
11/5/12
7. Automatically the attribute WD_ASSIST of type instance of class will be created in the component controller and view controller.
learnwdabap.blogspot.in/2011/05/using-assistance-class-in-web-dynpro.html
8/19
11/5/12
8. In the view we will use the assistance class method "GET_NAME". for that i have created
learnwdabap.blogspot.in/2011/05/using-assistance-class-in-web-dynpro.html
9/19
11/5/12
learnwdabap.blogspot.in/2011/05/using-assistance-class-in-web-dynpro.html
10/19
11/5/12
learnwdabap.blogspot.in/2011/05/using-assistance-class-in-web-dynpro.html
11/19
11/5/12
learnwdabap.blogspot.in/2011/05/using-assistance-class-in-web-dynpro.html
12/19
11/5/12
11. declare the text elements here and after that save it and then Goto->Translation
learnwdabap.blogspot.in/2011/05/using-assistance-class-in-web-dynpro.html
13/19
11/5/12
12. Select the from and to language and then give the translated texts for each of the text elements. Save it and activate the class again.
13. Go to SE80 and open the web dynpro component and the view where you want the text. I have used one text view which is bound to one context attribute of type string.
learnwdabap.blogspot.in/2011/05/using-assistance-class-in-web-dynpro.html
14/19
11/5/12
14. Then in wddoinit have used the WD_ASSIST->IF_WD_COMPONENT_ASSISTANCE~GET_TEXT( KEY = ' '). method of the interface for getting the data. it will give the text according to the language selected in the application.
learnwdabap.blogspot.in/2011/05/using-assistance-class-in-web-dynpro.html
15/19
11/5/12
15. Test the application and we can see the text got automatically translated according to the language selected.
learnwdabap.blogspot.in/2011/05/using-assistance-class-in-web-dynpro.html
16/19
11/5/12
learnwdabap.blogspot.in/2011/05/using-assistance-class-in-web-dynpro.html
17/19
11/5/12
2 comments:
KARTHICK R March 23, 2012 3:00 AM Refer below link also ..... http://theabap.blogspot.in/2012/02/message-handling-assistance-step-1-go.html Reply
AzzuSyd May 20, 2012 10:53 PM xlnt thanks gud work Reply
Home
Older Post
BLOG ARCHIVE
FOLLOWERS
2011 (4) June (2) May (2) Using Assistance Class in web dynpro abap Creating a Simple Web Dynpro App with ALV
learnwdabap.blogspot.in/2011/05/using-assistance-class-in-web-dynpro.html
18/19
11/5/12
Members (5)
TOTAL PAGEVIEWS
5,889
Simple template. Template images by gaffera. Powered by Blogger.
learnwdabap.blogspot.in/2011/05/using-assistance-class-in-web-dynpro.html
19/19