cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Code for online request in HWC app?

midhun_vp
Active Contributor
0 Kudos

Hi,

What is the code to do online request in HWC app with an input parameter.

Once the user clicks on one of the list item the app has to do an online request with a parameter from that list item as the input to the BAPI.

how to do that through the custom.js class.

I want to customize the app.

Regards

MIdhun.V.P

Accepted Solutions (1)

Accepted Solutions (1)

tahir_z
Contributor
0 Kudos

Hi Midhun,

For same situtation i have created a custom action and called the action with custom code called as "menuItemCallBack_***". You can achieve with same way.

Regards

Tahir

midhun_vp
Active Contributor
0 Kudos

Tahir ,

Can you please elaborate. I haven't used custom action before.

Regards

Midhun V P

Former Member
0 Kudos

Hello Midhun,

You need to use the method doOnlineRequest() as explained in the below link.

http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc01218.0213/doc/html/vhu12...

1. Create a button/menu item (in the same screen) of type Online Request for the MBO you want to call.

2. Go to Workflow.js and locate the method menuItemCallback<your button/menuitem id>(). You will find the required code for performing the online request.

Let me know if you need any additional help.

Regards,

Guru Sivananda Reddy Atlu.

Answers (0)