TREX not updating index of UME
We have created an index of the UME users for the Who's Who search functionality. Our UME is connected to an Active Directory LDAP. Everything is working except that changes made to AD are not being updated in the index. The index and its data source are scheduled to run its crawler every night. In particular, it is the telephone property that we noticed is not updating.
What am I missing?
Maximum points awarded to the first correct solution.
Here you go. You can see where PRINCIPAL_MODIFY_DATE has been mapped. All the other mappings are pretty standard for AD.
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: //shared_tc/com.sapall.security/630_SP_COR/src/_deploy/dist/configuration/shared/dataSourceConfiguration_ads_readonly_db.xml#6 $ from $DateTime: 2004/08/20 09:55:24 $ ($Change: 17140 $) -->
<!DOCTYPE dataSources SYSTEM "dataSourceConfiguration.dtd">
<dataSources>
<dataSource id="PRIVATE_DATASOURCE" className="com.sap.security.core.persistence.datasource.imp.DataBasePersistence" isReadonly="false" isPrimary="true">
<homeFor>
<principals>
<principal type="group"/>
<principal type="user"/>
<principal type="account"/>
<principal type="team"/>
<principal type="ROOT"/>
<principal type="OOOO"/>
</principals>
</homeFor>
<notHomeFor/>
<responsibleFor>
<principals>
<principal type="group"/>
<principal type="user"/>
<principal type="account"/>
<principal type="team"/>
<principal type="ROOT"/>
<principal type="OOOO"/>
</principals>
</responsibleFor>
<privateSection/>
</dataSource>
<dataSource id="XXXXXXXXX" className="com.sap.security.core.persistence.datasource.imp.LDAPPersistence" isReadonly="true" isPrimary="true">
<homeFor/>
<responsibleFor>
<principal type="account">
<nameSpace name="com.sap.security.core.usermanagement">
<attributes>
<attribute name="j_user"/>
<attribute name="logonalias"/>
<attribute name="j_password"/>
<attribute name="userid"/>
</attributes>
</nameSpace>
</principal>
<principal type="user">
<nameSpaces>
<nameSpace name="com.sap.security.core.usermanagement">
<attributes>
<attribute name="firstname" populateInitially="true"/>
<attribute name="displayname" populateInitially="true"/>
<attribute name="lastname" populateInitially="true"/>
<attribute name="fax"/>
<attribute name="email"/>
<attribute name="title"/>
<attribute name="department"/>
<attribute name="description"/>
<attribute name="mobile"/>
<attribute name="telephone"/>
<attribute name="streetaddress"/>
<attribute name="city"/>
<attribute name="company"/>
<attribute name="manager"/>
<attribute name="uniquename" populateInitially="true"/>
<attribute name="kpnprefix"/>
<attribute name="krb5principalname"/>
<attribute name="dn"/>
<attribute name="country"/>
<attribute name="jobtitle"/>
<attribute name="zip"/>
<attribute name="state"/>
<attribute name="pobox"/>
<attribute name="PRINCIPAL_MODIFY_DATE"/>
</attributes>
</nameSpace>
<nameSpace name="com.sap.security.core.usermanagement.relation">
<attributes>
<attribute name="PRINCIPAL_RELATION_PARENT_ATTRIBUTE"/>
</attributes>
</nameSpace>
<nameSpace name="$usermapping$">
<attributes>
<attribute name="REFERENCE_SYSTEM_USER"/>
</attributes>
</nameSpace>
</nameSpaces>
</principal>
<principal type="group">
<nameSpaces>
<nameSpace name="com.sap.security.core.usermanagement">
<attributes>
<attribute name="displayname" populateInitially="true"/>
<attribute name="description" populateInitially="true"/>
<attribute name="uniquename"/>
</attributes>
</nameSpace>
<nameSpace name="com.sap.security.core.usermanagement.relation">
<attributes>
<attribute name="PRINCIPAL_RELATION_MEMBER_ATTRIBUTE"/>
<attribute name="PRINCIPAL_RELATION_PARENT_ATTRIBUTE"/>
</attributes>
</nameSpace>
<nameSpace name="com.sap.security.core.bridge">
<attributes>
<attribute name="dn"/>
</attributes>
</nameSpace>
</nameSpaces>
</principal>
</responsibleFor>
<attributeMapping>
<principals>
<principal type="account">
<nameSpaces>
<nameSpace name="com.sap.security.core.usermanagement">
<attributes>
<attribute name="j_user">
<physicalAttribute name="samaccountname"/>
</attribute>
<attribute name="logonalias">
<physicalAttribute name="samaccountname"/>
</attribute>
<attribute name="j_password">
<physicalAttribute name="unicodepwd"/>
</attribute>
<attribute name="userid">
<physicalAttribute name="*null*"/>
</attribute>
</attributes>
</nameSpace>
</nameSpaces>
</principal>
<principal type="user">
<nameSpaces>
<nameSpace name="com.sap.security.core.usermanagement">
<attributes>
<attribute name="firstname">
<physicalAttribute name="givenname"/>
</attribute>
<attribute name="displayname">
<physicalAttribute name="displayname"/>
</attribute>
<attribute name="lastname">
<physicalAttribute name="sn"/>
</attribute>
<attribute name="fax">
<physicalAttribute name="facsimiletelephonenumber"/>
</attribute>
<attribute name="uniquename">
<physicalAttribute name="samaccountname"/>
</attribute>
<attribute name="loginid">
<physicalAttribute name="*null*"/>
</attribute>
<attribute name="email">
<physicalAttribute name="mail"/>
</attribute>
<attribute name="mobile">
<physicalAttribute name="mobile"/>
</attribute>
<attribute name="telephone">
<physicalAttribute name="telephonenumber"/>
</attribute>
<attribute name="department">
<physicalAttribute name="department"/>
</attribute>
<attribute name="description">
<physicalAttribute name="description"/>
</attribute>
<attribute name="streetaddress">
<physicalAttribute name="streetaddress"/>
</attribute>
<attribute name="city">
<physicalAttribute name="l"/>
</attribute>
<attribute name="company">
<physicalAttribute name="company"/>
</attribute>
<attribute name="manager">
<physicalAttribute name="manager"/>
</attribute>
<attribute name="kpnprefix">
<physicalAttribute name="samaccountname"/>
</attribute>
<attribute name="krb5principalname">
<physicalAttribute name="userprincipalname"/>
</attribute>
<attribute name="dn">
<physicalAttribute name="distinguishedname"/>
</attribute>
<attribute name="country">
<physicalAttribute name="country"/>
</attribute>
<attribute name="jobtitle">
<physicalAttribute name="title"/>
</attribute>
<attribute name="zip">
<physicalAttribute name="postalCode"/>
</attribute>
<attribute name="state">
<physicalAttribute name="st"/>
</attribute>
<attribute name="pobox">
<physicalAttribute name="postOfficeBox"/>
</attribute>
<attribute name="PRINCIPAL_MODIFY_DATE">
<physicalAttribute name="modifyTimeStamp"/>
</attribute>
</attributes>
</nameSpace>
<nameSpace name="com.sap.security.core.usermanagement.relation">
<attributes>
<attribute name="PRINCIPAL_RELATION_PARENT_ATTRIBUTE">
<physicalAttribute name="memberof"/>
</attribute>
</attributes>
</nameSpace>
<nameSpace name="$usermapping$">
<attributes>
<attribute name="REFERENCE_SYSTEM_USER">
<physicalAttribute name="sapusername"/>
</attribute>
</attributes>
</nameSpace>
</nameSpaces>
</principal>
<principal type="group">
<nameSpaces>
<nameSpace name="com.sap.security.core.usermanagement">
<attributes>
<attribute name="displayname">
<physicalAttribute name="displayname"/>
</attribute>
<attribute name="description">
<physicalAttribute name="description"/>
</attribute>
<attribute name="uniquename" populateInitially="true">
<physicalAttribute name="cn"/>
</attribute>
</attributes>
</nameSpace>
<nameSpace name="com.sap.security.core.usermanagement.relation">
<attributes>
<attribute name="PRINCIPAL_RELATION_MEMBER_ATTRIBUTE">
<physicalAttribute name="member"/>
</attribute>
<attribute name="PRINCIPAL_RELATION_PARENT_ATTRIBUTE">
<physicalAttribute name="memberof"/>
</attribute>
</attributes>
</nameSpace>
<nameSpace name="com.sap.security.core.bridge">
<attributes>
<attribute name="dn">
<physicalAttribute name="*null*"/>
</attribute>
</attributes>
</nameSpace>
</nameSpaces>
</principal>
</principals>
</attributeMapping>
<privateSection>
<ume.ldap.access.server_type>MSADS</ume.ldap.access.server_type>
<ume.ldap.access.context_factory>com.sun.jndi.ldap.LdapCtxFactory</ume.ldap.access.context_factory>
<ume.ldap.access.authentication>simple</ume.ldap.access.authentication>
<ume.ldap.access.flat_group_hierachy>true</ume.ldap.access.flat_group_hierachy>
<ume.ldap.access.user_as_account>true</ume.ldap.access.user_as_account>
<ume.ldap.access.dynamic_groups>false</ume.ldap.access.dynamic_groups>
<ume.ldap.access.ssl_socket_factory>com.sap.security.core.server.https.SecureConnectionFactory</ume.ldap.access.ssl_socket_factory>
<ume.ldap.access.objectclass.user>User</ume.ldap.access.objectclass.user>
<ume.ldap.access.objectclass.uacc>User</ume.ldap.access.objectclass.uacc>
<ume.ldap.access.objectclass.grup>Group</ume.ldap.access.objectclass.grup>
<ume.ldap.access.naming_attribute.user>cn</ume.ldap.access.naming_attribute.user>
<ume.ldap.access.auxiliary_naming_attribute.user>samaccountname</ume.ldap.access.auxiliary_naming_attribute.user>
<ume.ldap.access.naming_attribute.uacc>cn</ume.ldap.access.naming_attribute.uacc>
<ume.ldap.access.auxiliary_naming_attribute.uacc>samaccountname</ume.ldap.access.auxiliary_naming_attribute.uacc>
<ume.ldap.access.naming_attribute.grup>cn</ume.ldap.access.naming_attribute.grup>
<ume.ldap.access.extended_search_size>200</ume.ldap.access.extended_search_size>
<ume.ldap.access.server_name>XXXXXXXXX</ume.ldap.access.server_name>
<ume.ldap.access.server_port>XXXXX</ume.ldap.access.server_port>
<ume.ldap.access.user>XXXXXXXXX</ume.ldap.access.user>
<ume.ldap.access.password>XXXXXXXX</ume.ldap.access.password>
<ume.ldap.access.base_path.user>XXXXXX</ume.ldap.access.base_path.user>
<ume.ldap.access.base_path.grup>XXXXXX</ume.ldap.access.base_path.grup>
<ume.ldap.negative_user_filter></ume.ldap.negative_user_filter>
</privateSection>
</dataSource>
</dataSources>
Similar Messages
-
Not update index of deleted text
Hello All,
I wanted to know if I create a context index on a text column in a table, is there a way to remove the column content without changing the index. That means I'll still add new rows to the database and index them but I can still look for the row which content I removed (or set to empty string).
Thanks
TalThat explanation definitely helps! Thanks.
Ideally, you would index from the source. You could use a USER_DATASTORE for the indexing and never have to think about indexing the local, short-lived copy of the story again.
You mentioned:
"if oracle calls the servlet page every time it indexes we violate our agreement"
If you sync, you will only be indexing new docs (new rows to the table), not reindex every time. The story would be called once for the initial indexing and that is it. Will this still violate your agreement?
Is the reason for purging after 90 days a contractual obligation? If not, the record could always have an 'inactive' flag, end date, or something else that you can use to redirect to the web service. If it is a contract issue, back to my first question.
Another not so ideal solution that I have absolutely never tested nor would recommend in most cases (enough disclaimers?). Two tables, one with the docs that are being added/deleted, and another that is indexed on a dummy column with a USER_DATASTORE and procedure that reads content from table1. Per the docs:
"if the stored procedure makes use of other columns, and those column values change, the row will not be re-indexed. The row is re-indexed only when the indexed column changes. "
Never change the indexed column and you can delete all day in the source table. Also, never rebuild or recreate your index. Sync would be the only way to go, so it is quite risky to try this.
-Ron -
Hi
I have a problem regarding the TREX.
I have this folder indexed.
I create resources in this folder by a custom WDP application.
Basically i will upload a .pdf or .doc file from desktop to this folder.
Now the problem is some of the documents are not getting indexed.
There are very few documents though, but i cant find a reason why it is not getting indexed.
Now, when i check the properties of the documents which gets failed, i dont see any problem.
If i simple press "Save" button, the document starts gettign indexed and thus it gets indexed.
Here, i am not changing any property, but simply pressing the save button.
Till date, i couldnt reproduce the error.
But since this error was reported from Prod, we want to know why this error comes and how it can be avoided.
Please give ur thoughts...
Regards
BPHi Piyush,
My case is like some docuemtns didnt get indexed.
Well some others working perfectly fine.
Even now if i upload some docuemtns, it is getting indexed.
And as i stated earlier, i goto details view and press "Save", it starts indexing the doc.
So communication to the TREX server is working fine.
The main problem is i cannot replicate the issue.
Here is the code sample i use to upload the document to KM
public boolean uploadDocument(
final String documentName,
final byte[] documentContent,
final String location,
final String fileExtension,
final String company,
final String brokerInstitution,
final Date publishedDate,
final String title)
throws UserManagementException, ParseException, WcmException {
final IContent fileContent;
final RID rid;
final ICollection collection;
final IResource createdRes;
fileContent = this.getResContent(documentContent, fileExtension);
rid = RID.getRID(location);
collection =
(ICollection) this.resourceFactory.getResource(
rid,
this.resourceContext);
//Check for duplicate
String tempStr =
(new StringBuffer()
.append(location)
.append('/')
.append(documentName))
.toString();
final IResource reportResource =
this.resourceFactory.getResource(
RID.getRID(tempStr),
this.resourceContext);
if (reportResource == null && collection != null) {
final IPropertyMap propertyMap =
this.getMetadatapropertyMap(
company,
brokerInstitution,
publishedDate,
title);
createdRes =
collection.createResource(
documentName,
propertyMap,
fileContent);
return true;
} else {
return false;
public IPropertyMap getMetadatapropertyMap(
final String company,
final String brokerInstitution,
final Date publishedDate,
final String title)
throws ResourceException, ParseException {
final IMutablePropertyMap propertyMap = new MutablePropertyMap();
final String propertyNamespace = getproperty("PROPERTIES_NAMESPACE");
final String companyNameID = getproperty("COMPANY_NAME");
final String brokerInstitutionID = getproperty("BROKER_INSTITUTION");
final String publishDateID = getproperty("PUBLISHED_DATE");
final String createdDateID = getproperty("CREATED_DATE");
final String titleID = getproperty("TITLE");
IPropertyName propertyName =
new PropertyName(propertyNamespace, companyNameID);
IProperty property = new MutableProperty(propertyName, company);
propertyMap.put(property);
propertyName = new PropertyName(propertyNamespace, brokerInstitutionID);
property = new MutableProperty(propertyName, brokerInstitution);
propertyMap.put(property);
propertyName = new PropertyName(propertyNamespace, publishDateID);
property = new MutableProperty(propertyName, publishedDate);
propertyMap.put(property);
//Calendar cal = Calendar.getInstance();
//Date today = new Date(cal.getTime().getTime());
java.util.Date date = new java.util.Date();
Date today = new Date(date.getTime());
propertyName = new PropertyName(propertyNamespace, createdDateID);
property = new MutableProperty(propertyName, today);
propertyMap.put(property);
propertyName = new PropertyName(propertyNamespace, titleID);
property = new MutableProperty(propertyName, title);
propertyMap.put(property);
return propertyMap;
Regards
BP -
Hi,
I am facing a problem where index created on my table is not updating. Please find the steps below to understand the situation.
1. I am creating a oracle database by running a script.
2. I have one table which can have millions of records in it. So I have created one index on that table and works well when I am in development.
3. After installation I use my application and inserts millions of records in that empty table.
4. Now if I execute a query which executes select query and gives me the desired records does not give me result fast.
5. But it gives me result in less than a minute If I drop that index manually and then create it again by running script in Oracle SQL Developer.
I am using Oracle 10g Express Edition. I searched online and found one ONLINE option while altering the index but it is not supported on Express version.
What is going wrong? How can I resolve this problem?
Regards,
Jigs
Edited by: Jignesh Parikh on Mar 18, 2010 6:01 AMyou might need to gather stats on the table and index.
exec dbms_stats.gether_table_stats(user, 'YOURTABLENAME', cascade => true);you can also gather_index_stats, see the dbms_stats package. -
Indexed field num_comments on blog post not updating during incremental crawl
Hi,
Have a webpart that rolls blog posts from MySite and other Team sites.
Everything works fine excepts that the property ows_numcomments (which I have a managed property mapped to) is only updated after a full crawl has run (ie once per night or manually started).
Why is it so and what can I do to make updating during an incremental crawl?
Thanks,
/Owe
Background:
Query resulttype is RelevantResults
TrimDuplicate is true
MPNumComments is mapped to ows_numcomments
Searchstring
"SELECT Title, Author, Path, SiteTitle, MPNumComments, MPPublishedDate FROM SCOPE() WHERE scope='Blogs' AND contentclass='STS_ListItem_Posts' ORDER BY MPPublishedDate DESC";Can you do full crawl and check this property is getting updated. If not then either incremental crawl is not updating the value or there is some problem with the field configuration.
Regards,
Milan Chauhan
LinkedIn
|
Twitter | Blog
| Email -
Can not update tab if its not the default sub-tab.
Can not update tab if its not the default sub-tab.
JDeveloper Version 10.1.2.1.0 (Build 1913)
Hi. I have a problem with a lovOpenWindowAction
The UIX is created with a master UIX and have several sub-tab that is included as UIX-pages.
The lovOpenWindowAction lies in the included UIX-page
The sub-tab I have a problem with has a table with users. Then I have a Create New button than I want to click on and select a new user that should be included in the table in the sub-tab.
When I click on the button I open a LOV-window. Here I select the user that I want to add.
In the LOV Action-class I save my new value in the database. Then in the method onLovUpdate I update the iterator with the new values from the database.
But in my GUI the subtab is not updated until I click on it.
But if I make the subtab the default subtab then it all works just fine and the GUI is updated directly.
Here is the code for the tableAction in the subtab. This code lies in an included UIX-page. Target is the table id.
<tableActions>
<button text="Create New" id=" createNewRollperson" accessKey="N">
<primaryClientAction>
<lovOpenWindowAction destination="FiskeRollpersonerLOV.do"
source=" createNewRollperson "
targets="joinedRollpersfiskeer message"/>
</primaryClientAction>
</button>
</tableActions>
Here is some code from the master UIX-page
<subTabLayout id="flikar">
<subTabs>
<subTabBar selectedIndex="${ui:defaulting(param.index,0)}">
<contents>
<link id="resorFlik" text="Resor"
disabled="${sessionScope.fiske.id == null}"
selected="${(param.source == 'resorFlik') or empty param.source}">
<primaryClientAction>
<firePartialAction event="changeTab" targets="flikar globalHeader">
<parameters>
<parameter key="source" value="resorFlik"/>
</parameters>
</firePartialAction>
</primaryClientAction>
</link>
<link id="rollpersonerFlik" text="Rollpersoner"
disabled="${sessionScope.fiske.id == null}"
selected="${param.source == 'rollpersonerFlik'}">
<primaryClientAction>
<firePartialAction event="changeTab" targets="flikar globalHeader">
<parameters>
<parameter key="source" value="rollpersonerFlik"/>
</parameters>
</firePartialAction>
</primaryClientAction>
</link>
</contents>
</subTabBar>
</subTabs>
<contents>
<switcher childName="${param.source}"
defaultCase=ResorFlik">
<case name="resorFlik">
<include node="${ctrl:parsePage(uix, 'includes/ResorFlik')}"/>
</case>
<case name="rollpersonerFlik">
<include node="${ctrl:parsePage(uix, 'includes/FiskeRollpersonerFlik')}"/>
</case>
</switcher>
</contents>
</subTabLayout>
What am I missing?? I cant have this subtab as the default subtab! Please help me with a solution!hi,
Change the condition type to manual entry.
or
for example delivery costs will be different at the time of PO and actual delivery costs then at the time of invoice we select planned delivery costs and settle them first with the actual delivery cost.
Thanks & Regards,
Kiran -
Data not updating from psa into Data Targets
Hiii,
We have started data upload in info cubes from psa . The number of records was 4 in psa . But after waiting for at least 3 hours ,still the data is not updated in info cube . The data which we want to upload in info cube (of stock) is of past date which due to some reason failed to update in BI from ECC . To upload the same that is data of past date we have deleted the setup table in ECC and then after filling the data again in set up tables, created a new info package from which uploaded data in PSA . But while trying to upload data in info cubes,it is not getting updated and the request status is showing still green yellow in psa.
Please suggest how to resolve this issue.
Thanks and regardsAre you loading material movements from 2LIS_03_BF in to cube? If so, please look at the below link for inventory data loads.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/906b837a-0d54-2c10-08b8-bde70337547e?QuickLink=index&overridelayout=true
Regards,
JB -
BPL Sales orders: Updating index tables
Hello forum,
After using BPL to copy sales orders, index tables are not updated. Examples of these tables are VAKPA (sales index by partner function), VAPMA (sales index by material), VLPMA (deliveries by material) or VRPMA (billing documents by material).
To correct this what we do is run program RVV05IVB (Reorganization of SD Document Indices) but this report is very time consuming. (it is not that easy to know the documents numbers for all sales / deliveries / billing docs that were copied so we have to run the report for all documents; even if we knew the document numbers, though, the report is very slow because these tables do not have an index by document).
Is this the way to do it, or are other people working differently?
Or should these tables be included in the context?
Thanks in advance,
Rui Dantas>
Nico Gaertner wrote:
> Alternatively you can also create this index on the receiver side and connect these tables with the Table VBUK in the BPL datamodel.
> Nico
In this case you mean sender system, right?
The access won't be that bad if you choose the right table to link: VBAP-MATNR for VAPMA, or VBPA-KUNNR + VBPA-PARVW for VAKPA. I'll try in our system.
It would be even better, of course, if we could link from more than one table (e.g. VBAK + VBAP to VAPMA). This is not possible, right? -
Once in a while my full-crawl fails and stops working properly. The crawllogs show this error for all items crawled.
The item could not be indexed successfully because the item failed in the indexing subsystem. ( The item could not be indexed successfully because the item failed in the indexing subsystem.; Caught exception when preparing generation GID[7570]: (Previous generation
(last=GID[7569], curr=GID[7570]) is still active. Cannot open GID[7570]); Aborting insert of item in Link Database because it was not inserted to the Search Index.; ; SearchID = F201681E-AF1B-45D2-BFFD-6A2582D10C19 )
The full crawls starts out ok, after a while (1.5 hours into the process, 50% of all the data) suddenly no more items can be added to the index.
The index seems to be stuck. The index files on disk are no longer updated (Located in D:\Microsoft
Office Servers\15.0\Data\Office Server\Applications\Search\Nodes\BAADC4\IndexComponent3\storage\data\SP4d91e6081ac3.3.I.0.0\ms\%default) The Index and Admin component start to report these error in the ULS logs:
NodeRunnerIndex: Journal[SP4d91e6081ac3]:
Rolling back GID[7570] to GID[7569] prepGen=GID[7569]
NodeRunnerIndex: Remote
service invocation: method=RollbackGeneration() Service = { Implementation type=Microsoft.Ceres.SearchCore.ContentTargets.IndexRouter.IndexRouter Component: SP4d91e6081ac3I.0.0.IndexRouter Exposer Name: GenerationContentTarget} terminated
with exception: System.InvalidOperationException: Illegal state transition in SP4d91e6081ac3I.0.0.FastServer.FSIndex: Rollback -> Rollback
NodeRummerAdmin: RetryableInvocation[SP4d91e6081ac3]:
Exception invoking index cell I.0.0. Retrying in 16 seconds: System.InvalidOperationException: Illegal state transition in SP4d91e6081ac3I.0.0.FastServer.FSIndex: Rollback -> Rollback
Looks to me the index has troubles updating/merging 'generations'. But the exact working of the indexer is not documented (as far is I know). Let alone how to fix this.
Other (maybe related) observations
Just before the errors start the NodeRunnerIndex starts a 'checkpoint': Journal[SP4d91e6081ac3]:
Starting checkpoint because forceCheckpoint is true.which ends a few moments later with Journal[SP4d91e6081ac3]:
All journal users have completed checkpoint Checkpoint[7560-7569].
Also just before the errors start to appear a TimerJob starts: Name=Timer
Job job-application-server-admin-service. This timerjobs does some strange things to the search topology: Synchronizing
Search Topology for application 'Search Service Application' with active topology [...] and Activating
components. Previous topology: --- New Topology: TopologyId: [...] followed by Starting
to execute Index RedistributeData method.
And right after these two evente the errors start to occur. (each row is a ULS log enrty)
INFO : fsplugin: IndexComponent3-bd83a8aa-923b-4526-97e8-47eac0986ff7-SP4d91e6081ac3.I.0.0 (4236): Prepare generation: 324 documents
IndexRouter[SP4d91e6081ac3]: Caught exception when preparing generation GID[7570]: (External component has thrown an exception.): System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
GenerationDispatcher[SP4d91e6081ac3]: Failed to prepare GID[7570] in 453 ms, failed on cells: [I.0.0], stale services: []
Journal[SP4d91e6081ac3]: Rolling back GID[7570] to GID[7569] prepGen=GID[7569]
Remote service invocation: method=RollbackGeneration() Service = { Implementation type=Microsoft.Ceres.SearchCore.ContentTargets.IndexRouter.IndexRouter Component: SP4d91e6081ac3I.0.0.IndexRouter Exposer Name: GenerationContentTarget} terminated with exception: System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
RetryableInvocation[SP4d91e6081ac3]: Exception invoking index cell I.0.0. Retrying in 2 seconds: System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
Journal[SP4d91e6081ac3]: Rolling back GID[7570] to GID[7569] prepGen=GID[7569]
The Question What is causing this? And how to prevent it? It happend twice in two weeks
nows. Out of the blue, no config change has been made, all disks have enough space.
Known Fix This resolves the problem, but doesn's address the root-cause of the problem!
Stop all crawls.
Wait a few minutes to let the crawl come to a complete stop.
Reset the index (clearing all!)
Start a full-crawl. In the meantime no search is available to the end user (boohoo!)Hi,
I searched for the similar error log, the issue is finally solved by adding more drive space even though they though there is plenty space already.
https://social.technet.microsoft.com/Forums/office/en-US/d06c9b2c-0bc1-44c6-b83a-2dc0b70936c4/the-item-could-not-be-indexed-successfully-because-the-item-failed-in-the-indexing-subsystem?forum=sharepointsearch
http://community.spiceworks.com/topic/480369-the-item-could-not-be-indexed-successfully
From your decription, the issue seems to occur to your full crawl. There is one point in best practise for crawling:
Run full crawls only when it is necessary, the reasons to do a full crawl are as below:
https://technet.microsoft.com/en-us/library/jj219577.aspx#Plan_full_crawl
https://technet.microsoft.com/en-us/library/dn535606.aspx
Regards,
Rebecca Tu
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
File not found: index.cfm
Hi,
I have a new ColdFusion 9 install on a CentOS server with Apache 2.2
I applied the 9.0.1 update.
The install is Standard, not Enterprise.
I can access the admin at /CFIDE/... perfectly.
The problem is when I try to access the first domain I have setup on server, where I installed ColdFusion on Wheels. When I type (using example instead of real domain) www.example.com or www.example.com/index.cfm, I get a ColdFusion error screen saying that it cannot find index.cfm . But index.cfm is there.
I checked ColdFusion logs, and I have noticed that apparently, somewhere, two single quotes are being appended to the file name.
This is what I see in cfserver.log:
05/14 09:28:47 Error [jrpp-140] - File not found: /index.cfm The specific sequence of files included or processed is: /home/folder/folder/index.cfm''
(with those two single quotes in the end. The file, without the single quotes, exists. The path included in the log file is the real valid path)
From application.log:
"Error","jrpp-140","05/14/12","09:28:47",,"File not found: /index.cfm The specific sequence of files included or processed is: /home/folder/folder/index.cfm'' "
Here at application.log it is more obvious that two single quotes seem to be appended to the index.cfm file name.
Can any one help with this? Could be these quotes the problem, and if so, where do I need to change? Any help with this will be really appreciated.
Thanks.
Edit: adding text from exception.log in case it helps
"Error","jrpp-146","05/14/12","10:24:18",,"File not found: /index.cfm The specific sequence of files included or processed is: /home/folder/folder/index.cfm'' "
coldfusion.runtime.TemplateNotFoundException: File not found: /index.cfm
at coldfusion.filter.PathFilter.invoke(PathFilter.java:97)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)
at coldfusion.CfmServlet.service(CfmServlet.java:200)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)I have solved this problem and will leave the solution here in case it helps someone.
It was a permissions issue.
This server has cpanel. The account files are stored at /home/account/public_html folder.
The folder belongs to the account user, and nobody group.
I added coldfusion user to nobody group, and also to the account user group.
Then restarted coldfusion (without restarting it didn't work).
And now coldfusion finds the index.cfm file. -
hi alll
1. i have written below coding for vendor master update. i have two records in text file, in that first record not updated. while updating its shows error. but second record updated. how can i solve. plse help me
2. I want to show the error message or i want to print how can i do it
REPORT ZVENTESTBDC.
data : begin of it_xk01 occurs 0,
LIFNR(10) type c,
BUKRS(4) type c,
EKORG(4) type c,
KTOKK(4) type c,
NAME1(30) type c,
SORT1(10) type c,
LAND1(3) type c,
AKONT(10) type c,
FDGRV(10) type c,
WAERS(3) type c,
end of it_xk01.
DATA : IT_BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE,
IT_BDCMSGCOLL LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'C:\Documents and Settings\entegall\Desktop\vendor.txt'
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
VIRUS_SCAN_PROFILE =
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = it_xk01.
loop at it_xk01.
refresh it_bdcdata.
perform open_group.
perform bdc_dynpro using 'SAPMF02K' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RF02K-REF_LIFNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RF02K-LIFNR'
it_xk01-lifnr.
perform bdc_field using 'RF02K-BUKRS'
IT_XK01-BUKRS.
perform bdc_field using 'RF02K-EKORG'
IT_XK01-EKORG.
perform bdc_field using 'RF02K-KTOKK'
IT_XK01-KTOKK.
perform bdc_dynpro using 'SAPMF02K' '0110'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-LAND1'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFA1-NAME1'
IT_XK01-NAME1.
perform bdc_field using 'LFA1-SORTL'
IT_XK01-SORT1.
perform bdc_field using 'LFA1-NAME2'
perform bdc_field using 'LFA1-LAND1'
IT_XK01-LAND1.
perform bdc_dynpro using 'SAPMF02K' '0120'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-KUNNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0130'.
perform bdc_field using 'BDC_CURSOR'
'LFBK-BANKS(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_dynpro using 'SAPMF02K' '0210'.
perform bdc_field using 'BDC_CURSOR'
'LFB1-FDGRV'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFB1-AKONT'
IT_XK01-AKONT.
perform bdc_field using 'LFB1-FDGRV'
IT_XK01-FDGRV.
perform bdc_dynpro using 'SAPMF02K' '0215'.
perform bdc_field using 'BDC_CURSOR'
'LFB1-ZTERM'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0220'.
perform bdc_field using 'BDC_CURSOR'
'LFB5-MAHNA'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0310'.
perform bdc_field using 'BDC_CURSOR'
'LFM1-WAERS'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFM1-WAERS'
IT_XK01-WAERS.
perform bdc_dynpro using 'SAPMF02K' '0320'.
perform bdc_field using 'BDC_CURSOR'
'RF02K-LIFNR'.
perform bdc_field using 'BDC_OKCODE'
'=UPDA'.
*perform bdc_transaction using 'XK01' using IT_BDCDATA mode 'A' UPDATE 'S'
CALL TRANSACTION 'XK01' USING IT_BDCDATA
MODE 'A'
UPDATE 'S' MESSAGES INTO IT_BDCMSGCOLL.
*perform close_group.
endloop.
FORM BDC_DYNPRO USING PROG SCR.
CLEAR IT_BDCDATA.
IT_BDCDATA-PROGRAM = PROG.
IT_BDCDATA-DYNPRO = SCR.
IT_BDCDATA-DYNBEGIN = 'X'.
APPEND IT_BDCDATA.
ENDFORM.
FORM BDC_FIELD USING FNAM FVAL.
CLEAR IT_BDCDATA.
IT_BDCDATA-FNAM = FNAM.
IT_BDCDATA-FVAL = FVAL.
APPEND IT_BDCDATA.
ENDFORM.go through this porgarm u will get the clear picture about down loading the error msg.
PROGRAM ID : ZSD_CONDREC_DISCOUNT_ZSWD
DESCRIPTION : BDC PROGRAM TO UPLOAD CONDITION RECORDS FOR Discount
TRANSACTION : VK11
CONDITION TYPE : ZSWD(Key combination 3)
VERSION : 1.0
Text Elements
001 : Select Options
002 : C:\SD\Error\Discount-ZSWD
003 : Error Download Path
004 : C:\SD\Error\Discount-ZSWD - DDMMYYYY HH:MM:SS.txt
REPORT ZSD_CONDREC_DISCOUNT_ZSWD
MESSAGE-ID 00.
*include bdcrecx1.
TABLES : t100.
Internal table declaration *
DATA : BEGIN OF it_price OCCURS 0,
index(4), "Index
kschl(4), "Condition type
vkorg(4), "Sales organization
vtweg(2), "distribution channel
spart(2), "Division
matnr(18), "Material no
kbetr(11), "Rate
konwa(5), "Rate unit (currency or percentage)
kmein(3), "Condition unit
krech(1), "Calculation type for condition
datab(10), "Validity start date
datbi(10), "Validity end date
er_message(100),
END OF it_price.
Internal table to get the error data *
DATA : it_error LIKE it_price OCCURS 0 WITH HEADER LINE.
DATA : bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.
DATA : i_msgtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
Internal table to find the error from the legacy data *
DATA : BEGIN OF it_erfind OCCURS 0,
index(4), "Index
er_message(100), "For Error Message
END OF it_erfind.
Variables declaration *
DATA : g_message(200),
time(10),
date(10) ,
v_error_filename LIKE rlgrap-filename.
date = sy-datum.
time = sy-uzeit.
Initialization
INITIALIZATION.
Generating Error file name with date and time.
PERFORM make_file_name.
Selection Screen *
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETER: p_file LIKE ibipparms-path OBLIGATORY.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(30) text-003.
SELECTION-SCREEN COMMENT 33(79) text-004.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN:END OF BLOCK b1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file .
PERFORM get_filename.
Start of selection
START-OF-SELECTION.
PERFORM upload_data.
PERFORM fill_data.
END-OF-SELECTION.
*& Form fill_data
text
FORM fill_data.
LOOP AT it_price.
*Start of Screen 1
PERFORM bdc_dynpro USING 'SAPMV13A' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RV13A-KSCHL'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ANTA'.
PERFORM bdc_field USING 'RV13A-KSCHL'
it_price-kschl.
Key Combination: Sales org / Dist. channel / Division / Material
PERFORM bdc_dynpro USING 'SAPLV14A' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RV130-SELKZ(03)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=WEIT'.
PERFORM bdc_field USING 'RV130-SELKZ(03)'
'X'.
*Start of Screen 2
PERFORM bdc_dynpro USING 'SAPMV13A' '1800'.
PERFORM bdc_field USING 'KOMG-VKORG'
it_price-vkorg.
PERFORM bdc_field USING 'KOMG-VTWEG'
it_price-vtweg.
PERFORM bdc_field USING 'KOMG-SPART'
it_price-spart.
PERFORM bdc_field USING 'KOMG-MATNR(01)'
it_price-matnr.
PERFORM bdc_field USING 'KONP-KBETR(01)'
it_price-kbetr.
PERFORM bdc_field USING 'KONP-KONWA(01)'
it_price-konwa.
PERFORM bdc_field USING 'KONP-KMEIN(01)'
it_price-kmein.
PERFORM bdc_field USING 'RV13A-KRECH(01)'
it_price-krech.
PERFORM bdc_field USING 'RV13A-DATAB(01)'
it_price-datab.
PERFORM bdc_field USING 'RV13A-DATBI(01)'
it_price-datbi.
perform bdc_dynpro using 'SAPMV13A' '1821'.
perform bdc_field using 'BDC_CURSOR'
'KOMG-MATNR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=SICH'. "Save the entry
PERFORM bdc_transaction TABLES i_msgtab USING 'VK11' 'N' 'L'.
*To fetch the error message from the standard error table
SELECT SINGLE * FROM t100 WHERE sprsl = 'E'
AND arbgb = sy-msgid
AND msgnr = sy-msgno.
g_message = t100-text.
*subroutine to change the error message for every document number
PERFORM replace_parameters USING sy-msgv1
sy-msgv2
sy-msgv3
sy-msgv4
CHANGING g_message.
WRITE: / 'System variables:'.
SKIP.
WRITE: / ' Sy-msgty:', sy-msgty.
WRITE: / ' Sy-msgid:', sy-msgid.
WRITE: / ' Sy-msgno:', sy-msgno.
WRITE: / ' Sy-msgv1:', sy-msgv1.
WRITE: / ' Sy-msgv2:', sy-msgv2.
WRITE: / ' Sy-msgv3:', sy-msgv3.
WRITE: / ' Sy-msgv4:', sy-msgv4.
SKIP.
WRITE: / 'Message:'.
SKIP.
WRITE: / sy-msgty, g_message.
*To find out the error in the legacy data if there is anything and pass
*the document no with error message to the seperate internal table
*called it_erfind
IF sy-msgty = 'E'.
it_erfind-index = it_price-index.
it_erfind-er_message = g_message.
APPEND it_erfind.
ENDIF.
*Finally we are segregating the error and downloading the error data.
AT LAST.
*To segregate the error
PERFORM segregate_error.
*To download the error from it_error internal table with err mesg
PERFORM error_download.
PERFORM display_message.
ENDAT.
ENDLOOP.
perform close_group.
CLEAR it_price.
ENDFORM. "fill_data
*Subrotine to replace the parameters
FORM replace_parameters USING p_par_1 p_par_2 p_par_3
p_par_4 CHANGING p_message.
erst mal pruefen, ob numerierte Parameter verwendet wurden
DO.
REPLACE '&1' WITH p_par_1 INTO p_message.
IF sy-subrc <> 0.
EXIT.
ENDIF.
ENDDO.
DO.
REPLACE '&2' WITH p_par_2 INTO p_message.
IF sy-subrc <> 0.
EXIT.
ENDIF.
ENDDO.
DO.
REPLACE '&3' WITH p_par_3 INTO p_message.
IF sy-subrc <> 0.
EXIT.
ENDIF.
ENDDO.
DO.
REPLACE '&4' WITH p_par_4 INTO p_message.
IF sy-subrc <> 0.
EXIT.
ENDIF.
ENDDO.
falls keine numerierten Parameter vorh., ersetzen wie gehabt
REPLACE '&' WITH p_par_1 INTO p_message.
CONDENSE p_message.
IF sy-subrc EQ 0.
REPLACE '&' WITH p_par_2 INTO p_message.
CONDENSE p_message.
IF sy-subrc EQ 0.
REPLACE '&' WITH p_par_3 INTO p_message.
CONDENSE p_message.
IF sy-subrc EQ 0.
REPLACE '&' WITH p_par_4 INTO p_message.
CONDENSE p_message.
ENDIF.
ENDIF.
ENDIF.
ENDFORM. "REPLACE_PARAMETERS
*Subroutine to segregate the error data from the legacy data
FORM segregate_error.
LOOP AT it_erfind.
LOOP AT it_price WHERE index = it_erfind-index.
MOVE-CORRESPONDING it_price TO it_error.
it_error-er_message = it_erfind-er_message.
APPEND it_error.
ENDLOOP.
ENDLOOP.
ENDFORM. "segregate_error
*Subroutine to download the error data from the it_error table.
FORM error_download.
IF it_error[] IS NOT INITIAL.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
codepage = 'IBM'
filename = v_error_filename
filetype = 'DAT'
TABLES
data_tab = it_error.
ENDIF.
ENDFORM. "error_download
Start new screen *
FORM bdc_dynpro USING program dynpro.
CLEAR bdcdata.
bdcdata-program = program.
bdcdata-dynpro = dynpro.
bdcdata-dynbegin = 'X'.
APPEND bdcdata.
ENDFORM. "BDC_DYNPRO
Insert field *
FORM bdc_field USING fnam fval.
IF FVAL <> NODATA.
CLEAR bdcdata.
bdcdata-fnam = fnam.
bdcdata-fval = fval.
APPEND bdcdata.
ENDIF.
ENDFORM. "BDC_FIELD
*& Form bdc_transaction
text
-->MESSTAB text
-->TCODE text
-->CTUMODE text
-->CUPDATE text
FORM bdc_transaction TABLES messtab USING tcode ctumode cupdate .
CALL TRANSACTION tcode USING bdcdata
MODE ctumode
UPDATE cupdate
MESSAGES INTO messtab.
REFRESH bdcdata.
CLEAR bdcdata.
ENDFORM. " bdc_transaction
Uploading data file to internal table. *
FORM upload_data.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = p_file
CODEPAGE = 'IBM '
filetype = 'DAT'
TABLES
data_tab = it_price
EXCEPTIONS
conversion_error = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
OTHERS = 7.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. "upload_data
*& Form display_message
FORM display_message .
IF it_error[] IS INITIAL.
MESSAGE i019(zmsg). "Success
ELSE.
MESSAGE e020(zmsg). "Failed
ENDIF.
ENDFORM. " display_message
*& Form get_filename
text
--> p1 text
<-- p2 text
FORM get_filename .
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
FIELD_NAME = p_file
IMPORTING
file_name = p_file .
IF sy-subrc NE 0 .
WRITE : / 'Enter File Name'.
ENDIF.
ENDFORM. " get_filename
*& Form make_file_name
FORM make_file_name .
WRITE sy-datum TO date MM/DD/YYYY.
WRITE sy-uzeit TO time USING EDIT MASK ' __ __ __'.
CONCATENATE text-002 date time '.txt'
INTO v_error_filename.
ENDFORM. " make_file_name
regards
prabhu -
BAPI_SALESORDER_CREATEFROMDAT2 is not updating the ITEM Qty after Free ITEM
Hi,
I am using BAPI_SALESORDER_CREATEFROMDAT2 to create a order.We have customization for populating a FREE ITEM for a Order ITEM.
Now the Problem is that .....if I am passing more then one Material as ITEM it is not updating the next ITEM Qty and also not populating FREE ITEM afterwords first one.
Please help me.
Regards
RickyHi,
Find below the code :
read table i_table_t into lwa_table_s index 1.
if sy-subrc eq 0.
*Order Header
lwa_ord_head_in-doc_type = 'ZSO'.
lwa_ord_head_in-sales_org = '1000'.
lwa_ord_head_in-distr_chan = '10'.
lwa_ord_head_in-division = '10'.
lwa_ord_head_in-req_date_h = lwa_table_s-delivery.
*Order Header Update
lwa_ord_head_inx-doc_type = 'X'.
lwa_ord_head_inx-sales_org = 'X'.
lwa_ord_head_inx-distr_chan = 'X'.
lwa_ord_head_inx-division = 'X'.
lwa_ord_head_inx-req_date_h = 'X'.
lwa_ord_partners-partn_role = 'AG'.
lwa_ord_partners-partn_numb = lwa_table_s-sold_to.
append lwa_ord_partners to lt_ord_partners.
if lwa_table_s-ship_to is initial.
lwa_ord_partners-partn_role = 'WE'.
lwa_ord_partners-partn_numb = lwa_table_s-sold_to.
append lwa_ord_partners to lt_ord_partners.
else.
lwa_ord_partners-partn_role = 'WE'.
lwa_ord_partners-partn_numb = lwa_table_s-ship_to.
append lwa_ord_partners to lt_ord_partners.
endif.
lt_table_it_t = lwa_table_s-zsd_table_it_t.
loop at lt_table_it_t into lwa_table_it_s.
lwa_ord_items_in-material = lwa_table_it_s-matnr.
lwa_ord_items_in-plant = wa_table_s-plant.
lwa_ord_items_in-target_qty = lwa_table_it_s-qty.
lwa_ord_items_in-comp_quant = lwa_table_it_s-qty.
append lwa_ord_items_in to lt_ord_items_in.
lwa_ord_items_inx-material = 'X'.
lwa_ord_items_inx-plant = 'X'.
lwa_ord_items_inx-target_qty = 'X'.
lwa_ord_items_inx-comp_quant = 'X'.
lwa_ord_items_inx-updateflag = 'I'.
append lwa_ord_items_inx to lt_ord_items_inx.
Schedule Line Information
lwa_schedule_lines-sched_line = 'X'.
lwa_schedule_lines-req_date = lwa_table_s-date_del.
lwa_schedule_lines-date_type = '1'.
lwa_schedule_lines-req_qty = lwa_table_it_s-qty.
append lwa_schedule_lines to lt_schedule_lines.
lwa_schedule_lines_x-updateflag = 'I'.
lwa_schedule_lines_x-sched_line = 'X'.
lwa_schedule_lines_x-req_date = 'X'.
lwa_schedule_lines_x-date_type = 'X'.
lwa_schedule_lines_x-req_qty = 'X'.
append lwa_schedule_lines_x to lt_schedule_lines_x.
endloop.
Here I am getting First Item and it's free configured Item perfectly for the Qty 1.
But when I pass more then 1 Qty or Multiple ITEMS it is not populating other respective free configured ITEMS with them.Also IT is not updating the other ITEM Qty other the first one.
For Example:
Item No ITEM Qty .......
10 ITEM1 1 EA ..........
20 FREE1 1 DAY ..........
30 ITEM2 0 ..........
40 ITEM3 0 .........
In above example After 30 and 40 two Free ITEM should be generated with 1 Day and for Qty 1 EA
Regards
Ricky -
Outgoing server settings entered correctly but will not update and tries to send under old settings
I can receive all of my emails correctly but can not send any emails. I have set up under a different program and it works fine. I have tried to update thunderbird by its settings and it does not provide any options?? I am running ubuntu 14.04lts.
My outgoing mail settings are correct but when thunderbird tries to send it uses old settings and does not update to the new mail server.
https://app.box.com/s/i27ulu2zq53iaq444boxoo7dp047qgyt
https://app.box.com/s/ivujudbq64mp8e5fd0pzkv5yt724bzta
https://app.box.com/s/zwj25bxv10sad27fcuov2ters23lcvu8
Thanks in advanceApplication Basics
Name: Thunderbird
Version: 31.4.0
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
Profile Directory: Open Directory
(Unknown location)
Application Build ID: 20150112185638
Enabled Plugins: about:plugins
Build Configuration: about:buildconfig
Memory Use: about:memory
Mail and News Accounts
account2:
INCOMING: account2, , (none) Local Folders, plain, passwordCleartext
account3:
INCOMING: account3, , (imap) imap.netregistry.net:993, SSL, passwordCleartext
OUTGOING: smtp.netregistry.net:465, SSL, passwordCleartext, true
account5:
INCOMING: account5, , (imap) imap.netregistry.net:993, SSL, passwordCleartext
OUTGOING: smtp.netregistry.net:465, SSL, passwordCleartext, true
account6:
INCOMING: account6, , (imap) imap.netregistry.net:993, SSL, passwordCleartext
OUTGOING: smtp.netregistry.net:465, SSL, passwordCleartext, true
account7:
INCOMING: account7, , (imap) imap.netregistry.net:993, SSL, passwordCleartext
OUTGOING: smtp.netregistry.net:465, SSL, passwordCleartext, true
account9:
INCOMING: account9, , (pop3) mail.crochead.com:110, plain, passwordCleartext
OUTGOING: mail.crochead.com:465, SSL, passwordCleartext, true
account10:
INCOMING: account10, , (imap) imap.crochead.com.au:143, alwaysSTARTTLS, passwordEncrypted
OUTGOING: smtp.netregistry.net:465, SSL, passwordCleartext, true
account11:
INCOMING: account11, , (imap) mail3.bigcommerce.com:993, SSL, passwordCleartext
OUTGOING: mail3.bigcommerce.com:587, alwaysSTARTTLS, passwordEncrypted, true
Crash Reports
Extensions
Enigmail, 1.7.2, true, {847b3a00-7ab1-11d4-8f02-006008948af5}
Lightning, 3.3.4, true, {e2fda1a4-762b-4020-b5ad-a41df1933103}
Messaging Menu and Unity Launcher integration, 1.3.1, true, [email protected]
Provider for Google Calendar, 0.32, true, {a62ef8ec-5fdc-40c2-873c-223b8a6925cc}
Important Modified Preferences
Name: Value
browser.cache.disk.capacity: 204800
browser.cache.disk.smart_size_cached_value: 358400
browser.cache.disk.smart_size.first_run: false
browser.cache.disk.smart_size.use_old_max: false
extensions.lastAppVersion: 31.4.0
general.autoScroll: true
mail.openMessageBehavior.version: 1
mailnews.database.global.datastore.id: 912c1d9f-f79f-4a8b-9bf5-5c273fa7a3c
mailnews.database.global.indexer.enabled: false
mailnews.database.global.views.conversation.columns: {"threadCol":{"visible":true,"ordinal":"1"},"flaggedCol":{"visible":true,"ordinal":"3"},"attachmentCol":{"visible":false…
network.cookie.cookieBehavior: 2
network.cookie.prefsMigrated: true
places.database.lastMaintenance: 1424651152
places.history.expiration.transient_current_max_pages: 104858
plugin.importedState: true
print.print_bgcolor: false
print.print_bgimages: false
print.print_colorspace: default
print.print_downloadfonts: false
print.print_evenpages: true
print.print_in_color: true
print.print_margin_bottom: 0.5
print.print_margin_left: 0.5
print.print_margin_right: 0.5
print.print_margin_top: 0.5
print.print_oddpages: true
print.print_orientation: 0
print.print_page_delay: 50
print.print_paper_data: 0
print.print_paper_height: 279.40
print.print_paper_name: na_letter
print.print_paper_size_type: 1
print.print_paper_size_unit: 1
print.print_paper_width: 215.90
print.print_plex_name: default
print.print_resolution_name: default
print.print_scaling: 1.00
print.print_shrink_to_fit: true
print.print_to_file: false
print.print_unwriteable_margin_bottom: 56
print.print_unwriteable_margin_left: 25
print.print_unwriteable_margin_right: 25
print.print_unwriteable_margin_top: 25
privacy.donottrackheader.enabled: true
security.disable_button.openCertManager: false
security.disable_button.openDeviceManager: false
Graphics
Adapter Description: X.Org -- Gallium 0.4 on AMD KABINI
Vendor ID: X.Org
Device ID: Gallium 0.4 on AMD KABINI
Driver Version: 3.0 Mesa 10.1.3
WebGL Renderer: false
GPU Accelerated Windows: 0
AzureCanvasBackend: cairo
AzureSkiaAccelerated: 0
AzureFallbackCanvasBackend: none
AzureContentBackend: cairo
JavaScript
Incremental GC: 1
Accessibility
Activated: 0
Prevent Accessibility: 0
Library Versions
Expected minimum version
Version in use
NSPR
4.10.6
4.10.6
NSS
3.16.2.3 Basic ECC
3.16.2.3 Basic ECC
NSS Util
3.16.2.3
3.16.2.3
NSS SSL
3.16.2.3 Basic ECC
3.16.2.3 Basic ECC
NSS S/MIME
3.16.2.3 Basic ECC
3.16.2.3 Basic ECC -
Document number not updating in the document
hi gurus,
this is a excise invoice voucher form used by the client .
some values are not updated in document no.
could someone tell me why it is not updating.
if there are any corrections in code pls update me and solve my problem.
urs
pradeep.r
*& Include ZFI_PAY_ADVICE_F01_STR_2 *
*& Form select_data
text
--> p1 text
<-- p2 text
FORM SELECT_DATA .
REFRESH IT_BKPF.
CLEAR IT_BKPF.
SELECT BELNR GJAHR XBLNR BLDAT BLART INTO CORRESPONDING FIELDS OF
TABLE IT_BKPF FROM BKPF
WHERE BELNR IN S_BELNR
AND GJAHR IN S_GJAHR
AND BUKRS IN S_BUKRS.
IF IT_BKPF[] IS INITIAL.
MESSAGE S001.
ENDIF.
SORT IT_BKPF BY BELNR GJAHR.
LOOP AT IT_BKPF.
SELECT SINGLE EBELN WRBTR WERKS LIFNR KUNNR INTO
(IT_BKPF-ZUONR,IT_BKPF-WRBTR,IT_BKPF-WERKS,IT_BKPF-LIFNR,IT_BKPF-KUNNR)
FROM BSEG
WHERE BELNR = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR
AND BUKRS IN S_BUKRS
AND KOART = 'K'.
IF NOT IT_BKPF-LIFNR IS INITIAL.
DATA : WRK_ADRNR LIKE LFA1-ADRNR.
CLEAR WRK_ADRNR.
SELECT SINGLE ADRNR INTO WRK_ADRNR FROM LFA1
WHERE LIFNR = IT_BKPF-LIFNR.
SELECT SINGLE NAME1
NAME2
NAME3
NAME4
CITY1
REGION
COUNTRY
STREET
INTO (IT_BKPF-NAME1,IT_BKPF-NAME2,IT_BKPF-NAME3,IT_BKPF-NAME4,
IT_BKPF-CITY1,IT_BKPF-REGION,IT_BKPF-COUNTRY,IT_BKPF-STREET)
FROM ADRC
WHERE ADDRNUMBER EQ WRK_ADRNR.
Text for Country
SELECT SINGLE LANDX INTO IT_BKPF-LANDX FROM T005T
WHERE LAND1 = IT_BKPF-COUNTRY
AND SPRAS EQ SY-LANGU.
Text for Region
SELECT SINGLE BEZEI INTO IT_BKPF-BEZEI FROM T005U
WHERE BLAND = IT_BKPF-REGION
AND SPRAS EQ SY-LANGU
AND LAND1 = IT_BKPF-COUNTRY.
ENDIF.
IF NOT IT_BKPF-KUNNR IS INITIAL.
CLEAR WRK_ADRNR.
SELECT SINGLE ADRNR INTO (WRK_ADRNR) FROM KNA1
WHERE KUNNR = IT_BKPF-KUNNR.
SELECT SINGLE NAME1
NAME2
NAME3
NAME4
CITY1
REGION
COUNTRY
STREET
INTO (IT_BKPF-NAME1,IT_BKPF-NAME2,IT_BKPF-NAME3,IT_BKPF-NAME4,
IT_BKPF-CITY1,IT_BKPF-REGION,IT_BKPF-COUNTRY,IT_BKPF-STREET)
FROM ADRC
WHERE ADDRNUMBER EQ WRK_ADRNR.
Text for Country
SELECT SINGLE LANDX INTO IT_BKPF-LANDX FROM T005T
WHERE LAND1 = IT_BKPF-COUNTRY
AND SPRAS EQ SY-LANGU.
Text for Region
SELECT SINGLE BEZEI INTO IT_BKPF-BEZEI FROM T005U
WHERE BLAND = IT_BKPF-REGION
AND SPRAS EQ SY-LANGU
AND LAND1 = IT_BKPF-COUNTRY.
ENDIF.
MODIFY IT_BKPF.
ENDLOOP.
REFRESH IT_DATA.
CLEAR IT_DATA.
LOOP AT IT_BKPF.
DATA : WRK_BSAKBELNR LIKE BSAK-BELNR.
CLEAR WRK_BSAKBELNR.
SELECT SINGLE BELNR INTO WRK_BSAKBELNR FROM BSAK
WHERE AUGBL = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR
AND BUKRS IN S_BUKRS.
Advance
IF WRK_BSAKBELNR IS INITIAL.
IT_DATA-VBELNR = IT_BKPF-BELNR.
IT_DATA-BELNR = IT_BKPF-BELNR.
IT_DATA-GJAHR = IT_BKPF-GJAHR.
IT_DATA-XBLNR = IT_BKPF-XBLNR.
IT_DATA-BLDAT = IT_BKPF-BLDAT.
IT_DATA-BLART = IT_BKPF-BLART.
IT_DATA-ZUONR = IT_BKPF-ZUONR.
IT_DATA-WRBTR = IT_BKPF-WRBTR.
IT_DATA-WRBTRC = IT_DATA-WRBTR.
APPEND IT_DATA.
IT_DATA-VBELNR = IT_BKPF-BELNR.
IT_DATA-BELNR = ' '.
IT_DATA-GJAHR = ' '.
IT_DATA-BLDAT = ' '.
IT_DATA-BLART = ' '.
IT_DATA-ZUONR = ' '.
TDS
DATA : WRK_TDSWRBTR LIKE BSIS-WRBTR.
CLEAR WRK_TDSWRBTR.
SELECT SUM( WRBTR ) INTO WRK_TDSWRBTR FROM BSIS
WHERE BELNR = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR
AND BUKRS IN S_BUKRS
AND QSSKZ NE SPACE
AND QSSKZ NE 'XX'
AND XREF3 NE SPACE
AND QSSKZ NE 'S1'
AND QSSKZ NE 'S2'.
IF WRK_TDSWRBTR IS INITIAL.
SELECT SUM( WRBTR ) INTO WRK_TDSWRBTR FROM BSAS
WHERE BELNR = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR
AND QSSKZ NE SPACE
AND QSSKZ NE 'XX'
AND XREF3 NE SPACE
AND BUKRS IN S_BUKRS
AND QSSKZ NE 'S1'
AND QSSKZ NE 'S2'.
ENDIF.
DATA : WRK_BSCHL LIKE BSIS-BSCHL.
CLEAR WRK_BSCHL.
IF NOT WRK_TDSWRBTR IS INITIAL.
IT_DATA-XBLNR = 'TDS/ECess'.
IT_DATA-WRBTR = WRK_TDSWRBTR.
SELECT SINGLE BSCHL INTO WRK_BSCHL FROM BSIS
WHERE BELNR = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR
AND QSSKZ NE SPACE
AND BUKRS IN S_BUKRS
AND QSSKZ NE 'XX'
AND XREF3 NE SPACE
AND QSSKZ NE 'S1'
AND QSSKZ NE 'S2'
AND BSCHL = '40'.
IF WRK_BSCHL IS INITIAL.
SELECT SINGLE BSCHL INTO WRK_BSCHL FROM BSAS
WHERE BELNR = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR
AND QSSKZ NE SPACE
AND QSSKZ NE 'XX'
AND XREF3 NE SPACE
AND BUKRS IN S_BUKRS
AND QSSKZ NE 'S1'
AND QSSKZ NE 'S2'
AND BSCHL = '40'.
ENDIF.
IF WRK_BSCHL IS INITIAL.
IT_DATA-WRBTR = IT_DATA-WRBTR * - 1.
ENDIF.
IT_DATA-WRBTRC = IT_DATA-WRBTR.
APPEND IT_DATA.
ENDIF.
IT_DATA-VBELNR = IT_BKPF-BELNR.
IT_DATA-BELNR = ' '.
IT_DATA-GJAHR = ' '.
IT_DATA-BLDAT = ' '.
IT_DATA-BLART = ' '.
IT_DATA-ZUONR = ' '.
Discount
DATA : WRK_DEDWRBTR LIKE BSIS-WRBTR.
CLEAR WRK_DEDWRBTR.
SELECT SUM( WRBTR ) INTO WRK_DEDWRBTR FROM BSIS
WHERE BELNR = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR
AND QSSKZ EQ SPACE
AND BUKRS IN S_BUKRS
AND BSCHL NE '50'.
IF NOT WRK_DEDWRBTR IS INITIAL.
SELECT SUM( WRBTR ) INTO WRK_DEDWRBTR FROM BSAS
WHERE BELNR = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR
AND QSSKZ EQ SPACE
AND BUKRS IN S_BUKRS
AND BSCHL NE '50'.
ENDIF.
IF NOT WRK_DEDWRBTR IS INITIAL.
IT_DATA-XBLNR = 'Discount'.
IT_DATA-WRBTR = WRK_DEDWRBTR.
IT_DATA-WRBTR = IT_DATA-WRBTR * - 1.
IT_DATA-WRBTRC = IT_DATA-WRBTR.
APPEND IT_DATA.
ENDIF.
Invoice
ELSE.
REFRESH IT_BELNR.
CLEAR IT_BELNR.
DATA : W_YEAR(4),
W_MONTH(2) VALUE '04',
W_DATE(2) VALUE '01',
W_YEAR1(8).
W_YEAR = S_GJAHR-LOW.
CONCATENATE W_YEAR W_MONTH W_DATE INTO W_YEAR1.
SELECT BELNR GJAHR XBLNR BLDAT BLART ZUONR WRBTR BSCHL INTO
TABLE IT_BELNR FROM BSAK
WHERE AUGBL = IT_BKPF-BELNR
AND AUGDT GE W_YEAR1
AND GJAHR = IT_BKPF-GJAHR
AND BELNR NE IT_BKPF-BELNR
AND BUKRS IN S_BUKRS.
SORT IT_BELNR BY BELNR GJAHR.
LOOP AT IT_BELNR.
CLEAR WRK_TDSWRBTR.
SELECT SUM( WRBTR ) INTO WRK_TDSWRBTR FROM BSIS
WHERE BELNR = IT_BELNR-BELNR
AND GJAHR = IT_BELNR-GJAHR
AND QSSKZ NE SPACE
AND BUKRS IN S_BUKRS
AND QSSKZ NE 'XX'.
IF WRK_TDSWRBTR IS INITIAL.
SELECT SUM( WRBTR ) INTO WRK_TDSWRBTR FROM BSAS
WHERE BELNR = IT_BELNR-BELNR
AND GJAHR = IT_BELNR-GJAHR
AND QSSKZ NE SPACE
AND BUKRS IN S_BUKRS
AND QSSKZ NE 'XX'.
ENDIF.
IT_DATA-VBELNR = IT_BKPF-BELNR.
IT_DATA-BELNR = IT_BELNR-BELNR.
IT_DATA-GJAHR = IT_BELNR-GJAHR.
IT_DATA-XBLNR = IT_BELNR-XBLNR.
IT_DATA-BLDAT = IT_BELNR-BLDAT.
IT_DATA-BLART = IT_BELNR-BLART.
IT_DATA-ZUONR = IT_BELNR-ZUONR.
IT_DATA-WRBTR = IT_BELNR-WRBTR + WRK_TDSWRBTR .
IF IT_BELNR-BSCHL GE '31' AND IT_BELNR-BSCHL LE '39'.
IT_DATA-WRBTRC = IT_DATA-WRBTR.
ELSE.
IF IT_BELNR-BSCHL GE '21' AND IT_BELNR-BSCHL LE '29'.
IT_DATA-WRBTRC = IT_DATA-WRBTR * - 1.
ENDIF.
ENDIF.
APPEND IT_DATA.
IT_DATA-VBELNR = IT_BKPF-BELNR.
IT_DATA-BELNR = ' '.
IT_DATA-GJAHR = ' '.
IT_DATA-BLDAT = ' '.
IT_DATA-BLART = ' '.
IT_DATA-ZUONR = ' '.
TDSBELNR
IF NOT WRK_TDSWRBTR IS INITIAL.
IT_DATA-XBLNR = 'TDS/ECess'.
IT_DATA-WRBTR = WRK_TDSWRBTR.
CLEAR WRK_BSCHL.
IF NOT WRK_TDSWRBTR IS INITIAL.
IT_DATA-XBLNR = 'TDS/ECess'.
IT_DATA-WRBTR = WRK_TDSWRBTR.
SELECT SINGLE BSCHL INTO WRK_BSCHL FROM BSIS
WHERE BELNR = IT_BELNR-BELNR
AND GJAHR = IT_BELNR-GJAHR
AND QSSKZ NE SPACE
AND QSSKZ NE 'XX'
AND BSCHL = '40'.
IF WRK_BSCHL IS INITIAL.
SELECT SINGLE BSCHL INTO WRK_BSCHL FROM BSAS
WHERE BELNR = IT_BELNR-BELNR
AND GJAHR = IT_BELNR-GJAHR
AND QSSKZ NE SPACE
AND QSSKZ NE 'XX'
AND BSCHL = '40'.
ENDIF.
IF WRK_BSCHL IS INITIAL.
IT_DATA-WRBTR = IT_DATA-WRBTR * - 1.
ENDIF.
IT_DATA-WRBTRC = IT_DATA-WRBTR.
APPEND IT_DATA.
ENDIF.
ENDIF.
ENDLOOP.
IT_DATA-VBELNR = IT_BKPF-BELNR.
IT_DATA-BELNR = ' '.
IT_DATA-GJAHR = ' '.
IT_DATA-BLDAT = ' '.
IT_DATA-BLART = ' '.
IT_DATA-ZUONR = ' '.
TDSVBELNR
CLEAR WRK_TDSWRBTR.
SELECT SUM( WRBTR ) INTO WRK_TDSWRBTR FROM BSIS
WHERE BELNR = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR
AND QSSKZ NE SPACE
AND BUKRS IN S_BUKRS
AND QSSKZ NE 'XX'
AND QSSKZ NE 'S1'
AND QSSKZ NE 'S2'.
IF WRK_TDSWRBTR IS INITIAL.
SELECT SUM( WRBTR ) INTO WRK_TDSWRBTR FROM BSAS
WHERE BELNR = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR
AND QSSKZ NE SPACE
AND QSSKZ NE 'XX'
AND AUGBL = SPACE
AND BUKRS IN S_BUKRS
AND QSSKZ NE 'S1'
AND QSSKZ NE 'S2'.
ENDIF.
**INSERTED BY PALANI ON 01.04.2006
IF WRK_TDSWRBTR IS INITIAL.
SELECT SUM( WRBTR ) INTO WRK_TDSWRBTR FROM BSIS
WHERE BELNR = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR.
ENDIF.
***END BY PALANI.
IF NOT WRK_TDSWRBTR IS INITIAL.
IT_DATA-XBLNR = 'TDS/ECess'.
IT_DATA-WRBTR = WRK_TDSWRBTR.
IT_DATA-WRBTR = IT_DATA-WRBTR * - 1.
IT_DATA-WRBTRC = IT_DATA-WRBTR.
APPEND IT_DATA.
ENDIF.
IT_DATA-VBELNR = IT_BKPF-BELNR.
IT_DATA-BELNR = ' '.
IT_DATA-GJAHR = ' '.
IT_DATA-BLDAT = ' '.
IT_DATA-BLART = ' '.
IT_DATA-ZUONR = ' '.
*DiscountVBELNR
CLEAR WRK_DEDWRBTR.
SELECT SUM( WSKTO ) INTO WRK_DEDWRBTR FROM BSE_CLR
WHERE BELNR_CLR = IT_BKPF-BELNR
AND GJAHR_CLR = IT_BKPF-GJAHR
AND BUKRS IN S_BUKRS.
IF NOT WRK_DEDWRBTR IS INITIAL.
IT_DATA-XBLNR = 'Discount'.
IT_DATA-WRBTR = WRK_DEDWRBTR.
IT_DATA-WRBTR = IT_DATA-WRBTR * - 1.
IT_DATA-WRBTRC = IT_DATA-WRBTR.
APPEND IT_DATA.
ENDIF.
ENDIF.
ENDLOOP.
LOOP AT IT_BKPF.
SELECT SINGLE BUTXT ORT01 LAND1 INTO (IT_DATA-BUTXT,IT_DATA-ORT01,IT_DATA-LAND1)
FROM T001
WHERE BUKRS IN S_BUKRS.
MODIFY IT_DATA INDEX SY-TABIX.
*ENDLOOP.
ENDFORM. " select_data
*& Form print_data
text
--> p1 text
<-- p2 text
FORM PRINT_DATA .
PERFORM OPEN_FORM.
PERFORM WRITE_FORM.
PERFORM CLOSE_FORM.
LEAVE LIST-PROCESSING.
ENDFORM. " print_data
*& Form open_form
text
--> p1 text
<-- p2 text
FORM OPEN_FORM .
CALL FUNCTION 'OPEN_FORM'
EXPORTING
FORM = 'ZFI_PAY_ADV_MODN'
LANGUAGE = SY-LANGU.
ENDFORM. " open_form
*& Form write_form
text
--> p1 text
<-- p2 text
FORM WRITE_FORM .
LOOP AT IT_BKPF.
IF SY-TABIX GT 1.
AT NEW BELNR.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'NEW'
WINDOW = 'MAIN'.
ENDAT.
ENDIF.
LOOP AT IT_DATA WHERE VBELNR = IT_BKPF-BELNR.
DATA : BEGIN OF IT_HKONT OCCURS 0,
HKONT LIKE BSIS-HKONT,
WRBTR LIKE BSIS-WRBTR,
END OF IT_HKONT.
REFRESH IT_HKONT.
CLEAR IT_HKONT.
SELECT HKONT WRBTR INTO TABLE IT_HKONT FROM BSIS
WHERE BELNR = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR.
DELETE IT_HKONT WHERE HKONT(3) NE '005'.
IF NOT IT_HKONT[] IS INITIAL.
LOOP AT IT_HKONT.
IT_DATA-TOTAL = IT_DATA-TOTAL + IT_HKONT-WRBTR.
MODIFY IT_DATA.
ENDLOOP.
ELSE.
IT_DATA-TOTAL = IT_DATA-TOTAL + IT_DATA-WRBTR.
MODIFY IT_DATA.
ENDIF.
ENDLOOP.
LOOP AT IT_DATA WHERE VBELNR = IT_BKPF-BELNR.
IF IT_DATA-BLART EQ ''. " for invoice Date
IT_DATA-BLDAT = IT_BKPF-BLDAT.
ENDIF.
IT_DATA-LIFNR = IT_BKPF-LIFNR.
IT_DATA-KUNNR = IT_BKPF-KUNNR.
IT_DATA-NAME1 = IT_BKPF-NAME1.
IT_DATA-NAME2 = IT_BKPF-NAME2.
IT_DATA-NAME3 = IT_BKPF-NAME3.
IT_DATA-NAME4 = IT_BKPF-NAME4.
IT_DATA-CITY1 = IT_BKPF-CITY1.
IT_DATA-REGION = IT_BKPF-REGION.
IT_DATA-COUNTRY = IT_BKPF-COUNTRY.
IT_DATA-STREET = IT_BKPF-STREET.
IT_DATA-LANDX = IT_BKPF-LANDX.
IT_DATA-BEZEI = IT_BKPF-BEZEI.
CLEAR : WRK_HBKID , WRK_BANKL.
SELECT SINGLE CHECT ZALDT HBKID INTO
(IT_DATA-CHECT , IT_DATA-ZALDT , WRK_HBKID)
FROM PAYR
WHERE VBLNR = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR
AND VOIDR = '00'.
SELECT SINGLE BANKL INTO WRK_BANKL
FROM T012
WHERE HBKID = WRK_HBKID.
AND spras EQ 'EN'.
SELECT SINGLE BANKA INTO IT_DATA-BANKA
FROM BNKA
WHERE BANKL = WRK_BANKL.
MODIFY IT_DATA.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'ITEMS'
WINDOW = 'MAIN'.
ENDLOOP.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'TOTAL'
WINDOW = 'MAIN'.
ENDLOOP.
ENDFORM. " write_form
*& Form close_form
text
--> p1 text
<-- p2 text
FORM CLOSE_FORM .
CALL FUNCTION 'CLOSE_FORM' .
ENDFORM. " close_formHi
Could you tell us what fields are not updated?
Regards,
Raj -
Remote file template not updating on website
Hello I am very very new to dreamweaver and have been handed a website that I have to maintain and make changes to.
The website uses a template called index with further nested templates as shown
The index template contains the code for the Menu Bar and footer and although I have been able to make other updates and changes I am finding that any changes to the code on this template do not show up on the site. The strange thing is that both the local and remote code has updated as I would like it is just the website itself that is not changing. When I view the website source code it is different to the remote file code. I assume that the link between the two is somehow broken but I do not know how to fix it. Is there a trick to fixing such a problem or am I wrong about this being the problem?
Here is the remote file code which is that same as the local code - I have out the code that is not updating in bold and underlined it:
<body>
<div class="container">
<div class="header">
<div id="header_top">
<div id="text_only"><a href="http://www.genesi-fp7.eu/betsie/parser.pl">Text-only</a> </div>
<div id="admin"><a href="../admin/index.php">admin</a> </div>
<div id="search"><a href="../webpages/search/search.html">search</a></div>
<div id="header_middle">
<div id="logo_left"><img src="../images/500px-Flag_of_Europe.svg.png" alt="European Union" width="167" height="111" border="0" /></div>
<div id="logo_middle"><img src="../images/Genesi_Logo.png" alt="GENESI" width="620" height="111" border="0" /></div>
<div id="logo_right"><a href="http://cordis.europa.eu/home_en.html"><img src="../images/fp7.png" alt="Seventh Framework Programme" width="154" height="111" border="0" /></a></div>
</div>
<div id="header_bottom">
<ul id="MainMenu" class="MenuBarHorizontal">
<li><a href="../index.html">home</a> </li>
<li><a href="../webpages/news/news.php">news</a></li>
<li><a href="../webpages/programme/programme_wp1.html">programme</a></li>
<li><a href="../webpages/consortium/consortium_0.html">consortium</a></li>
<li><a href="../webpages/downloads/downloads.php">downloads</a></li>
<li><a href="../webpages/links/links.html">links</a></li>
<li><a href="../webpages/contact/contact.html">Contact</a></li>
</ul>
</div>
</div>
<!-- end .header --></div>
<!-- TemplateBeginEditable name="mainSection" -->
<div class="mainSection">
<h1>here is the main section </h1>
</div>
<!-- TemplateEndEditable -->
<div class="footer">
<div id="footer_top">This project is co-financed by the <a href="http://ec.europa.eu/index_en.htm">European Commission</a> and made possible within the <a href="http://cordis.europa.eu/fp7/home_en.html">VII Framework Programme</a></div>
<div id="footer_middle">Page maintained by <a href="mailto:[email protected]">Molly Buckingham</a> · Last update: <!-- #BeginDate format:En2 -->03-Apr-2013<!-- #EndDate -->
</div>
<div id="footer_bottom">
<div>© 2012 <a href="../webpages/consortium/consortium_1.html">G.EN.ESI Consortium</a> · <a href="../webpages/footer/Disclaimer.html">Disclaimer</a> · <a href="../webpages/footer/privacy_notice.html">Privacy Statement</a></div>
</div>
<!-- end .footer --></div>
And here is the source code from the website - again the code is underlined and in bold
<!--[if lte IE 7]>
<style>
.content { margin-right: -1px; } /* this 1px negative margin can be placed on any of the columns in this layout with the same corrective effect. */
ul.nav a { zoom: 1; } /* the zoom property gives IE the hasLayout trigger it needs to correct extra whiltespace between the links */
</style>
<![endif]-->
<!-- InstanceEndEditable -->
</head>
<body>
<div class="container">
<div class="header">
<div id="header_top">
<div id="text_only"><a href="http://www.genesi-fp7.eu/betsie/parser.pl">Text-only</a> </div>
<div id="admin"><a href="../../admin/index.php">admin</a> </div>
<div id="search"><a href="../search/search.html">search</a></div>
<div id="header_middle">
<div id="logo_left"><img src="../../images/500px-Flag_of_Europe.svg.png" alt="European Union" width="167" height="111" border="0" /></div>
<div id="logo_middle"><img src="../../images/Genesi_Logo.png" alt="GENESI" width="620" height="111" border="0" /></div>
<div id="logo_right"><a href="http://cordis.europa.eu/home_en.html"><img src="../../images/fp7.png" alt="Seventh Framework Programme" width="154" height="111" border="0" /></a></div>
</div>
<div id="header_bottom">
<ul id="MainMenu" class="MenuBarHorizontal">
<li><a href="../../index.html">home</a> </li>
<li><a href="../news/news.php">news</a></li>
<li><a href="../programme/programme_wp1.html">programme</a></li>
<li><a href="consortium_1.html">consortium</a></li>
<li><a href="../downloads/downloads.php">downloads</a></li>
<li><a href="../links/links.html">links</a></li>
<li><a href="../contact/contact.html">Contact</a></li>
</ul>
</div>
</div>
<!-- end .header --></div>
<div class="mainSection">
<div class="SubMenuBar">
<ul id="SubMenu" class="MenuBarVertical">
<li><a href="consortium_1.html">Università Politecnica Delle Marche</a></li>
<li><a href="consortium_2.html">Granta Design Ltd</a></li>
<li><a href="consortium_3.html">Faber s.p.a.</a></li>
<li><a href="consortium_4.html">Sibuet Environnement</a></li>
<li><a href="consortium_5.html">Bonfiglioli Vectron Gmbh</a></li>
<li><a href="consortium_6.html">ENEA</a></li>
<li><a href="consortium_7.html">University of Bath</a></li>
<li><a href="consortium_8.html">Grenoble Institute of Technology</a></li>
</ul>
</div>
<!-- InstanceBeginEditable name="content" -->
<div class="content">
<h1><strong>The Università Politecnica delle Marche</strong></h1>
<p><img src="../../images/delle_Marche.jpg" alt="The Università Politecnica delle Marche" width="142" height="142" />The Università Politecnica delle Marche(UNIVPM) is situated in the Marche Region (area of Ancona) that is the one of most important European industrial districts related to the household appliances, in fact many European leader companies such as Indesit , Elica, Ariston TG, Faber, and many others, have their headquarters there. Thanks to this geographical position UNIVPM has many collaborations with these companies and it has matured a vast skill on research topics related to the household appliances field. UNIVPM has 5 faculties, 550 professors (the largest is the Engineering Faculty with 180 professors), 12 technical Departments and 17,000 students; it participates to 23 academic spin-off. The central administration of UNIVPM has a management department which gives support to technical departments in European project set up, negotiation and administration of the grant agreement, draft and negotiation of the consortium agreement as well as project financial reporting. In this project will be involved the Department of Mechanics that has a remarkable experience on European Projects since it has been coordinator of 6th and 7th FP projects and it is involved in 9 active European projects. In particular, UNIVPM coordinates the G.EN.ESI project from an administrative and technical point of view.</p>
<p>The scientific contact at the Università Politecnica delle Marche for the G.EN.ESI project is Prof. Michele Germani. </p>
</div>
<!-- InstanceEndEditable --></div>
<script type="text/javascript">
var MenuBar2 = new Spry.Widget.MenuBar("SubMenu", {imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
</script>
<div class="footer">
<div id="footer_top">This project is co-financed by the <a href="http://ec.europa.eu/index_en.htm">European Commission</a> and made possible within the <a href="http://cordis.europa.eu/fp7/home_en.html">VII Framework Programme</a></div>
<div id="footer_middle">Page maintained by <a href="mailto:[email protected]">Chunlei Li</a> · Last update: <!-- #BeginDate format:En2 -->25-Apr-2012<!-- #EndDate -->
</div>
<div id="footer_bottom">
<div>© 2012 <a href="consortium_1.html">G.EN.ESI Consortium</a> · <a href="../footer/Disclaimer.html">Disclaimer</a> · <a href="../footer/privacy_notice.html">Privacy Statement</a></div>
</div>
<!-- end .footer --></div>
<!-- end .container --></div>
<script type="text/javascript">
var MenuBar1 = new Spry.Widget.MenuBar("MainMenu", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
</script>
</body>
<!-- InstanceEnd --></html>
Thank you in advance for your helpJon Fritz that did actually work for some of the pages but not others. I upadted each invidivual page, except the main page as I have not finished the content and now some of the pages are acting strangely.
Here is the website http://www.genesi-fp7.eu/index.html
As you can see every page except the 'Contacts' and 'Links' page is now reading the correct code when you click on the 'Consortium' tab. The strange thing however is that the footer has updated on the 'Links' page suggesting that this part of the template has updated. Both these pages are based on the Index-misc nested template. The code is copied here:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/index.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<link href="../styles/genesi.css" rel="stylesheet" type="text/css" />
<script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="../SpryAssets/MainMenu.css" rel="stylesheet" type="text/css" />
<link href="../SpryAssets/SubMenu.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="google-site-verification" content="3L2ZN1aLnNO1X__brL1UzpHsgkiL7NdjWT8oJnAxF64" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>G.EN.ESI</title>
<!-- InstanceEndEditable -->
<!--[if lte IE 7]>
<style>
.content { margin-right: -1px; } /* this 1px negative margin can be placed on any of the columns in this layout with the same corrective effect. */
ul.nav a { zoom: 1; } /* the zoom property gives IE the hasLayout trigger it needs to correct extra whiltespace between the links */
</style>
<![endif]-->
<!-- InstanceBeginEditable name="head" -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<!-- InstanceEndEditable -->
</head>
<body>
<div class="container">
<div class="header">
<div id="header_top">
<div id="text_only"><a href="http://www.genesi-fp7.eu/betsie/parser.pl">Text-only</a> </div>
<div id="admin"><a href="../admin/index.php">admin</a> </div>
<div id="search"><a href="../webpages/search/search.html">search</a></div>
<div id="header_middle">
<div id="logo_left"><img src="../images/500px-Flag_of_Europe.svg.png" alt="European Union" width="167" height="111" border="0" /></div>
<div id="logo_middle"><img src="../images/Genesi_Logo.png" alt="GENESI" width="620" height="111" border="0" /></div>
<div id="logo_right"><a href="http://cordis.europa.eu/home_en.html"><img src="../images/fp7.png" alt="Seventh Framework Programme" width="154" height="111" border="0" /></a></div>
</div>
<div id="header_bottom">
<ul id="MainMenu" class="MenuBarHorizontal">
<li><a href="../index.html">home</a> </li>
<li><a href="../webpages/news/news.php">news</a></li>
<li><a href="../webpages/programme/programme_wp1.html">programme</a></li>
<li><a href="../webpages/consortium/consortium_0.html">consortium</a></li>
<li><a href="../webpages/downloads/downloads.php">downloads</a></li>
<li><a href="../webpages/links/links.html">links</a></li>
<li><a href="../webpages/contact/contact.html">Contact</a></li>
</ul>
</div>
</div>
<!-- end .header --></div>
<!-- InstanceBeginEditable name="mainSection" -->
<div class="mainSection">
<div class="SubMenuBar"><!-- TemplateBeginEditable name="subMenu" -->
<ul id="SubMenu" class="MenuBarVertical">
<li><a href="#">MISC</a></li>
</ul>
<!-- TemplateEndEditable --></div>
<!-- TemplateBeginEditable name="content" -->
<div class="content">
<h1>Introduction to the G.EN.ESI Project</h1>
<p>The sustainability of industrial products, particularly household appliances, is an important issue today. Energy consumption in the residential/domestic sector is about 20% of world consumption, and associated greenhouse gas emissions exceed 35%. Household appliances contribute greatly to these values and thus require particular attention as far as sustainability is concerned.</p>
<p>It is well known that decisions taken during the early design of products are very important in determining total product cost. It is possible to hypothesize the same for environmental impacts – i.e. the sustainability of a product is largely determined during the early design stage. In order to allow designers to make well-informed decisions, new design methods and tools are needed to provide the basis for determining the degree of sustainability of a given product or process. Many eco-design procedures and tools have been developed but they are often far from a practical day-by-day application in company engineering departments, and they are not well integrated with computer-aided design tools. This project wants to make up for this limitation and to develop an eco-design methodology (called G.EN.ESI) and a related software design tool (called the G.EN.ESI platform) able to help product designers in ecological design choices, without losing sight of cost and typical practicalities of industry. The software platform will propose a guided process towards eco-design among several design choices based on the different scenarios of product lifecycle. The proposed approach will be applied to the household appliance field but it can be easily extended to other mechatronic products.</p>
<p>The project started in February 2012 and will continue until January 2015.</p>
</div>
<!-- TemplateEndEditable --></div>
<script type="text/javascript">
var MenuBar2 = new Spry.Widget.MenuBar("SubMenu", {imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
</script>
<!-- InstanceEndEditable -->
<div class="footer">
<div id="footer_top">This project is co-financed by the <a href="http://ec.europa.eu/index_en.htm">European Commission</a> and made possible within the <a href="http://cordis.europa.eu/fp7/home_en.html">VII Framework Programme</a></div>
<div id="footer_middle">Page maintained by <a href="mailto:[email protected]">Molly Buckingham</a> · Last update: <!-- #BeginDate format:En2 -->03-Apr-2013<!-- #EndDate -->
</div>
<div id="footer_bottom">
<div>© 2012 <a href="../webpages/consortium/consortium_1.html">G.EN.ESI Consortium</a> · <a href="../webpages/footer/Disclaimer.html">Disclaimer</a> · <a href="../webpages/footer/privacy_notice.html">Privacy Statement</a></div>
</div>
<!-- end .footer --></div>
<!-- end .container --></div>
<script type="text/javascript">
var MenuBar1 = new Spry.Widget.MenuBar("MainMenu", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
</script>
</body>
<!-- InstanceEnd --></html>
Murray do you suggest that I try and get rid of the nested templates or am I biting off more than I can chew after two days of self training?
Thank you
Maybe you are looking for
-
Is there a way to view the messages I sent along with files in Adobe Send?
Is there a way to view the messages I sent along with files in Adobe Send?
-
Dear All, Need help in understanding how and when will the % duration of work which we get while confirming an acitivty will show up in higher WBS. Eg. WBS level 1 % duration of work doesnt show up (no time ba
-
ISE 3315 stuck in INIT Entering runlevel: 3
Hello my ISE 3315 is stuck in ISE 3315 stuck in INIT Entering runlevel: 3 when i connect a screen and keyboard i can only see this last message : ISE 3315 stuck in INIT Entering runlevel: 3 There is nothing after, i cannot login (no prompt) even afte
-
Hi , I wana use two column conditionally in an update statement rather then writing two statement for each conditions. update war_room_report_aged set case when p_business_days_old=15 then nrpc_15_days when p_business_days_old=25
-
Is there a way I can set my calendar app to choose my gmail account automatically (as a default setting) when I enter a new calendar item, so I don't have to choose the gmail calendar from the drop down menu every time I make a new event/item on the