IFS-21021: Unable to get WasteBasket items
does anyone have any idea about this error and how we could solve it?! it occurs upon deletion of a user in cm sdk, but the user is not visible anymore using cm sdk admin console.
- Thomas
Seems like time-out. I guess it is some transaction time-out period setting.
Similar Messages
-
Unable to get the item value in cursor
I have function which returns organization_id for each item selected in Sales Order window.
From this function I will populate warehouse value in shipping tab whenever i am tabbing out from ordered item in Sales Order Form.
But my cursor is unable to get the item id value (Ex: FOR cur_rec IN cus_l (l_item_id)). It is directly going to last return statement and displaying default value.
Please help me out.
FUNCTION custom_default_rule (
p_database_object_name IN VARCHAR2,
p_attribute_code IN VARCHAR2
RETURN NUMBER
AS
l_line_type_rec oe_order_cache.line_type_rec_type;
l_item_id NUMBER;
p_org_id NUMBER;
CURSOR cus_l (p_item_id IN NUMBER)
IS
SELECT a.organization_id, b.element_name, b.element_value
FROM mtl_parameters a,
mtl_descr_element_values b,
mtl_system_items_b c
WHERE b.inventory_item_id = c.inventory_item_id
AND a.organization_id = c.organization_id
AND a.organization_id = c.organization_id
AND c.inventory_item_id = p_item_id
AND a.organization_id <> a.master_organization_id
ORDER BY a.organization_id;
CURSOR cur_org (p_org_id IN NUMBER)
IS
SELECT organization_code
FROM mtl_parameters
WHERE organization_id = p_org_id;
BEGIN
l_line_type_rec :=
oe_order_cache.load_line_type
(ont_line_def_hdlr.g_record.line_type_id);
l_item_id := ont_line_def_hdlr.g_record.inventory_item_id;
FOR cur_rec IN cus_l (l_item_id)
LOOP
IF cur_rec.element_name IN
('Frequency',
'Emission Norms',
'Voltage',
'Duty Rating',
'Phase',
'Product Family'
AND cur_rec.element_value IN
('50',
'Dual',
'Euro',
'210',
'230',
'440',
'Low',
'Medium',
'Heavy',
'Three',
'QSK60',
'QSK15',
'QSK10',
'DQK50'
THEN
RETURN cur_rec.organization_id;
If u want more info. abt function refer: Refer "PL/SQL API + Defaulting Rules in OM" in Forums.oracle.com
(OR)
PL/SQL API + Defaulting Rules in OM
Please help me out. This is very urgent.
Thanks & Regards,
Sateesh KumarHi Suresh,
I tried like below:
create or replace FUNCTION custom_default_rule (
p_database_object_name IN VARCHAR2,
p_attribute_code IN VARCHAR2
RETURN NUMBER
AS
l_line_type_rec oe_order_cache.line_type_rec_type;
l_line_rec OE_AK_ORDER_LINES_V%ROWTYPE;
l_item_id NUMBER;
p_org_id NUMBER;
CURSOR cus_l (p_item_id IN NUMBER)
IS
SELECT a.organization_id, b.element_name, b.element_value
FROM mtl_parameters a,
mtl_descr_element_values b,
mtl_system_items_b c
WHERE b.inventory_item_id = c.inventory_item_id
AND a.organization_id = c.organization_id
AND a.organization_id = c.organization_id
AND c.inventory_item_id = p_item_id
AND a.organization_id <> a.master_organization_id
ORDER BY a.organization_id;
CURSOR cur_org (p_org_id IN NUMBER)
IS
SELECT organization_code
FROM mtl_parameters
WHERE organization_id = p_org_id;
BEGIN
l_line_type_rec :=
oe_order_cache.load_line_type(ont_line_def_hdlr.g_record.line_type_id);
l_line_rec := ONT_line_Def_Hdlr.g_record;
-- l_item_id := l_line_rec.inventory_item_id;
-- FOR cur_rec IN cus_l (l_item_id)
FOR cur_rec IN cus_l(l_line_rec.inventory_item_id)
LOOP
IF cur_rec.element_name IN
('Frequency',
'Emission Norms',
'Voltage',
'Duty Rating',
'Phase',
'Product Family'
AND cur_rec.element_value IN
('50',
'Dual',
'Euro',
'210',
'230',
'440',
'Low',
'Medium',
'Heavy',
'Three',
'QSK60',
'QSK15',
'QSK10',
'DQK50'
THEN
RETURN cur_rec.organization_id;
FOR cur_rec_org IN cur_org (p_org_id)
LOOP
RETURN cur_rec_org.organization_code;
END LOOP;
END IF;
END LOOP;
RETURN '204';
EXCEPTION
WHEN OTHERS
THEN
IF oe_msg_pub.check_msg_level (oe_msg_pub.g_msg_lvl_unexp_error)
THEN
oe_msg_pub.add_exc_msg ('OE_Default_PVT', 'CUSTOM_DEFAULT_RULE');
END IF;
RAISE fnd_api.g_exc_unexpected_error;
END custom_default_rule;
This function executed without errors. But it is displaying final return statement value (i.e., 204).
I am not getting inventory_item_id value to my cursor.
Please help me out...It is very urgent.
Thanks & Regards,
Sateesh Kumar S
Message was edited by:
user610830 -
IFS-20010 Unable to get service configuration
Hi,
I'm trying to connect to iFS from a Java application. Basically it's a remote server which we'll connect to using RMI for some integration work. It will run on the same server as CM SDK.
Anyway, I try and connect to the service using:
LibraryService.startService(name, schemaPassword, serviceConfig, domainName)
and it comes back with this error:
oracle.ifs.common.IfsException: IFS-20102: Unable to start service (IfsDefault)
oracle.ifs.common.IfsException: IFS-20010: Unable to get service configuration properties (SmallServiceConfiguration)
java.lang.NullPointerException
at oracle.gss.util.NLSLocale.getNLSLanguage(NLSLocale.java:675)
I'm running it from the command line, I have a batch file to set the classpath. Interestingly, if I run an Agent (i.e., a java class that extends oracle.ifs.management.domain.IfsServer) standalone, it works fine.
This makes me think there's some element of the classpath that I'm missing, but I'm not entirely sure what!
Could anyone shed any light on this? Metalink doesn't seem to have anything!
Cheers,
Phill
P.S. -- my CLASSPATH is as follows:
set CLASSPATH=%CLASSPATH%;%ORACLE_HOME%\ifs\cmsdk\lib\cmsdk.jar;%ORACLE_HOME%\lib;
set CLASSPATH=%CLASSPATH%;%ORACLE_HOME%\jdbc\lib\classes12.zip;%ORACLE_HOME%\j2ee\home\lib;
set CLASSPATH=%CLASSPATH%;%ORACLE_HOME%\j2ee\home\jazn.jar
set CLASSPATH=%CLASSPATH%;%ORACLE_HOME%\jdbc\lib\nls_charset12.jar
set CLASSPATH=%CLASSPATH%;%ORACLE_HOME%\ifs\cmsdk\settings\Just FYI, the solution to this was that the java security policy was denying access. I changed the java.policy to
grant {
permission java.security.AllPermission;
And this solved the problem. -
IFS-20010 : Unable to get service configuration properties
Hi all,
I am trying to connect to IFS using JDeveloper. I have coded a JSP which makes a call to my java class to connect.
I know that I can connect from my machine because I can run a simple application from the command line to create
a file in IFS.
Anyway, I set up my classpath under Project Settings as follows (same as my classpath on command line):
C:\oracle\JDeveloper\9ifs\settings;.;C:\DOCUMENT\jars\adk.jar;C:\DOCUMENT\jars\email.jar;
C:\DOCUMENT\jars\repos.jar;C:\DOCUMENT\jars\utils.jar;C:\DOCUMENT\jars\xmlparserv2.jar;
C:\oracle\ora90\jdbc\lib\classes12.zip
When I run the jsp under JDeveloper I get the following output on my developer console.
Should the classpath value be what I have entered for my classpath under Project Settings?
Any help is appreciated,
Paul
C:\jdev9i_902\jdk\bin\javaw.exe -ojvm -classpath C:\jdev9i_902\j2ee\home\oc4j.jar com.evermind.server.OC4JServer -config C:\jdev9i_902\jdev\system\oc4j-config\server.xml
[Starting OC4J using the following ports: HTTP=9011, RMI=23916, JMS=9252.]
[waiting for the server to complete its initialization...]
Oracle9iAS (9.0.2.0.0) Containers for J2EE initialized
Target URL -- http://127.0.0.1:9011/maps-ifs-context-root/docScreens/test.jsp
oracle.ifs.common.IfsException: IFS-20102: Unable to start service (IfsDefault)
oracle.ifs.common.IfsException: IFS-20010: Unable to get service configuration properties (IfsDefault)
void oracle.ifs.common.IfsException.<init>(int, java.lang.Object[])
oracle.ifs.common.AttributeValue[] oracle.ifs.beans.LibraryService.getServiceConfigurationProperties(java.lang.String)
oracle.ifs.beans.LibraryService oracle.ifs.beans.LibraryService.startService(java.lang.String, java.lang.String)
oracle.ifs.beans.LibrarySession com.fujitsu.docHandler.dao.BusinessDocument_IFS_DAO.connect(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
void com.fujitsu.docHandler.dao.BusinessDocument_IFS_DAO.<init>(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
void docscreens.testForm._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
void com.evermind.util.ThreadPoolThread.run()Did anyone find a solution to the problem described in this thread?
I have made a simple stateless session bean in JDeveloper from which I try to connect to iFS. If I use the
embedded oc4j container in JDeveloper, I get the following exception:
Standard output of the EJB:
oracle.ifs.common.IfsException: IFS-20010: Unable to get service configuration properties (IfsDefault)Print stacktrace:
oracle.ifs.common.IfsException: IFS-20102: Unable to start service (IfsDefault)
oracle.ifs.common.IfsException: IFS-20010: Unable to get service configuration properties (IfsDefault)
void oracle.ifs.common.IfsException.<init>(int, java.lang.Object[])
oracle.ifs.common.AttributeValue[] oracle.ifs.beans.LibraryService.getServiceConfigurationProperties(java.lang.String)
oracle.ifs.beans.LibraryService oracle.ifs.beans.LibraryService.startService(java.lang.String, java.lang.String)
oracle.ifs.beans.LibrarySession xpackage1.impl.XSessionEJBBean.startSession(java.lang.String, java.lang.String)
oracle.ifs.beans.LibrarySession XSessionEJB_StatelessSessionBeanWrapper0.startSession(java.lang.String, java.lang.String)
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
void com.evermind.util.ThreadPoolThread.run()
The test client gets these messages:
oracle.ifs.common.IfsException: IFS-20102: Unable to start service (IfsDefault)
oracle.ifs.common.IfsException: IFS-20010: Unable to get service configuration properties (IfsDefault)
If I use oc4j in the application server, then I get the following exception:
Standard output of the EJB:
Localized message: IFS-20102: Message unavailableMessage: IFS-20102: Message una
vailableTo string :oracle.ifs.common.IfsException: IFS-20102: Message unavailabl
e
oracle.ifs.common.IfsException: IFS-20122: Message unavailable
oracle.ifs.common.IfsException: IFS-12000: Message unavailable
java.util.MissingResourceException: Can't find bundle for base name oracle.ifs.b
eans.resources.LibraryResources, locale no_NOPrint stacktrace:
oracle.ifs.common.IfsException: IFS-20102: Message unavailable
oracle.ifs.common.IfsException: IFS-20122: Message unavailable
oracle.ifs.common.IfsException: IFS-12000: Message unavailable
java.util.MissingResourceException: Can't find bundle for base name oracle.ifs.b
eans.resources.LibraryResources, locale no_NO
void java.util.ResourceBundle.throwMissingResourceException(java.lang.St
ring, java.util.Locale)
java.util.ResourceBundle java.util.ResourceBundle.getBundleImpl(java.lan
g.String, java.util.Locale, java.lang.ClassLoader)
java.util.ResourceBundle java.util.ResourceBundle.getBundle(java.lang.St
ring, java.util.Locale)
void oracle.ifs.common.Localizer.<init>(java.util.Locale, oracle.ifs.bea
ns.LibrarySession)
void oracle.ifs.common.Localizer.<init>(java.util.Locale)
void oracle.ifs.common.Localizer.<init>()
void oracle.ifs.server.S_LibraryService.<init>(java.lang.String, java.la
ng.String, oracle.ifs.common.AttributeValue[])
oracle.ifs.server.S_LibraryService oracle.ifs.server.S_LibraryService.st
artService(java.lang.String, java.lang.String, oracle.ifs.common.AttributeValue[
oracle.ifs.beans.LibraryService oracle.ifs.beans.LibraryService.startSer
vice(java.lang.String, java.lang.String, oracle.ifs.common.AttributeValue[])
oracle.ifs.beans.LibraryService oracle.ifs.beans.LibraryService.startSer
vice(java.lang.String, java.lang.String)
oracle.ifs.beans.LibrarySession xpackage1.impl.XSessionEJBBean.startSess
ion(java.lang.String, java.lang.String)
oracle.ifs.beans.LibrarySession XSessionEJB_StatelessSessionBeanWrapper0
.startSession(java.lang.String, java.lang.String)
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.
lang.Object[])
void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
void com.evermind.util.ThreadPoolThread.run()
The test client gets theese messages:
oracle.ifs.common.IfsException: IFS-20102: Unable to start service (IfsDefault)
oracle.ifs.common.IfsException: IFS-20122: Unable to construct service
oracle.ifs.common.IfsException: IFS-12000: Unable to construct localizer
java.util.MissingResourceException: Can't find bundle for base name oracle.ifs.beans.resources.LibraryResources, locale no_NO
java.util.MissingResourceException: Can't find bundle for base name oracle.ifs.beans.resources.LibraryResources, locale no_NO
The classpath of the actual project in JDeveloper is:
C:\oracle\ora92ias\9ifs\settings;C:\oracle\ora92ias\9ifs\lib\adk.jar;C:\oracle\ora92ias\9ifs\lib\email.jar;C:\oracle\ora92ias\9ifs\lib\repos.jar;C:\oracle\ora92ias\9ifs\lib\utils.jar;C:\oracle\ora92\jdbc\lib\classes12.jar;C:\oracle\ora92ias\lib\xmlparserv2.jar;C:\oracle\ora92ias\j2ee\home\oc4j.jar;C:\oracle\ora92ias\j2ee\home\ejb.jar;C:\oracle\ora92ias\j2ee\home\jaas.jar;C:\oracle\ora92ias\j2ee\home\jaxp.jar;C:\oracle\ora92ias\j2ee\home\jdbc.jar;C:\oracle\ora92ias\9ifs\lib\http.jar;C:\oracle\ora92ias\9ifs\lib\provider.jar;C:\oracle\ora92ias\9ifs\lib\webui.jar;C:\oracle\ora92ias\jlib\javax-ssl-1_2.jar;C:\oracle\ora92ias\jlib\jssl-1_2.jar
Other information:
I have oracle 9i, application server and iFS installed on one machine with the windows advanced server 2000 os.
Does anyone know what I can do in order to solve this problem?
Thanks,
Anne Sommerhein -
IFS-32656: Unable to get the FolderRestrictedQuery search clause
Hi!,
I have a new problem. I have created a portal with Oracle Portal and cmsdk to manage a set of documents. When I try to visualize documents on portlet my application failures. I receive this exception
06/08/28 15:33:56 oracle.ifs.common.IfsException: IFS-32656: Unable to get the FolderRestrictedQuery search clause
oracle.ifs.common.IfsException: IFS-32659: Error determining Folder Index level
java.sql.SQLException: Parametro IN o OUT mancante nell'indice:: 3
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:174)
at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1552)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2927)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:2973)
at oracle.ifs.server.FolderIndexService.isFolderAtMaplevel(FolderIndexService.java:1877)
at oracle.ifs.server.FolderIndexService.determineMapLevel(FolderIndexService.java:1842)
at oracle.ifs.server.FolderIndexService.getFrqInClause(FolderIndexService.java:890)
at oracle.ifs.server.FolderIndexService.getFrqClause(FolderIndexService.java:833)
at oracle.ifs.server.SQLGeneration_Helper.getFrqClause(SQLGeneration_Helper.java:907)
at oracle.ifs.search.toSQLVisitor.visitFRQualifier(toSQLVisitor.java:437)
at oracle.ifs.search.FolderRestrictQualification.accept(FolderRestrictQualification.java:393)
at oracle.ifs.search.toSQLVisitor.visitSearchClause(toSQLVisitor.java:546)
at oracle.ifs.search.SearchClause.accept(SearchClause.java:391)
at oracle.ifs.search.SQLGenerator.generateWhereClause(SQLGenerator.java:318)
at oracle.ifs.search.SQLGenerator.getSQLStatement(SQLGenerator.java:754)
at oracle.ifs.search.SQLGenerator.getSQLStatement(SQLGenerator.java:180)
at oracle.ifs.search.AttributeSearchSpecification.getSQLString(AttributeSearchSpecification.java:490)
at oracle.ifs.search.AttributeSearchSpecification.getSQL(AttributeSearchSpecification.java:457)
at oracle.ifs.search.SearchSpecification.getSQL(SearchSpecification.java:252)
at oracle.ifs.server.S_Search.open(S_Search.java:273)
at oracle.ifs.server.S_LibrarySession.DMOpenSearch(S_LibrarySession.java:6230)
at oracle.ifs.beans.LibrarySession.DMOpenSearch(LibrarySession.java:11328)
at oracle.ifs.beans.Search.open(Search.java:541)
at oracle.ifs.beans.Search.open(Search.java:500)
at oracle.ifs.beans.Search.open(Search.java:452)
Really this exception is launched only if I set in Oracle Portal a provider that points to an oc4j who runs on an application server 10.1.2.0.2 version (this is the version of application server installed on server machine). If I set a provider that points to oc4j on my pc every thing runs finally. The only difference between two machine is that on my pc is installed an application server 9.0.4.0.1 version. I suppose that this behaviour is caused by driver odbc, but I don’t know how can I resolve it. Can you help me to configure every thing correctly?
Thanks in advanceMake sure the searchbase is correct. Make sure to restart the identity server and web server (after selecting the 'Person' and 'Group' objectclasses, and before clicking on 'Next' ) during the Product Setup.
-
IFS-10192 Unable to get token credential
Hi folks,
during upload of 500 MBytes file into iFS via Web interface this error occured.
500 Users Error iFS-10192
Unable to get Token credential
This error raised by getTokenCredential(...) java function.
How can I fixed it?
Best Regards,
JavadSeems like time-out. I guess it is some transaction time-out period setting.
-
Unable to get credential manager version
When I tried to start iFS ServerManager I got the message:
Login to Oracle iFS Manager failed.
IFS-10110:unable to construct directory service
IFS-10140:Unable to instantiate credential manager Ifs
IFS-10150:Unable to construct credential manager
(oracle.ifs.server.IfsCredentialManager)
IFS-10176:Unable to get credential manager version
What is this about? tks!Were you upgrading from 1.0 to 1.1.
If so please see the following post
http://technet.oracle.com:89/ubb/Forum36/HTML/001000.html -
Unable to get Material No and Description from VBAP
Hi Gurus
Can anyone please help me to get material number and description from vbap table, The report is fine but I am unable to get material no and description.
regards
report ZCHGDOC_BY_SALES no standard page heading
line-size 132.
type-pools:
slis. " ALV types
Tables
tables:
cdhdr, " Change documents: Header
cdpos, " Change documents: Items
vbak, " Sales order: Header
mara, " Material No
user_addr, " User Address
vbap. " Contract order: Items
Types
types:
begin of ty_cdhdr,
objectclas like cdhdr-objectclas, " Object class
objectid like cdhdr-objectid, " Object value
changenr like cdhdr-changenr, " Document change number
username like cdhdr-username, " Changed by
udate like cdhdr-udate, " Changed on
utime like cdhdr-utime, " Changed at
tcode like cdhdr-tcode, " Transaction code
end of ty_cdhdr,
ty_it_cdhdr type ty_cdhdr occurs 0,
begin of ty_cdpos,
objectclas like cdpos-objectclas, " Object class
objectid like cdpos-objectid, " Object value
changenr like cdpos-changenr, " Document change number
tabname like cdpos-tabname, " Table name
tabkey like cdpos-tabkey, " Table key
fname like cdpos-fname, " Field name
chngind like cdpos-chngind, " Change indicator
value_new like cdpos-value_new, " New value of field
value_old like cdpos-value_old, " Old value of field
end of ty_cdpos,
ty_it_cdpos type ty_cdpos occurs 0,
begin of ty_dd03l,
tabname like dd03l-tabname,
fieldname like dd03l-fieldname,
as4local like dd03l-as4local,
as4vers like dd03l-as4vers,
rollname like dd03l-rollname,
end of ty_dd03l,
ty_it_dd03l type ty_dd03l occurs 0,
begin of ty_dd04t,
rollname like dd04t-rollname,
ddlanguage like dd04t-ddlanguage,
as4local like dd04t-as4local,
as4vers like dd04t-as4vers,
scrtext_l like dd04t-scrtext_l,
end of ty_dd04t,
ty_it_dd04t type ty_dd04t occurs 0,
begin of ty_kna1,
kunnr like kna1-kunnr, " Customer number
name1 like kna1-name1, " Customer name
end of ty_kna1,
ty_it_kna1 type ty_kna1 occurs 0,
begin of ty_user_addr,
bname like user_addr-bname, " user no
name_textc like user_addr-name_textc , " Username
end of ty_user_addr,
ty_it_user_addr type ty_user_addr occurs 0,
begin of ty_vbap,
matnr like vbap-matnr, " Material No
arktx like vbap-arktx, " Production Description
end of ty_vbap,
ty_it_vbap type ty_vbap occurs 0,
ty_text(500) type c,
ty_lines type tline,
ty_it_lines type ty_lines occurs 0,
begin of ty_merged,
vbeln like vbak-vbeln, " Sales order number
erdat like vbak-erdat, " Created on
auart like vbak-auart, " Order type
faksk like vbak-faksk, " Billing block in SD document
netwr like vbak-netwr, " Net value
waerk like vbak-waerk, " Currency
vkorg like vbak-vkorg, " Sales organisation
vtweg like vbak-vtweg, " Distribution channel
vkbur like vbak-vkbur, " Sales office
fkara like vbak-fkara, " Proposed billing type
kunnr like vbak-kunnr, " Sold-to party
bname like vbak-bname , " User No
xblnr like vbak-xblnr, " Reference
fbuda like vbkd-fbuda, " Date services rendered
username like cdhdr-username, " Changed by
udate like cdhdr-udate, " Changed on
utime like cdhdr-utime, " Changed at
tcode like cdhdr-tcode, " Transaction code
tabname like cdpos-tabname, " Table name
tabkey like cdpos-tabkey, " Table key
fname like cdpos-fname, " Field name
chngind like cdpos-chngind, " Change indicator
value_new like cdpos-value_new, " New value of field
value_old like cdpos-value_old, " Old value of field
scrtext_l like dd04t-scrtext_l, " Description of field
intnote type ty_text, " Internal note
hdrnote type ty_text, " Header note
name1 like adrc-name1, " Sold-to party name
matnr like vbap-matnr, " Material No
arktx like vbap-arktx, " Product Description
end of ty_merged,
ty_it_merged type ty_merged occurs 0,
begin of ty_vbak,
vbeln like vbak-vbeln, " Sales order number
erdat like vbak-erdat, " Created on
auart like vbak-auart, " Order type
faksk like vbak-faksk, " Billing block in SD document
netwr like vbak-netwr, " Net value
waerk like vbak-waerk, " Currency
vkorg like vbak-vkorg, " Sales organisation
vtweg like vbak-vtweg, " Distribution channel
vkbur like vbak-vkbur, " Sales office
fkara like vbak-fkara, " Proposed billing type
kunnr like vbak-kunnr, " Sold-to party
xblnr like vbak-xblnr, " Reference
objectid like cdhdr-objectid, " Change document object
end of ty_vbak,
ty_it_vbak type ty_vbak occurs 0,
begin of ty_vbkd,
vbeln like vbkd-vbeln, " Sales order number
posnr like vbkd-posnr, " Sales order item
fbuda like vbkd-fbuda, " Date services rendered
end of ty_vbkd,
ty_it_vbkd type ty_vbkd occurs 0.
Internal tables
data:
it_cdhdr type ty_it_cdhdr,
it_cdpos type ty_it_cdpos,
it_fieldcat type slis_t_fieldcat_alv,
it_kna1 type ty_it_kna1,
it_user_addr type ty_it_user_addr,
it_merged type ty_it_merged,
it_vbak type ty_it_vbak,
Material No
it_vbap type ty_it_vbap,
it_vbkd type ty_it_vbkd.
data:
wa_vbak type ty_vbak.
data:
st_tvariant like disvariant,
st_variant like disvariant.
constants:
co_as4local_a like dd03l-as4local " Active version
value 'A',
co_objectclas_verkbeleg like cdhdr-objectclas
value 'VERKBELEG',
co_posnr_initial like vbkd-posnr " Initial item number
value is initial,
co_posnr_initial_2 like vbap-posnr " Initial item number
value is initial,
co_save_u type c " User display variant
value 'U', " saving allowed.
co_trvog_0 like vbak-trvog " Sales order
value '0'.
data:
va_exit type c, " ALV display
va_tabix like sy-tabix.
selection-screen: begin of block b1 with frame title text-001.
select-options:
s_vkorg for vbak-vkorg OBLIGATORY, " Sales organisation
s_vkbur for vbak-vkbur, " Sales office
s_vtweg for vbak-vtweg, " Distribution channel
s_vbeln for vbak-vbeln, " Sales order number
s_usrnme for cdhdr-username, " Changed by
s_udate for cdhdr-udate. " Changed on
selection-screen: end of block b1,
begin of block b2 with frame title text-002.
parameters:
p_varint like disvariant-variant. " Display variant.
selection-screen: end of block b2.
Initialization
initialization.
Load display variant.
if not p_varint is initial.
move st_variant to st_tvariant.
move p_varint to st_tvariant-variant.
call function 'REUSE_ALV_VARIANT_EXISTENCE'
exporting
i_save = co_save_u
changing
cs_variant = st_tvariant.
st_variant = st_tvariant.
else.
clear st_variant.
st_variant-report = sy-repid.
endif.
at selection-screen on value-request for p_varint.
Provide display variant list for this program.
call function 'REUSE_ALV_VARIANT_F4'
exporting
is_variant = st_variant
i_save = co_save_u
importing
e_exit = va_exit
es_variant = st_tvariant
exceptions
not_found = 2.
if sy-subrc eq 2.
message id sy-msgid type 'S'
number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
else.
if va_exit eq space.
st_variant = st_tvariant.
p_varint = st_tvariant-variant.
endif.
endif.
At selection screen
at selection-screen.
Load display variant.
if not p_varint is initial.
move st_variant to st_tvariant.
move p_varint to st_tvariant-variant.
call function 'REUSE_ALV_VARIANT_EXISTENCE'
exporting
i_save = co_save_u
changing
cs_variant = st_tvariant.
st_variant = st_tvariant.
else.
clear st_variant.
st_variant-report = sy-repid.
endif.
Start of selection
Extract order details from VBAK
select vbeln erdat auart faksk netwr waerk vkorg vtweg vkbur fkara
kunnr xblnr
from vbak
into table it_vbak
where vkorg in s_vkorg
and vkbur in s_vkbur
and vbeln in s_vbeln.
if sy-subrc ne 0.
No data found for selection
message s001(zgen).
exit.
endif.
loop at it_vbak into wa_vbak.
va_tabix = sy-tabix.
wa_vbak-objectid = wa_vbak-vbeln.
modify it_vbak from wa_vbak
index va_tabix
transporting objectid.
endloop.
if sy-subrc ne 0.
No data found for selection
message s001(zgen).
exit.
endif.
loop at it_vbak into wa_vbak.
va_tabix = sy-tabix.
wa_vbak-objectid = wa_vbak-vbeln.
modify it_vbak from wa_vbak
index va_tabix
transporting objectid.
endloop.
Extract Change data
select objectclas objectid changenr username udate utime tcode
from cdhdr
into table it_cdhdr
for all entries in it_vbak
where objectclas eq co_objectclas_verkbeleg
and objectid eq it_vbak-objectid
and username in s_usrnme
and udate in s_udate.
if sy-subrc eq 0.
select objectclas objectid changenr tabname tabkey fname chngind
value_new value_old
from cdpos
into table it_cdpos
for all entries in it_cdhdr
where fname NE 'CMPRE_FLT'
and objectclas eq it_cdhdr-objectclas
and objectid eq it_cdhdr-objectid
and changenr eq it_cdhdr-changenr.
endif.
Extract customer details from KNA1
select kunnr name1
from kna1
into table it_kna1
for all entries in it_vbak
where kunnr eq it_vbak-kunnr.
---- Changes are made here -
Extract Material details from vbap
select matnr arktx
from vbap
into table it_vbap
for all entries in it_vbak
where
vbeln eq it_vbak-vbeln
and posnr eq co_posnr_initial.
-----------------End of Change ----------------------*
Extract Contract No from vbkd.
select vbeln posnr fbuda
from vbkd
into table it_vbkd
for all entries in it_vbak
where vbeln eq it_vbak-vbeln
and posnr eq co_posnr_initial.
perform merge_data tables it_cdhdr
it_cdpos
it_kna1
it_user_addr
it_merged
it_vbak
it_vbap
it_vbkd.
if it_merged[] is initial.
message s001(zgen).
exit.
endif.
Release memory no longer required.
free: it_cdhdr,
it_cdpos,
it_kna1,
it_user_addr,
it_vbak,
it_vbap,
it_vbkd.
Build field catalog for call to report function
perform build_field_catalog tables it_fieldcat.
Output report.
perform output_report tables it_fieldcat
it_merged.
*& Form merge_data
text
form merge_data tables pa_it_cdhdr type ty_it_cdhdr
pa_it_cdpos type ty_it_cdpos
pa_it_kna1 type ty_it_kna1
pa_it_user_addr type ty_it_user_addr
pa_it_merged type ty_it_merged
pa_it_vbak type ty_it_vbak
pa_it_vbap type ty_it_vbap
pa_it_vbkd type ty_it_vbkd.
Local internal tables
data:
lit_dd03l type ty_it_dd03l,
lit_dd04t type ty_it_dd04t.
Local work areas
data:
lwa_cdhdr type ty_cdhdr,
lwa_cdpos type ty_cdpos,
lwa_dd03l type ty_dd03l,
lwa_dd04t type ty_dd04t,
lwa_kna1 type ty_kna1,
lwa_user_addr type ty_user_addr,
lwa_merged type ty_merged,
lwa_vbak type ty_vbak,
lwa_vbap type ty_vbap,
lwa_vbkd type ty_vbkd.
Local variables
data:
lva_dd03l_tabix like sy-tabix,
lva_dd04t_tabix like sy-tabix.
Sort Data
sort pa_it_cdhdr by objectid changenr.
sort pa_it_cdpos by objectid changenr tabname tabkey fname.
sort pa_it_kna1 by kunnr.
sort pa_it_user_addr by bname.
sort pa_it_vbak by vbeln.
sort pa_it_vbkd by vbeln.
loop at pa_it_vbak into lwa_vbak.
clear lwa_merged.
Assign sales order fields to reporting work area
lwa_merged-vbeln = lwa_vbak-vbeln.
lwa_merged-erdat = lwa_vbak-erdat.
lwa_merged-auart = lwa_vbak-auart.
lwa_merged-faksk = lwa_vbak-faksk.
lwa_merged-netwr = lwa_vbak-netwr.
lwa_merged-waerk = lwa_vbak-waerk.
lwa_merged-vkorg = lwa_vbak-vkorg.
lwa_merged-vtweg = lwa_vbak-vtweg.
lwa_merged-vkbur = lwa_vbak-vkbur.
lwa_merged-fkara = lwa_vbak-fkara.
lwa_merged-kunnr = lwa_vbak-kunnr.
lwa_merged-bname = 1wa_user_addr-bname.
lwa_merged-xblnr = lwa_vbak-xblnr.
Assgin Material to reporting work area
lwa_merged-matnr = lwa_vbap-vbeln.
Get name of sold-to party from PA_IT_KNA1
clear lwa_kna1.
read table pa_it_kna1 into lwa_kna1
with key kunnr = lwa_vbak-kunnr
binary search.
lwa_merged-name1 = lwa_kna1-name1.
Get name from PA_it_user_addr
clear lwa_user_addr.
read table pa_it_user_addr into lwa_user_addr
with key = lwa_user_addr-bname
binary search.
lwa_merged-username = lwa_user_addr-name_textc.
Get business data from PA_IT_VBKD.
clear lwa_vbkd.
read table pa_it_vbkd into lwa_vbkd
with key vbeln = lwa_vbak-vbeln
binary search.
lwa_merged-fbuda = lwa_vbkd-fbuda.
Get Material Data
clear lwa_vbap.
read table pa_it_vbap into lwa_vbap
with key matnr = lwa_vbap-matnr
with key vbeln = lwa_vbak-vbeln
binary search.
lwa_merged-arktx = lwa_vbap-arktx.
Get internal note text for sales order
perform read_text using '0002'
'1'
lwa_merged-vbeln
'VBBK'
lwa_merged-intnote.
Get header note 1 text for sales order
perform read_text using 'Z002'
'1'
lwa_merged-vbeln
'VBBK'
lwa_merged-hdrnote.
Determine if change documents exist for sales order.
clear lwa_cdhdr.
read table pa_it_cdhdr into lwa_cdhdr
with key objectid = lwa_vbak-objectid.
if sy-subrc ne 0.
continue.
endif.
loop at pa_it_cdhdr into lwa_cdhdr
from sy-tabix.
lwa_merged-username = lwa_cdhdr-username.
lwa_merged-udate = lwa_cdhdr-udate.
lwa_merged-utime = lwa_cdhdr-utime.
lwa_merged-tcode = lwa_cdhdr-tcode.
clear lwa_cdpos.
read table pa_it_cdpos into lwa_cdpos
with key objectid = lwa_cdhdr-objectid
changenr = lwa_cdhdr-changenr
binary search.
loop at pa_it_cdpos into lwa_cdpos
from sy-tabix.
lwa_merged-tabname = lwa_cdpos-tabname.
lwa_merged-tabkey = lwa_cdpos-tabkey.
lwa_merged-fname = lwa_cdpos-fname.
lwa_merged-chngind = lwa_cdpos-chngind.
lwa_merged-value_new = lwa_cdpos-value_new.
lwa_merged-value_old = lwa_cdpos-value_old.
Get description for field - determine date element
clear lwa_dd03l.
read table lit_dd03l into lwa_dd03l
with key tabname = lwa_cdpos-tabname
fieldname = lwa_cdpos-fname
binary search.
lva_dd03l_tabix = sy-tabix.
if sy-subrc ne 0.
select single tabname fieldname as4local as4vers rollname
from dd03l
into lwa_dd03l
where tabname eq lwa_cdpos-tabname
and fieldname eq lwa_cdpos-fname
and as4local eq co_as4local_a.
if sy-subrc eq 0.
insert lwa_dd03l into lit_dd03l
index lva_dd03l_tabix.
endif.
endif.
If data element was found, get description
if not lwa_dd03l is initial.
clear lwa_dd04t.
read table lit_dd04t into lwa_dd04t
with key rollname = lwa_dd03l-rollname
ddlanguage = sy-langu
binary search.
lva_dd04t_tabix = sy-tabix.
if sy-subrc ne 0.
select single rollname ddlanguage as4local as4vers scrtext_l
from dd04t
into lwa_dd04t
where rollname eq lwa_dd03l-rollname
and ddlanguage eq sy-langu.
if sy-subrc eq 0.
insert lwa_dd04t into lit_dd04t
index lva_dd04t_tabix.
else.
lwa_dd04t-scrtext_l = 'Description for field not found'.
endif.
endif.
endif.
lwa_merged-scrtext_l = lwa_dd04t-scrtext_l.
append lwa_merged to pa_it_merged.
at end of changenr.
Only process field changes for this change document.
exit.
endat.
endloop.
at end of objectid.
Initialise work area so we know change document for order has
been processed.
clear lwa_merged.
Only process change documents for this sales order.
exit.
endat.
endloop.
endloop.
endform. " merge_data
*& Form build_field_catalog
text
form build_field_catalog tables pa_it_fieldcat type slis_t_fieldcat_alv.
data:
Local variable
lva_col_pos type slis_fieldcat_alv-col_pos,
Local structure
st_fieldcat type slis_fieldcat_alv.
lva_col_pos = 0.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'VBELN'.
st_fieldcat-ref_tabname = 'VBAK'.
st_fieldcat-ref_fieldname = 'VBELN'.
st_fieldcat-row_pos = '1'.
st_fieldcat-col_pos = lva_col_pos.
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'VKBUR'.
st_fieldcat-ref_tabname = 'VBAK'.
st_fieldcat-ref_fieldname = 'VKBUR'.
st_fieldcat-row_pos = '1'.
st_fieldcat-outputlen = '6'.
st_fieldcat-col_pos = lva_col_pos.
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'VKORG'.
st_fieldcat-ref_tabname = 'VBAK'.
st_fieldcat-ref_fieldname = 'VKORG'.
st_fieldcat-row_pos = '1'.
st_fieldcat-outputlen = '6'.
st_fieldcat-col_pos = lva_col_pos.
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'KUNNR'.
st_fieldcat-ref_tabname = 'VBAK'.
st_fieldcat-ref_fieldname = 'KUNNR'.
st_fieldcat-row_pos = '1'.
st_fieldcat-col_pos = lva_col_pos.
st_fieldcat-outputlen = '6'.
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'NAME1'.
st_fieldcat-ref_tabname = 'KNA1'.
st_fieldcat-ref_fieldname = 'NAME1'.
st_fieldcat-row_pos = '1'.
st_fieldcat-outputlen = '15'.
st_fieldcat-col_pos = lva_col_pos.
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'MATNR'.
st_fieldcat-ref_tabname = 'VBAP'.
st_fieldcat-ref_fieldname = 'MATNR'.
st_fieldcat-row_pos = '1'.
st_fieldcat-col_pos = lva_col_pos.
st_fieldcat-outputlen = '6'.
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'SCRTEXT_L'.
st_fieldcat-ref_tabname = 'DD04T'.
st_fieldcat-ref_fieldname = 'SCRTEXT_L'.
st_fieldcat-row_pos = '1'.
st_fieldcat-outputlen = '20'.
st_fieldcat-col_pos = lva_col_pos.
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'UDATE'.
st_fieldcat-ref_tabname = 'CDHDR'.
st_fieldcat-ref_fieldname = 'UDATE'.
st_fieldcat-row_pos = '1'.
st_fieldcat-outputlen = '10'.
st_fieldcat-col_pos = lva_col_pos.
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'USERNAME'.
st_fieldcat-ref_tabname = 'CDHDR'.
st_fieldcat-ref_fieldname = 'USERNAME'.
st_fieldcat-row_pos = '1'.
st_fieldcat-outputlen = '6'.
st_fieldcat-col_pos = lva_col_pos.
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'FNAME'.
st_fieldcat-ref_tabname = 'CDPOS'.
st_fieldcat-ref_fieldname = 'FNAME'.
st_fieldcat-row_pos = '4'.
st_fieldcat-outputlen = '8'.
st_fieldcat-col_pos = lva_col_pos.
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'CHNGIND'.
st_fieldcat-ref_tabname = 'CDPOS'.
st_fieldcat-ref_fieldname = 'CHNGIND'.
st_fieldcat-row_pos = '1'.
st_fieldcat-outputlen = '8'.
st_fieldcat-col_pos = lva_col_pos.
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'WAERK'.
st_fieldcat-ref_tabname = 'VBAK'.
st_fieldcat-ref_fieldname = 'WAERK'.
st_fieldcat-row_pos = '1'.
st_fieldcat-outputlen = '5'.
st_fieldcat-col_pos = lva_col_pos..
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'VALUE_NEW'.
st_fieldcat-ref_tabname = 'CDPOS'.
st_fieldcat-ref_fieldname = 'VALUE_NEW'.
st_fieldcat-row_pos = '1'.
st_fieldcat-outputlen = '20'.
st_fieldcat-col_pos = lva_col_pos.
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'VALUE_OLD'.
st_fieldcat-ref_tabname = 'CDPOS'.
st_fieldcat-ref_fieldname = 'VALUE_OLD'.
st_fieldcat-row_pos = '1'.
st_fieldcat-outputlen = '20'.
st_fieldcat-col_pos = lva_col_pos.
append st_fieldcat to pa_it_fieldcat.
endform. " build_field_catalog
*& Form output_report
text
form output_report tables pa_it_fieldcat type slis_t_fieldcat_alv
pa_it_merged type ty_it_merged.
Local variables
data:
lva_formname type slis_formname,
lva_repid like sy-repid.
lva_repid = sy-repid.
lva_formname = 'ALV_USER_COMMAND'.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = lva_repid
i_callback_user_command = lva_formname
i_save = 'A'
is_variant = st_variant
it_fieldcat = pa_it_fieldcat[]
tables
t_outtab = pa_it_merged
exceptions
program_error = 1
others = 2.
endform. " output_report
*& Form alv_user_command
text
form alv_user_command using pa_ucomm like sy-ucomm
pa_selfield type slis_selfield.
Local work areas
data:
lwa_merged type ty_merged.
clear lwa_merged.
read table it_merged into lwa_merged
index pa_selfield-tabindex.
case pa_selfield-fieldname.
when 'VBELN'.
Contract Number
set parameter id 'AUN' field lwa_merged-vbeln.
call transaction 'VA03' and skip first screen.
S_BCE_68001393
when 'USERNAME'.
Username
set parameter id 'username' field lwa_merged-username.
call transaction 'S_BCE_68001393' and skip first screen.
when 'KUNNR'.
Customer number
set parameter id 'KUN' field lwa_merged-kunnr.
set parameter id 'VKO' field space.
set parameter id 'VTW' field space.
set parameter id 'SPA' field space.
call transaction 'XD03' and skip first screen.
endcase.
endform. " alv_user_command
*& Form read_text
text
form read_text using pa_id
pa_inline_count
pa_name
pa_object
pa_text.
Local internal tables
data:
lit_inlines type ty_it_lines,
lit_lines type ty_it_lines.
Local work areas
data:
lwa_lines type ty_lines.
Local variables
data:
lva_tdname like thead-tdname.
refresh: lit_inlines,
lit_lines.
lva_tdname = pa_name.
call function 'READ_TEXT_INLINE'
exporting
id = pa_id
inline_count = pa_inline_count
language = sy-langu
name = lva_tdname
object = pa_object
tables
inlines = lit_inlines
lines = lit_lines
exceptions
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
others = 7.
loop at lit_lines into lwa_lines.
concatenate pa_text
lwa_lines-tdline
into pa_text separated by space.
endloop.
endform. " read_text ENDLOOP.Hi
As per your code here:
"-------------- Changes are made here ----------------
*Extract Material details from vbap
select matnr arktx
from vbap
into table it_vbap
for all entries in it_vbak
where
vbeln eq it_vbak-vbeln
and posnr eq co_posnr_initial. " Here the condition specifies you want to select sales order items where there is no item number, which i beleive shouldnt be the case
" -----------------End of Change ----------------------
Try as below by commenting the Item Number is INITIAL condition:
select matnr arktx
from vbap
into table it_vbap
for all entries in it_vbak
where
vbeln eq it_vbak-vbeln.
"and posnr eq co_posnr_initial.
Regards
Eswar -
Unable to get the values from PAYLOAD
Hi,
i'm unable to get the values of payload. When i use
currentTask = client.getTaskQueryService().getTaskDetailsById(workflowContext, taskID);
Element payload = (Element)currentTask.getPayloadAsElement();
node = (Element)payload.getFirstChild();
System.out.println(node.getElementsByTagName("documentName").item(0).getNodeValue());
I get null but i instantiate the bpel process with a value and i have
- <payload>
- <ns1:DocumentReviewProcessRequest xmlns:ns1="http://xmlns.oracle.com/bpel/Review">
<ns1:documentTitle>vbvnmbvn</ns1:documentTitle>
<ns1:documentName>bvnbvnvn</ns1:documentName>
<ns1:URI>http://www.first.pt</ns1:URI>
<ns1:assignees>gestdoc</ns1:assignees>
<ns1:groups />
</ns1:DocumentReviewProcessRequest>
</payload>
if i use System.out.println(node.getElementsByTagName("HELLO").item(0).getNodeValue());
I get a normal erro 'cause this variable don't exist...
Can someone please help me?
Thanks!!I think the problem is UME related. I had the same problem once. Try using a system user for searching, instead of the logged on user.
Like this:
com.sapportals.portal.security.usermanagement.IUser user = WPUMFactory.getUserFactory().getUser("cmadmin_service");
Please reward the points if this helps. -
Why iam unable to get the valu from combobox
when i run this code
everytime iam getting blank alert
y iam unable to get the selected item from combo box
thank u
<%@ page import="java.util.Date"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%><%@page import="java.sql.*,java.util.*,java.text.*,java.util.ArrayList, java.util.List,org.joda.time.DateTimeConstants,org.joda.time.LocalDate,
org.joda.time.Weeks"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<TITLE>Reading Data From Text Fields</TITLE>
</HEAD><BODY onload=Datevalue()>
<form name="form1" action ="" method="post" onSubmit="update();">
<img src="nendrasys_logo.gif" align="right"></img>
<b><font color="669900"><h4 align="left">UserName:</font>
<jsp:useBean id="user" scope="session" class="nendrasys.User" />
<jsp:getProperty name="user" property= "name"/>
    
<b><font color="90be00"><h4 align="left">Designation:</font>
<jsp:getProperty name="user" property= "designation"/>
<br><font color="669900"><h4 align="right">Project:</font>
<select name="Projects">
<option>Project:1</option>
<option>Project:2</option>
<option>Project:3</option>
<option>Project:4</option>
<option>Project:5</option>
</select>
<%! String s; %>
<% DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd");
Date date = new Date();
//out.println(dateFormat.format(date));
s= dateFormat.format(date);
%>
<select name="Dates" sizes=1 id="dates" onchange="Datevalue(this.value)">
<script type="text/javascript">
<!--//
var begDate = new Date("10/01/2008");
var endDate = new Date();
var previousDate =new Date();
var presentDate =new Date("<%=s %>");
endDate.setDate(presentDate.getDate()+14);
begDate.setDate(begDate.getDate()+(6-begDate.getDay()));
while (begDate <= endDate) {
var datestring=[begDate.getDate(),(begDate.getMonth()+1),begDate.getFullYear()].join('/');
// var datestring=[begDate.getDate().padZero(2),(begDate.getMonth()+1).padZero(2),begDate.getFullYear()].join('/');
if(previousDate < presentDate && presentDate <= begDate )
document.writeln('<option selected>'+(datestring)+'</option>')}
else
document.writeln('<option>'+(datestring)+'</option>')};
previousDate.setDate(begDate.getDate());
previousDate.setMonth(begDate.getMonth());
previousDate.setYear(begDate.getYear());
begDate.setDate(begDate.getDate()+7);
document.writeln('</select>');
//-->
</script>
<br><br>
<TABLE BORDER="2" BORDERCOLOR="#336699" CELLPADDING="2" CELLSPACING="2" WIDTH="100%">
<TR>
<TD>   </TD>
<TD bgcolor="669900"><label id="sun"></label></TD>
<TD bgcolor="90be00"><label for="mon" id="Mon">Mon</label></TD>
<TD bgcolor="669900"><label for="tue" id="tue">Tue</label></TD>
<TD bgcolor="90be00"><label for="wed" id="wed">Wed</label></TD>
<TD bgcolor="669900"><label for="thu" id="thu">Thu</label></TD>
<TD bgcolor="90be00"><label for="fri" id="fri">Fri</label></TD>
<TD bgcolor="669900"><label for="sat" id="sat">Sat</label></TD>
<TD bgcolor="90be00"><label for="tot" id="tot">Total</label></TD>
</TR>
<tr>
<th>Project Work</th>
<td bgcolor="669900"><input type="text" name="c11" size="2" value="7" onBlur="javascript:document.frm.c12.value = document.frm.c11.value"></td>
<td bgcolor="90be00"><input type="text" name="c12" size="2" value="3"></td>
<td bgcolor="669900"><input type="text" name="c13" size="2"></td>
<td bgcolor="90be00"><input type="text" name="c14" size="2"></td>
<td bgcolor="669900"><input type="text" name="c15" size="2"></td>
<td bgcolor="90be00"><input type="text" name="c16" size="2"></td>
<td bgcolor="669900"><input type="text" name="c17" size="2"></td>
<td bgcolor="90be00"><input type="text" name="c18" size="4"></td>
</tr>
<tr>
<th>Internal N/C</th>
<td bgcolor="669900"><input type="text" name="c21" size="2"></td>
<td bgcolor="90be00"><input type="text" name="c22" size="2"></td>
<td bgcolor="669900"><input type="text" name="c23" size="2"></td>
<td bgcolor="90be00"><input type="text" name="c24" size="2"></td>
<td bgcolor="669900"><input type="text" name="c25" size="2"></td>
<td bgcolor="90be00"><input type="text" name="c26" size="2"></td>
<td bgcolor="669900"><input type="text" name="c27" size="2"></td>
<td bgcolor="90be00"><input type="text" name="c28" size="4"></td>
</tr>
<tr>
<th>Public Holidays</th>
<td bgcolor="669900"><input type="text" name="c31" size="2"></td>
<td bgcolor="90be00"><input type="text" name="c32" size="2"></td>
<td bgcolor="669900"><input type="text" name="c33" size="2"></td>
<td bgcolor="90be00"><input type="text" name="c34" size="2"></td>
<td bgcolor="669900"><input type="text" name="c35" size="2"></td>
<td bgcolor="90be00"><input type="text" name="c36" size="2" ></td>
<td bgcolor="669900"><input type="text" name="c37" size="2"></td>
<td bgcolor="90be00"><input type="text" name="c38" size="4"></td>
</tr>
<tr>
<th>Holidays Taken</th>
<td bgcolor="669900"><input type="text" name="c41" size="2"></td>
<td bgcolor="90be00"><input type="text" name="c42" size="2"></td>
<td bgcolor="669900"><input type="text" name="c43" size="2"></td>
<td bgcolor="90be00"><input type="text" name="c44" size="2"></td>
<td bgcolor="669900"><input type="text" name="c45" size="2"></td>
<td bgcolor="90be00"><input type="text" name="c46" size="2"></td>
<td bgcolor="669900"><input type="text" name="c47" size="2"></td>
<td bgcolor="90be00"><input type="text" name="c48" size="4"></td>
</tr>
</TABLE>
<br>
<center><input type="submit" value="Submit" /> </center>
<%
String username = request.getParameter("userid");
String pwd = request.getParameter("pwd");
String connectionURL = "jdbc:mysql://localhost:3306/timestamp";
Connection connection = null;
Statement statement = null;
ResultSet rs = null;
String sql=null;
Class.forName("com.mysql.jdbc.Driver").newInstance();
connection = DriverManager.getConnection(connectionURL, "root","nendrasys");
statement = connection.createStatement();
//rs=statement.executeQuery(sql); %>
</form>
<SCRIPT language='Javascript'>
function update()
alert("ciaoooooo");
<%
try
String value=request.getParameter("c11");
String value1=request.getParameter("c12");
// if(value!=null)
// System.out.println(value);
// System.out.println(value1);
catch(NullPointerException n)
%>
</script>
<SCRIPT language='Javascript'>
function Datevalue(date)
// document.getElementById("dates").innerHTML=document.getElementById("sun").value;
alert(date);
// alert( document.getElementById("dates"))
<% System.out.println("bye");%>
</SCRIPT>
</BODY>
</HTML>You mixed Java and Javascript in the expectation that they runs simultaneously.
You are Wrong.
You need to distinguish between the server side languages and client side languages. Java/JSP runs at the server side and produces a HTML page with other client side stuff in it like CSS and Javascript. When the HTML page is finished, it will be sent to the client and then Java/JSP stops. Once the HTML page is arrived at the client, there is no one line Java code in it, only its output/result. Do a View Source in your favourite web browser to see it. Only from that moment on, Javascript runs and/or can be invoked.
Whenever you want to use Java variables in Javascript, you need to print them out as a Javascript variable. Whenever you want to use Javascript variables in Java, you need to invoke a request to the server and pass them as parameters. The request can be either synchronous (a link or a form submit) or asynchronous (ajaxical). -
How to get JSON item in web service workflow?
Im tried to get json item in workflow,But was unable to obtain "RtnCode",how to do it?
This my JSON,
"MerchantID": "1032017",
"RtnCode": "2",
"RtnMsg": "Get Succeeded",
My workflow :
Get RtnCodefrom
Variable: DealItems
Error code:
RequestorId: f85b0795-6682-fde7-0000-000000000000.
Details: An unhandled exception occurred during the execution of the workflow instance.
Exception details: System.InvalidOperationException: Looking up a value using a key is not supported on an instance of 'Microsoft.Activities.Dynamic.DynamicPrimitive'. at Microsoft.Activities.Dynamic.DynamicItem.TryGetValue(String key, DynamicItem&
value) at Microsoft.Activities.Dynamic.DynamicValueBuilder.PathSegmentFactory.ObjectPathSegment.Get(DynamicItem obj) at Microsoft.Activities.GetDynamicValueProperty`1.Execute(CodeActivityContext context) at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance
instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation) Exception from activity
GetDynamicValueProperty<String> Start Sequence Flowchart Sequence Pay.WorkflowXaml_07f732da_c82a_4234_abd5_34c32c637413Hi Felaray,
I have a similar issue and what I tried to do is to install JSON.NET in my project and used the "Assign" activity (under "Primitives" category on the toolbox) to assign the string to an object:
Newtonsoft
.Json.JsonConvert.DeserializeObject(resultFromCustomActivity)
but unfortunately did not work. I am getting this exception:
Visual Studio 2013 Workflow: Failed to translate expression because of the following error: Translating the method or one of its overloads to an activity is not supported
If you cannot really change the source header, you might need to create a code custom activity and pass in your string and use JSON.NET, parse it and return what you want.
Another "easier" option might involve doing some nasty parsing (using the Assign Activity) by finding the index of your "RntCode:" and getting the next set of characters before the comma. Since the .NET classes to utilize are limited
it would be worth trying to use a RegEx
resultFromCustomActivity
.Substring(0,
10) -
Get Open Items for GL Reconciliation account for Customers
Hi All
We have a difference on our AR to GL reconciliation, we are unable to view all postings to the GL account using Tcodes FBL3N or FS10N ? - the function is not available on that GL account.
how do we compare the open items on customer accounts to the postings in the GL reconciliation account if we can not get a line item report ?
Thanks in advance for any assistance
DylanHi,
Generally for recon accounts, the indicator Lina item display will set to off. So you will not get line items for your recon account in FBL3N report. But still you can get the GL balances in FS10N for that recon accounts.
If you want to see the line items also for that recon account, then go to master data of that GL and select Line item display option and block the account in company code for postings temporarly.
Now run report RFSEPA01 in SE38 for you recon GL account.
Again go to GL master and unblock the blocking indicator.
Now check the line items in FBL3N for that recon account.
Thanks,
Srinu -
Error code -43 - unable to get file path when burning DVD
I just installed Tiger on my son's iMac 500. Borrowed a Lacie DVD r/w and tried to burn the contents of a user folder to a DVD-R. It burned part of it, but failed with the following error:
The operation can not be completed because one or more
required items an not be found. (Error coed -43).
Could not open the dat fork of "<unable to get file path>" (-43).
I was able to burn a CD on the drive, but that was for another user directory that fit on a CD-R. The folder I was trying to burn to the DVD was about 1.1 G.
Thanks,
AlfredoI just installed Tiger on my son's iMac 500. Borrowed a Lacie DVD r/w and tried to burn the contents of a user folder to a DVD-R. It burned part of it, but failed with the following error:
The operation can not be completed because one or more
required items an not be found. (Error coed -43).
Could not open the dat fork of "<unable to get file path>" (-43).
I was able to burn a CD on the drive, but that was for another user directory that fit on a CD-R. The folder I was trying to burn to the DVD was about 1.1 G.
Thanks,
Alfredo -
Get folder Item using folder Path
Hi,,
I know the folder path = /globalsite/F1/Lib1
How to get the Item object of this folder? can you please post code for this.http://download-west.oracle.com/docs/cd/B32119_01/doc/contentdb.1012/b31408/oracle/ifs/fdk/FileManager.html#resolvePath_java_lang_String__oracle_ifs_fdk_AttributeRequest___
String path = "/globalsite/F1/Lib1";
FileManager fm = ...
AttributeRequest[] requestedAttributes = null;
Item folder = fm.resolvePath(path, requestedAttributes);
System.out.println(folder.getName()); -
Hi,
I got the following error message when I would like to export my appliction: Unable to get component ID for: schema.object_name (WWV-13404). The 'appl_name' is the name of the application and the 'object_name' is the name of the object, actually it is a dynamic page.
The object itself is not listed in the list of the objects, maybe it was there sometimes in the past and I deleted it but the system can see it somewhere I guess.
So, how I can remove any remaining links to this object, or the object itself.
I appreciate any help!
Regards,
AttilaSuggestion.... change the text you need to find in your development or sandbox...any change and save. Then go to table STXH and find the change you just made, searching by using the date and userid fields....
The entry in STXH is what you will need to find the texts...substitute the "real" data values like document number, item, line, etc., in precisely the format appearing in TDNAME in STXH, along with object, id and sy-langu, etc.
Generally, in code, I read for an entry in STXH populating my header of type thead. If I get a return code of zero, I know that long texts exists, and then I supply export values using my stucture of type thead, using thead-fieldname to the READ_TEXT call export parameters,....etc.
Maybe you are looking for
-
Download Program is not working
Hi all, I am using Sun APPserver for my web aopps.I am doing a Download and Upload module using ApacheCommons Upload package for upload operation. For Download I just gave a hyperlink to the file path which should be downloaded and the link points to
-
Hi Have just upgraded from MS Office 2010 to Office 2013. Have lost the menu option "Acrobat" for creating pdfs (using Acrobat X). How to I get it back? Cheers
-
Me_po_pricing_cust badi
Hi iam using BADI 'me_po_pricing_cust' in me21n. I wanted to sum all the net price in the item data and have to chk the table... But iam getting sinble line item wsie data . so the previous value is gone.. How to get that Cheers Christina...
-
CSS 11503 Load Balancing Verification
Alright, so I have toiled long and hard to get this right. I think I have the config down but I am unsure on how to verify how this load balancing is working. Here is the Content Config that I am speaking of: content cad-rule add service wls1-e0
-
Cant find BI Content Objects..
Hi Friends, I am unable to find any SAP Delivered Objects under Business Content ( ex :Busines Content Cubes , ODS, InfoObjects , BC Reports... etc) I can see only Technical Content Objects Its really urgent to me.. Do i need to do any Configuratio