‎2008 Feb 18 1:29 PM
I am learning WebDynpro for ABAP . I want to implement a Simple Sales Report using the same. Can anyone help me out? In the first view inputs are VBELN and ERDAT the output should contain VBELN, POSNR, GBSTA, MATNR, MAKTX, ERDAT.
‎2008 Feb 18 1:31 PM
Steps to be followed to create an application:
1. Go to SE80. Choose WebDynpro from the object list of the Repository Information System. And give a z_name for your program.
2. Create an application.
3. Create two views, the first one for inputing the data and the second one for displaying data.
4. Embedd the two views to the window.
5. Create context in the component controller. First node should be for input with attributes as VBELN and ERDAT. One more node with name as Display and attributes as VBELN, POSNR, GBSTA, MATNR, MAKTX, ERDAT.
6. Now do context mapping for the two views. Input for the first view and both the input and display nodes for the second screen.
7. Design the layout. Use Component COntainer in the first view to create the two input fields. And a button. Choose Matrix layout for better arrangement. Also design the layout for the second view with elements, table and button. Bind the context of the button to the display node.
8. Create the navigation links for the two views. and also create the action for the two buttons that you have created.
9. In the wdinit of the second view. Read context for the input fields, then for the selected fields do a select statement. ( Using a BAPI for the same would be advisable, to keep the program logic separate from the design.). Once this is done get a reference to the table, and then bind the the table.
10. Activate.
Also refer to the following link:
http://help.sap.com/saphelp_erp2005/helpdata/en/e6/2c4b29dc87c6409d6469ec390e8f3d/frameset.htm
‎2008 Feb 18 1:31 PM
Steps to be followed to create an application:
1. Go to SE80. Choose WebDynpro from the object list of the Repository Information System. And give a z_name for your program.
2. Create an application.
3. Create two views, the first one for inputing the data and the second one for displaying data.
4. Embedd the two views to the window.
5. Create context in the component controller. First node should be for input with attributes as VBELN and ERDAT. One more node with name as Display and attributes as VBELN, POSNR, GBSTA, MATNR, MAKTX, ERDAT.
6. Now do context mapping for the two views. Input for the first view and both the input and display nodes for the second screen.
7. Design the layout. Use Component COntainer in the first view to create the two input fields. And a button. Choose Matrix layout for better arrangement. Also design the layout for the second view with elements, table and button. Bind the context of the button to the display node.
8. Create the navigation links for the two views. and also create the action for the two buttons that you have created.
9. In the wdinit of the second view. Read context for the input fields, then for the selected fields do a select statement. ( Using a BAPI for the same would be advisable, to keep the program logic separate from the design.). Once this is done get a reference to the table, and then bind the the table.
10. Activate.
Also refer to the following link:
http://help.sap.com/saphelp_erp2005/helpdata/en/e6/2c4b29dc87c6409d6469ec390e8f3d/frameset.htm