Conditional Text Batch Export
I have a document with nearly 200 versions of conditional text that has to be individually swapped out and exported to pdf. I genearlly just do this one at a time all the way though.
Is there a way to batch the export of these pdfs? I've been scouring the internet for a soultion but can't seem to find one. I am on CS4 still if it matters. Thanks!
I don't know of a way automatically to do this. I imagine it coudl be scripted though.
Check out the scripting forums. http://forums.adobe.com/community/indesign/indesign_scripting
Similar Messages
-
InDesign Conditional text batch export with TOC update
Hello Everyone,
I'm just getting into the scripting, so bear with me please.
I have an indesign document with several conditional text variations and a generated Table Of Contents. I've found -hans-'s batch exporting script which works perfectly, BUT, in my document there are conditional headings too, which have their impact on the TOC of course and sadly indesign's toc update is not live. So all I need, is add a line (or 2) in the script that selects and updates the TOC for me before exporting each PDF. I've tried labeling the TOC text frame (with script label) and invoke a menu action on it, but I think I didn't get the Syntax right. I guess for someone experienced this is a really simple task.
Here is -hans-'s Conditional text batch exporting script:
http://forums.adobe.com/message/4764443
thanks for your help!
wood1yHi,
Thank you for your answer. This is my syntax so far. All I did to -hans-'s script was, I tried to create a variable with a text frame that has the "TOC" label, select it with a .select action (found it on a forum) that doesn't work, and tried to invoke the update toc with app.scriptMenuActions.itemByID(71442).invoke(); which doesn't work either. So yes, as I told you, I'm a beginner.
var nameOfThePDFExportPresetYouWantToUse = 'DiscManual' //please don't forget to set!
var currDoc = app.activeDocument;
var currFilePath = currDoc.filePath.absoluteURI + '/';
var currFileName = currDoc.name.replace(/.indd/, '');
var currConditions = currDoc.conditions;
var myTOC = currDoc.textFrames.item("TOC")
//set all conditions visible to false
currConditions.everyItem().visible = false;
l = currConditions.length;
//cycle thru conditions
while(l--){
currCondition = currConditions[l];
//set actual condition visible to true
currCondition.visible = true;
currConditionName = currCondition.name
//select TOC
myTOC.select();
//update TOC
app.scriptMenuActions.itemByID(71442).invoke();
//set pdfName
var exportTo = File(currFilePath + currFileName + '_' + currConditionName +'.pdf');
//Have a look here:
//export PDF. to choose backgroundexport. use the second line of code
//currDoc.exportFile(ExportFormat.PDF_TYPE, exportTo,false, nameOfThePDFExportPresetYouWantToUse);
currDoc.asynchronousExportFile(ExportFormat.PDF_TYPE, exportTo,false, nameOfThePDFExportPresetYouWantToUse);
//set actual condition visible to false
currCondition.visible = false; -
A Script for Conditional Text Batch Export
Hi, I was directed into this subforum with this question:
I have a document with nearly 200 versions of conditional text that has to be individually swapped out and exported to pdf. I genearlly just do this one at a time all the way though.
Is there a way to batch the export of these pdfs? I've been scouring the internet for a soultion but can't seem to find one. I am on CS4 still if it matters. Thanks!Hi,
no Problem Take a look at the exportline too. you can choose between backgroundexport and normal export.
var nameOfThePDFExportPresetYouWantToUse = 'MyPdfPreset' //please don't forget to set!
var currDoc = app.activeDocument;
var currFilePath = currDoc.filePath.absoluteURI + '/';
var currFileName = currDoc.name.replace(/.indd/, '');
var currConditions = currDoc.conditions;
//set all conditions visible to false
currConditions.everyItem().visible = false;
l = currConditions.length;
//cycle thru conditions
while(l--){
currCondition = currConditions[l];
//set actual condition visible to true
currCondition.visible = true;
currConditionName = currCondition.name
//set pdfName
var exportTo = File(currFilePath + currFileName + '_' + currConditionName +'.pdf');
//Have a look here:
//export PDF. to choose backgroundexport. use the second line of code
currDoc.exportFile(ExportFormat.PDF_TYPE, exportTo,false, nameOfThePDFExportPresetYouWantToUse);
//currDoc.asynchronousExportFile(ExportFormat.PDF_TYPE, exportTo,false, nameOfThePDFExportPresetYouWantToUse);
//set actual condition visible to false
currCondition.visible = false;
Sunny Day
Hans-Gerd Claßen -
Removing conditional text tags in a batch
Hi everyone, using TCS2 on Win-7 64-bit.
We have been using some conditional text tags in our writing, and now we are looking at adding a few new ones and taking a few away. Is there a way to remove a batch of conditional text tags from a whole bunch of FM documents, all at once? It is a tedious process to do it manually, doc per doc, tag per tag... wondering if there is a script, or anything like that?
Thanks,
AdrianaI believe there are a couple of utilities to manage conditional tags; you might try searching Leximation's tool list:
http://www.leximation.com
And, there could definitely be Framescript-based scripts, either generic or written customized for your requirements. Here's the FrameScript group:
http://groups.yahoo.com/subscribe/framescript-users -
Can I export just the "show" conditional text to a mif?
When I export a document with conditional text to a pdf, just the conditional text that is set to "show" (and the unconditional text) appears in the pdf. That's good, but I want the same thing when exporting a mif. There are two reasons for this:
(1) We have an in-house tool that parses a mif and extracts data from certain tables to populate a database. The tool doesn't parse pdfs. And the tool won't always handle conditional text correctly, particularly conditional text table rows. The tool would work fine if the conditional text were already "resolved" during the export to mif.
(2) I'd like to use the Boolean logic for conditional text that is available in FM9, but I need to furnish files to other groups in the company that use FM7. Their FM7 wouldn't display conditional text properly if it depended on anything other than OR logic. But they would be happy to accept mif files that didn't have any conditional text because it had been "resolved" when I generated a mif7 file for them.
I've tried various ways to convert a pdf into a mif file, but no process seems to preserve the formatting and the editable text. I'd be willing to accomplish this in some round-about fashion involving Framemaker, Acrobat Pro and/or some other tool.
But the happiest outcome for me would be to discover that FM9 already has the ability to export just the "show" conditional text and the unconditional text to a mif.
Or can this be done by making a copy of the document and then somehow automating the deletion of the "hide" conditional text and the conversion of the "show" conditional text to unconditional?Or can this be done by making a copy of the document and then somehow automating the deletion of the "hide" conditional text and the conversion of the "show" conditional text to unconditional?
Writing a custom script to filter the MIF to parse out the conditions is non-trivial. You can try a Google search for an existing filter or script that does the job. However, if there is no such thing, then you're on the right track, getting FM to do the hard part - filtering the conditionalized content correctly. For example:
* In a copy of the original file, delete the condition(s) you want to hide; during the deletion, you have the option to delete the corresponding text. Then save as MIF to a descriptive name, or save as .fm to a new name, then open and save that file as MIF. Close the source file without saving.
* Reopen the source file and do the same process from this fresh instance, deleting the condition(s) you want to show. Save as above.
* Within FM itself, however, there's no way to automate this process. With one of the free FM utilities - dobatch from cudspan, or dzbatcher from datazone - you can script opening and saving an FM file as MIF. Search Google for dobatch, cudspan, dzbatcher, or datazone.
* To automate setting the conditions, a keystroke-macro recorder might serve, otherwise you'd need the commercial FrameScript product, and a customized script if there's no existing script for this purpose. For FrameScript info, check with Rick Quattro at frameexpert.com.
* If you're using Structured FrameMaker and have the expertise available to customize an EDD, you could take advantage of the "filter by attribute" feature, but it's not trivial to adopt Structured FM just for this narrowly-focused need.
HTH
Regards,
Peter Gold
KnowHow ProServices -
Batch export text from multiple Indesign files, applying em and strong tags
Hi there,
I am struggling for a while now with the following workflow:
batch exporting all text (text only) as plain text, from multiple Indesign files, applying <em> and <strong> for all the bold and italics (for instance: Molluptas verion <strong>nossum</strong> idist <em>doluptatet</em> maiorerum quiaspienit, cum erferiosapis eos expe nonsequas verumquae dolor sim eos doluptatiur autet lab idicili beatum deliquat).
Properly tagging the styles, will be too time consuming, as these documents are as old as 1998, have inconsistent untagged styles; it will mean to manually open up each file, assign tags for all styles (not to mention that might be some local overwrites).
This task is necessary to have all the archive, available on wordpress website.
Any feedback would be much appreciated it.
Thanks.There may well be a script or you may have pay someone to write it. All I can tell you is that any text not mapped to a style will be a mess in the HTML code.
Can’t comment on Quark files. I have no clue what they’re capable of.
Bob -
Problem in Batch Export Report
Hi all,
I have developed a report in PP module for Batch exports.
Here iam providing the input as plant, material no & batch and the output will be Orderwise material no, batch, mat desc, density and Quantity.
While executing the report the output is coming exactly for the first order while for the second order the values are not fetching correctly.
Pls suggest me.
*& Report ZPP_EXPORTBATCH
REPORT ZPP_EXPORTBATCH.
TABLES: MSEG,MKPF,AUFK,AFPO. "
TYPE-POOLS SLIS.
DATA: IT_EVENTS TYPE SLIS_T_EVENT,
WA_EVENTS TYPE SLIS_ALV_EVENT,
IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
X_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
LIST_LAYOUT TYPE SLIS_LAYOUT_ALV, "#EC *
GS_KEYINFO TYPE SLIS_KEYINFO_ALV, "#EC *
W_PROG TYPE SY-REPID,
P_RS_LINEINFO TYPE SLIS_LINEINFO.
Internal Tables**********************************
TYPES: TY_SCLASS TYPE STANDARD TABLE OF SCLASS.
TYPES: TY_OBJECTDATA TYPE STANDARD TABLE OF CLOBJDAT.
TYPES: BEGIN OF T_MSEG,
BWART LIKE MSEG-BWART,
MATNR LIKE MSEG-MATNR,
MAKTX LIKE MAKT-MAKTX,
CHARG LIKE MSEG-CHARG,
MENGE LIKE MSEG-MENGE,
ERFME LIKE MSEG-ERFME,
AUFNR LIKE MSEG-AUFNR,
AUSP1 LIKE CLOBJDAT-AUSP1,
ERROR(30),
END OF T_MSEG.
TYPES: INT_MSEG_FINAL TYPE STANDARD TABLE OF T_MSEG .
TYPES: BEGIN OF TY_MENGE1,
MATNR TYPE MSEG-MATNR,
CHARG TYPE MSEG-CHARG,
MENGE TYPE MSEG-MENGE,
ERFME TYPE MSEG-ERFME,
MBLNR TYPE MSEG-MBLNR,
ZEILE TYPE MSEG-ZEILE,
END OF TY_MENGE1.
TYPES: TY_MENGE TYPE STANDARD TABLE OF TY_MENGE1.
DATA : LENGTH TYPE I,
DIFFERENCE TYPE I,
IT_CLASS TYPE TY_SCLASS,
IT_OBJECTDATA TYPE TY_OBJECTDATA,
WA_CLASS TYPE SCLASS,
WA_OBJECTDATA TYPE CLOBJDAT,
L_MATNR TYPE MATNR,
INT_MSEG_FINAL TYPE INT_MSEG_FINAL,
WA_MSEG_FINAL TYPE T_MSEG,
WA_MSEG TYPE MSEG,
WA_WEMNG TYPE AFPO-WEMNG,
WA_PSMNG TYPE AFPO-PSMNG,
WA_AMEIN TYPE AFPO-AMEIN,
BAL_QTY TYPE AFPO-WEMNG,
INT_MSEG_TEMP1 TYPE INT_MSEG_FINAL,
WA_CALCULATED1 TYPE AFPO-WEMNG,
IT_MENGE TYPE TY_MENGE,
WA_MENGE1 TYPE TY_MENGE1,
WA_MAKTX TYPE MAKT-MAKTX,
WA_HSDAT TYPE MCH1-HSDAT,
WA_MAKTX_MAIN TYPE MAKT-MAKTX,
MAIN_DEN TYPE STRING,
DENSITY TYPE STRING,
MDENSITY TYPE STRING,
IDENSITY TYPE STRING.
data : tqty like mseg-menge.
data:INT_MSEG_TEMP2 LIKE MSEG OCCURS 0 WITH HEADER LINE.
data:INT_MSEG_TEMP3 LIKE MSEG OCCURS 0 WITH HEADER LINE.
**************Initialization********************************************
INITIALIZATION.
**************Input Parameters List*************************************
SELECTION-SCREEN SKIP 3.
SELECTION-SCREEN BEGIN OF BLOCK BLOCK1 WITH FRAME TITLE TEXT-T01 . "#EC
SELECT-OPTIONS : S_WERKS FOR MSEG-WERKS OBLIGATORY, "PLANT
S_MATNR FOR MSEG-MATNR OBLIGATORY, "MATERIAL NUMBER
S_CHARG FOR MSEG-CHARG, "BATCH
S_BUDAT FOR MKPF-BUDAT. "POSTING DATE
SELECTION-SCREEN END OF BLOCK BLOCK1.
START-OF-SELECTION.
PERFORM READ_DATA.
PERFORM SUB_PREPARE_FIELDCATALOG.
PERFORM FILL_EVENTS_TABLE.
END-OF-SELECTION.
PERFORM DISPLAY_DATA_USING_GRID.
*& Form READ_DATA
text
--> p1 text
<-- p2 text
FORM READ_DATA .
DATA :INT_AFPO LIKE AFPO OCCURS 0 WITH HEADER LINE.
DATA :INT_MSEG LIKE MSEG OCCURS 0 WITH HEADER LINE,
INT_MSEG_TEMP LIKE MSEG OCCURS 0 WITH HEADER LINE.
SELECT SINGLE MAKTX
INTO WA_MAKTX_MAIN
FROM MAKT
WHERE MATNR IN S_MATNR.
DATA : WA_MENGE LIKE MSEG-MENGE.
SELECT SINGLE *
FROM AFPO
INTO INT_AFPO
WHERE MATNR IN S_MATNR
AND CHARG IN S_CHARG
AND DWERK IN S_WERKS.
MOVE INT_AFPO-WEMNG TO WA_WEMNG.
MOVE INT_AFPO-PSMNG TO WA_PSMNG.
MOVE INT_AFPO-AMEIN TO WA_AMEIN.
SELECT *
INTO TABLE INT_MSEG
FROM MSEG
WHERE AUFNR = INT_AFPO-AUFNR
AND BWART IN ('261' , '262' )
AND WERKS IN S_WERKS.
REFRESH INT_AFPO.
int_mseg_temp3[] = int_mseg[].
LOOP AT INT_MSEG.
clear tqty.
loop at int_mseg_temp3 WHERE MATNR = INT_MSEG-MATNR
and charg = int_mseg-charg
AND AUFNR = INT_MSEG-AUFNR
if int_mseg_temp3-bwart = '261' .
tqty = tqty + int_mseg_temp3-menge.
elseif int_mseg_temp3-bwart = '262'.
tqty = tqty - int_mseg_temp3-menge.
endif.
endloop.
int_mseg-menge = tqty.
SELECT SINGLE *
FROM AFPO
INTO INT_AFPO
WHERE MATNR = INT_MSEG-MATNR
AND CHARG = INT_MSEG-CHARG
AND DWERK IN S_WERKS.
IF SY-SUBRC EQ 0 AND INT_AFPO-AUFNR <> ' '.
SELECT * FROM MSEG
INTO TABLE INT_MSEG_TEMP
WHERE AUFNR = INT_AFPO-AUFNR
AND BWART IN ('261' , '262' )
AND WERKS IN S_WERKS.
LOOP AT INT_MSEG_TEMP.
WA_CALCULATED1 = ( INT_MSEG_TEMP-MENGE / INT_AFPO-WEMNG ) * INT_MSEG-MENGE.
WA_MENGE1-MENGE = WA_CALCULATED1.
WA_MENGE1-MATNR = INT_MSEG_TEMP-MATNR.
WA_MENGE1-CHARG = INT_MSEG_TEMP-CHARG.
WA_MENGE1-ERFME = INT_MSEG_TEMP-ERFME.
WA_MENGE1-MBLNR = INT_MSEG_TEMP-MBLNR.
WA_MENGE1-ZEILE = INT_MSEG_TEMP-ZEILE.
APPEND WA_MENGE1 TO IT_MENGE.
CLEAR: WA_CALCULATED1, WA_MENGE1.
ENDLOOP.
SORT IT_MENGE BY MBLNR ZEILE MATNR CHARG.
ENDLOOP.
CLEAR INT_MSEG.
MODIFY TABLE INT_MSEG FROM INT_MSEG_TEMP.
LOOP AT INT_MSEG_TEMP.
MOVE-CORRESPONDING INT_MSEG_TEMP TO INT_MSEG.
READ TABLE IT_MENGE INTO WA_MENGE1
WITH KEY MATNR = INT_MSEG_TEMP-MATNR
CHARG = INT_MSEG_TEMP-CHARG
MBLNR = INT_MSEG_TEMP-MBLNR
ZEILE = INT_MSEG_TEMP-ZEILE.
INT_MSEG-MENGE = WA_MENGE1-MENGE.
APPEND INT_MSEG.
CLEAR INT_MSEG.
*Added for Changes given by anup ART:09MAR08
CLEAR WA_MENGE1-MENGE.
*End of for Changes given by anup ART:09MAR08
ENDLOOP.
REFRESH INT_MSEG_TEMP.
CLEAR INT_AFPO.
ELSE.
MOVE: INT_MSEG-MATNR TO WA_MSEG_FINAL-MATNR,
INT_MSEG-CHARG TO WA_MSEG_FINAL-CHARG,
INT_MSEG-MENGE TO WA_MSEG_FINAL-MENGE,
INT_MSEG-ERFME TO WA_MSEG_FINAL-ERFME,
INT_MSEG-BWART TO WA_MSEG_FINAL-BWART .
APPEND WA_MSEG_FINAL TO INT_MSEG_FINAL.
CLEAR WA_MSEG_FINAL.
CLEAR INT_AFPO.
ENDIF.
ENDLOOP.
INT_MSEG_TEMP1[] = INT_MSEG_FINAL[].
REFRESH INT_MSEG_FINAL.
SORT INT_MSEG_TEMP1 BY MATNR CHARG.
LOOP AT INT_MSEG_TEMP1 INTO WA_MSEG_FINAL.
ON CHANGE OF WA_MSEG_FINAL-MATNR
OR WA_MSEG_FINAL-CHARG.
IF WA_MSEG_FINAL-BWART = '261'.
WA_MENGE = WA_MENGE + WA_MSEG_FINAL-MENGE.
ELSEIF WA_MSEG_FINAL-BWART = '262'.
WA_MENGE = WA_MENGE - WA_MSEG_FINAL-MENGE.
ENDIF.
WA_MSEG_FINAL-MENGE = WA_MENGE.
CLEAR WA_MENGE.
APPEND WA_MSEG_FINAL TO INT_MSEG_FINAL.
CLEAR WA_MSEG_FINAL.
ENDON.
ENDLOOP.
LOOP AT INT_MSEG_FINAL INTO WA_MSEG_FINAL.
SELECT SINGLE MAKTX
INTO WA_MAKTX
FROM MAKT
WHERE MATNR = WA_MSEG_FINAL-MATNR.
WA_MSEG_FINAL-MAKTX = WA_MAKTX.
MODIFY INT_MSEG_FINAL FROM WA_MSEG_FINAL TRANSPORTING MAKTX.
CLEAR WA_MAKTX.
****************CHGS BY MURALI.C FOR
DATA: WA_OBJECT(50) TYPE C.
LENGTH = STRLEN( WA_MSEG_FINAL-MATNR ).
IF LENGTH LT 18.
DIFFERENCE = 18 - LENGTH.
DO DIFFERENCE TIMES.
CONCATENATE WA_MSEG_FINAL-MATNR SPACE INTO L_MATNR.
ENDDO.
ENDIF.
CONCATENATE L_MATNR WA_MSEG_FINAL-CHARG INTO WA_OBJECT RESPECTING
BLANKS.
CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
EXPORTING
CLASS = ' '
CLASSTEXT = 'X'
CLASSTYPE = '023'
CLINT = 0
FEATURES = 'X'
LANGUAGE = SY-LANGU
OBJECT = WA_OBJECT
OBJECTTABLE = 'MCH1'
KEY_DATE = SY-DATUM
INITIAL_CHARACT = 'X'
NO_VALUE_DESCRIPT = NO_VALUE_DESCRIPT
CHANGE_SERVICE_CLF = 'X'
INHERITED_CHAR = ' '
CHANGE_NUMBER = ' '
TABLES
T_CLASS = IT_CLASS
T_OBJECTDATA = IT_OBJECTDATA
I_SEL_CHARACTERISTIC = I_SEL_CHARACTERISTIC
T_NO_AUTH_CHARACT = T_NO_AUTH_CHARACT
EXCEPTIONS
NO_CLASSIFICATION = 1
NO_CLASSTYPES = 2
INVALID_CLASS_TYPE = 3
OTHERS = 4
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
read TABLE IT_OBJECTDATA INTO wa_objectdata
with KEY SMBEZ = 'Density'.
if wa_objectdata-ausp1 <> '?'.
perform density_calc using wa_objectdata-ausp1 changing idensity.
WA_MSEG_FINAL-AUSP1 = idensity.
else.
WA_MSEG_FINAL-ERROR = 'classification value missing'.
endif.
MODIFY INT_MSEG_FINAL FROM WA_MSEG_FINAL TRANSPORTING AUSP1 ERROR.
CLEAR :WA_MSEG_FINAL-MATNR,WA_MSEG_FINAL-CHARG,WA_MSEG_FINAL-AUSP1,WA_OBJECT,WA_OBJECTDATA-AUSP1.
ENDLOOP.
ENDFORM. " READ_DATA
*& Form SUB_PREPARE_FIELDCATALOG
text
--> p1 text
<-- p2 text
FORM SUB_PREPARE_FIELDCATALOG .
X_FIELDCAT-FIELDNAME = 'MATNR'.
X_FIELDCAT-TABNAME = 'INT_MSEG_FINAL'.
X_FIELDCAT-SELTEXT_M = 'MATERIAL NUMBER'. "#EC NOTEXT
X_FIELDCAT-JUST = 'C'.
X_FIELDCAT-OUTPUTLEN = 10.
X_FIELDCAT-KEY = 'X'.
X_FIELDCAT-KEY_SEL = 'X'.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
X_FIELDCAT-FIELDNAME = 'MAKTX'.
X_FIELDCAT-TABNAME = 'INT_MSEG_FINAL'.
X_FIELDCAT-SELTEXT_M = 'MATERIAL DESCRIPTION'. "#EC NOTEXT
X_FIELDCAT-JUST = 'C'.
X_FIELDCAT-OUTPUTLEN = 17.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
X_FIELDCAT-FIELDNAME = 'CHARG'.
X_FIELDCAT-TABNAME = 'INT_MSEG_FINAL'.
X_FIELDCAT-SELTEXT_M = 'BATCH'. "#EC NOTEXT
X_FIELDCAT-JUST = 'C'.
X_FIELDCAT-OUTPUTLEN = 10.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
X_FIELDCAT-FIELDNAME = 'AUSP1'.
X_FIELDCAT-TABNAME = 'INT_MSEG_FINAL'.
X_FIELDCAT-SELTEXT_M = 'DENSITY'. "#EC NOTEXT
X_FIELDCAT-JUST = 'C'.
X_FIELDCAT-OUTPUTLEN = 6.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
X_FIELDCAT-FIELDNAME = 'MENGE'.
X_FIELDCAT-TABNAME = 'INT_MSEG_FINAL'.
X_FIELDCAT-SELTEXT_M = 'QUANTITY'. "#EC NOTEXT
X_FIELDCAT-JUST = 'C'.
X_FIELDCAT-OUTPUTLEN = 9.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
X_FIELDCAT-FIELDNAME = 'ERFME'.
X_FIELDCAT-TABNAME = 'INT_MSEG_FINAL'.
X_FIELDCAT-SELTEXT_M = 'UOM'. "#EC NOTEXT
X_FIELDCAT-JUST = 'C'.
X_FIELDCAT-OUTPUTLEN = 9.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
*X_FIELDCAT-FIELDNAME = 'EDATU1'.
X_FIELDCAT-TABNAME = 'INT_MSEG_FINAL'.
X_FIELDCAT-SELTEXT_M = 'CONFIRMED QUANTITY DATED'. "#EC NOTEXT
X_FIELDCAT-JUST = 'C'.
X_FIELDCAT-OUTPUTLEN = 9.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
X_FIELDCAT-FIELDNAME = 'ETENR1'.
X_FIELDCAT-TABNAME = 'INT_MSEG_FINAL'.
X_FIELDCAT-SELTEXT_M = 'CONFIRM SL NO'. "#EC NOTEXT
X_FIELDCAT-JUST = 'C'.
X_FIELDCAT-OUTPUTLEN = 9.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
X_FIELDCAT-FIELDNAME = 'LFIMG'.
X_FIELDCAT-TABNAME = 'INT_MSEG_FINAL'.
X_FIELDCAT-SELTEXT_M = 'DELIVERED QUANTITY'. "#EC NOTEXT
X_FIELDCAT-JUST = 'C'.
X_FIELDCAT-OUTPUTLEN = 18.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
X_FIELDCAT-FIELDNAME = 'ERDAT'.
X_FIELDCAT-TABNAME = 'INT_MSEG_FINAL'.
X_FIELDCAT-SELTEXT_M = 'DELIVERED DATE'. "#EC NOTEXT
X_FIELDCAT-JUST = 'C'.
X_FIELDCAT-OUTPUTLEN = 18.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
ENDFORM. " SUB_PREPARE_FIELDCATALOG
*& Form FILL_EVENTS_TABLE
text
--> p1 text
<-- p2 text
FORM FILL_EVENTS_TABLE .
WA_EVENTS-NAME = 'TOP_OF_PAGE'.
WA_EVENTS-FORM = 'PRINT_HEADING'.
APPEND WA_EVENTS TO IT_EVENTS.
ENDFORM. " FILL_EVENTS_TABLE
FORM PRINT_HEADING. "#EC CALLED
DATA IT_HEADINGS TYPE SLIS_T_LISTHEADER.
DATA WA_HEADINGS LIKE LINE OF IT_HEADINGS.
CLEAR WA_HEADINGS.
WA_HEADINGS-TYP = 'H'.
WA_HEADINGS-INFO = ' '.
WA_HEADINGS-TYP = 'H'.
WA_HEADINGS-INFO = ' BATCH EXPORT DETAILS REPORT '.
APPEND WA_HEADINGS TO IT_HEADINGS.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = IT_HEADINGS
I_LOGO = 'APARLOGO' .
ENDFORM. "PRINT_HEADING
*& Form DISPLAY_DATA_USING_GRID
text
--> p1 text
<-- p2 text
FORM DISPLAY_DATA_USING_GRID .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_BYPASSING_BUFFER = 'X'
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = SY-CPROG
IT_FIELDCAT = IT_FIELDCAT
I_SAVE = 'A'
IT_EVENTS = IT_EVENTS
TABLES
T_OUTTAB = INT_MSEG_FINAL
IF SY-SUBRC <> 0. "#EC *
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " DISPLAY_DATA_USING_GRID
*& Form density_calc
text
-->P_WA_OBJECTDATA_AUSP1 text
<--P_IDENSITY text
FORM density_calc USING WA_OBJECTDATA_AUSP1
CHANGING DENSITY.
data: den type float,density1(8).
density1(8) = wa_objectdata-ausp1.
call function 'CHAR_FLTP_CONVERSION'
exporting
DYFLD = ' '
MASKN = ' '
MAXDEC = '16'
MAXEXP = '59+'
MINEXP = '60-'
string = density1
MSGTYP_DECIM = 'W'
importing
DECIM =
EXPON =
flstr = den
IVALU =
EXCEPTIONS
EXPONENT_TOO_BIG = 1
EXPONENT_TOO_SMALL = 2
STRING_NOT_FLTP = 3
TOO_MANY_DECIM = 4
OTHERS = 5
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
if den gt 0.
density = 1 / den.
density = density(5).
density = density / 10.
den = strlen( density ).
if den ge 6.
density = density(6).
clear: den.
den = strlen( density ).
elseif den lt 6.
density = density.
clear: den.
den = strlen( density ).
endif.
else.
density = '0.000'.
endif.
den = strlen( density ).
data: den3(5) type c.
if den gt 3.
case den.
when '6'.
clear: den3.
compute den3 = 10000 * ( density(6) - density(5) ).
if den3 between 6 and 9.
clear: den3.
compute den3(2) = 10000 * ( density(5) - density(4) ).
compute den3 = den3(1) + 1.
compute den3 = den3 / 1000.
compute density = density(4) + den3.
endif.
when '5'.
clear: den3.
compute den3 = 1000 * ( density(5) - density(4) ).
if den3 between 6 and 9.
clear: den3.
compute den3(2) = 1000 * ( density(4) - density(3) ).
compute den3 = den3(1) + 1.
compute den3 = den3 / 100.
compute density = density(3) + den3.
endif.
endcase.
endif.
density = density(5).
ENDFORM. " density_calcHello,
I haven't checked the code but from the symptom you describe it could be possible that some fields used to calculate valeus are not getting cleared between calculations. This could result in some values from order the first order one being used in the calculation for values in the second order.
Regards,
Steve. -
Best approach for accellerating batch export of jpgs/pngs
To all who continously amaze me with their knowledge of scripting arcana.....here's some lead to transmogrify into gold.
I've ironed out kinks of how to script a batch-export metadata and generate bitmap artwork (of whatever type) for a complicated set of folders holding .ai files. My script finds all of the AI files, exports the metadata to a text file, captures and logs errors without crashing, and opens each file to generate my full-size thumbnail.
Works great, but isn't built for speed. The extraction of the metadata is blisteringly fast, but from what I can see I have to actually tell Illustrator to open the file before I can export the jpg or png, which forces illustrator to render the screen before doing the export.
Is there any way to speed this up? Opening in preview mode (not scriptable?) still results in the calculation of the visibility and blurs, even though they aren't displayed.
Would love to learn that I've made another beginner's assumption...maybe having bridge do it instead might be better?
Thanks all
-AlexOnly *.psd export has the options for resolution… with the others it's 72dpi and you use scale ( PITA ) so if you do need a given resolution… first you need do the math and export then you need another app to resize… If your *.ai files are pdf compatible ( mine always are ) then you can just open in Photoshop…
-
Condition text on last page of Main window of a SAPSCRIPT
Hi,
I want to print some condition text in last page of a Main window of my custom sapscript, we can't use &NEXTPAGE& in Main window. Is there any other method to identify the last page.Hi Venu gopal,
In the print program use the control break statement.
Refer this code
*AT LAST*
call function 'WRITE_FORM'
exporting
element = 'GRAND_TOTAL'
* FUNCTION = 'SET'
* TYPE = 'BODY'
window = 'MAIN'
Regards,
Sravanthi -
CS3 plugins needed: worldready and conditional text plugins to open files
I have CS3 Creative Suite and I created a digital portfolio that will not open on my new computer because it says a worldready plugin and conditional text plugins are needed. I called the adobe hotline but they said since it's CS3 they do not have support for my issue and that I would need to update to CS5. If someone could please direct me in the right direction it would be extremely appreciated.
You are trying to open a file saved in a more recent version of InDesign. If it was only those two plugins listed it's a CS4 file. The file will need to be opened in the correct version and exported back to .inx through CS4 (CS5 files need to be exported to .idml before they can be opened in CS4). Unsupported features will be lost and text may reflow du to differnces inthe text engins from version to version.
-
Show/Hide conditional text at a book level
I am using TCS2 on Windows XP.
FM 9.0 p250
I have several files as part of a large FM book. Each file has the same text conditional tags. Can I, at a book level, set my conditions to show/hide, etc. and then update the book? So far, I only know how to open each file, set the SHOW/HIDE CONDITIONAL TEXT as I need it (not to show conditiona indicators and according to my built expression) and then save and close each file.
Is there a way to do all my files at once? Note- I want them all set the same way... so that might make it easier..
Thanks,
Adrianaadrianaharper wrote:
I am using TCS2 on Windows XP.
FM 9.0 p250
I have several files as part of a large FM book. Each file has the same text conditional tags. Can I, at a book level, set my conditions to show/hide, etc. and then update the book? So far, I only know how to open each file, set the SHOW/HIDE CONDITIONAL TEXT as I need it (not to show conditiona indicators and according to my built expression) and then save and close each file.
Is there a way to do all my files at once? Note- I want them all set the same way... so that might make it easier..
Thanks,
Adriana
I don't have FrameMaker available right now, so I'm working from memory, using the traditional FrameMaker menus, rather than the FM 9 tools.
Select all the files in the book window. With the book window active, open the View menu and look for Conditional Text. Your settings here apply to all selected files in the book window, so it's possible to set conditions on all or some files files. Ctrl+Click to select non-contiguous files; Shift+Click to select a range of contiguous files.
HTH
Regards,
Peter
Peter Gold
KnowHow ProServices -
How do i change the size of a clip using batch export?
hi, when i try and do a batch export to change my clips from a DV PAL to PhotoJpeg 320*240 sized clips the "options" button is greyed out. so all i have as export settings are the QT presets in a pulldown list. is there any way i can create my own setting? (and the also save that?)
thxwhat i'm seeing is that
a) selecting all files in Media Man. gives me the option to size and set codecs but not the audio off.
b) selecting all files in Batch Export allows me to pick a format (QT, aiff etc) choose a preset (photoJpeg included) select whether to include audio and video or both but not set the size or customize the QT settings
c) selecting all clips then "file>export>using QT conversion" gives me all options, but seem to grab only the first clip. -
I am a current Final Cut Pro7 user and looking to switch over to Premiere Pro CS6. We edit approx. 100 short (15 sec.) videos daily, and then select them all at the end of the day and batch export them over night using the same export recipe for all. I have having trouble finding an easy way to do this in Premiere pro CS6, as command +E is grayed out if i select more than one sequence at a time.
so far, it appears that i have to select each video individually and manually set encoding recipe and export location for each.... Not only would this be terribly time consuming, but it leaves a lot of room for error and missed videos. I thought i would be able to send all of the sequences to Adobe Media Encoder, but i dont see that option either.
Any suggestions/
thanks!Open Media Encoder and add your Sequences:
File > Add Premiere Pro Sequence
Navigate to your Premiere Project and select it in the list.
You can then select multiple Sequences from the Project (Ctrl+Click)
and load them all at once into Media Encoder and apply
the same encoding preset to all Sequences at the same time. -
No Method of Batch Export for Clips with Alpha Channels?
Good morning,
As many a flustered editor has eventually discovered, in order for FCP to export sequences with alpha channels to a 32-bit format, the timeline has to be un-rendered at the time of export, or else the transparent parts will appear black in the outputted file. This sort-of makes sense if you know how FCP and render files work, but in a perfect world I think I'd have designed the export interface a bit differently. Now that I think about it, I'm actually working in an Animation (Millions of Colors +) sequence, so converting transparent areas to black makes no logical sense at all.
Anyway, I have several sequences that I would like to export as 32-bit TGA QuickTime files, preserving their transparency. If I Export Using Compressor, the process results in pre-rendering of the sequence, turning the transparent areas black. The same problem occurs if I export QuickTime reference movies from FCP and open them directly with Compressor.
Does anyone know of a way to avoid this silly phenomenon or am I stuck individually exporting each sequence from FCP, one...at.......a................time?
Thanks,
ZapThanks, Andy, "Batch Export" eventually did the trick!
I forgot about that tool because I've never actually had to use it before! After playing around with it for a while, I found that as long as the sequence settings for each sequence in the batch are set to a codec with an activated alpha channel, it works just fine.
Thanks again,
Zap -
(FM8p277) Crashes when saving first doc in book after changing conditional text display
That was a mouthful :-)
Okay, this happens with any of the books that I work on --- it never happened with Frame 7.
I have a book containing several documents.
The documents contain several conditional text segments.
Start new Framemaker session, open book, open all documents.
Change conditional text display (from Show All to Show Selected, or vice-versa).
From the book, choose Save All (or from the *first* document, choose Save). The following text appears in a 'FrameMaker dialog': "File <filename of first document>.fm has changed on the disk since you last opened or saved it. Someone else has probably modified the file. Do you want to save it anyway?
Click OK. All of the files save properly. (If I had clicked Cancel, the first file would be skipped and all other files would save.)
Change conditional text display again (note: this could even be for a different book at this point, I believe, but will have to verify).
(Repeat step 3): The same text appears again in the dialog.
Click OK. FrameMaker crashes while trying to save the first file. (If I had clicked Cancel, the first file would be skipped and all other files would save. However, if I attempt to save the first file afterward, FrameMaker still crashes.)
Anybody have any insight into this? Am I the only one this happens to? Argh :-)
Thanks.Sorry, the only answers I got were on the forum and nothing worked
That being said, at least now I know I'm not crazy! (Sorry it had to
happen to you, though.)
As it stands, I've been training myself to make sure that after the
first time I toggle the settings, I do the save, and then make sure to
save all, quit, and restart FrameMaker before I attempt another toggle.
On the odd occasion that I don't do that and get the warning message, I
select Cancel (which lets the rest of the files save), quit, restart,
and then make sure I update the first document appropriately.
All the while cursing and swearing, of course
As an aside... if you find a solution, please let me know about it if
you remember.
Thanks.
John
Maybe you are looking for
-
Fast Refresh using two non-primary key tables
Hi, I have a materialized view based on two tables with an outer join clause. Both the tables do not have a primary key so I had created materialized view log with row-id on each of them but still I am not able to bring out the fast refresh option fo
-
Avoid variance calculation on product order
Hi experts, i have a question. We have a material with cost estimate with quantity structure, cost estimate is release. All cost components in cost component structure are in inventory valuation. On the product order are then target costs. When mater
-
Adding more colors to a custom Pallete
Im using Illustrator CS4, & recently I created a collection of colors & gradients into a swatch library & saved it. My desired outcome, was to keep any interesting colors or gradients as I worked on different images, as a future resource so I didn't
-
Pages - My Templates - how do I delete
Hi I have created a template in my templates in Pages and now wish to delete it.. Can someone help please? I have searched the help and can't find it. Thanks
-
How can I utilize the feature "Project Proposal Workflow"?
Hello, I am looking for any reference shows how can I utilize the feature "Project Proposal Workflow" in creating a Demand Managment process in Project Server 2013. Thanks