Pro grammatically generate build in document ID at the footer of Word document?
Hi All,
i am trying to added Document ID at the footer of Word file programatically using the following code. Following code is working only when i am uploading the document first time and its adding the ID at the footer. But problem is when i am uploading
same file into same document library, document Id is just going away. i have tried to use ItemUpdated method but it doesn't work. what i need to modify into code, so that same document ID will be remains at the footer of document no matter how many times uploaded
document. any help will greatly appreciated.
using System;
using System.Security.Permissions;
using System.Runtime.InteropServices;
using Microsoft.SharePoint;
using System.IO;
using System.IO.Packaging;
using DocumentFormat.OpenXml.Packaging;
using System.Xml;
using System.Collections.Generic;
using Microsoft.SharePoint.Security;
using Microsoft.SharePoint.Utilities;
using Microsoft.SharePoint.Workflow;
namespace AddHeaderFooterReceiver.ItemAddedEventReceiver
/// <summary>
/// List Item Events
/// </summary>
public class ItemAddedEventReceiver : SPItemEventReceiver
/// <summary>
/// An item was added.
/// </summary>
public string GetFooter()
string footerVal = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\" ?><w:ftr xmlns:ve=\"http://schemas.openxmlformats.org/markup-compatibility/2006\"
xmlns:o=\"urn:schemas-microsoft-com:office:office\" xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\" xmlns:m=\"http://schemas.openxmlformats.org/officeDocument/2006/math\" xmlns:v=\"urn:schemas-microsoft-com:vml\"
xmlns:wp=\"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing\" xmlns:w10=\"urn:schemas-microsoft-com:office:word\" xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\" xmlns:wne=\"http://schemas.microsoft.com/office/word/2006/wordml\"><w:p
w:rsidR=\"00C24C70\" w:rsidRDefault=\"00C24C70\"><w:pPr><w:pStyle w:val=\"Footer\" /></w:pPr><w:r><w:t>Hi</w:t></w:r></w:p><w:p w:rsidR=\"00C24C70\" w:rsidRDefault=\"00C24C70\"><w:pPr><w:pStyle
w:val=\"Footer\" /></w:pPr></w:p></w:ftr>";
return footerVal;
public void WDAddFooter(Stream footerContent, Stream fileContent)
// Given a document name, and a stream containing valid footer content,
// add the stream content as a footer in the document.
const string documentRelationshipType = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument";
const string wordmlNamespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main";
const string footerContentType = "application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml";
const string footerRelationshipType = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer";
const string relationshipNamespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships";
PackagePart documentPart = null;
using (Package wdPackage = Package.Open(fileContent, FileMode.Open, FileAccess.ReadWrite))
// Get the main document part (document.xml).
foreach (System.IO.Packaging.PackageRelationship relationship in wdPackage.GetRelationshipsByType(documentRelationshipType))
Uri documentUri = PackUriHelper.ResolvePartUri(new Uri("/", UriKind.Relative), relationship.TargetUri);
documentPart = wdPackage.GetPart(documentUri);
// There is only one officeDocument.
break;
Uri uriFooter = new Uri("/word/footer1.xml", UriKind.Relative);
if (wdPackage.PartExists(uriFooter))
// Although you can delete the relationship
// to the existing node, the next time you save
// the document after making changes, Word
// will delete the relationship.
wdPackage.DeletePart(uriFooter);
// Create the footer part.
PackagePart footerPart = wdPackage.CreatePart(uriFooter, footerContentType);
// Load the content from the input stream.
// This may seem redundant, but you must read it at some point.
// If you ever need to analyze the contents of the footer,
// at least it is already in an XmlDocument.
// This code uses the XmlDocument object only as
// a "pass-through" -- giving it a place to hold as
// it moves from the input stream to the output stream.
// The code could read each byte from the input stream, and
// write each byte to the output stream, but this seems
// simpler...
XmlDocument footerDoc = new XmlDocument();
footerContent.Position = 0;
footerDoc.Load(footerContent);
// Write the footer out to its part.
footerDoc.Save(footerPart.GetStream());
// Create the document's relationship to the new part.
PackageRelationship rel = documentPart.CreateRelationship(uriFooter, TargetMode.Internal, footerRelationshipType);
string relID = rel.Id;
// Manage namespaces to perform Xml XPath queries.
NameTable nt = new NameTable();
XmlNamespaceManager nsManager = new XmlNamespaceManager(nt);
nsManager.AddNamespace("w", wordmlNamespace);
// Get the document part from the package.
// Load the XML in the part into an XmlDocument instance.
XmlDocument xdoc = new XmlDocument(nt);
xdoc.Load(documentPart.GetStream());
// Find the node containing the document layout.
XmlNode targetNode = xdoc.SelectSingleNode("//w:sectPr", nsManager);
if (targetNode != null)
// Delete any existing references to footers.
//XmlNodeList footerNodes = targetNode.SelectNodes("./w:footerReference", nsManager);
//foreach (System.Xml.XmlNode footerNode in footerNodes)
// targetNode.RemoveChild(footerNode);
// Create the new footer reference node.
XmlElement node = xdoc.CreateElement("w:footerReference", wordmlNamespace);
XmlAttribute attr = node.Attributes.Append(xdoc.CreateAttribute("r:id", relationshipNamespace));
attr.Value = relID;
node.Attributes.Append(attr);
targetNode.InsertBefore(node, targetNode.FirstChild);
// Save the document XML back to its part.
xdoc.Save(documentPart.GetStream(FileMode.Create, FileAccess.Write));
public override void ItemAdded(SPItemEventProperties properties)
string extension = properties.ListItem.Url.Substring(properties.ListItem.Url.LastIndexOf(".") + 1);
if (extension == "docx")
//string headerContent = GetHeader().Replace("hello", properties.ListItem["Name"].ToString());
//string footerContent = GetFooter().Replace("Hi", properties.ListItem["Modified"].ToString());
//string footerContent = GetFooter().Replace("Hi", properties.ListItem["_dlc_DocId"].ToString() + " V : " +properties.ListItem["_UIVersionString"].ToString());
string footerContent = GetFooter().Replace("Hi", properties.ListItem["_dlc_DocId"].ToString());
//string footerContent1 = GetFooter().Replace("Hi", properties.ListItem["_UIVersionString"].ToString());
//Stream headerStream = new MemoryStream(System.Text.Encoding.UTF8.GetBytes(headerContent));
//Stream footerStream = new MemoryStream(System.Text.Encoding.UTF8.GetBytes(footerContent));
Stream footerStream = new MemoryStream(System.Text.Encoding.UTF8.GetBytes(footerContent));
//Stream footerStream1 = new MemoryStream(System.Text.Encoding.UTF8.GetBytes(footerContent1));
MemoryStream fileStream = new MemoryStream();
fileStream.Write(properties.ListItem.File.OpenBinary(), 0, (int)properties.ListItem.File.TotalLength);
//WDAddHeader(headerStream, fileStream);
//WDAddFooter(footerStream, fileStream);
WDAddFooter(footerStream, fileStream);
//WDAddFooter(footerStream1, fileStream);
properties.ListItem.File.SaveBinary(fileStream);
Instead of using Event Receiver approach have you tried looking on adding labels instead?
Here's a helpful article on how to add labels on your document
http://blog.isaacblum.com/2011/02/28/add-document-id-to-word-document-automatically/
Hope this helps
Artificial intelligence can never beat natural stupidity.
Similar Messages
-
How to hide a list from SharePoint tree view pro grammatically.
Hi,
I have enabled tree view for a SharePoint 2013 site pro grammatically.
I want hide some specific lists from that tree view like Documents, Workflow, Task List, Calender
Lists which are created default when we create a site.
How could i do that?I know how to hide Quick launch and Enable Tree view with properties in C#.
My question is
hide some specific lists from that tree view like Documents,
Workflow, Task List, Calender
Lists which are created default when we create a site. -
HI,
I have an XDP file designed by Adobe Designer 7.1 with the following hierarchy of elements:
-form1(root)
--Button
--tmpForm (subform - Repeat subform for each data entry )
---ST (Text)
Now, this XDP file generates an Interactive PDF form with Reader Rights enabled by the Adobe Document Services.
On click of button, the following javascript is executed on client side:
var df = _tmpForm.addInstance(1);
df.ST.rawValue = "HI" ;
xfa.host.messageBox( "Instances" + tmpForm.all.length ) ;
On clicking the button, i get the length of the instances of the subform and the size increases on each click, but no element is added "visibly" to the pdf.
But when i try to do the same by saving the XDP file as Dynamic PDF form for Acrobat 8.0,and open it using Adobe Acrobat PRO 8.0, it works fine.
My question is,I s it not possible to add subforms dynamically in PDF's generated by Adobe Document Services with Reader Rights enabled?
Or, is there something that i am missing?
Please guide.
Thanks.
Regards,
SiddharthaHi,
you can't change the behavior of the save button in the browser nor in Reader/Acrobat.
You can add a custom button within your form which calls a custom script from a folder level script using the browserForDoc method.
The browseForDoc methos is the only one whcih can change the name in the saveAs dialog.
Here's an example., you can run from Acrobat console.
You need to combine it with the solution from the other thread to make it work with your form.
http://forums.adobe.com/message/2266799#2266799%232266799
var oRetn = app.browseForDoc({
bSave: true,
cFilenameInit: "MyForm.pdf",
cFSInit: "",
if (typeof oRetn !== "undefined") {
this.saveAs({
cFS: oRetn.cFS,
cPath: oRetn.cPath,
bPromptToOverwrite: false -
Adobe Flash Professional CS5 and Adobe Flash Builder 4 enable time-saving workflows. Learn how to develop content in Flash while editing associated ActionScript code in Flash Builder 4, switching easily between the two applications to edit and test.
http://adobe.ly/w50IJmThis doesn't seem to work the same way in CS5.5 / CS6
In the video the class files are associated with the FLA, when you switch back to Flash Pro...
So far, when I follow these steps the classes are not associated with the FLA, the class field for the stage in Flash remains blank.
Also, clicking the edit icon in the properties of a MovieClip and allowing FB to create the file, does not associate the as file with the MovieClip.
Returning to Flash Pro and clicking the Edit button attempt to create a new file once again, but since the file already exists in FB it just remains on the New ActionScript Class dialog, with the Finish Button grayed out (because a file with the same name already exists in FB).
The resulting AS files for a given are created in a sub folder under:
Documents/Adobe Flash Builder 4.6/[Project]/src-[Project]/*.as
Yet the FLA is located in Documents:
Documents/[Project].fla
Should the as files exists with the fla, is a folder reference supposed to be set, or did I miss a step somewhere?
Is a source path supposed to be added to Flash Pro for:
Documents/Adobe Flash Builder 4.6/[Project]
I am currently on a Mac, but noticed the same behavior in Windows at work yesterday.
Thanks,
Josh -
Tcode for Generating ARE-2 document
Is there any standard for generating ARE-2 Document under export,
if not what is the round about solution for the same?
regards
shilpaAs I know, Form ARE 2 is just an combined application for removal of goods for export under claim for rebate of duty paid on excisable materials used in the manufacture and packing of such goods and removal of dutiable excisable goods for export under claim for rebate of finished stage Central Excise Duty or under bond without payment of finished stage Central Excise Duty leviable on export goods.
There is no standard process to handle ARE 2 in SAP.
Where, rightly mention in one of the previous post that you can very much follow process flow for ARE 1 in SAP.
So, there will not be any combine process for
- export under claim for rebate
- export under bond without payment
In SAP, you have to dealt them separately in ARE 1.
For further reference/understanding, refer following SDN threads links for:
- Export Against Under Claim of Rebate
- Export under No bond?
Take use of following TCodes:
TCode
Decs
J1IA101
- Excise Bonding ARE-1 procedure
J1IA102
- Excise Bonding ARE-1 procedure
J1IA103
- Excise Bonding ARE-1 procedure
J1IA104
- Excise Bonding ARE-1 procedure
J1IANX18
- Pro Forma of Running Bond Account
J1IBN01
- Create Excise Bond
J1IBN02
- Change Excise Bond
J1IBN03
- Display Excise Bond
J1IBN04
- Cancel Excise Bond
J1IBN05
- Close Excise Bond
J1IBONSUM
- Bond Summary Report
Regards
JP -
How do you include a DTD when generating an XML document
Hi
I have just started to use the Java XML Pack to generate a XML document.
How do you put the dtd element
<!DOCTYPE Controller SYSTEM "controller.dtd">
in the generated document.
I am using the following piece of code
public void generate(...)
DocumentBuilder builder = factory.newDocumentBuilder();
document = builder.newDocument();
Element rootElement = createElement("Controller");
// Fill out the nodes etc
// Save the result
TransformerFactory tFactory =
TransformerFactory.newInstance();
Transformer transformer = Factory.newTransformer();
File f = new File("dummy.xml");
FileWriter fw = new FileWriter(f);
DOMSource d1 = new
DOMSource(rootElement,"controller.dtd");
StreamResult result = new StreamResult(fw);
transformer.transform(d1, result);
Thanks
GregHello,
I had to go through quite some pain to get this done about a year ago,anyways,here is the solution.
all the import files are in jaxp1.1 bundle.
below is a test class code.
import org.apache.crimson.tree.XmlDocument;
import javax.xml.parsers.*;
import org.w3c.dom.*;
import java.io.*;
public class CreateDTDInXMLFile {
public CreateDTDInXMLFile() {
public static void main(String[] args) {
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document document = builder.newDocument();
Element root = document.createElement("root");
Element name = document.createElement("name");
name.appendChild(document.createTextNode("Khalid"));
Element address = document.createElement("address");
address.appendChild(document.createTextNode("2022 11th Ave SW"));
root.appendChild(name);
root.appendChild(address);
document.appendChild(root);
((XmlDocument)document).write(System.out);
//the above will print the simple xml doc,now add the dtd
//suppose the dtd is [<!DOCTYPE root SYSTEM "address.dtd">]
((XmlDocument)document).setDoctype(null,"address.dtd",null);
//now print the xml doc again
System.out.println("\n");
((XmlDocument)document).write(System.out);
} catch(ParserConfigurationException pce) {
pce.printStackTrace();
return;
}catch (IOException ioe) {
ioe.printStackTrace();
This will take care of the agony..
Khalid -
I am running mountain lion os 10.8.5 on mac book pro mid 2012 build. If I upgrade to Mavericks will MS Office programs still work? There does not appear to be an updated version of MS Office for Mac past 2011 that I bought last year and am using now. Thoughts? Suggestions?
Thanks.Office 2008 and 2011 will run on Mavericks, but you may not be able to get the installer for it at this time.
(115014) -
Error while building xml document
Hi Everyone,
I have a problem while building xml document.
I have developed my java files using IBM Eclipse 3.0 and i had no problem while executing the files.
But while i am trying to execute the same code in jdk/bin, xml document is not working..
No error encountered while compiling but while executing when i try to print the xml string it just gives the root element name like [root : null]
Can anyone suggest some solution?To the values element add xmlns:xsi and xsi:noNamespaceSchemaLocation.
<values xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="file:///c:/schema.xsd">schema.xsd is schema file. -
Generating an XML Document from an internal table in ABAP
Good day to all of you;
With ABAP, in the R/3 system, I'm trying to figure out a way to accomplish the following:
1) SELECT a set of Purchase Order data into an internal table.
2) Generate an XML document, containing the above data, using a specific schema.
I've been playing around with function module SAP_CONVERT_TO_XML_FORMAT which has the following interface:
CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
EXPORTING
I_FIELD_SEPERATOR = ''
I_LINE_HEADER = ''
I_FILENAME = v_fname
I_APPL_KEEP = ''
I_XML_DOC_NAME = v_docname
IMPORTING
PE_BIN_FILESIZE = v_byte
TABLES
I_TAB_SAP_DATA = i_SapData
CHANGING
I_TAB_CONVERTED_DATA = i_XMLData
EXCEPTIONS
CONVERSION_FAILED = 1
OTHERS = 2.
I'm uncertain as to whether or not the Export parameter, I_XML_DOC_NAME refers to some schema or definition and therefore have been excluding it. In doing so, the generated XML document seems to use the field name/type information from my itab for the tags.
If this function module requires an XML Document Name, how do I create one and where do I store it in R/3? If this is not the recommended solution, is anyone familiar with a way to load an XML schema, retrieve some data then have SAP generate an XML document using the schema?
Many thanks for any help available.
THai Phillips
Try with the following Code
This program exports an internal table to an XML file.
Report ZPRUEBA_MML_13 *
Export an internal table to XML document *
NO BORRAR ESTE CODIGO *
REPORT ZPRUEBA_MML_13.
PANTALLA SELECCION *
PARAMETERS: GK_RUTA TYPE RLGRAP-FILENAME.
PANTALLA SELECCION *
TYPE TURNOS *
TYPES: BEGIN OF TURNOS,
LU LIKE T552A-TPR01,
MA LIKE T552A-TPR01,
MI LIKE T552A-TPR01,
JU LIKE T552A-TPR01,
VI LIKE T552A-TPR01,
SA LIKE T552A-TPR01,
DO LIKE T552A-TPR01,
END OF TURNOS.
TYPE TURNOS *
TYPE SOCIO *
TYPES: BEGIN OF SOCIO,
NUMERO LIKE PERNR-PERNR,
REPOSICION LIKE PA0050-ZAUVE,
NOMBRE LIKE PA0002-VORNA,
TURNOS TYPE TURNOS,
END OF SOCIO.
TYPE SOCIO *
ESTRUCTURA ACCESOS *
DATA: BEGIN OF ACCESOS OCCURS 0,
SOCIO TYPE SOCIO,
END OF ACCESOS.
ESTRUCTURA ACCESOS *
START OF SELECTION *
START-OF-SELECTION.
PERFORM LLENA_ACCESOS.
PERFORM DESCARGA_XML.
END-OF-SELECTION.
END OF SELECTION *
FORM LLENA_ACCESOS *
FORM LLENA_ACCESOS.
REFRESH ACCESOS.
CLEAR ACCESOS.
MOVE: '45050' TO ACCESOS-SOCIO-NUMERO,
'MOISES MORENO' TO ACCESOS-SOCIO-NOMBRE,
'0' TO ACCESOS-SOCIO-REPOSICION,
'T1' TO ACCESOS-SOCIO-TURNOS-LU,
'T2' TO ACCESOS-SOCIO-TURNOS-MA,
'T3' TO ACCESOS-SOCIO-TURNOS-MI,
'T4' TO ACCESOS-SOCIO-TURNOS-JU,
'T5' TO ACCESOS-SOCIO-TURNOS-VI,
'T6' TO ACCESOS-SOCIO-TURNOS-SA,
'T7' TO ACCESOS-SOCIO-TURNOS-DO.
APPEND ACCESOS.
CLEAR ACCESOS.
MOVE: '45051' TO ACCESOS-SOCIO-NUMERO,
'RUTH PEÑA' TO ACCESOS-SOCIO-NOMBRE,
'0' TO ACCESOS-SOCIO-REPOSICION,
'T1' TO ACCESOS-SOCIO-TURNOS-LU,
'T2' TO ACCESOS-SOCIO-TURNOS-MA,
'T3' TO ACCESOS-SOCIO-TURNOS-MI,
'T4' TO ACCESOS-SOCIO-TURNOS-JU,
'T5' TO ACCESOS-SOCIO-TURNOS-VI,
'T6' TO ACCESOS-SOCIO-TURNOS-SA,
'T7' TO ACCESOS-SOCIO-TURNOS-DO.
APPEND ACCESOS.
ENDFORM.
FORM LLENA_ACCESOS *
FORM DESCARGA_XML *
FORM DESCARGA_XML.
DATA: L_DOM TYPE REF TO IF_IXML_ELEMENT,
M_DOCUMENT TYPE REF TO IF_IXML_DOCUMENT,
G_IXML TYPE REF TO IF_IXML,
W_STRING TYPE XSTRING,
W_SIZE TYPE I,
W_RESULT TYPE I,
W_LINE TYPE STRING,
IT_XML TYPE DCXMLLINES,
S_XML LIKE LINE OF IT_XML,
W_RC LIKE SY-SUBRC.
DATA: XML TYPE DCXMLLINES.
DATA: RC TYPE SY-SUBRC,
BEGIN OF XML_TAB OCCURS 0,
D LIKE LINE OF XML,
END OF XML_TAB.
CLASS CL_IXML DEFINITION LOAD.
G_IXML = CL_IXML=>CREATE( ).
CHECK NOT G_IXML IS INITIAL.
M_DOCUMENT = G_IXML->CREATE_DOCUMENT( ).
CHECK NOT M_DOCUMENT IS INITIAL.
WRITE: / 'Converting DATA TO DOM 1:'.
CALL FUNCTION 'SDIXML_DATA_TO_DOM'
EXPORTING
NAME = 'ACCESOS'
DATAOBJECT = ACCESOS[]
IMPORTING
DATA_AS_DOM = L_DOM
CHANGING
DOCUMENT = M_DOCUMENT
EXCEPTIONS
ILLEGAL_NAME = 1
OTHERS = 2.
IF SY-SUBRC = 0.
WRITE 'Ok'.
ELSE.
WRITE: 'Err =',
SY-SUBRC.
ENDIF.
CHECK NOT L_DOM IS INITIAL.
W_RC = M_DOCUMENT->APPEND_CHILD( NEW_CHILD = L_DOM ).
IF W_RC IS INITIAL.
WRITE 'Ok'.
ELSE.
WRITE: 'Err =',
W_RC.
ENDIF.
CALL FUNCTION 'SDIXML_DOM_TO_XML'
EXPORTING
DOCUMENT = M_DOCUMENT
IMPORTING
XML_AS_STRING = W_STRING
SIZE = W_SIZE
TABLES
XML_AS_TABLE = IT_XML
EXCEPTIONS
NO_DOCUMENT = 1
OTHERS = 2.
IF SY-SUBRC = 0.
WRITE 'Ok'.
ELSE.
WRITE: 'Err =',
SY-SUBRC.
ENDIF.
LOOP AT IT_XML INTO XML_TAB-D.
APPEND XML_TAB.
ENDLOOP.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
BIN_FILESIZE = W_SIZE
FILENAME = GK_RUTA
FILETYPE = 'BIN'
TABLES
DATA_TAB = XML_TAB
EXCEPTIONS
OTHERS = 10.
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.
FORM DESCARGA_XML *
Thanks & regards
Sreenivasulu P -
Getting error while generating Business Blueprint Document for Project
Hello Experts,
I hv created a project in Solution manager 3.2 through solar_project_admin . Now iam in the phase of defining its Business Blueprint . I hv completed the steps, at the end when iam generating Business Blueprint document ,following error is being displayed:
<b>Blueprint document cannot be created. Check the selection
Message no. SOLAR110
Diagnosis
A Business Blueprint document created for the selected selection options would contain no structure elements. It would be empty, so it is not created.
Procedure
Choose less restrictive selection options, especially the option
"Print Structure Elements: Complete Selection" in the "Options" tab.</b>
I hv checked this error and the option displayed above in the error message but no such option is being displayed anywhere,can anyone plz help me out with how to resolve this problem?
Requested to revert at earliest as iam stuck with this since many days,My email id is <b>[email protected]</b> .
Regards,
SaumyaHello Horst ,
Thanks for ur reply.I hv now again tried to Generate Blueprint Document with unselecting option Only with Documents but in the structure selection when i tick on all the options given in tat structure then regenerate Business blueprint Document ,following error message is displayed:
<b>Error 130: Business Blueprint cannot be generated
Message no. AI_SOLAR08130</b>
For this error no long text/ explaination exists .But when i try to generate Business Blueprint Document with unselecting option Only with Documents but in the structure selection unticking on all the options given in tat structure then following error message is displayed:
<b>Blueprint document cannot be created. Check the selection
Message no. SOLAR110
Diagnosis
A Business Blueprint document created for the selected selection options would contain no structure elements. It would be empty, so it is not created.
Procedure
Choose less restrictive selection options, especially the option
"Print Structure Elements: Complete Selection" in the "Options" tab.</b>
Plz revert back, wt shld i do now?
Regards,
Saumya -
How to configure to generate two accounting documents for Mvt 645
Dear Experts,
I read all documents related to STO one-step procedure (mvt 645). They said that the system generate two accounting documents for 2 company codes (receing and issuing company codes) after goods issue reference to DO.
However, after configuration one step procedure and test my system, the system only generated one accounting document for receiving company code, not for issuing company code. In Material document, I saw 2 Mvt 645 and 101. In the lines having Mvt 645, I saw G/L account of cost-of-goods-sold.
Could you please to show me how to generate two accounting documnets automatically after goods issue referent to DO with Mvt 645?
Thank you so much,
Best regards,
Anh DuongMy configuration steps are:
Step 1: preparation:
create customer and vendor master
extend sales & purchasing views for material master
Step 2: Assign customer number and the organizational units (sales organization, distribution channel, and division) to the Supplying plant and Receiving plant
IMG --> Materials Management --> Purchasing --> Purchase Order --> Set up Stock Transport Order --> Define Shipping Data for Plants
Step 3: tick on column "One step" for the line of supplying, receiving plant, and PO type cross transport order
IMG --> Materials Management --> Purchasing --> Purchase Order --> Set up Stock Transport Order --> Assign Document Type, One-Step Procudure, Underdelivery Tolerance
Step 4: assign delivery type NLCC for PO type cross transport order
IMG --> Materials Management --> Purchasing --> Purchase Order --> Set up Stock Transport Order --> Assign Delivery Type and Checking Rule
These above steps are in MM module.
Please help me,
Thank you,
Anh Duong -
Set Adobe Acrobat XI Pro. When I want to save the file in WORD, EXCEL or esporta file into ... immediately throws an error "save as failed to process this document no file was created".
What's the problem?
Any help in finding a solution is greatly appreciated.
Thank you,Installed AcrobatXI PRO 11.0.09 on seven computers and laptops. Two of them gives an error when you try to save a document in WORD, EXCEL, Power Point, or when exporting to... error: Save failed to process this document. No File was created.
But all good saves in the format of TXT and jpg.
I have uninstalled and restored and re-installed and updated and registry cleaned and removed using the special utility Cleaner Tool for Acrobat, but nothing helps.
On one notebook with Windows 8.1 and Microsoft office 2013, on another laptop with Windows 7 and Microsoft office 2010, the same problem, although there are computers with Windows 7 and Microsoft office 2010 and everything works.
Tell me where to find the problem and how to solve it.
Thank you. -
Itunes document manager pro will not open a document with .cwk extension. It will catch the document then error message states that it cannot open document. Can anyone tell me what Im doing wrong?
Forgive my ignorance but I have never hear of iTunes Document Manager Pro. If you mean Document Manager Pro, i was able to find that. Back to your problem, have you tried opening one of those files in the iOS iWorks apps? Form the quick read that I did about this, .cwk files can be opened by Pages, Numbers or Keynote, depending on what type of document that it is and those files can be read by Document Manager Pro, after properly saving them. I don't see that you can go directly from the .cwk file in Document Manager Pro without converting them first.
I took a very quick look at the app, so I may be a missing something about its capability. -
How to generate a pdf document from excel on ipad version?
IS there a way to generate a pdf document from an excel file directly from excel ipad version ?
IS there a way to generate a pdf document from an excel file directly from excel ipad version ?
-
How to generate an XML Document from XQuery
The following query returns me the required XML output. However, I need to generate an XML Document out of it. How do I go about generating an XML Doc?.
SELECT XMLQuery('<Data>
{for $tert in ora:view("DATA"),
$tert_audit in ora:view("DATA_AUDIT")
let $tert_cmd_id := $tert/ROW/ID/text(),
$tert_spouse_name := $tert/ROW/SPOUSE_NAME/text(),
$tert_directions := $tert/ROW/DIRECTIONS/text(),
$tert_soil_zone := $tert/ROW/SOIL_ZONE/text(),
$tert_audit_cmd_id := $tert_audit/ROW/ID/text(),
$tert_audit_trans_date := $tert_audit/ROW/TRANSACTION_DATE/text()
where $tert_cmd_id = $tert_audit_cmd_id and
$tert_audit_trans_date >= xs:date(V_Last_Successful_Date)
order by $tert_cmd_id
return
<op>
<op_type>I</op_type>
<ent_id>{$tert_cmd_id}</ent_id>
<source>S</source>
<fg>
<val_flds>
<fld>
<id>spouse_name</id>
<val>{$tert_spouse_name}</val>
</fld>
<fld>
<id>directions</id>
<val>{$tert_directions}</val>
</fld>
<fld>
<id>soil_zone</id>
<val>{$tert_soil_zone}</val>
</fld>
</val_flds>
</fg>
</op>}</Data>' RETURNING CONTENT)
INTO V_Other_Insert
FROM dual;Hi Geoff,
I would like to generate an XML file which contains data as shown below:
<Insert>
<result>
<type>A</type>
<id>1</id>
<date>11/11/2006</date>
<source>Web</source>
</result>
</Insert>
I'm using the below given query for this purpose:
SELECT XMLQuery('<Insert>
{for $c in ora:view("TableA")
let $id := $c/ROW/ID/text(),
$code := $c/ROW/CODE/text(),
$type := $c/ROW/TYPE/text(),
$date := $c/ROW/DATE/text()
return
<result>
<type>{$type }</type>
<id>{$id}</id>
<date>{$date}</date>
<source>S</source>
</result> }</Insert>' RETURNING CONTENT)
INTO V_Insert
FROM dual;
V_Insert stores the required result.
How do I save this result to a XML Document?
Please help.
Maybe you are looking for
-
when connect ipod nano 6th gen i get error message "you need to format the disk in drive G: before you can use it Do you want to format it?" Any suggestions please
-
While i am typing info on the keyboard e.g. on google maps or on my email page to send a message, firefox keeps jumping back to its start page and I have to start all over. What can I do to stop this from happening?
-
I am using Mainstage 3 with a MacBook Pro running Yosemite. When I play an alto sax line from printed sheet music on a MIDI controller keyboard, how do I make it transpose to the right pitch (down a major 6th)?
-
What do you look for when buying a new printer?
Ease of use and good drivers. Ever tried to use a Ricoh, Konica Minolta, or Kyocera MFP? Printers are stupidly emotive, get it wrong and it's like you've punched their kids or something.
-
When doing BW Extractions can ALEREMOTE bypass authorizations?
I was sitting in a meeting today about how a consultant wanted/required access to every table in R/3 for his BW extraction. My first response was no and he said that if they had access to ALEREMOTE they could extract all tables. I explained that AL