Skip to Content
0
Jul 25, 2016 at 02:07 PM

Mashup with HTML- How to pass ID

550 Views

Dear All,

I want to craete a mashup in C4C in order to open a transaction in ECC. and I want to do it with HTML.

In my HTML code, how can I define the binding parameter?

My question is that: should I have to create an embedded component? or by Code I can handle it?

This is my code and my URL:

<!DOCTYPE html>

<html>

<head>

<input type="hidden" id="account" name="account" value="" >

<script language="JavaScript" type="text/javascript">

document.getElementById('account').value= sap.byd.ui.mashup.context.inport.AccountID;

</script>

<iframe src="https:/MYECCURL?~transaction=FBL5N saml2=disabled;X_AISEL=X;PA_VARI=\VALERIO;DD_BUKRS-LOW=EN10;~okcode=ONLI;DD_KUNNR-LOW=" + account;"sap-client=100;sap- language=IT" width="100%" height="500px">

</iframe>

</head>

</html>

My problem is how to pass the ;DD_KUNNR-LOW value? that is the AccountID of this Customer.

If I want to do it with URL, I could bind it to my AccountID. but HTML I can not do any binding

Can anyone halep me?

Regards

Sin

Attachments

Cattura.PNG (19.1 kB)