How to create NC data by using API?
Hi, all
I want to log NC by using API. but can't complet succsessful .
please help me check the following source code.
thanks.
NCProductionServiceInterface ncPSI = Services.getService("com.sap.me.nonconformance", "NCProductionService");
CreateNCRequest ncRequest = new CreateNCRequest();
//NC500_part: copy from NC500,and ALLOW_PARTIAL=YES
ncRequest.setActivity("NC500_part");
ncRequest.setSfcRef(new SFCBOHandle(site, sfc).toString());
ncRequest.setValidateNCCodeOperation(true);
// defined NCCODE: NCJPN1
ncRequest.setNcCodeRef(new NCCodeBOHandle(site,"NCJPN1").toString());
ncRequest.setDefectCount(new BigDecimal("3"));
CreateNCResponse ncResponse = ncPSI.createNC(ncRequest);
DispositionRequest disRequest = new DispositionRequest();
disRequest.setActivity("NC500_part"); //what can be set for this Activity, NC500_part is OK?
disRequest.setSfcRef(new SFCBOHandle(site, sfc).toString());
ProductionContext productionCtx = new ProductionContext();
productionCtx.setResourceRef(new ResourceBOHandle(site, "COIL").toString());
disRequest.setProdCtx(productionCtx);
DispositionSelection disSelection = new DispositionSelection();
//DispositionSelection is must need, but what shuold be set?
disSelection.setXXXX();
disRequest.setDispositionSelection(disSelection);
disRequest.setNcCodeRef(new NCCodeBOHandle(site,"NCJPN1").toString());
disRequest.setTotalDefectCount(new BigDecimal("3"));
// DispositionNC
DispositionResponse disResponse = ncPSI.disposition(disRequest);
I log the nc to my SFC,but how to complete the nc process by API?
Wait for you help,thanks
Similar Messages
-
How to create Geniric data source using the SAP FUNCTION MODULE
Hi,
I want to create genric data source using function module
MD_STOCK_REQUIREMENTS_LIST_API (delivered by sap)
for this function module where I can find Extract Structer
or I have to create ?
How can i use this ?
Thanks in AdvanceHi Shilpa,
Check here..........
Using function module as the generic extractor
Generic Delta Update using Function Module
Document regarding R/3 extractors using function module/user exits
Generic extractors using FM -
How to create Custom WEB ADI using API Only for both Dowload/Upload process
I am able to create custom WEB ADI using API for upload process. I have written the following code to create custom WEB ADI using API for upload process.
DECLARE
v_application_id NUMBER:= 20003;
v_object_code VARCHAR2(255):='WEBADI_API_DEM_17';
v_int_user_name VARCHAR2(255):='WEBADI_API_DEM_17';
v_language VARCHAR2(255):='US';
v_source_lang VARCHAR2(255):='US';
v_user_id NUMBER :=1345;
v_integrator_code VARCHAR2(255);--:='WEBADI_API_DEM_17_INTG';
v_param_list_code VARCHAR2(255);
--v_interface_code VARCHAR2(255);
v_interface_code VARCHAR2(255);--:='WEBADI_API_DEM_17_INTF';
p_layout_code VARCHAR2(255):='WEBADI_API_DEM_17_LAYOUT';
V_MAPPING_CODE VARCHAR2(255);
BEGIN
BNE_INTEGRATOR_UTILS.CREATE_INTEGRATOR(P_APPLICATION_ID =>v_application_id,
P_OBJECT_CODE =>v_object_code,
P_INTEGRATOR_USER_NAME =>v_int_user_name,
P_LANGUAGE =>v_language,
P_SOURCE_LANGUAGE =>v_source_lang,
P_USER_ID =>v_user_id,
P_INTEGRATOR_CODE =>v_integrator_code);
BNE_INTEGRATOR_UTILS.CREATE_INTERFACE_FOR_API (P_APPLICATION_ID =>v_application_id,
P_OBJECT_CODE =>v_object_code,
P_INTEGRATOR_CODE =>v_integrator_code,
P_API_PACKAGE_NAME =>'XXDH_PRICE_LIST_POC_PKG',
P_API_PROCEDURE_NAME =>'CREATE_PRICE_LIST',
P_INTERFACE_USER_NAME =>'WEBADI_API_DEM_17',
P_PARAM_LIST_NAME =>'WEBADI_API_DEM_17',
P_API_TYPE =>'PROCEDURE',
P_API_RETURN_TYPE =>NULL,
P_UPLOAD_TYPE =>2,
P_LANGUAGE =>v_language,
P_SOURCE_LANG =>v_source_lang,
P_USER_ID =>v_user_id,
P_PARAM_LIST_CODE =>v_param_list_code,
P_INTERFACE_CODE =>v_interface_code);
BNE_INTEGRATOR_UTILS.CREATE_DEFAULT_LAYOUT
(P_APPLICATION_ID =>v_application_id,
P_OBJECT_CODE =>v_object_code,
P_INTEGRATOR_CODE =>v_integrator_code,
P_INTERFACE_CODE =>v_interface_code,
P_USER_ID =>v_user_id,
P_FORCE =>FALSE,
P_ALL_COLUMNS =>TRUE,
P_LAYOUT_CODE =>p_layout_code);
BNE_CONTENT_UTILS.CREATE_CONTENT_COLS_FROM_VIEW (P_APPLICATION_ID =>v_application_id,
P_CONTENT_CODE =>'WEBADI_API_DEM_17'||'_CNT',
P_VIEW_NAME =>'XXDH_PRICE_LIST_POC_V',
P_LANGUAGE =>v_language,
P_SOURCE_LANGUAGE =>v_source_lang,
P_USER_ID =>v_user_id);
BNE_CONTENT_UTILS.CREATE_CONTENT_TO_API_MAP (P_APPLICATION_ID =>v_application_id,
P_OBJECT_CODE =>v_object_code,
P_INTEGRATOR_CODE =>v_integrator_code,
P_CONTENT_CODE =>'WEBADI_API_DEM_17'||'_CNT',
P_INTERFACE_CODE =>v_interface_code,
P_LANGUAGE =>v_language,
P_SOURCE_LANGUAGE =>v_source_lang,
P_USER_ID =>v_user_id,
P_MAPPING_CODE =>V_MAPPING_CODE);
END;
I need to know what are API we can use to create download+upload ADI? anyone has already prepared script....please share it it me. My email id - [email protected]
ThanksUse FNDLOAD, it's the only way.
There are 2 seperate scripts, 1 for the Integrator and 1 for Layout.
FNDLOAD apps/<pw> 0 Y DOWNLOAD $BNE_TOP/patch/115/import/bneintegrator.lct <your name>.ldt BNE_INTEGRATORS INTEGRATOR_ASN="XXX" INTEGRATOR_CODE="<your code>"
FNDLOAD apps/<pw> 0 Y DOWNLOAD $BNE_TOP/patch/115/import/bnelay.lct <your name>.ldt BNE_LAYOUTS LAYOUT_ASN="XXX" LAYOUT_CODE="<your code>"
Cheers
Jeroen -
How to create temp. data base using 10g edition
i was usining oracle 10g edition and got a problem
create table #albums (
ERROR at line 1:
ora-00911:invalid character
could you please sort this problem out.
thanking you
gouravor try this:
create table "#albums" (Ah, yes.
Another one who loves to forever use double-quotes around identifiers. Very proper thing to do, especially useful in trouble shooting environments such as SQLPlus. <g>
BTW: The proper way to handle temp tables in Oracle is to learn about Global Temporary Tables. -
How to create a project templace using a API?
Hi all,
I can create a project using API PA_PROJECT_PUB.create_project, but how to create a project templace using a API?
thanks for your any effort.
CarilHi Caroline:
If sub projects are not supported currently, does the EDK API support creating the project folders under a project? Please let me know.
Thanks.
Bhanu -
How to create a WebServices by using a BI data?
Hi All,
Can anybody tell me that, How to create a WebServices by using a BI data?
If possible need the steps also...
Plz reply back me to [email protected]
Your help will be appreciated
Regards,
KIran TelkarKiran,
did you go through...
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7ffba2ec-0c01-0010-2e81-988e48e3ca43
on how to expose a BW query as a web service...?
Arun
Hope it helps.. -
How to create new XML file using retreived XML content by using SAX API?
hi all,
* How to create new XML file using retreived XML content by using SAX ?
* I have tried my level best, but output is coming invalid format, my code is follows,
XMLFileParser.java class :-
import java.io.StringReader;
import java.io.StringWriter;
import javax.xml.transform.OutputKeys;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMResult;
import javax.xml.transform.sax.SAXSource;
import javax.xml.transform.sax.SAXTransformerFactory;
import javax.xml.transform.sax.TransformerHandler;
import javax.xml.transform.stream.StreamResult;
import org.w3c.dom.Document;
import org.xml.sax.Attributes;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.XMLFilterImpl;
public class PdfParser extends XMLFilterImpl {
private TransformerHandler handler;
Document meta_data;
private StringWriter meta_data_text = new StringWriter();
public void startDocument() throws SAXException {
void startValidation() throws SAXException {
StreamResult streamResult = new StreamResult(meta_data_text);
SAXTransformerFactory factory = (SAXTransformerFactory) SAXTransformerFactory.newInstance();
try
handler = factory.newTransformerHandler();
Transformer transformer = handler.getTransformer();
transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
transformer.setOutputProperty(OutputKeys.INDENT, "yes");
handler.setResult(streamResult);
handler.startDocument();
catch (TransformerConfigurationException tce)
System.out.println("Error during the parse :"+ tce.getMessageAndLocation());
super.startDocument();
public void startElement(String namespaceURI, String localName,
String qualifiedName, Attributes atts) throws SAXException {
handler.startElement(namespaceURI, localName, qualifiedName, atts);
super.startElement(namespaceURI, localName, qualifiedName, atts);
public void characters(char[] text, int start, int length)
throws SAXException {
handler.characters(text, start, length);
super.characters(text, start, length);
public void endElement(String namespaceURI, String localName,
String qualifiedName) throws SAXException {
super.endElement("", localName, qualifiedName);
handler.endElement("", localName, qualifiedName);
public void endDocument() throws SAXException {
void endValidation() throws SAXException {
handler.endDocument();
try {
TransformerFactory transfactory = TransformerFactory.newInstance();
Transformer trans = transfactory.newTransformer();
SAXSource sax_source = new SAXSource(new InputSource(new StringReader(meta_data_text.toString())));
DOMResult dom_result = new DOMResult();
trans.transform(sax_source, dom_result);
meta_data = (Document) dom_result.getNode();
System.out.println(meta_data_text);
catch (TransformerConfigurationException tce) {
System.out.println("Error occurs during the parse :"+ tce.getMessageAndLocation());
catch (TransformerException te) {
System.out.println("Error in result transformation :"+ te.getMessageAndLocation());
} CreateXMLFile.java class :-
Sax.startDocument();
Sax.startValidation();
Sax.startElement("", "pdf", "pdf", new AttributesImpl());
Sax.startElement("", "basic-metadata", "basic-metadata", new AttributesImpl());
String xmp_str = new String(meta_data.getByteArray(),"UTF8");
char[] xmp_arr = xmp_str.toCharArray();
Sax.characters(xmp_arr, 0, xmp_arr.length);
Sax.endElement("", "pdf", "pdf");
Sax.endValidation();
Sax.endDocument();
Sax.endElement("", "basic-metadata", "basic-metadata");* In CreateXMLFile.java
class, I have retreived the xml content in the meta_data object, after that i have converted into character array and this will be sends to SAX
* In this case , the XML file created successfully but the retreived XML content added as an text in between basic-metadata Element, that is, retreived XML content
is not an XML type text, it just an Normal text Why that ?
* Please help me what is the problem in my code?
Cheers,
JavaImranSax.startDocument();
Sax.startValidation();
Sax.startElement("", "pdf", "pdf", new AttributesImpl());
Sax.startElement("", "basic-metadata", "basic-metadata", new AttributesImpl());
String xmp_str = new String(meta_data.getByteArray(),"UTF8");
char[] xmp_arr = xmp_str.toCharArray();
Sax.characters(xmp_arr, 0, xmp_arr.length);
</code><code>Sax.endElement("", "basic-metadata", "basic-metadata");</code>
<code class="jive-code jive-java">Sax.endElement("", "pdf", "pdf");
Sax.endValidation();
Sax.endDocument();
* I HAVE CHANGED MY AS PER YOUR SUGGESTION, NOW SAME RESULT HAS COMING.
* I AM NOT ABLE TO GET THE EXACT OUTPUT.,WHY THAT ?
Thanks,
JavaImran{code} -
How to create the sales order using BAPI's ....?
Hi Guru's,
could you please provide how to create the sales order using BAPI's .....i need step by step process and please provide the details from scratch....basically i don't have basic knowledge on this....please provide required inputs ....:)
thanks in advance
Srinivas......Hi Guru's thanks for your inouts and your valuble time...
please find the program logic below...
*& Report ZAREPAS30
REPORT zarepas30.
DATA : gs_vbeln TYPE vbak-vbeln,
gs_order_header_in TYPE bapisdhd1,
gs_order_header_inx TYPE bapisdhd1x,
gt_order_items_in TYPE STANDARD TABLE OF bapisditm,
gwa_itab1 TYPE bapisditm,
gt_order_items_inx TYPE STANDARD TABLE OF bapisditmx,
gwa_itab2 TYPE bapisditmx,
gt_order_partners TYPE STANDARD TABLE OF bapiparnr,
gwa_itab3 TYPE bapiparnr,
gt_return TYPE STANDARD TABLE OF bapiret2,
gwa_itab4 TYPE bapiret2.
Sales document type
PARAMETERS: p_auart TYPE auart OBLIGATORY.
Sales organization
PARAMETERS: p_vkorg TYPE vkorg OBLIGATORY.
Distribution channel
PARAMETERS: p_vtweg TYPE vtweg OBLIGATORY.
Division.
PARAMETERS: p_spart TYPE spart OBLIGATORY.
Requested Delivery Date
PARAMETERS: p_edatu TYPE edatu OBLIGATORY.
Sold-to
PARAMETERS: p_sold TYPE kunnr OBLIGATORY.
Ship-to
PARAMETERS: p_ship TYPE kunnr OBLIGATORY.
Material
PARAMETERS: p_matnr TYPE matnr OBLIGATORY.
Quantity.
PARAMETERS: p_menge TYPE kwmeng OBLIGATORY.
Plant
PARAMETERS: p_plant TYPE werks_d OBLIGATORY.
Start-of-selection.
START-OF-SELECTION.
Header data
Sales document type
gs_order_header_in-doc_type = p_auart.
gs_order_header_inx-doc_type = 'X'.
Sales organization
gs_order_header_in-sales_org = p_vkorg.
gs_order_header_inx-sales_org = 'X'.
Distribution channel
gs_order_header_in-distr_chan = p_vtweg.
gs_order_header_inx-distr_chan = 'X'.
Division
gs_order_header_in-division = p_spart.
gs_order_header_inx-division = 'X'.
Reguested Delivery Date
gs_order_header_in-req_date_h = p_edatu.
gs_order_header_inx-req_date_h = 'X'.
gs_order_header_inx-updateflag = 'I'.
Partner data
Sold to
gwa_itab3-partn_role = 'AG'.
gwa_itab3-partn_numb = p_sold.
APPEND gwa_itab3 TO gt_order_partners .
ship to
gwa_itab3-partn_role = 'WE'.
gwa_itab3-partn_numb = p_ship.
APPEND gwa_itab3 TO gt_order_partners .
ITEM DATA
gwa_itab2-updateflag = 'I'.
Line item number.
gwa_itab1-itm_number = '000010'.
gwa_itab2-itm_number = 'X'.
Material
gwa_itab1-material = p_matnr.
gwa_itab2-material = 'X'.
Plant
gwa_itab1-plant = p_plant.
gwa_itab2-plant = 'X'.
Quantity
gwa_itab1-target_qty = p_menge.
gwa_itab2-target_qty = 'X'.
APPEND gwa_itab1 TO gt_order_items_in.
APPEND gwa_itab2 TO gt_order_items_inx.
Line item number.
gwa_itab1-itm_number = '000020'.
gwa_itab2-itm_number = 'X'.
Material
gwa_itab1-material = p_matnr.
gwa_itab2-material = 'X'.
Plant
gwa_itab1-plant = p_plant.
gwa_itab2-plant = 'X'.
Quantity
gwa_itab1-target_qty = p_menge.
gwa_itab2-target_qty = 'X'.
APPEND gwa_itab1 TO gt_order_items_in.
APPEND gwa_itab2 TO gt_order_items_inx.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
order_header_in = gs_order_header_in
ORDER_HEADER_INX = gs_order_header_inx
IMPORTING
SALESDOCUMENT = gs_vbeln
tables
RETURN = gt_return
ORDER_ITEMS_IN = gt_order_items_in
ORDER_ITEMS_INX = gt_order_items_inx
order_partners = gt_order_partners.
Check the return table.
LOOP AT gt_return into gwa_itab4 WHERE type = 'E' OR type = 'A'.
EXIT.
ENDLOOP.
IF sy-subrc = 0.
WRITE: / 'Error occured while creating sales order '.
ELSE.
Commit the work.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
WRITE: / 'Document ', gs_vbeln, ' created'.
ENDIF. -
How we create new data base in oracle 10g express edition
hello every body.. i student of B tech n new user of oracle so please help me how we creat new data base in oracle 10g express edition
Hello, Oracle XE can not create more than one instance, the other editions yes, but like other editions XE allows you to create database schemas, schemas logically grouped objects like tables, views, indexes created by a user. By creating an Oracle user is associated with a schema of the same name.
Using SYS or system accounts for creating user accounts.
Syntax to create a user:
create user Your_user
IDENTIFIED BY password
default tablespace users;
grant connect, resources to your_user;
Edited by: rober584812 on Jun 25, 2010 9:03 PM -
How to create custom report plugin using child region report metadata
Hi,
I want to ask for help on how to create custom report plugin using child region report metadata. My idea is to create a child region, a classic report and set the condition to never.
Then i will query the child report metadata from apex view and use it to create a custom report like using jquery jq-grid. Any idea how i can create a process that will use the child report
metadata? I dont know how i can create a process just like how apex work, how apex render report, coz i want it to be control using the standard apex report attribute. This plugin will
render according to the child report attribute.
Is there anybody here had ever done this?Hi Nicolette,
Thanks for the reply. I know where to find the metadata, just asking for idea on how the rendering process will be.
Start from determining column heading, column order until finish rendering the report. The same way how apex
render the classic report.
Previously this imy my rendering process:
FUNCTION GETCOLUMN(P_REGION IN APEX_PLUGIN.T_REGION,
P_PLUGIN IN APEX_PLUGIN.T_PLUGIN,
P_VALUE IN VARCHAR2) RETURN SYS.DBMS_SQL.DESC_TAB2 IS
VSQLHANDLER APEX_PLUGIN_UTIL.T_SQL_HANDLER;
VCOLCOUNT NUMBER;
VCOLNAMES VARCHAR2(2000);
VAJAXIDENTIFIER VARCHAR2(100);
VPAGESIZE TYPEATTR := P_REGION.ATTRIBUTE_04;
VJSCODE VARCHAR2(32767);
BEGIN
VSQLHANDLER := APEX_PLUGIN_UTIL.GET_SQL_HANDLER(P_SQL_STATEMENT => 'select * from s_emp',
P_MIN_COLUMNS => 1,
P_MAX_COLUMNS => 999,
P_COMPONENT_NAME => P_REGION.ID);
VCOLCOUNT := VSQLHANDLER.COLUMN_LIST.COUNT();
FOR I IN 1 .. VCOLCOUNT LOOP
VCOLNAMES := VCOLNAMES || '{name: "' ||
UPPER(VSQLHANDLER.COLUMN_LIST(I).COL_NAME) || '",';
END LOOP;
APEX_PLUGIN_UTIL.FREE_SQL_HANDLER(VSQLHANDLER);
RETURN VSQLHANDLER.COLUMN_LIST;
EXCEPTION
WHEN OTHERS THEN
APEX_PLUGIN_UTIL.FREE_SQL_HANDLER(VSQLHANDLER);
RAISE;
END GETCOLUMN;
So this is how i get the header for my report plugin. The same method is use to get the value / data for each column. This process is work. So now
i want to extend my plugin so that i will use all attributes from the child report to render my plugin. So the column header, column order, all will depend
on the child report. And the column display condition is set, it will also check the condition before render the column. Sounds like i want to reinvent
the normal apex rendering process but this is what i want to achieve.
I need help to find the correct logic for my render process. Don't want too much for starting, just want to render the plugin correctly, same with child report,
same columns alias, column ordering and column conditional display.
Thanks,
akulala -
How to create a single report using 5 difftent reports
Hi Experts
how to create a single report using 5 repors in it.
Example
I have to create a Survey history report using
Reports like Surevy 1
Surevy 2
Surevy 3
Surevy 4
Surevy 5
Please suggest me.
SantoshUse Analysis Process Designer (RSANWB) to feed each of the survey BEX reports to one DSO. Assuming each of the surveys has something in common to compare. Could also be used as a snapshot storage for the surveys in case history needs to be compared/archived.
Build the Direct update DSO with the survey objects. Add needed time characteristics and/or version control objects to the key.
Data sources will be the 5 surveys.
Add formula to hardcode version/time for history.
Data target is the direct update DSO.
http://help.sap.com/saphelp_nw2004s/helpdata/EN/49/7e960481916448b20134d471d36a6b/frameset.htm
-SM -
How to create Hive data source?!!
I am trying to create hive data source connection.
I am stack on creating connection profile and configuring "Generic JDBC Driver" .. after i added drivers i keep getting " Required property in driver definition missing value: Driver Class." error.
I am adding a screenshot with the list of drivers.Kevin
In Jdbc node create a Jdbc Connection Pool with the
Url=jdbc:borland:dslocal:/jbuilder6/samples/Ejb/db/esite.jds
and driver=com.borland.datastore.jdbc.DataStoreDriver. Create a Datasource
using a Jndi & Jdbc Connection Pool.
Deepak
Kevin Gao wrote:
in jbuilder6 samples instructions,there is instruction as:
Create a WebLogic data source named ESiteSource. You will need to check
your WebLogic documentation on how to create a data source. You will need
the following settings
1.The database URL should be of the following format:
jdbc:borland:dslocal:/jbuilder6/samples/Ejb/db/esite.jds, ensuring that you
have the correct path to esite.jds.
2.The driver will be com.borland.datastore.jdbc.DataStoreDriver.
3.This JDataStore is not password protected, but you must still specify a
user; any user will do, e.g., user=Frank;password=
but how to create a data source in weblogic?
help me please!
thanks in advance!
Kevin Gao
EMAIL:[email protected] -
How to create dvd/cd image using super drive in MacBook Air
I have MacBook Air and also Apple Supper drive for the same. can u help me to find dvd/cd burrning and copy software. and also guide me "how to create dvd/cd image using super drive in MacBook Air"
First to create a video DVD you need to use DVD authoring software like iDVD. You can purchase it from the online Apple Store while supplies last.
For creating a disk image use Disk Utility.
To burn items to a CD or data DVD just insert the disc in the optical drive and drag those items onto the disc icon on the Desktop. Then drag the disc icon to the Trash icon in the Dock which changes to a Burn icon.
OT -
How to create and save playlist using JMF?
Hello i m new to JMF. Can anyone tell me how to create and save a playlist of media files using JMF.
also how can i play .DAT files using JMF?
Does JMF supports AVI,Asf files?Hello i m new to JMF. Can anyone tell me how to create and save a playlist of media files using JMF.
also how can i play .DAT files using JMF?
Does JMF supports AVI,Asf files? -
How to create a new plugin using Adobe InDesign CS5?
How to create our own plugin using Adobe InDesign CS5?is there any documents available for this?
Sure. (Didn't Google find anything?)
http://www.adobe.com/devnet/indesign/sdk.html
But you don't "use" InDesign to write plugins. You need a C++ compiler and a lot of programming knowledge and experience with C++. If this means nothing to you, don't look any further -- it's way too complicated to "go and get started" at random. Adobe's documentation is not intended for learners, starters, and people who shrink back at the thought of having to read multiple help documents that are each a couple of megabytes large.
Using the SDK is so complicated there's even a part of the forum dedicated to it, aptly (and obviously) called InDesign SDK. If you browse the messages in there, you can get an idea of the most common pitfalls and problems.
If the above scares you off, well, that was fully intentional (sorry, but it is). It's by far easier to write scripts. Scripts have several advantages over plugins:
1. They are platform independent (Javascripts are; AppleScript is just for Macs and Visual Basic is just for Windows). Plugins are exclusively platform dependent. To write the same plugin for both Windows and for Mac, you have to know all the pitfalls of changing code from one platform to another, and you need a complete working compiler and development system for both platforms.
2. They are version independent. Simple scripts work on a fairly great range of InDesign versions -- some of my own scripts date back to CS, and are totally or virtually unchanged. It's even possible to force "too old" scripts to work with newer versions.
3. Scripts can do most of the things a plugin can do. The main difference used to be that plugins allow you to write a fully integrated look-and-feel part of InDesign, but with the advance of ScriptUI and event handlers and menu customization, you come quite far. Only for highly specialized functions you still need a real plugin (custom item integration, custom spell and hyphenation modules, stuff like that).
4. The scripting community is very active -- it also has a forum of its own, called (well, obviously) InDesign Scripting -- and are a friendly lot, always ready to help. (Unless you whine about how to do every little thing. (That is, I can't stand that personally. Others may not mind.))
5. Scripting is easy. ... not really, but it is fairly easy, and compared to writing a custom plugin in C++, it's a breeze, a walk in the park, and a summer stroll all rolled into one.
Maybe you are looking for
-
Is it possible to have two currency transaction in one minisite (istore)?
We are evaluating one project of possible business prospects in european country. We already have the US Instance running in istore. manamgenet does not want to spend time in setting up new oeprating unit for new this new europen business but want to
-
In a Forms 5.0 program I need to take the filenames of all files included in a folder having a specific extension. I choosed to use HOST command to create a text file with these files (dir *.xxx /b > filename.txt) and later read this file using TEXT_
-
Trying the new OVM Server 3.1.1, cannot discover from OVM Manager
Hi, I see that Oracle VM Server 3.1.1 now available on the cloud. So, I installed it and re-attempted to discover the server. But, I still get the below error. Any help is appreciated. ob Construction Phase begin() Appended operation 'Discover Manage
-
The Adobe Forms Editor (Acrobat 8.1) allows insertion of PDF417 2-D Barcode but it only allows for field delimiter of 'tab' or 'xml'. Many gov. departments are requiring fields to be delimited with a 'NewLine'. I can see in the form that a custom act
-
Is this MERGE statement is correct...?
Hi all.. MERGE INTO USERMASTER tgt USING (select * from usermaster ) src ON ( tgt.USER_ID = src.USER_ID and tgt.FC_ID=v_tab(i) WHEN MATCHED THEN UPDATE SET tgt.DELETE_FLG = 0 WHEN NOT MATCHED THEN INSERT (fields values