Let’s Web Dynpro. Part ZZ

The subject we might want to talk about today is most certainly not Part III. Along these lines we have named it ZZ(Web Dynpro. Part ZZ). We would have taken this later in our Internet Dynpro series, however on one day, two of our companions required a similar prerequisite. Furthermore, we didn’t track down a lot of documentation in this web world. Hence we chose to post this page before its expected date..  

Necessity: Product a Succeed record with information in cell organized succeed sheet with colors, borders, channels in Web Dynpro. Part ZZ

This is an extremely normal necessity in Web Dynpro. Part ZZ Reports. Be that as it may, peculiarly, not much is there in any discussion.

There may be number of ways of accomplishing it, yet the least demanding way we sorted out is expounded here.

Stage 1. Make your Internet Dynpro part and application, extricate every one of your information and set up a last table(s) which you need to download in succeed.

Stage 2. For the simplicity of showing, we have made a straightforward WD application with only one button (LinkToAction) UI component in fundamental view. In the activity ‘DOWNLOAD’ we have added a little rationale to bring not many segments from MARA. Last table (i_mara) to be shown in succeed is prepared.

15
17
0
1

Stage 3. Make one Change program in SE80 or t-code XSLT_TOOL. Basic Change is required. At the point when you save the Change program, xml code would be produced.

Stage 4. Supplant the produced xml code with the code in the format xml connected beneath. We have made this layout for the simplicity of we engineers. Places are featured in the layout where you really want to add/change your organizations.

2

PS: This layout can be utilized for any succeed download/designing. It ought to be changed/upgraded for additional elements. Be that as it may, this format can be utilized as beginning stage.

Stage 5. Set up an example succeed page you need as result from Web Dynpro, with all designing, shading, borders and so on. Ensure you have all the arranging done.

Step 6. Save that succeed as .XML. Open that saved XML in scratch pad/wordpad. You will see XML codes. Examine through the code to get the STYLES. Various Styles will have different configuration for various lines, cells or sections.

5
6

Step 7. Return to Change program XML which is the duplicate of the XML layout appended. Presently duplicate every one of your STYLES from succeed XML to program XML.

11

Step 8. At the highest point of Change program, characterize the tables and factors/workareas which would be imported. TABLE is your interior table which would be sent from Web Dynpro. Try to add your TABLE and factors. What’s more, eliminate undesirable.

10

Step 9. Now, we need to differentiate between hard coding and dynamic value.
For instance: ‘Announced By’ is hard coding. This would be same each time succeed is downloaded. Yet, the worth of Revealed By would be different relying upon who executed it. For this situation Announced by esteem is in V_NAME variable.

Thus, make a note of hard coding and values and supplant the qualities with your variable name.

Stage 10. Comparably check the Header line of the table ( hard coding). For instance Material#, Made By, Material Sort, Material Gathering. This sounds hard coded, really. The styles for this might possibly be same to that of the group of table. We want to look at the succeed XML to calculate the style and duplicate a similar style to our Change Program.

8
13

Step 11. The TABLE body is to be populated in Circle. The qualities would be allocated from the field name (consistently Capitalized). The grouping where you call the fields, the construction of the Table is made in like that. See the figure for the fields called and the construction made.

14
9

Ensure, your TABLE in change program and your Internet Dynpro inward table are same.

PS: Circle must be shut with

If it’s not too much trouble, really look at the connection underneath for succeed XML code and the last Change program code subsequent to making change to the Layout. Check through it to perceive how we upgraded the format.

Raw Excel XML code                  Final Transformation XML code

Step 12. Call the Change program in your WD strategy. It would import the xml in STRING variable. Convert it to XSTRING. Call WDR_TASK=>CLIENT_WINDOW->CLIENT->ATTACH_FILE_TO_RESPONSE as displayed in figure (code in connect underneath).

16

Interface for the code pieces connected with Change call:  Sample code in Method

Step 13. Lets test our turn of events. Check, the variety, line, text design striking and so on are there.

Trust we had the option to direct you through. In the event that you actually have any questions/ideas/questions, if it’s not too much trouble, leave your remark or reach us, we would be glad to answer.

 

YOU MAY BE INTERESTED IN

ABAP Development Environment in the Cloud

Building Cloud-Native ABAP Applications: A Guide to Modern SAP Development

ABAP Development Environment in the Cloud

WhatsApp WhatsApp us