Finding BDC name in a program
Hi all,
How to find the BDC name in a program? I have a program and couldnt find which BDC it is using. Can anyone tell me the way to find it. Thanks.
Hi,
Once you plan for a BDC with a given transaction, first you will do the recording using SHDB and you can generate an ABAP program code using that recording and modify it accordingly or you can write your own code based on the screen numbers, technical field names, and okcodes for the data transfer to take place. So you cannot look in for a SHDB recording name in your program name as it is not required anywhere in the program. If you want you can search for the user who created the program and recording and the relevant transaction code from the SHDB list.
Reward points if useful.
Best Wishes,
Sekhar
Similar Messages
-
How to find the name of the program of session in sm35 ?
I have some session in sm35.
How to find the name of the program of session in sm35 ?
Could you please help me ?In the list of sessions displayed -> double click the session that an error (i.e. Transaction Ended with errors).
Then it will take you to another screen, here you choose the Screens tab.
Check
Re: BDC session's program name
Re: BDC session's program name
Regards,
Santosh
Message was edited by:
Santosh Kumar Patha -
How to find Form name with SAPF140P Program
Hi Gurus
Please help me in finding the corresponding letter smartform/sapscript for program SAPF140P and the t code is f.64
regards
PirozPiroz
u can check with this form name i.e F140_DOCU_EXC_02
It will work.
Don't forget to reward if useful.... -
How to find Screen element names in a program programatically
Hi Experts,
I have to find out all the table control names in a program. I am able to find all the screen numbers for a program from the table D020S. Is there any functionality to find out the table controls in a program or atleast screen elements in a program?
Thanks and regards,
venkat.Hello
You can get the information by calling the below two FM's. First call the FM IAC_GET_DYNPRO_INFO by passing the program name and screen number. This will return an internal table with all the screen elements of structure D021S.
Next loop through this internal table and pass the structure to FM RS_SCRP_GET_FIELD_TYPE_TEXT to know what kind of screen element it is.
Also, if the FILL parameter of the first FM is 'T', then it is a table control.
Regards
Ranganath -
How to find the name of the main program in the SM35
Hi all,
I have problems to find which program a batch input belongs to: may I explain myself...I can see in transaction SM35 several session names but no trace of the name of the program which is being used...I tried to find it with table APQI but no results so far. Does anyone know how can I get this information?
Thanks a lot!Check table TBTCP
Regards,
Rich Heilman -
How to find the Name of Infoset either from Query Name or Program Name
Hi,
I ahve got the program name from the Transaction code of the Query. I also found out the name of the Query but I could not find out the name of the "Infoset". Please help me to find out the name of the Infoset either from the Query Name or from the Program name.
Thanks,
JansHello Christian,
Thank you for your reply. Actually. We have got transaction name of report and from that we found out the name of the Program and from that Program we have utilised the FM to find out the Query name. But we are unable to find the name of Infiset as we have to Download this Infoset from DEV and it is to be uploaded into QUALITY.
But we are not sure about the Infoset.
I could not understand your sentence "When Open it".
Regards,
Jans -
Table to find spool no and corresponding program name
Is there any Table to find spool no and corresponding program name. I know one table that will give only for background jobs TBTCP table. I want fore ground also
table: TSP01
Way to fetch spool number is:
CONCATENATE sy-repid+0(9)
sy-uname+0(3)
INTO lc_rq2name.
SELECT rqident FROM tsp01
INTO TABLE li_spool
WHERE rq2name EQ lc_rq2name
AND rqowner EQ sy-uname.
*** Sort spool table so that latest spool entry is at top
SORT li_spool STABLE BY rqcretime rqident DESCENDING.
*** Read the first line of the table to get the spool number
READ TABLE li_spool INTO lwa_spool INDEX 1.
lv_spoolid = lwa_spool-rqident.
ags. -
How to find out tcode from a program that can run the same report?
Hello all,
I have a program name and I can see it is successfully proccessed. Now if I want to get the report via a tcode, how can I get it?
How can I find the tcode from the program itself?
Regards,Hi,
1) Go into SE80, > Enter the name of the program, and press 'Enter'.
2) You will see a folder called 'Transactions' appearing in the object list on the bottom left.
3) Open the folder, and you'll find T.code of that program.
Thanks,
Nirav -
Crystal Reports XI and Sun One 6.1 web server SP 5 Error finding JNDI name
I am trying to create a Crystal Reports XI report in a JSP using Sun One 6.1 Web server sp 5.
At this point I am getting the error �Error finding JNDI name� on Sun One
The application will run on Netbeans/Tomcat
I have done the following:
I edited CRConfig.xml
<?xml version="1.0" encoding="utf-8"?>
<CrystalReportEngine-configuration>
�
<DataDriverCommon>
<JavaDir>C:\Program Files\Java\j2re1.4.2_10\bin</JavaDir>
<Classpath>C:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14.jar;�</Classpath>
�
<JDBC>
<CacheRowSetSize>100</CacheRowSetSize>
<JDBCURL>jdbc:oracle:thin:@10.10.10.10:1521:dev</JDBCURL>
<JDBCClassName>oracle.jdbc.driver.OracleDriver</JDBCClassName>
<JDBCUserName>lab_ro</JDBCUserName>
<JNDIURL></JNDIURL>
�
</JDBC>
I created a report using JDBC (JNDI) connection and have the JNDI Connection set to the name of DATA.
The report works just fine in Crystal Reports.
Then in Netbeans I created an application and it runs in the Tomcat part of Netbeans
In context.xml I have:
<Context path="/BOEnterpriseTest3">
<Resource name="jdbc/dev" auth="Container" type="javax.sql.DataSource"
driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@10.10.10.10:1521:dev"
username="theuserid" password="thepassword" maxActive="20" maxIdle="10" maxWait="-1"/>
</Context>
In web.xml I have
<web-app>
<context-param>
<param-name>crystal_image_uri</param-name>
<param-value>crystalreportviewers11</param-value>
</context-param>
�
<taglib>
<taglib-uri>/crystal-tags-reportviewer.tld</taglib-uri>
<taglib-location>/WEB-INF/crystal-tags-reportviewer.tld</taglib-location>
</taglib>
<resource-ref>
<description>jdbc:oracle:thin:@10.10.10.10:1521:dev</description>
<res-ref-name>jdbc/dev10g</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Application</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
<resource-ref>
<description>jdbc:oracle:thin:@10.10.10.10:1521:dev</description>
<res-ref-name>Data</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Application</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
</web-app>
in web-inf\sun-web.xml I have
<sun-web-app>
<resource-ref>
<res-ref-name>jdbc/dev10g</res-ref-name>
<jndi-name>Data</jndi-name>
</resource-ref>
</sun-web-app>
I have copied all of Common Files\Business Objects\3.0\java\lib and Common Files\Business Objects\3.0\java\lib\external to the lib folder
I have copied crystalreportviewers11 to the root of my web application
I have tried to load the JNDI information and display the report
<%@page pageEncoding="UTF-8"
import="com.crystaldecisions.reports.reportengineinterface.*,
com.crystaldecisions.report.web.viewer.*,
javax.naming.*,
javax.sql.*,
java.sql.*"%>
<%
InitialContext initContext = new InitialContext();
DataSource source = (DataSource) initContext.lookup("java:comp/env/jdbc/dev10g");
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
try{
// Look up our data source
DataSource ds = (DataSource)initCtx.lookup("Data");
out.println("found ds under jdbc/Data");
catch ( NamingException e ){
// Look up our data source
DataSource ds = (DataSource) initContext.lookup("java:comp/env/jdbc/dev10g");
initCtx.bind("Data", ds);
out.println("found ds under java:com/env:jdbc/Data - bound into root initial context for Crystal to find");
%>
<%
//Use the relative path to the report; the physical or full qualified URL cannot be used.
String reportName = "useridincluded.rpt";
//Database username and password
String userName = "theuserid";
String password = "thepassword";
//check to see if the Report Source Session Variable already exist
Object reportSource = session.getAttribute("Report1");
// Create a new ConnectionInfos and ConnectionInfo object
com.crystaldecisions.sdk.occa.report.data.ConnectionInfos connectionInfos = new com.crystaldecisions.sdk.occa.report.data.ConnectionInfos();
com.crystaldecisions.sdk.occa.report.data.ConnectionInfo connectionInfo = new com.crystaldecisions.sdk.occa.report.data.ConnectionInfo();
//Set username and password for the report's database
connectionInfo.setUserName(userName);
connectionInfo.setPassword(password);
//Add object to collection
connectionInfos.add(connectionInfo);
//---------- Create a ReportClientDocument -------------
com.crystaldecisions.reports.sdk.ReportClientDocument reportClientDocument = new com.crystaldecisions.reports.sdk.ReportClientDocument();
//---------- Set the path to the location of the report soruce -------------
//Open report.
reportClientDocument.open(reportName, 0);
//Get the report source
reportSource = reportClientDocument.getReportSource();
//---------- Create the viewer and render the report -------------
//create the CrystalReportViewer object
com.crystaldecisions.report.web.viewer.CrystalReportViewer crystalReportViewer = new com.crystaldecisions.report.web.viewer.CrystalReportViewer();
//set the reportsource property of the viewer
crystalReportViewer.setReportSource(reportSource);
//set the DB logon into the viewer
crystalReportViewer.setDatabaseLogonInfos(connectionInfos);
//set viewer attributes
crystalReportViewer.setOwnPage(true);
crystalReportViewer.setOwnForm(true);
crystalReportViewer.refresh();
//set the CrystalReportViewer print mode
//crystalReportViewer.setPrintMode(com.crystaldecisions.report.web.viewer.CrPrintMode.ACTIVEX);
crystalReportViewer.setPrintMode(com.crystaldecisions.report.web.viewer.CrPrintMode.PDF);
//process the report
crystalReportViewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
%>
On the Sun One Web server
On the Java Tab
JDBC Connection Pools
Pool Name = dev10g
Class name = oracle.jdbc.pool.OracleDataSource
User id = theuserid
url = 10.10.10.10
password=thepassword
JDBC Resources
JNDI Name=dev10g
Pool = dev10g
I get the error finding JNDI name � how do I tell Sun One where the JNDI is to make Crystal Reports work?I tried the following to test the JNDI
I am trying to do JNDI in Sun One Web server 6.1 sp 5 but I seem to be missing an important part. I get two different errors based on the JSP code, �Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance� or �Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance�.
Context.xml:
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/BOTest">
<Resource name="jdbc/dev10g" auth="Container" type="javax.sql.DataSource"
driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@10.10.10.10:1521:dev10g"
username="userid" password="password" maxActive="20" maxIdle="10" maxWait="-1"/>
<Resource name="Data" auth="Container" type="javax.sql.DataSource"
driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@10.10.10.10:1521:dev10g"
username="userid" password="password" maxActive="20" maxIdle="10" maxWait="-1"/>
</Context>Sun-one.xml:
<sun-web-app>
<context-root>BOTest</context-root>
<resource-ref>
<res-ref-name>jdbc/dev10g</res-ref-name>
<jndi-name>jdbc/dev10g</jndi-name>
</resource-ref>
</sun-web-app>web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>
index.jsp
</welcome-file>
</welcome-file-list>
<resource-ref>
<description>jdbc:oracle:thin:@10.10.10.10:1521:dev10g</description>
<res-ref-name>jdbc/dev10g</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Application</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
<resource-ref>
<description>jdbc:oracle:thin:@10.10.10.10:1521:dev10g</description>
<res-ref-name>Data</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Application</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
</web-app>server.xml has:
<RESOURCES>
- <JDBCCONNECTIONPOOL name="dev10g" datasourceclassname="oracle.jdbc.pool.OracleDataSource" steadypoolsize="8" maxpoolsize="32" poolresizequantity="2" idletimeout="300" maxwaittime="60000" connectionvalidationrequired="off" connectionvalidationmethod="auto-commit" validationtablename="" failallconnections="off" transactionisolationlevel="read-uncommitted" isolationlevelguaranteed="off">
<PROPERTY name="URL" value="jdbc:oracle:thin:@10.45.3.197:1521:dev10g" />
<PROPERTY name="User" value="lab_ro" />
<PROPERTY name="Password" value="0asphalt1" />
</JDBCCONNECTIONPOOL>
<JDBCRESOURCE jndiname="jdbc/dev10g" poolname="dev10g" enabled="on" />
<JDBCRESOURCE jndiname="Data" poolname="dev10g" enabled="on" />
- <JDBCCONNECTIONPOOL name="Data" datasourceclassname="oracle.jdbc.pool.OracleDataSource" steadypoolsize="8" maxpoolsize="32" poolresizequantity="2" idletimeout="300" maxwaittime="60000" connectionvalidationrequired="off" connectionvalidationmethod="auto-commit" validationtablename="" failallconnections="off" transactionisolationlevel="read-uncommitted" isolationlevelguaranteed="off">
<PROPERTY name="User" value="lab_ro" />
<PROPERTY name="URL" value="jdbc:oracle:thin:@10.45.3.197:1521:dev10g" />
<PROPERTY name="Password" value="0asphalt1" />
</JDBCCONNECTIONPOOL>
<JDBCRESOURCE jndiname="jdbc/Data" poolname="Data" enabled="on" />
<JDBCRESOURCE jndiname="dev10g" poolname="dev10g" enabled="on" />
</RESOURCES>I am getting the following error: �Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance�
With the following code:
<%@page
import="java.io.*,
javax.sql.*,
javax.naming.*,
java.sql.*,
java.util.*"%>
<%
Context init;
Context ctx;
DataSource datasource;
Connection con;
try
init = new InitialContext();
Context envCtx = (Context) init.lookup("java:comp/env");
datasource = (DataSource) envCtx.lookup("jdbc/dev10g");
catch(NamingException ex)
out.print("Cannot retrieve data source: " + ex.toString(true));
return;
try
con = datasource.getConnection();
catch (Exception e)
out.print("Cannot retrieve connection: " + e.toString());
return;
try
PreparedStatement pstmt = con.prepareStatement("SELECT PROJNO FROM MATERIALSLAB.VW_ASPHALTHEADERINFO");
ResultSet results = pstmt.executeQuery();
while (results.next())
out.println(results.getString(1));
catch(Exception ex)
out.print("Got connection, can't execute query: " + ex.toString());
return;
%>I get the following error: Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance
With the following code:
<%@page
import="java.io.*,
javax.sql.*,
javax.naming.*,
java.sql.*,
java.util.*"%>
<%
Context init;
Context ctx;
DataSource datasource;
Connection con;
try
init = new InitialContext();
ctx = (Context) init.lookup("java:comp/env");
datasource = (DataSource) ctx.lookup("jdbc/dev10g");
catch(NamingException ex)
out.print("Cannot retrieve data source: " + ex.toString(true));
return;
try
con = datasource.getConnection();
catch (Exception e)
out.print("Cannot retrieve connection: " + e.toString());
return;
try
PreparedStatement pstmt = con.prepareStatement("SELECT PROJNO FROM MATERIALSLAB.VW_ASPHALTHEADERINFO");
ResultSet results = pstmt.executeQuery();
while (results.next())
out.println(results.getString(1));
catch(Exception ex)
out.print("Got connection, can't execute query: " + ex.toString());
return;
%> -
Name of the program generating the spool request
Hi,
i want to know the name of the program due to which a particular
spool request has been generated
thanksHi Anirudh,
Is this what you are looking for:
Re: Finding the Background job name from Spool request number
Regards,
Swarna Munukoti -
Hi
There is a query made earlier thru SQVI in QAS. I know the program name which got generated but don't know the query.
Now i want to create a query in DEV which should be same as the one in QAS.
How can i find out the query name through the program name generated. So that i can make a fresh query in DEV.
Helpful answers will be rewarded.
Regards
varun mathurCan anyone help me in this case??
I just want to see the query , which was created thru sqvi.
USERGROUP : SYSTQV000008
QUERY : ZFRC
CLIENT : 410
Where can i find this usergroup in qas. -
Hi,
I have to exec a unix command like " find . -name *.txt -exec rm {} \; " in a java program, but it don't work fine because of option -exec.
The source is :
String line="",lineErr="",comando="";
try
comando=" find . -name *.txt -exec rm {} \; ";
process = IstanzaRuntime.exec(comando);
inStream = process.getInputStream();
errStream = process.getErrorStream();
There are problems only in commands with options like -exec that permit to exec 2 commands in one .
There is another way to write the command?
Thanks in advance
Lorenzo1. you have to use quotes around *.txt
i.e \"*.txt\"
or '*.txt'
depending how you are calling the command.
2. the directory should be specified otherwise you will be deletinfg files from the USER HOME directory.
find . = find /USERHOME
find ./mydir = find /USERHOME/mydir
find /usr/tmp/mytmpdir = find /usr/tmp/mytmpdir (i.e root stem).
3. the {} should not be a problem. -
Names of the programs which Extend Materials, Load Materials and Load maste
Hi ,
Could you please give the names of the programs which Extend Materials, Load Materials and Load master data settings for auto replenishment.
With regards,
Pritee.HI,
As per your needs programs list as follows.
1) Material Extended T-codes(program) :
a) LSMW - Legacy System Migration Workbench
b) BDC - Batch data communication
c) MM17 - Mass Maintenance Materials and
d) MM01 - Create Material also extended material one by one.
2) Load Materials
a) LSMW - Legacy System Migration Workbench
b) BDC - Batch data communication
3) Load Material Master
a) MM01 - Create Material.
Hope, it is useful for you.
Regards,
K.Rajendran -
My Mac can't find the volume " Data" on Time Capsule, Also I can't find with the disk-utility program the hard disk in the Time Capusule.
So I can't format the disk in the Time Capsule
Deconnevt and then connecting the power tp the Time Capsule gives also no solution.
What can I do?
JoeI listed the commands.. that is how you manually mount the disk.. follow exactly the commands I gave you.
In finder use top menu, go, connect to server.
Type in the following.
AFP://TCname or AFP://TCIpaddress (obviously you replace with the actual name or the actual IP address).
If that fails..
try
SMB://TCname
Here is the screenshot.
tardis4 being the name of my TC.
It should then ask you for your credentials.
And it should remember them in the keychain and be able to then get TM to connect. -
Dear user,
I want to find out who has changed the setting of the Variant Name of the program.
Is there any table that captured the changes as well as the original setting before the new changes?
Thank you.Hi,
Thank you. This is what I want. By the way, is there any table that capture the original value before the changes?
Eg CDHDR
Thank you.
Maybe you are looking for
-
My iPod's songs were all deleted. They're all still on iTunes, however, and every time I try to update them back on I get the message "Songs on the iPod 'murf' cannot be updated because the playlists selected for updating no longer exist." There are
-
How many devices can I authorize for an account?
I have two machines authorized and I want to add a third, it will not let me, why?
-
Message Stopped filter failed C3180
Not printing now and message saying Stopped - 'Filter' failed. It's a C3180 All-In-One and been excellent and reliable for 3 years. This question was solved. View Solution.
-
I need to authorize my laptop with the itunes store in order to sync it with my ipad but when I go into the store I cannot find where to do the authorization?
-
I can't seem to find any thing anywhere about doing this. I was want to be able to send a query: <?xml version="1.0"?> <query /> to a remote server (which will return a bunch of results). I've created an in/out socket... but that's about it.