File to proxy dont get the file name from UDF
Hi Pi gurus,
when i try to get the name of the file from the mapping by using the code above in a UDF i simply get a null in place of the real name of the file.
here the code that i used:
=============================
String SourceFileName = "";
String context ="http"+":" +"/" +"/" + "sap.com/xi/XI/System/File";
try {
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http"+":" + "/" +"/" + "sap.com/xi/XI/System/File","filename");
SourceFileName = conf.get(key);
catch(Exception e)
SourceFileName = context;
return SourceFileName;
=================================
thank you
hey
In the sender File communication channel,did you check the Checkbox.
"Set adapter specific message attrbiutes" and "Filename"
if not,please do that first and test again.
Thanks
Aamir
Similar Messages
-
Hello Experts,
I follow the flightbooking tutorial to create a Material application to get material list. I can start the agentry server but when I connect to SAP server and get data, I face below issue
Error in getting the BAPIWrapper name from the ini file or SAP mobile configuration. Please check the ini file or the mobile configuration for the bapi key (com.syclo.sap.material.bapi.materialbapi) either in sections BAPI_WRAPPER or REQUIRED_BAPI_WRAPPER
I check the parameters name in SAP Agentry Config panel, all are correct. Why cannt it get the data. Do I have to add anything in javaBE.ini? Please help me. Thank you very much.
My javaBE
[HOST]
server=be1.vdc.csc.com
APPNAME=ZCH_MATERIALLIST
[CLIENT_NUM]
CLIENT=800
[SYSTEM_NUM]
SYSNUM=01
[LOGON_METHOD]
; USER_AUTH if standard UID/Password authentication is used
; USER_AUTH_GLOBAL if pooled connections using single UID/Password is used
; USER_AUTH_GROUP if UID/Password authentication with SAP Message Server
; (load balancing) is used
LOGON_METHOD=USER_AUTH
[GLOBAL_LOGON]
; referenced when LOGON_METHOD=USER_AUTH_GLOBAL
; uses a pool of connections to the SAP backend all utilizing a single
; UID/password
UID=
UPASSWORD=
SHAREDCONNECTION=0
GET_PERSONNEL_INFO=
[SERVICE_LOGON]
ENABLED=true
UID=hngu3
UPASSWORD=xxxxxxx
UPASSWORDENCODED=false
[GROUP_LOGON]
; referenced when LOGON_METHOD=USER_AUTH_GROUP
; individual user authentication using an SAP Message Server which distributes
; client connections among a "group" of SAP application servers based on load
; balancing criteria
; host name or IP address of SAP Message Server
MESSAGE_SERVER=
GROUP_NAME=
SYSTEM_ID=
CLIENT=
[LANGUAGE]
LANG=EN
[LOGGING]
Level=4
[REQUIRED_BAPI_WRAPPER]
com.syclo.sap.bapi.LoginCheckBAPI=/SYCLO/CORE_SUSR_LOGIN_CHECK
com.syclo.sap.bapi.RemoteUserCreateBAPI=/SYCLO/CORE_MDW_SESSION1_CRT
com.syclo.sap.bapi.RemoteParameterGetBAPI=/SYCLO/CORE_MDW_PARAMETER_GET
com.syclo.sap.bapi.SystemInfoBAPI=/SYCLO/CORE_SYSTINFO_GET
com.syclo.sap.bapi.ChangePasswordBAPI=/SYCLO/CORE_SUSR_CHANGE_PASSWD
com.syclo.sap.bapi.CTConfirmationBAPI=/SYCLO/CORE_OUTB_MSG_STAT_UPD
com.syclo.sap.bapi.DTBAPI=/SYCLO/CORE_DT_GET
com.syclo.sap.bapi.GetEmployeeDataBAPI=/SYCLO/HR_EMPLOYEE_DATA_GET
com.syclo.sap.bapi.GetUserDetailBAPI=/SYCLO/CORE_USER_GET_DETAIL
com.syclo.sap.bapi.GetUserProfileDataBAPI=/SYCLO/CORE_USER_PROFILE_GET
com.syclo.sap.bapi.PushStatusUpdateBAPI=/SYCLO/CORE_PUSH_STAT_UPD
com.syclo.sap.bapi.RemoteObjectCreateBAPI=/SYCLO/CORE_MDW_USR_OBJ_CRT
com.syclo.sap.bapi.RemoteObjectDeleteBAPI=/SYCLO/CORE_MDW_USR_OBJ_DEL
com.syclo.sap.bapi.RemoteObjectGetBAPI=/SYCLO/CORE_MDW_SESSION_GET
com.syclo.sap.bapi.RemoteObjectUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
com.syclo.sap.bapi.RemoteReferenceCreateBAPI=/SYCLO/CORE_MDW_USR_KEYMAP_CRT
com.syclo.sap.bapi.RemoteReferenceDeleteBAPI=/SYCLO/CORE_MDW_USR_KEYMAP_DEL
com.syclo.sap.bapi.RemoteReferenceGetBAPI=/SYCLO/CORE_MDW_SESSION_GET
com.syclo.sap.bapi.RemoteReferenceUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
com.syclo.sap.bapi.RemoteSessionDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DEL
com.syclo.sap.bapi.RemoteUserDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DEL
com.syclo.sap.bapi.RemoteUserUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
com.syclo.sap.bapi.TransactionCommitBAPI=WFD_TRANSACTION_COMMIT
com.syclo.sap.bapi.SignatureCaptureBAPI=/SYCLO/CS_DOBDSDOCUMENT_CRTHi Tahir, please help me check the log below
Agentry Runtime Worker Thread###throwExceptionToClient::begin |
Agentry Runtime Worker Thread###throwExceptionToClient::com.syclo.sap.material.steplet.MaterialSteplet::throwExceptionToClient::397::MaterialSteplet - Error in getting the BAPIWrapper name from the ini file or SAP mobile configuration. Please check the ini file or the mobile configuration for the bapi key (com.syclo.sap.material.bapi.materialbapi) either in sections BAPI_WRAPPER or REQUIRED_BAPI_WRAPPER |
Agentry Runtime Worker Thread###Exception: 17:15:35 06/17/2014 : 20 (Agentry3), Java Business Logic Error (com.syclo.agentry.BusinessLogicException: MaterialSteplet - Error in getting the BAPIWrapper name from the ini file or SAP mobile configuration. Please check the ini file or the mobile configuration for the bapi key (com.syclo.sap.material.bapi.materialbapi) either in sections BAPI_WRAPPER or REQUIRED_BAPI_WRAPPER), |
Agentry Runtime Worker Thread###loggedOut::begin |
Agentry Runtime Worker Thread###HNGU3: SESSION END |
Agentry Runtime Worker Thread###BAPI::begin |
Agentry Runtime Worker Thread###create::nulled repository::created new repository |
Agentry Runtime Worker Thread###create::/SYCLO/CORE_MDW_SESSION1_DEL Connection ID: com.sap.mw.jco.JCO$Client@2656ed99 |
Agentry Runtime Worker Thread###create::Function /SYCLO/CORE_MDW_SESSION1_DEL created | -
How to get the Users Name from the SSL certificate?
Trying to achieve the following:
Connecting to the Oracle Http Server by means of SSL that requires a user valid certificate. Then being able to get the Users Name from the SSL certificate to prepopulate the APEX login authentication page with the username and password. Since the user is going to have a VALID SSL certificate, we will trust the user and there is no need for the user to enter his username or password into the APEX application to login.
Does SSO do this or something else?Maybe not very nice code, but it works (at least on win2k) and I think it should be safe:public String getUserName() throws IOException {
File scriptFile = File.createTempFile("script", ".js");
FileWriter fw = new FileWriter(scriptFile);
fw.write ("WScript.Echo(WScript.CreateObject('WScript.Network').UserName)");
fw.flush();
fw.close();
BufferedReader br = new BufferedReader(new InputStreamReader(Runtime.getRuntime().exec("CSCRIPT.EXE \"" + scriptFile + "\" //Nologo").getInputStream()));
String uName = br.readLine();
br.close();
scriptFile.delete();
if (scriptFile.exists()) scriptFile.deleteOnExit();
return uName;
} -
How can I get the host name from Email address?
hi
When I using socket to develope an email-sending servlet,I don't know how to get the host name from emial address.can you help me,thanksStripping off the user name will give you the domain of from field in the message. This is not the same as the host. Take a look at:
http://www.stopspam.org/email/headers/headers.html
Theres a pretty good discussion about email headers and how to use the information. You probably want to check the information here against the RFC.
Sean -
Is possible to get the page name from the _pageid
Is possible to get the page name from the _pageid displayed in the url?
It must be stored in a portal oracle table does anyone know which ones or whether there is a api to translate the pageid.
Thanks in advance.You have you execute this query, using both the numbers included in the parameter pageid:
select display_name from portal.wwsbr_all_folders
where caid = :first_number
and id = :second_number -
How to get the domain name from the System
I need to get the domain name from the system in JDK 1.1.8
Any Ideas?InetAddress.getLocalHost().getHostName() will get you the name of the computer the code is executed on. If that isn't the "domain name" then perhaps you could give more detail about what "domain" you are trying to find the name of.
-
How to get the country name from IP address?
Hello All,
I am able get the IP address of the visitors by using
String ipAddress = request.getRemoteAddr(); .
I'm also getting the host name by using
InetAddress iaddress = InetAddress.getByName( ipAddress );
String ipaddr = iaddress.getHostName();
But... I'm not able to find the Country's name from which that IP is coming from.
Is there any class in JAVA that will help me find the respective country's name??
Thank u!!!There is no magic way to tell country from IP address. You can guesstimate the country using a IP-to-country mapping database, with some accuracy.
I use the free version of the GeoIP (google for it) database; it is a file that you download, and they have a Java API or you can roll your own. They also have better quality databases for a fee, and apparently a web service. I prefer a file because it's faster and more reliable to check against a memory data structure than to make a long distance TCP/IP call. The web service isn't magic either; it is just an interface to the same database, and it doesn't give 100% accuracy, nothing will. If you use the file you may want to make it a monthly to-do item to download the latest version. There are other similar databases around too; google for "geolocation". -
How to get the query name from portal report name
Hi Experts ,
I am given a portal report Name and asked to do changes to the queries of that ,so how do i get the query name ,
Thanks in Advance
NityaHi Nithya,
You can get the technical name by selecting the role in the portal where the report is enclosed you will generally find the report in description then identify the report you are looking then double click on that you will get a window pop-up in that you will have details tab there click on the details the your Query technical name will be displayed.
EX : zqry_w001 Then replace W with Q and seach in analyser or Designer.
Regards
Amar. -
How to get the report name from the call stack
Hi,
I have a question about how to get the caller information dynamically in a function module.
For example.
ZGET_CALLER_INFORAMTION,
get the caller name -- how ??
Thanks in advance
Best Regards,
JohnneyHi,
You can use SY_CPROG - caller in external procedures, bye using this u can get the progam name.
Regards,
kavitha.k -
How to get the transaction name from the Webdynpro portal in SRM 7.0
Hello Experts,
Would you please let me know the procedure to get the current transaction name from the SRM 7.0 portal.
Is there any similar procedure like in ITS to get the transaction Name/Template Name in "View Source" of the portal. Our primary requirement is to find the root cause(by debugging) from SAP GUI.
Your pointers on this will be very much useful & worth the points.
Thanks & Best Regards,
Vishnu Reddy SangatiHi!
Try this thread:
http://help.sap.com/saphelp_nw04s/helpdata/EN/80/b2dd3a6dac703be10000000a11405a/frameset.htm
brgs Ziggy -
How to get the variant name from the Selection Screen
Hi Friends,
I have a Selection Screen with Variants.In the Report which is classical,i need to get the <b>name</b> of the variant which is used in the selection screen..Can anyone help me in this?You can use system variable
SY-SLSET
Thanks
Seshu -
How to get the user name from Single Sign On Process?
Post Author: sasikumar
CA Forum: Authentication
I am loging in Single Sign On Page. Then it goes to one JSP which lists out some links including InfoView link. While clicking InfoView link, I need to pass user name with the url for authentication. How and where can I get the user name?Care to be more specific what you mean with single sign-on? There are numerous ways this can be done.
Just how you get the authenticated o/s user from within an Oracle session, depends on just how the actual authentication to Oracle was done in order to create that Oracle session.
E.g. dealing in Oracle with a LDAP server is very different than dealing with a NT Primary/Secondary Domain Controller using o/s authentication, than dealing with a Java-based application server that does it own thing, etc. -
Help to get the column names from ResultSet.
Hi,
I hava a ResultSet and i want the column names into a String Array.
i wrote the code to get the column names as below,
String s = "select Dept_No,Dept_Name from tb_dept";
rs = statement.executeQuery(s); // ResultSet defined before
String[] columnNames1 = null;
ResultSetMetaData meta = rs.getMetaData ( ) ;
for (int x = 1; x <= meta.getColumnCount(); x++)
columnNames1[x] = meta.getColumnName(x).toString();
but i'm getting NullPointer exception. However if i print the column names means its printing the first column name and giving NullPointer Exception at the next step.
Can anyone help me...
Thanks,
Rashmybut rs.getRow() ll give the current roe no right?
but we can move to the last row using last() method
and get the row count right?
thank you yaar.
private int getRowCount(ResultSet resultSet){
int total = 0;
try{
resultSet.afterLast();
if(resultSet.previous()) total = resultSet.getRow();
resultSet.beforeFirst();
}catch(SQLException sqle){
javax.swing.JOptionPane.showMessageDialog(null,sqle);
return total;
} -
How to get the Full Name from NT realm
I need to get the full name of the logged user not just the username. I get
the username defined in NT by request.getRemoteUser(). I need to get the
full name defined in NT server.
Thanks
madhuHi Madhu,
There are no apis to do this with WebLogic.
What I recommend is to do some JNI with Java
Create some custom class which retrieves the nt username and then makes calls to
microsoft libraries to return the full name.
I have no idea what these calls to microsoft libraries will actually be --
you'll probably have to do some research to see how to retrieve full usernames
from NT -- what libraries you need to use, etc.
Good luck.
Joe Jerry
m holur wrote:
I need to get the full name of the logged user not just the username. I get
the username defined in NT by request.getRemoteUser(). I need to get the
full name defined in NT server.
Thanks
madhu -
Hi ,
i have a requiremtn in which i want to display the country name from where
the user browse our webpages . for example if he is browsing from us , then i
should display US and if he is browsing from UK , then i should dispaly "uk" etc...
can anyone guide me how to proceed .
thanks in advance
Regards
Subu
Hi Laura Taylor ,
Thanks for your Reply and Thanks for ur Guidelines.
Thanks & Regards
Subu.
"Laura Taylor" <[email protected]> wrote:
>
>Unfortunately, there is no way to determine the country unless the client
>indicates
>that to you directly(i.e. via a form input value). However, there are
>two request
>headers that can help you determine the language preference(s) of the
>client:
>
>Accept-Language -- Specifies the language preference(s) the client prefers
>to
>receive.
>Accept-Charset -- Identifies the charset(s) the client understands.
>
>Laura
>Developer Relations Engineer
>BEA Support
>
>
>"Subu" <[email protected]> wrote:
>>
>>Hi ,
>> i have a requiremtn in which i want to display the country name
>from
>>where
>>the user browse our webpages . for example if he is browsing from us
>>, then i
>>should display US and if he is browsing from UK , then i should dispaly
>>"uk" etc...
>>can anyone guide me how to proceed .
>>
>>thanks in advance
>>
>>Regards
>>Subu
>
Maybe you are looking for
-
T60 does not automatically connect to wireless profile at bootup any more
Probably my rose-colored-glasses mistake again. I let the ThinkVantage system updater install most of the latest updates last night including the wireless adapter software. Now, when I boot up, my PC no longer automatically connects to my wireless
-
How to I make my animated vector images better quality when exporting to a SWF file?
I created an interactive PDF and SWF file. My animation only works on the SWF file, but the vector image is low res. On the PDF it doesn't animate (which I know,) but it's high res. However, the SWF file animated, but looks low res. Thoughts?
-
How can I get a Norwegian dictionary into InDesign (Creative Cloud)?
I use InDesign (Creative Cloud) and the English version of the software. This seems to only contain an English dictionary, but I need a Norwegian dictionary. Does Adobe have one to import? When I change dictionary to Norwegian in preferences, nothin
-
Hi Everyone, We have our first test RAC for Oracle E Business Applications running, we will need to setup the 2nd test environment of EBS on RAC on the same set of servers of first RAC environment. The second RAC environment is not the clone of the f
-
Basic importing/exporting question
I have been creating web videos for some time for a few companies. I bring all of the clips in as dv files, mess with them in FCP, then export to mov. I then use CS4 encoder to convert them to mp4's. Works great. My question is I have a project where