Bex doesnu00B4t get Link from RFC
Hello everyone,
i have a problem with a RFC Call and BEX. Bex should open a Link which It get back from a RFC.
Following activity constellation.
Bex open a Connection to a RFC. The RFC call a defined Application (Webdynpro Applikation) and look for the Url of the Application. Then Bex get this Url back from RFC. Bex should open this URL. The Problem is it doesn´t works and I don´t know why. BEx say´s no error (The Programm run´s, but Bex get not back the Url from the RFC).
>The RFC has the 'remote status'.
VBA Code
SAP Connection
If sapConnection.Logon(0, False) <> True Then
MsgBox "Keine Verbindung zum R/3!"
Else
Set theFunc = functionCtrl.Add("SS_RFC_URL_TEST")
objQueryTab = "200"
'theFunc.Exports("E_PAR") = objQueryTab
theFunc.Exports("I_PAR") = objQueryTab
sReturn = theFunc.call
If sReturn = True Then
objQueryTab = theFunc.Imports("E_PAR")
End If
sapConnection.logoff
End If
End Sub
Code of RFC
DATA:gv_url_string TYPE string,
gv_url_c(250) TYPE c.
CONSTANTS:gc_login_auth TYPE string VALUE '?sap-system-login-basic_auth=X',
gc_client TYPE string VALUE '&sap-client=',
gc_lang TYPE string VALUE '&sap-language='.
**Get the Url of Webdynpro Applicaion with HTTPS Protocol
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = 'ZESP_HELLOWORLD_VIEW'
in_protocol = 'HTTPS'
IMPORTING
out_absolute_url = gv_url_string.
**Build the URL
CONCATENATE gv_url_string
gc_login_auth
gc_client sy-mandt
gc_lang sy-langu
*INTO gv_url_c.
INTO E_PAR.
**Call the Browser
CALL FUNCTION 'Z_ESP_STSC_CBW'
EXPORTING
url = E_PAR
EXCEPTIONS
frontend_not_supported = 1
frontend_error = 2
prog_not_found = 3
no_batch = 4
unspecified_error = 5
OTHERS = 6.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFUNCTION.
--The Import and Exportparameters are defined. The connection to the RFC is correct.
What is wrong?
Thanks
Hey Guys,
I have solved the Problem.
The Problem was the String was to short. The Url was longer than the String field. With 255 Characters it works.
Greez
Edited by: Schwarzenberger Stefan on May 18, 2011 2:37 PM
Similar Messages
-
Hi,
I am doing RFC to File. I could generate the FILE successfully. But I am not getting Response from RFC. I am getting empty payload. I am doing with out BPM. I did succesfully File-RFC-File. but here RFC is the sender. I have some doubts in defining Interface mapping and Message Mapping. Is this a Syscronous scenario by default ?
If I want to get the resonse of RFC to a file. How many Receivers and Senders do i need to create?
Regards,
Varun
Edited by: Varun on Sep 9, 2008 1:00 PMhi,
Map Rfc.response to the File; hence rfc sender adapter and file receiver adapter..one sender n 1 receiver.Remember:
1. In the report that makes the call to XI , make sure that you use call RFC in a background task.
2. Make sure you use Commit Work at the end of the report.
Follow:
Send RFC to SAP XI Asynchronous
Also pls visit
Re: RFC to FILE
for the same scenario.
Thanks,
Durga
Edited by: NagaDurga Nannapaneni on Sep 9, 2008 10:55 AM -
Help with getting links from HTML page
Hello all. I found the sun tutorial for getting HREF values from a tags in an HTML document at <http://java.sun.com/developer/TechTips/1999/tt0923.html>. My question now is how would a person add the ability to get the text of the link to this code?
For example:
Provided the HTML code:<a href="link.html">example</a>Returned is: href=link.html text=exampleI think the TechTip you've linked too is quite old (1999). I would write a simple SAXParser that uses TagSoup (http://www.ccil.org/~cowan/XML/tagsoup/) as its input source. In your handler, simply set a flag and reset a StringBuffer to collect the contents of any <a>...</a> element. Simplified:
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
if ("a".equals(localName)) {
currentHref = attributes.getValue("href");
if (currentHref != null && currentHref.length() > 0) {
inLink = true;
//reset the string buffer
buffer.setLength(0);
public void characters(char[] ch, int start, int length) throws SAXException {
if (inLink) buf.append(ch, start, length);
public void endElement(String uri, String localName, String qName) throws SAXException {
if ("a".equals(localName) && inLink) {
inLink = false;
//add link to the stack
links.add(new Link(currentHref, buffer.toString()));
}Completely untested, of course... .Good luck... -
AppleScript - Get links from one layer
I need to make a list of linked files from one InDesign layer only but can't figure out how.
This is my base that works just fine but gives me a list of all linked files in my document.
set layFilesLinksList to every link of document 1
I have tried this
set linksList to every link of document 1 whose active layer is "Images"
set linksList to every link of layer "Images" of document 1
Any other suggestions?Thanks!
We are a bit on the way, if i run your script as stand alone i get one of many images in the layer "Images"
But when implementing this code in my bigger script i get nothing.
This works as before, i get every link in my document.
on createMiniature()
tell application "Adobe InDesign CS5"
set user interaction level of script preferences to never interact
activate
set myLinks to every link of document 1
-- Images from one layer only workaround --
tell active document
if exists layer "Images" then set layerImages to layer "Images"
set grphicBoxs to all graphics of layerImages
set myLinks to {}
repeat with i in grphicBoxs
set iLink to item link of i
set pathLink to file path of iLink
set end of myLinks to pathLink
end repeat
return myLinks
end tell
-- End Images from one layer only workaround --
repeat with thisFile in myLinks
set ruler origin of view preferences of document 1 to spread origin
set zero point of document 1 to {0, 0}
set zeroX to 0
set zeroY to ((page height of document preferences of document 1) + 5)
set pageHeight to ((page height of document preferences of document 1))
set pageWidth to ((page width of document preferences of document 1))
set maxHeight to 13
set theScale to maxHeight / pageHeight
set imageXPos to ((item 2 of geometric bounds of parent of parent of thisFile))
set imageYPos to ((item 1 of geometric bounds of parent of parent of thisFile))
set imageXPos2 to ((item 4 of geometric bounds of parent of parent of thisFile))
set imageYPos2 to ((item 3 of geometric bounds of parent of parent of thisFile))
set imageWidth to imageXPos2 - imageXPos
set imageHeight to imageYPos2 - imageYPos
set theName to name of thisFile
set filePath to ((file path of thisFile))
set theImgPath to quoted form of POSIX path of filePath
set imageStatus to ""
set imageStatus to do shell script ("/usr/bin/exiftool -xmp:Instructions -b " & theImgPath)
if imageStatus = "" then
set imageStatus to "Paper"
end if
set newBox to (make new rectangle of document 1 with properties {geometric bounds:{zeroY + imageYPos * theScale, zeroX + imageXPos * theScale, (zeroY + (imageYPos + imageHeight) * theScale), zeroX + (imageXPos + imageWidth) * theScale}, stroke weight:0.2, stroke color:"Black", fill color:imageStatus, active layer:StatusLayer})
set opacity of blending settings of fill transparency settings of newBox to 60
end repeat
set the properties of layer StatusLayer of document 1 to {visible:false}
end tell
end createMiniature
Changing the script to this gives me a blank result with no images
on createMiniature()
tell application "Adobe InDesign CS5"
set user interaction level of script preferences to never interact
--activate
--set myLinks to every link of document 1
-- Images from one layer only workaround --
tell active document
if exists layer "Images" then set layerImages to layer "Images"
set grphicBoxs to all graphics of layerImages
set myLinks to {}
repeat with i in grphicBoxs
set iLink to item link of i
set pathLink to file path of iLink
set end of myLinks to pathLink
end repeat
return myLinks
end tell
-- End Images from one layer only workaround --
repeat with thisFile in myLinks
set ruler origin of view preferences of document 1 to spread origin
set zero point of document 1 to {0, 0}
set zeroX to 0
set zeroY to ((page height of document preferences of document 1) + 5)
set pageHeight to ((page height of document preferences of document 1))
set pageWidth to ((page width of document preferences of document 1))
set maxHeight to 13
set theScale to maxHeight / pageHeight
set imageXPos to ((item 2 of geometric bounds of parent of parent of thisFile))
set imageYPos to ((item 1 of geometric bounds of parent of parent of thisFile))
set imageXPos2 to ((item 4 of geometric bounds of parent of parent of thisFile))
set imageYPos2 to ((item 3 of geometric bounds of parent of parent of thisFile))
set imageWidth to imageXPos2 - imageXPos
set imageHeight to imageYPos2 - imageYPos
set theName to name of thisFile
set filePath to ((file path of thisFile))
set theImgPath to quoted form of POSIX path of filePath
set imageStatus to ""
set imageStatus to do shell script ("/usr/bin/exiftool -xmp:Instructions -b " & theImgPath)
if imageStatus = "" then
set imageStatus to "Paper"
end if
set newBox to (make new rectangle of document 1 with properties {geometric bounds:{zeroY + imageYPos * theScale, zeroX + imageXPos * theScale, (zeroY + (imageYPos + imageHeight) * theScale), zeroX + (imageXPos + imageWidth) * theScale}, stroke weight:0.2, stroke color:"Black", fill color:imageStatus, active layer:StatusLayer})
set opacity of blending settings of fill transparency settings of newBox to 60
end repeat
set the properties of layer StatusLayer of document 1 to {visible:false}
end tell
end createMiniature -
Getting Values from RFC into inputfield
hi all,
I want an inputfield with the list of values from an RFC
like there should be an inputfield in which i can enter my onw value or select a value from combobox like list
that means a combo box with inputfield is required
please help
thanks
GauravHi Gaurav,
As far as I know there is no UI element provided that fits your requirement.
Regards,
Murtuza -
Get message from RFC of SAP by XI, but BC ok
I have RFC in SAP and it was called by BC before.
i change it with XI now with same user ID and passwd, but i got
message "The transaction was terminated by the user".
i do test by RFC in SAP directly it's ok, How to check it? Thanks!Hi,
You need to do proper ALE configurations for this scenario:
Please check your configuration like:
SM59 - RFC
WE21 - tRFC Port
WE20 - Partner Profiles
and also Logical System names of the sender and receiver system. -
How to get links from other applications to open a new Firefox window
I have non-Web browser applications that want to open browser windows. I have Firefox as my default Web browser. When these other applications pass a URL to Windows, Windows passes the URL to Firefox. Unless there are no Firefox windows running, Firefox then opens the URL in a new tab of the most recently used Firefox window. I would prefer that Firefox open a completely new window. Where can I find the setting for this behavior?
Thank you,
DanStart Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.com/kb/Safe+Mode
See also:
*https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
*http://kb.mozillazine.org/Preferences_not_saved -
Why won't most links from Facebook open?
I'm not sure if it's my internet or a problem with my iPad, but I can't get links from Facebook to open. Also was trying to shop on iPad with my Amazon app and it was taking forever for the product lists to come up. Has anyone else had this problem? And if so, how can it be resolved? Maybe a setting I unknowingly turned on that prevents viewing some sights?
Hello New toipad,
The article linked below provides some useful information and troubleshooting steps that can help resolve issues with your Wi-Fi connection.
iOS: Troubleshooting Wi-Fi networks and connections
http://support.apple.com/kb/TS1398
Cheers,
Allen -
Getting links and its names from a html file
Hi everyone
My problem about the a getting links with name from a html file. For example
İn a web page in this site ?SUN? when use click SUN the browser open http://java.sun.com
İ want both of them, so the links and name. I can succeeded the get link but i don t know how to get the link name.
For example :
<B>setRightComponent(Component)</B>
İn this code segment i want to get B tag. But how i don t know. To get A tag i used this code
List result = new ArrayList();
try {
// Create a reader on the HTML content
URL url = new URI(uriStr).toURL();
URLConnection conn = url.openConnection();
Reader rd = new InputStreamReader(conn.getInputStream());
// Parse the HTML
EditorKit kit = new HTMLEditorKit();
HTMLDocument doc = (HTMLDocument)kit.createDefaultDocument();
kit.read(rd, doc, 0);
// Find all the A elements in the HTML document
HTMLDocument.Iterator it = doc.getIterator(HTML.Tag.A);
while (it.isValid()) {
SimpleAttributeSet s = (SimpleAttributeSet)it.getAttributes();
String link = (String)s.getAttribute(HTML.Attribute.HREF);
if (link != null) {
result.add(link);
it.next();
İ can use B tag but i don t know hot to get its value because it has no prefix such as HREF....
i am sorry if i use a bad explanation style or incorrect word.import java.io.*;
import java.net.*;
import javax.swing.text.*;
import javax.swing.text.html.*;
class GetLinks
public static void main(String[] args)
throws Exception
// Create a reader on the HTML content
Reader reader = getReader( args[0] );
// Parse the HTML
EditorKit kit = new HTMLEditorKit();
HTMLDocument doc = (HTMLDocument)kit.createDefaultDocument();
doc.putProperty("IgnoreCharsetDirective", Boolean.TRUE);
kit.read(reader, doc, 0);
// Find all the A elements in the HTML document
HTMLDocument.Iterator it = doc.getIterator(HTML.Tag.A);
while (it.isValid())
SimpleAttributeSet s = (SimpleAttributeSet)it.getAttributes();
String href = (String)s.getAttribute(HTML.Attribute.HREF);
int start = it.getStartOffset();
int end = it.getEndOffset();
String text = doc.getText(start, end - start);
System.out.println( href + " : " + text );
it.next();
// If 'uri' begins with "http:" treat as a URL,
// otherwise, treat as a local file.
static Reader getReader(String uri)
throws IOException
// Retrieve from Internet.
if (uri.startsWith("http:"))
URLConnection conn = new URL(uri).openConnection();
return new InputStreamReader(conn.getInputStream());
// Retrieve from file.
else
return new FileReader(uri);
} -
How can i get all links from html file ?
I tried some code:
List<string> metas = new List<string>();
string text = "";
string mys = "";
public List<string> LockedThreads(string filename)
HtmlWeb web = new HtmlWeb();
HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
doc.Load(filename, Encoding.UTF8);
var metaTags = doc.DocumentNode.SelectNodes("//meta");
if (metaTags != null)
foreach (var tag in metaTags)
if (tag.Attributes["name"] != null && tag.Attributes["content"] != null)
text = tag.Attributes["name"].Value;
mys = tag.Attributes["content"].Value;
var linksOnPage = from lnks in doc.DocumentNode.Descendants()
where lnks.Name == "a" &&
lnks.Attributes["href"] != null &&
lnks.InnerText.Trim().Length > 0
select new
Url = lnks.Attributes["href"].Value,
Text = lnks.InnerText
foreach (HtmlNode node in doc.DocumentNode
.SelectNodes("//a/@href | //img/@src"))
metas.Add(node.Name);
In the var linksOnPage i'm getting all the links but some of them not only links for example the first item i see:
[0] = { Url = "/", Text = " " }
Then the second item:
[1] = { Url = "http://rotter.net/cgi-bin/forum/dcboard.cgi?az=login", Text = "התחבר" }
Next i want to add another loop or variable that will contain only the links after im src for example:
<img
src="http://mysite.com"
border="0"></a></TD><TD
ALIGN="right"
VALIGN="TOP"
WIDTH="55%">
So to get only http://mysite.com
So in the end i will have two Lists:
First List will contain all links from the html file.
Second List only links that are in img srcOk i'm using regex now and i can get the links i need:
List<string> metas = new List<string>();
List<string> metas1 = new List<string>();
string text = "";
string mys = "";
public List<string> LockedThreads(string filename)
string[] fall = File.ReadAllLines(filename);
foreach (string hh in fall)
if (hh.Contains("http://rotter.net") && hh.Contains("locked")||
hh.Contains("locked_icon_general") ||
hh.Contains("locked_icon_anchor") ||
hh.Contains("icon_anchor") ||
hh.Contains("locked_icon_fire") ||
hh.Contains("locked_icon_sport")||
hh.Contains("locked_icon_camera")||
hh.Contains("locked_icon_movie"))
Regex linkParser = new Regex(@"\b(?:https?://|www\.)\S+\b", RegexOptions.Compiled | RegexOptions.IgnoreCase);
foreach (Match m in linkParser.Matches(hh))
metas.Add(m.Value);
So now in the metas i have in this case two links.
For example the first link is from this block in the file:
The link i got is : http://rotter.net/forum/Images/hot_icon_anchor.gif
And this is the right link from this block but now how do i get the text from this block and how i connect how do i know that this text belong to the link ? I need to add this text from this block to a new List. Before all that i counted on my own lines
and got the text but that's a bad idea.
I need somehow to get: שרשור תשדירי בחירות מרוכז:
To get the text between the ToolTip',' and the second ',' but not from all the html file only in places of this two links i extracted.
<TD ALIGN="RIGHT"
VALIGN="TOP">
<body onmousemove="overhere()">
<a onmouseover="EnterContent('ToolTip','שרשור תשדירי בחירות מרוכז:','<u><span style=color:#000099;>כתב: menahem בתאריך: 03.03.15
שעה: 08:51</span></u><br>1.<br>http://youtu.be/utUaqyiRkJ8<br><br><br>...'); Activate();"
onmouseout="deActivate()"
href="javascript:void(0)">
<img src="http://rotter.net/forum/Images/hot_icon_anchor.gif"
border="0"></a></TD><TD
ALIGN="right"
VALIGN="TOP"
WIDTH="55%">
<FONT CLASS='text15bn'><FONT
FACE="Arial">
<a href="http://rotter.net/cgi-bin/forum/dcboard.cgi?az=read_count&om=187966&forum=scoops1"><b>
<font color="red">שרשור תשדירי בחירות מרוכז:</b>
</a></font></TD> -
How to get the links from Master table
Hi,
I need to show url on the jsp page which should be taken from Backend "Master Table".
say an example like some value CRM_IMAGE = ZWEB CRMIMAGE.I need to show CRM_IMAGE as Hyperlink on the product detail.jsp.
Can anyone help me for this.
Regards,
Deepika
Edited by: Ecom Dev on Dec 21, 2009 11:05 AMHi Ecom,
To retrieve value on product detail page you have to develop your custom code in which you have to create BO, BOM, BEI and BEO to access Your master table data from ISA page.
You also need to create Custom RFC in which you pass porduct ID and retrieve related value from Master Table.
You can find example in ISA tutorial how to get value from Back-end via JCO.
eCommerce Developer
Edited by: Ecommerce Developer on Dec 21, 2009 11:44 AM -
Help needed with variable - trying to get data from Oracle using linked svr
Sorry if I posted this in the wrong forum - I just didn't know where to post it.
I'm trying to write a simple stored procedure to get data from an oracle database via a linked server in SQL Enterprise manager. I have no idea how to pass a variable to oracle.
Here's how I would get the variable in SQL:
declare @maxkey INTEGER
select @maxkey= MAX(keyfield) from [server].Data_Warehouse.dbo.mytable
select * from [server].Data_Warehouse.dbo.mydetailtable where keyfield=@maxkey
the select statement I need to do in oracle would use that variable like this:
select * from OPENQUERY(OracleLinkedServer,'select
* from ORACLEDB.TABLE where keyfield > @maxkey')
and I get this message: OLE DB provider "OraOLEDB.Oracle" for linked server "OracleLinkedServer" returned message "ORA-00936: missing expression".
I realize that I can't pass the @maxkey variable to oracle - so how do I accomplish this?Please refer the example in this link which deals with Oracle date format.
You can finnd a command DECODE which is used for date formats. If you have a look at whole theory then you will get an idea.
Link:[Bulk insert SQL command to transfer data from SAP to Oracle|http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bulk-insert-sql-command-to-transfer-data-from-sap-to-oracle-cl_sql_connection-3780804] -
Links from within Firefox windows open new tab, but links within Mail, MSWord, and other apps attempt to open another copy of Firefox, and I get the "Close Firefox: A copy of Firefox is already open. Only one copy of Firefox can be open at a time." This just started happening less than a week ago. I don't know when FF updated to version 22.0.
My problem seems to be fixed--I cannot reproduce it now, though it had been consistently happening for the past 3-4 days. The suggestions above do not seem to apply in any case: I do not want to open another instance of Firefox but simply to connect with the one that is already running; and I do not seem to have a .parentlock file.
If the problem returns, I'll be back. Meanwhile, thanks for the suggestions. -
How can i get data from another database SQL Server use database link from
I have a database link from Oracle connect to SQL Server database with user cdit connect default database NorthWind.How can I get data from another database(this database in this SQL Server use this database link)?
hi,
u should see following documentation:
Oracle9i Heterogeneous Connectivity Administrator's Guide
Release 1 (9.0.1)
Part Number A88789_01
in it u just go to chapter no. 4 (using the gateway),,u'll find ur answer there.
regards
umar -
Make the link from the single cell of Bex Report and the image of bill
Hi guys,
my client scan every bill and archive the image by File.net technology.
In our Bex Report we have the Bill number and we want to make the link from the single cell and the image of bill.
The possible paths to solve the problem are:
Replicate the image in BW and crate a link from the single cell and the image of document.
Create an URL link from the single cell and the image of document archived on File.net server.
In witch way we can to implement the two paths?
Thank you.
AlessandroHi Alessandro,
Have you seen "How To Enhance your Web Query with the Table Interface"?
You can find it in media library:
https://websmp105.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000194044
Best regards,
Eugene
Maybe you are looking for
-
FROM DATABASE INDX: What is this and how this it work?
Hi, I have the following statements in one of the programs that I am modifying: INDX_KEY-FLAG = 'SP'. INDX_KEY-USERA = SY-UNAME. IMPORT DATA_TABLE FROM DATABASE INDX(SD) ID INDX_KEY. What does the last statement mean? How is it able to fi
-
Does anyone know why the fan on my imac wont turn off?
does anyone know why the fan on my imac wont turn off?
-
Hi Experts, I am having one issue in extending standard idoc type. I am extending basic type HRMD_A07. Now issue is this idoc type was already being extended with segment Z1P0009. I tried to add my new field IBAN but as version non compatibility i ha
-
Nokia E5 Calendar Sync Settings Help
Hello, I'd like to sync my calendar on Ovi.com with teh one on my Nokia E5. I followed all these instructions here: 1. On your computer, go to www.ovi.com 2. Sign in your account 3. Click on the calendar tab 4. Click on "manage device" 5. Click on re
-
Hi Experts While i am installing the standerd cube in business content i.e 0RT_C36in BI7 what is the data flow from DS to CUBE .in my case i have a problem in between infosource and datasouce in between transformation i created manually i that time