Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Not applicable

Call Function Modules in SAP

Hello,

Is there someone who has experiences with calling Function Modules in SAP remotely from QV?

My customer wants to make a certain selection in his QV application, and by pushing a button --> opening SAP and running a specific transaction to view the original entry in SAP.

I allready found the BADI for it, but how to call this function?

Many thanks

KR

Sven Van den Bussche

6 Replies
Partner
Partner

Call BADI in SAP

Are you running a web gui environment? If yes, you can start SAP session in the webgui by preparing specific url according to your scenario.

Another possibility is to create shortcut for your transaction (and some initial values) and then calling that shortcut using vbscript - somehow.

My last option (and for sure it will work) is create a .net webservice using sap connector, and consume it in QV to show the rest of the transaction data.

Not applicable

Call BADI in SAP

Hi Rakesh,

Thanks for your reply, indeed, as you answered, we run the Web Gui overhere.

If we make our selections in the Web Gui, finally we have an URL. If i copy this URL in a button, the SAP session opens in the transaction we want.

But....... Now here is the tricky part.

How can we make the HTLM coding flexible. How can I use a QV variable in the HTML string? On the internet there is a lot of info around SAP HTML Business, SAP ITS and so on, but how to encrypt this variable ....stays undiscovered (for now)

Not applicable

Call BADI in SAP

Hi Rakesh,

I found the solution.

We connect via the web browser to SAP.

The path to get to the wanted transaction is static, so between brackets ' '.

The variable is the order which the customer can select.

I embedded this URL link into a straight table, so the customer has his overview + he can connect to SAP to see the details, if wanted.

=' ' & DESCRIPTION & '<url>http://sapdomain.sapserver:port/sap/bc/gui/sap/its/webgui? sap-language=EN&sap-client=xxx&%7Etransaction=*xxxxxx%20P_GUID=' & OBJECT_ID

Partner
Partner

Call BADI in SAP

Perfect Sven. Glad that it could work for you.

Rakesh

suniljain
Honored Contributor

Call Function Modules in SAP

One Option is You can call function modelu by JCP Connector. you can get JCO Connector on SAP Market Place.

It is Open Source BY SAP To his customer.

Not applicable

Call BADI in SAP

Hello Sven,

I have a similar problem. In fact I need to call the function "Read_Text "

I dont understand what you put for the parameter "Etransaction".

Please, could you provide me your example?

thanks a lot in advance