on 07-25-2016 3:07 PM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sin
I assume you want to embed the mashup hence using the HTML mashup and not a URL mashup.
With HTML as well, you have 2 options -> HTML URL mashup or HTML Code mashup.
If you know the URL that you want to embed in your source screen, and this source screen has an Outport parameter for Account ID that you want to pass, you dont need an embedded component.
The example in my blog talks about the case where you dont have a paramter that you need in the standard outport of the screen, hence using the EC you build your own outport.
With HTML Url, you can simply enter the url and extract the parameters and then do the binding with the Account ID
With the HTML Code editor, the parameters would be listed based on the Port binding you have chosen.
You can find details for both in the standard Sap Cloud Application Studio - Mashups
Hope this helps
Regards
Vinita
Hi Vinita,
Thanks a lot for you response,
You answered to one of my question. many thanks.
Just about the HTML code, how to bind it; whenever I wanted to assign my parameter
DD_KUNNR-LOW=sap.byd.ui.mashup.context.inport.AccountID, I faced error. but one day after I ddi not see any error.
So for somone who want to use HTML mashup, with HTML Code, and has a dynamic field that needs to be change this should be the code:
<!DOCTYPE html>
<html>
<head>
<iframe src="https:/MYECCURL?~transaction=FBL5N saml2=disabled;X_AISEL=X;PA_VARI=\VALERIO;DD_BUKRS-LOW=EN10;~okcode=ONLI;DD_KUNNR-LOW=" sap.byd.ui.mashup.context.inport.AccountID+ ;"sap-client=100" width="100%" height="500px">
</iframe>
</head>
</html>
Many thanks,
Sin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.