Skip to Content

Objective: Objective of this document is ‘How to use the webrfc which we have created in Part1 on personas screen’.

01_flavor.JPG

Create a copy of Basic view

01_FLAVORID.JPG

Give the flavor ID which we want to create.

03_easy access.JPG

Hide all the screen data which we don’t required, by selecting the’ Hide selected controls’.

04_color.JPG

To add the background image click on Open color palette.

05_bp.JPG

Click on ‘Add Background picture’.

06_image.JPG

Select the required image.

07_textbox.JPG

Now add a text box and label on the screen through which we will pass the sales order number.

08_label.JPG

The screen will look like as above.

09_html.JPG

Now add a HTML viewer on the screen, with the webrfc url which we want to call.

10_url.JPG

url : http(s)//<host>:port/sap/bc/webrfc?_function=Function Module Name&_parameter={1}.

Now as we want to pass the sales order number from the personas screen for that in url

for parameter ‘_VBELN’ the value should be ={1}, now click on ‘+’ icon.

11_textfield.JPG

Just click in the text field.

12_urlok.JPG

Press OK.

13_script.JPG

Now select a script button from the controls.

14_script.JPG

Enter a label and the click on ‘+’ icon.

15_refresh.JPG

Now select the ‘Refresh HtmlViewer’ and then click on arrow icon to point it to the HTML viewer which we have added, so every time when user will click on script button the html viewer will get refresh.

16_clickhtml.JPG

Click in the html viewer.

17_scriptok.JPG

Click on Enter icon then ‘OK’.

18_save.JPG

Drag and drop the script button at required position save and exit.

19_screen.JPG

We can see the screen as above, now enter the sales order no. and then click the button ‘Get Order Details’.

20_output.JPG

We can see the output as above.

Regards,

Zafar

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