Formatted search to get PR Info Price and Required Date

Hi,
When copy PR to PO, I would like to push the PR info price and required date to PO.  However these fields are not available at PO form settings.
Thus I would like to create a UDF to fetch these info from PR.
Kindly help me with the queries for these 2 requirement.
Thank you,
Annie

Formatted Searches will be trigerred only when you use the Production Order screen by manually adding an Prod Order.  Since the Prod Order form is not opened there is no field change happening for your Auto Refresh to get activated.
Therefore for all production orders created using the Order Reccomendation Report, you will need to manually Click Shift+F2 on the Prod Order for the formatted seach to work.
Suda

Similar Messages

  • Iphone5 price and release date please...?

    iphone5 price and release date please...?

    No price or released date has been announced by Apple.
    In fact, there has to my knowledge been no admission
    by Apple that a new phone is in the works (although I
    am sure there is).

  • Basic Start/Finish Date and Requirment Date in Maintenance Order

    Sir,
    We want to know the link between Order Start/finish date and requirement date in Maintenance Order.
    As we are facing problem during change in dates.
    When we change either start date or finish date in the order, the system automatically change the requirment date as of ondate of all the materials which has been earlier issued and also consider the today date.
    Like in Maintenance Order
    Basic Start Date - 01.04.2009
    Basic End Date  - 31.05.2009
    We have issued materials on the order at different date by putting offset value for the requirement date.
    Now if we increase the Basic End Date of order to n30.062.009 or whatelse, the system automatically changes the requirement dates of all the materials issue based on current date. Suppose we changed the Basic End date on 10.11.2009, the system changes all the requirement dates by calulating offset value from 10.11.2009. However these materials has been issued earlier.
    I want to know if there is any remedy to stop to change the requirement dates automatically.
    With Regards
    Mudit Gupta

    HI
    In general the requirement date will get changed only when the IMG settings in OPU7 permits the requirments dates should be adjusted towards the order basic start and end dates
    kinldy check and adjust as per the requirement
    regards
    thyagarajan

  • Fromatted Search on BOM to calculate Price and UDF

    Hi All,
    I'm trying to do a formatted search query on BOM line level. I'm using a UDF field (numeric19,6) and the unit price field. I get the individual amounts fine but I need to divide the two with each other. My syntax of query is:
    DECLARE @A NUMERIC (16,2)
    DECLARE @B NUMERIC (16,2)
    SET @A=$[$3.4.0]
    SET @B=$[ITT1.U_SG_BOM]
    SELECT @A / @B
    I have used both $[$3.U_SG_BOM.0] and the one used above.
    Can someone please advise as to how I would be able to correct my query.
    Regards,
    Lou

    change
    DECLARE @A NUMERIC (16,2)
    DECLARE @B NUMERIC (16,2)
    SET @A=$[$3.4.0]
    SET @B=$[ITT1.U_SG_BOM]
    SELECT @A / @B
    to
    DECLARE @A NUMERIC (16,2)
    DECLARE @B NUMERIC (16,2)
    SET @A=$[$3.4.NUMBER]
    SET @B=$[ITT1.U_SG_BOM.NUMBER]
    SELECT @A / @B
    Regards,
    David

  • Formatted search to get the cost center name

    Dear experts, I need to display the cost centre name/description on goods issue via formatted search. i have set the cost centre as " Display distribution rule in a unified column".
    Dimension 1
    01 Abc
    02 xyz
    Dimension 2
    001 aaa
    002 bbb
    Dimension 3
    0001 jkl
    0002 mno
    System shows only the code on goods issuance screen like "01,001,0001 " while i need to display "Abc,aaa,jkl" . Is it possible via formatted search
    or any other way?
    Regards,
    Awais

    Hi,
    Create on UDF at Row Level in Good Issue form beside distribution rule column
    & apply below FMS to it
    SELECT T0.[PrcName] FROM OPRC T0 WHERE T0.[PrcCode] =(select $[$13.10001018.0])
    auto-refresh it on selection of distribution rule
    regards,
    Raviraj

  • Get original file creation and modified date during upload - ONLY in explorerview ??

    Hi,
    SharePoint and me are having a difficult time again ;-)
    I have the customer requirement to retain the original file's creation date and modified date.
    Please do not start replying by just pasting links that you might find while searching for the keywords "retain creation date".
    In a nutshell I found out that the original dates are only available in SharePoint if the
    explorerview has been used. I always thought that the explorerview is a bad thing, but only here - the original creation date is stored in a property called "vti_ct". In the itemupdated eventreceiver you can get the
    value and work with it.
    Complete list of available properties
    http://sbrickey.com/Tech/Blog/Post/Secrets_Revealed_SP_Event_Receivers_firing_multiple_times
    Here I found the hint with the explorerview
    http://answers.flyppdevportal.com/categories/sharepoint2010/sharepoint2010programming.aspx?ID=57bfd5f5-941f-4a89-919d-cdf7b0b801be
    It is only available in the 2nd loop of the itemupdated event. 
    How the f*** can this happen??? The 2nd post states that when using the explorerview the file is being copied, while it is being re-created by using the SharePoint UI.
    Has anyone a different approach for using the SharePoint UI?
    I thought about different approaches for this issue. From my perspective it seems to be not solvable from the server-side. It seems only to be able to be set using a client application.
    Example 1: spbulkdocumentimport 
    http://spbulkdocumentimport.codeplex.com/wikipage?title=Features&referringTitle=Documentation
    Example 2: implement a custom webservice
    http://blog.orbitone.com/post/Preserve-created-and-modified-information-when-importing-a-document-in-SharePoint
    How do you deal with this customer requirement?
    Open for discussions
    Sven 

    Hi,
    Newbie to SharePoint, learn quite a lot from the links you provided.
    “I found out that the original dates are only available in SharePoint if the explorerview has been used”, this would make sense because the original creation time is generated
    by the file system in the local machine.
    However, when a file is uploaded to SharePoint library, it will be stored as binary data in the database, as well as the newly created time. It means that it will be a “new” file
    in the SharePoint site regardless of where it comes from.
    Per my knowledge, the only way I can suggest is that you will need to create a client desktop application for the file uploading, which will be a more general way not only for
    uploading a file, but also when we need to migrate files between different systems.
    Thanks

  • Get OBJEC  hide screen and transfer data

    Hi experts!
    How can i hide this kind of selection screen when i call
    "get objec"
    and how can i transfer my data manually to the selection range of   get objec.
    eg. i want to use the "get objec" function to collect the data for three objectid.
    i could loop and call  get objec  3 times and set the PCHOBJID-LOW  value before,  but there must be a way to do this with a range.
    can someone help me
    greets, thomas

    Dear Abhishek,  can you explain the step..in this step screen is comming but custom fields value is not coming and also likp table is not updated
    Correct AnswerRe: Update and transfer data via BADI LE_SHP_TAB_CUST_HEAD
    Abhisek Biswas Jan 21, 2009 7:28 AM (in response to Stephen Keam)
    Hi Stephen,
    You can do it by using PBO and PAI modules of the screen that you created. But you have to transfer the data from subscreen to the BADI method TRANSFER_DATA_FROM_SUBSCREEN and aslo from method TRANSFER_DATA_TO_SUBSCREEN to the subscreen. This will update the screen field data to LIKP.
    You can aceive this by two ways.
    1) You can use EXPORT in method TRANSFER_DATA_TO_SUBSCREEN and then IMPORT the value in the screen PBO. And You can EXPORT data from screen PAI and IMPORT data in method TRANSFER_DATA_FROM_SUBSCREEN.
    2) Anither way to do it is by using Function modules and Function Group instead of EXPORT/IMPORT.
    Create a Function group. In the global data define a structure/Work Area of type LIKP.
    DATA w_likp TYPE likp.
    Then create two Function modules, one to export data and another to import data.
    Let us assume that the export FM takes in IS_LIKP as input and the import FM outputs the value of LIKP into ES_LIKP.
    Then pass the value is_likp to the export FM in the BADI method TRANSFER_DATA_TO_SUBSCREEN and in the screen PAI pass the LIKP data to the export FM.
    In the export Function module write the following code:
    MOVE is_likp TO w_likp
    Then in the Import FM write the following code:
    MOVE w_likp TO es_likp.
    The import FM is called from method TRANSFER_DATA_FROM_SUBSCREEN and from screen PBO.
    This will solve your problem.
    Regards,
    Abhisek.
    Alert Moderator
    Like (0)
    Reply

  • Scheduling problem with delivery date in purch.req and requirement date

    Dear all,
    I have the problem, that the calculated delivery date in the purchase requisition does not correspond with the requiement date of the production or planned order.
    I would like to use planned delivery times in the material master.
    Example:
    Planned delivery time: 20 days
    Todays date 01.10
    Case 1)
    Requiement date of planned order 10.10
    Case 2)
    Requiement date of planned order 20.09
    This situation can happen in our envirnoment, as the engineering process still continues after start of production. In this case I would like to have the following result:
    Case 1)
    Delivery date is 10.10 minus the goods receipt time
    Case 2)
    Delivery date is day of MRP or one or two days more
    I made the setting that dates in the past are not allowed. This solves my first smal problem. I tried to set the scheduling margin key but these settings do not help me, as they are relevant for all materials. I need of course individual planned delivery dates per material.
    So, I want to change the standart MRP procedure that in the case of the "wished requirement date" not the calculated date is beeing taken, but the "wished date". Usually you receive an exeption for this case and you would need t solve this manually. But this we dont want to do.
    Can s.o. please help me? Thank you all very much, I really dont know what to do in this case.
    With best regards,
    Bjoern

    The question cannot be answerd by SAP standart as I see. We will go through a workaround.

  • How can i get more info about the sent data in RTP?

    Hello.
    I'm working with the examples AVTransmitt2 and AV Receive2 and i want to get more information about the data that it is being sent to de receiver side. In AVTrasmitt2 i only see a calling to processor.start();. How could i know each packet that AvTransmit2 sends to the other side. I want info like the size of the data, the quality, format, etc..

    Hi!
    As I mentioned above. RTPSocketAdapter has two inner classes, SockOutputStream and SockInputStream.
    SockOutputStream have a write method which is called when RTP data is sent over the NET. SockInputStream have a read method which is called when RTP data is received.
    If you for instance want to know exactly what is sent you can parse the byte array that comes into write.
    Like this:
    * An inner class to implement an OutputDataStream based on UDP sockets.
    class SockOutputStream implements OutputDataStream {
         DatagramSocket sock;
         InetAddress addr;
         int port;
         boolean isRTCP;
         public SockOutputStream(DatagramSocket sock, InetAddress addr, int port, boolean isRTCP) {
              this.sock = sock;
              this.addr = addr;
              this.port = port;
         public int write(byte data[], int offset, int len) {
              if(isRTCP){
                   parseAndPrintRTCPData(data);               
              }else{
                   parseAndPrintRTPData(data);
              try {
                   sock.send(new DatagramPacket(data, offset, len, addr, port));
              } catch (Exception e) {
                   return -1;
              if(debug){
                   System.out.println(debugName+": written "+len+" bytes to address:port: "+addr+":"+port);
              return len;
    private void parseAndPrintRTPData(byte[] data) {
         // part of header, there still left SSRC and CSRC:s
         byte[] rtpHeader = new byte[8];
         System.arraycopy(data, 0, rtpHeader, 0, rtpHeader.length);
         ByteBuffer buffer = ByteBuffer.wrap(rtpHeader);
         int word = buffer.getInt();
         // version
         int v = word >>> 30;
         System.out.println("version: "+v);
         // padding
         int p = (word & 0x20000000) >>> 29;
         System.out.println("padding: "+p);
         // extension
         int x = (word & 0x10000000) >>> 28;
         System.out.println("extension: "+x);
         // CSRC count
         int cc = (word & 0x0F000000) >>> 24;
         System.out.println("CSRC: "+cc);
         // marker
         int m = (word & 0x00800000) >>> 23;
         System.out.println("marker: "+m);
         // payload type
         int pt = (word & 0x00700000) >>> 16;
         System.out.println("payload type: "+pt);
         // sequence number
         int seqNbr = (word & 0x0000FFFF);
         System.out.println("sequence number: "+seqNbr);
         // timestamp
         int timestamp = buffer.getInt();
         System.out.println("timestamp: "+timestamp);
    private void parseAndPrintRTCPData(byte[] data) {
         // this only works when the RTCP packet is a Sender report (SR).
         // All RTCP packets are compound packets with a SR or Receiver report (RR) packet first.
         // part of header, there is still the report blocks (see RFC 3550).
         byte[] rtcpHeader = new byte[28];
         System.arraycopy(data, 0, rtcpHeader, 0, rtcpHeader.length);
         ByteBuffer buffer = ByteBuffer.wrap(rtcpHeader);
         int word = buffer.getInt();
         // version
         int v = word >>> 30;
         System.out.println("version: "+v);
         // padding
         int p = (word & 0x20000000) >>> 29;
         System.out.println("padding: "+p);
         // reception report count
         int rc = (word & 0x0F000000) >>> 24;
         System.out.println("reception report count: "+rc);
         // payload type, which is 200 in this case (SR=200)
         int pt = (0x00FF0000 & word) >>> 16;
         System.out.println("payload type: "+pt);
         // length
         int length = (word & 0x0000FFFF);
         System.out.println("length: "+length);
         // SSRC of sender
         int ssrc = buffer.getInt();
         System.out.println("SSRC: "+ssrc);
         // NTP timestamp
         long ntp_timestamp = buffer.getLong();
         System.out.println("NTP timestamp: "+ntp_timestamp);
         // RTP timestamp
         int rtp_timestamp = buffer.getInt();
         System.out.println("RTP timestamp: "+rtp_timestamp);
         // sender's packet count
         int nbrOfSentPackets = buffer.getInt();
         System.out.println("sender's packet count: "+nbrOfSentPackets);
         // sender's octet count
         int nbrOfSentBytes = buffer.getInt();
         System.out.println("sender's octet count: "+nbrOfSentBytes);
    }I added a boolean isRTCP to the constructor so to know what sort of data is sent.
    Hope this clarifies things.

  • Want to get placed images Dimension and Creation Date in Catalog

    Below is the script which is free with CS4. Is there anybody who can modify this script in a way which provide the creation date and dimension of the images in image catalog.
    //ImageCatalog.jsx
    //An InDesign C4 JavaScript
    @@@BUILDINFO@@@ "ImageCatalog.jsx" 2.0.0 5-December-2007
    //Creates an image catalog from the graphic files in a selected folder.
    //Each file can be labeled with the file name, and the labels are placed on
    //a separate layer and formatted using a paragraph style ("label") you can
    //modify to change the appearance of the labels.
    //For more information on InDesign scripting, go to http://www.adobe.com/products/indesign/scripting/index.html
    //Or visit the InDesign Scripting User to User forum at http://www.adobeforums.com .
    //The myExtensions array contains the extensions of the graphic file types you want
    //to include in the catalog. You can remove extensions from or add extensions to this list.
    //myExtensions is a global. Mac OS users should also look at the file types in the myFileFilter function.
    main();
    function main(){
    var myFilteredFiles;
    //Make certain that user interaction (display of dialogs, etc.) is turned on.
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    myExtensions = [".jpg", ".jpeg", ".eps", ".ps", ".pdf", ".tif", ".tiff", ".gif", ".psd", ".ai"]
    //Display the folder browser.
    var myFolder = Folder.selectDialog("Select the folder containing the images", "");
    //Get the path to the folder containing the files you want to place.
    if(myFolder != null){
       if(File.fs == "Macintosh"){
        myFilteredFiles = myMacOSFileFilter(myFolder);
       else{
        myFilteredFiles = myWinOSFileFilter(myFolder);
       if(myFilteredFiles.length != 0){
         myDisplayDialog(myFilteredFiles, myFolder);
         alert("Done!");
    //Windows version of the file filter.
    function myWinOSFileFilter(myFolder){
    var myFiles = new Array;
    var myFilteredFiles = new Array;
    for(myExtensionCounter = 0; myExtensionCounter < myExtensions.length; myExtensionCounter++){
      myExtension = myExtensions[myExtensionCounter];
            myFiles = myFolder.getFiles("*"+ myExtension);
      if(myFiles.length != 0){
       for(var myFileCounter = 0; myFileCounter < myFiles.length; myFileCounter++){
        myFilteredFiles.push(myFiles[myFileCounter]);
    return myFilteredFiles;
    function myMacOSFileFilter(myFolder){
    var myFilteredFiles = myFolder.getFiles(myFileFilter);
    return myFilteredFiles;
    //Mac OS version of file filter
    //Have to provide a separate version because not all Mac OS users use file extensions
    //and/or file extensions are sometimes hidden by the Finder.
    function myFileFilter(myFile){
    var myFileType = myFile.type;
    switch (myFileType){
      case "JPEG":
      case "EPSF":
      case "PICT":
      case "TIFF":
      case "8BPS":
      case "GIFf":
      case "PDF ":
       return true;
       break;
      default:
      for(var myCounter = 0; myCounter<myExtensions.length; myCounter++){
       var myExtension = myExtensions[myCounter]; 
       if(myFile.name.indexOf(myExtension)>-1){
        return true;
        break;  
    return false;
    function myDisplayDialog(myFiles, myFolder){
    var myLabelWidth = 112;
    var myStyleNames = myGetParagraphStyleNames(app);
    var myLayerNames = ["Layer 1", "Labels"];
    var myDialog = app.dialogs.add({name:"Image Catalog"});
    with(myDialog.dialogColumns.add()){
      with(dialogRows.add()){
       staticTexts.add({staticLabel:"Information:"});
      with(borderPanels.add()){
       with(dialogColumns.add()){
        with(dialogRows.add()){
         staticTexts.add({staticLabel:"Source Folder:", minWidth:myLabelWidth});
         staticTexts.add({staticLabel:myFolder.path + "/" + myFolder.name});
        with(dialogRows.add()){
         staticTexts.add({staticLabel:"Number of Images:", minWidth:myLabelWidth});
         staticTexts.add({staticLabel:myFiles.length + ""});
      with(dialogRows.add()){
        staticTexts.add({staticLabel:"Options:"});
      with(borderPanels.add()){
       with(dialogColumns.add()){
        with(dialogRows.add()){
         staticTexts.add({staticLabel:"Number of Rows:", minWidth:myLabelWidth});
         var myNumberOfRowsField = integerEditboxes.add({editValue:3});
        with(dialogRows.add()){
         staticTexts.add({staticLabel:"Number of Columns:", minWidth:myLabelWidth});
         var myNumberOfColumnsField = integerEditboxes.add({editValue:3});
        with(dialogRows.add()){
         staticTexts.add({staticLabel:"Horizontal Offset:", minWidth:myLabelWidth});
         var myHorizontalOffsetField = measurementEditboxes.add({editValue:12, editUnits:MeasurementUnits.points});
        with(dialogRows.add()){
         staticTexts.add({staticLabel:"Vertical Offset:", minWidth:myLabelWidth});
         var myVerticalOffsetField = measurementEditboxes.add({editValue:24, editUnits:MeasurementUnits.points});
        with (dialogRows.add()){
         with(dialogColumns.add()){
          staticTexts.add({staticLabel:"Fitting:", minWidth:myLabelWidth});
         with(dialogColumns.add()){
          var myFitProportionalCheckbox = checkboxControls.add({staticLabel:"Proportional", checkedState:true});
          var myFitCenterContentCheckbox = checkboxControls.add({staticLabel:"Center Content", checkedState:true});
          var myFitFrameToContentCheckbox = checkboxControls.add({staticLabel:"Frame to Content", checkedState:true});
        with(dialogRows.add()){
          var myRemoveEmptyFramesCheckbox = checkboxControls.add({staticLabel:"Remove Empty Frames:", checkedState:true});
      with(dialogRows.add()){
        staticTexts.add({staticLabel:""});
      var myLabelsGroup = enablingGroups.add({staticLabel:"Labels", checkedState:true});
      with (myLabelsGroup){
       with(dialogColumns.add()){
        //Label type
        with(dialogRows.add()){
         with(dialogColumns.add()){
          staticTexts.add({staticLabel:"Label Type:", minWidth:myLabelWidth});
         with(dialogColumns.add()){
          var myLabelTypeDropdown = dropdowns.add({stringList:["File name", "File path", "XMP description", "XMP author"], selectedIndex:0});
        //Text frame height
        with(dialogRows.add()){
         with(dialogColumns.add()){
          staticTexts.add({staticLabel:"Label Height:", minWidth:myLabelWidth});
         with(dialogColumns.add()){
          var myLabelHeightField = measurementEditboxes.add({editValue:24, editUnits:MeasurementUnits.points});
        //Text frame offset
        with(dialogRows.add()){
         with(dialogColumns.add()){
          staticTexts.add({staticLabel:"Label Offset:", minWidth:myLabelWidth});
         with(dialogColumns.add()){
          var myLabelOffsetField = measurementEditboxes.add({editValue:0, editUnits:MeasurementUnits.points});
        //Style to apply
        with(dialogRows.add()){
         with(dialogColumns.add()){
          staticTexts.add({staticLabel:"Label Style:", minWidth:myLabelWidth});
         with(dialogColumns.add()){
          var myLabelStyleDropdown = dropdowns.add({stringList:myStyleNames, selectedIndex:0});
        //Layer
        with(dialogRows.add()){
         with(dialogColumns.add()){
          staticTexts.add({staticLabel:"Layer:", minWidth:myLabelWidth});
         with(dialogColumns.add()){
          var myLayerDropdown = dropdowns.add({stringList:myLayerNames, selectedIndex:0});
            var myResult = myDialog.show();
            if(myResult == true){
       var myNumberOfRows = myNumberOfRowsField.editValue;
       var myNumberOfColumns = myNumberOfColumnsField.editValue;
       var myRemoveEmptyFrames = myRemoveEmptyFramesCheckbox.checkedState;
       var myFitProportional = myFitProportionalCheckbox.checkedState;
       var myFitCenterContent = myFitCenterContentCheckbox.checkedState;
       var myFitFrameToContent = myFitFrameToContentCheckbox.checkedState;
       var myHorizontalOffset = myHorizontalOffsetField.editValue;
       var myVerticalOffset = myVerticalOffsetField.editValue;
       var myMakeLabels = myLabelsGroup.checkedState;
       var myLabelType = myLabelTypeDropdown.selectedIndex;
       var myLabelHeight = myLabelHeightField.editValue;
       var myLabelOffset = myLabelOffsetField.editValue;
       var myLabelStyle = myStyleNames[myLabelStyleDropdown.selectedIndex];
       var myLayerName = myLayerNames[myLayerDropdown.selectedIndex];
       myDialog.destroy();
       myMakeImageCatalog(myFiles, myNumberOfRows, myNumberOfColumns, myRemoveEmptyFrames, myFitProportional, myFitCenterContent, myFitFrameToContent, myHorizontalOffset, myVerticalOffset, myMakeLabels, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle,  myLayerName);
      else{
       myDialog.destroy();
    function myGetParagraphStyleNames(myDocument){
    var myStyleNames = new Array;
    var myAddLabelStyle = true;
    for(var myCounter = 0; myCounter < myDocument.paragraphStyles.length; myCounter++){
      myStyleNames.push(myDocument.paragraphStyles.item(myCounter).name);
      if (myDocument.paragraphStyles.item(myCounter).name == "Labels"){
       myAddLabelStyle = false;
    if(myAddLabelStyle == true){
      myStyleNames.push("Labels");
    return myStyleNames;
    function myMakeImageCatalog(myFiles, myNumberOfRows, myNumberOfColumns, myRemoveEmptyFrames, myFitProportional, myFitCenterContent, myFitFrameToContent, myHorizontalOffset, myVerticalOffset, myMakeLabels, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle,  myLayerName){
    var myPage, myFile, myCounter, myX1, myY1, myX2, myY2, myRectangle, myLabelStyle, myLabelLayer;
    var myParagraphStyle, myError;
    var myFramesPerPage = myNumberOfRows * myNumberOfColumns; 
    var myDocument = app.documents.add();
    myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
    myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
    var myDocumentPreferences = myDocument.documentPreferences; 
    var myNumberOfFrames = myFiles.length;
    var myNumberOfPages = Math.round(myNumberOfFrames / myFramesPerPage);
    if ((myNumberOfPages * myFramesPerPage) < myNumberOfFrames){ 
      myNumberOfPages++;
    //If myMakeLabels is true, then add the label style and layer if they do not already exist.
    if(myMakeLabels == true){
      try{
       myLabelLayer = myDocument.layers.item(myLayerName);
       //if the layer does not exist, trying to get the layer name will cause an error.
       myLabelLayer.name;
      catch (myError){
       myLabelLayer = myDocument.layers.add({name:myLayerName});
      //If the paragraph style does not exist, create it.
      try{
       myParagraphStyle = myDocument.paragraphStyles.item(myLabelStyle);
       myParagraphStyle.name;
      catch(myError){
       myDocument.paragraphStyles.add({name:myLabelStyle});
    myDocumentPreferences.pagesPerDocument = myNumberOfPages; 
    myDocumentPreferences.facingPages = false; 
    var myPage = myDocument.pages.item(0); 
    var myMarginPreferences = myPage.marginPreferences;
    var myLeftMargin = myMarginPreferences.left; 
    var myTopMargin = myMarginPreferences.top; 
    var myRightMargin = myMarginPreferences.right; 
    var myBottomMargin = myMarginPreferences.bottom; 
    var myLiveWidth = (myDocumentPreferences.pageWidth - (myLeftMargin + myRightMargin)) + myHorizontalOffset
    var myLiveHeight = myDocumentPreferences.pageHeight - (myTopMargin + myBottomMargin)
    var myColumnWidth = myLiveWidth / myNumberOfColumns
    var myFrameWidth = myColumnWidth - myHorizontalOffset
    var myRowHeight = (myLiveHeight / myNumberOfRows)
    var myFrameHeight = myRowHeight - myVerticalOffset
    var myPages = myDocument.pages;
    // Construct the frames in reverse order. Don't laugh--this will 
    // save us time later (when we place the graphics). 
    for (myCounter = myDocument.pages.length-1; myCounter >= 0; myCounter--){ 
      myPage = myPages.item(myCounter);
      for (var myRowCounter = myNumberOfRows; myRowCounter >= 1; myRowCounter--){ 
       myY1 = myTopMargin + (myRowHeight * (myRowCounter-1));
       myY2 = myY1 + myFrameHeight;
       for (var myColumnCounter = myNumberOfColumns; myColumnCounter >= 1; myColumnCounter--){ 
        myX1 = myLeftMargin + (myColumnWidth * (myColumnCounter-1));
        myX2 = myX1 + myFrameWidth;
        myRectangle = myPage.rectangles.add(myDocument.layers.item(-1), undefined, undefined, {geometricBounds:[myY1, myX1, myY2, myX2], strokeWeight:0, strokeColor:myDocument.swatches.item("None")}); 
    // Because we constructed the frames in reverse order, rectangle 1 
    // is the first rectangle on page 1, so we can simply iterate through 
    // the rectangles, placing a file in each one in turn. myFiles = myFolder.Files; 
    for (myCounter = 0; myCounter < myNumberOfFrames; myCounter++){ 
      myFile = myFiles[myCounter]; 
      myRectangle = myDocument.rectangles.item(myCounter);
      myRectangle.place(File(myFile));
      myRectangle.label = myFile.fsName.toString();
      //Apply fitting options as specified.
      if(myFitProportional){
       myRectangle.fit(FitOptions.proportionally);
      if(myFitCenterContent){
       myRectangle.fit(FitOptions.centerContent);
      if(myFitFrameToContent){
       myRectangle.fit(FitOptions.frameToContent);
      //Add the label, if necessary.
      if(myMakeLabels == true){
       myAddLabel(myRectangle, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, myLayerName);
    if (myRemoveEmptyFrames == 1){ 
      for (var myCounter = myDocument.rectangles.length-1; myCounter >= 0;myCounter--){ 
       if (myDocument.rectangles.item(myCounter).contentType == ContentType.unassigned){
        myDocument.rectangles.item(myCounter).remove();
       else{
        //As soon as you encounter a rectangle with content, exit the loop.
        break;
    //Function that adds the label.
    function myAddLabel(myFrame, myLabelType, myLabelHeight, myLabelOffset, myLabelStyleName, myLayerName){
    var myDocument = app.documents.item(0);
    var myLabel;
    var myLabelStyle = myDocument.paragraphStyles.item(myLabelStyleName);
    var myLabelLayer = myDocument.layers.item(myLayerName);
    var myLink =myFrame.graphics.item(0).itemLink;
    //Label type defines the text that goes in the label.
    switch(myLabelType){
      //File name
      case 0:
       myLabel = myLink.name;
       break;
      //File path
      case 1:
       myLabel = myLink.filePath;
       break;
      //XMP description
      case 2:
       try{
        myLabel = myLink.linkXmp.description;
        if(myLabel.replace(/^\s*$/gi, "")==""){
         throw myError;
       catch(myError){
        myLabel = "No description available.";
       break;
      //XMP author
      case 3:
       try{
        myLabel = myLink.linkXmp.author
        if(myLabel.replace(/^\s*$/gi, "")==""){
         throw myError;
       catch(myError){
        myLabel = "No author available.";
       break;
    var myX1 = myFrame.geometricBounds[1];
    var myY1 = myFrame.geometricBounds[2] + myLabelOffset;
    var myX2 = myFrame.geometricBounds[3];
    var myY2 = myY1 + myLabelHeight;
    var myTextFrame = myFrame.parent.textFrames.add(myLabelLayer, undefined, undefined,{geometricBounds:[myY1, myX1, myY2, myX2], contents:myLabel});
    myTextFrame.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset;
    myTextFrame.parentStory.texts.item(0).appliedParagraphStyle = myLabelStyle;   

    "Scripting Forum Conduct
    While this forum is a great place to get scripting help, it's also very easy to misuse it. Before using this forum, please read this post!"

  • IPhone after 4S price and release date?

    i got a bad verizon phone (samsung intensity) in august 2010. this coming august my two year contract lets me get a new phone for cheaper! ive been saving up for an iphone for 1 year and 5 months now and my plan was to get it for my birthday in september because my two-year contract will be up. BUT if the iphone after the 4S comes out a little bit after that then I will wait (because iwant the newest version, who doesnt) so  does anybody have an idea for when its coming out and the price?! because once i get a phone my mom says i will have to wait for a LONG time to get another one. and i want the iphone SO bad! PLEASE HELP!!!

    El Gran Dah•veedini knows!
    But he no say!!!

  • Iphone 5 price and release date in UAE

    i wants to know ihpone 5 release date and prices in UAE ?

    The UAE was included in the fifth batch of countries to receive the iPhone 4S last December 2011 together with Brazil, Russia, Malaysia, Saudi Arabia, Taiwan and the Phillipines, among others.
    Same is true for the iPhone 5 which will be expected to launch on December 14 together with these other countries:
    http://www.malaysianwireless.com/2012/11/malaysia-iphone-5-is-set-for-launch-on- december-14/
    http://www.christianpost.com/news/iphone-5-release-date-set-for-dec-14-in-china- 85575/
    http://gadgetinsiders.com/iphone-5-expected-to-be-released-in-taiwan-in-mid-dece mber/1203187/
    http://technology.inquirer.net/20663/apple-iphone-5-likely-to-hit-ph-market-in-d ecember-globe-telecom

  • Formatted Search not saving in database

    Dear All,
    I have created a formatted search to get the TAX Amount, and i'm using that field in Printing of invoices. After adding the document if i go back and check the user defined field value is being displayed but it won't be stored in the database as i check the print preview it shows there is no value. but the value will be displaying on that user defined field, After i select that field and click of shift F2 again and then click on Update then only it stores in the database.
    For the Formatted search i have given the condition as refresh regularly on document number.
    kindly help on this.
    Thank you in advance.
    Regards,
    Shreyas

    Hi Shreyas,
    Your FMS Query is Correct but your Auto Refresh is wrong.
    ->> put the Auto Refresh of Display Saved Values on BP Code or Remarks.
    Regards,
    Madhan.

  • Formatted Search - Purchase Order Lines, Price Field

    Hello Experts,
    I have wrote this formatted search for Purchase Order Lines, Price Field
    The problem is that i gets 0...
    What is wrong in it?....
    select
    case
    when T2.[ItemCode] Like N'u05D7u05DC%%' AND U_Thickness >= 1 AND U_Thickness <=3 then U_Contour*2.17
    end
    FROM OITM T0
    INNER JOIN ITM1 T1 ON T0.ItemCode = T1.ItemCode
    INNER JOIN POR1 T2 ON T0.ItemCode = T2.ItemCode
    WHERE T2.itemcode = $[$38.1.0[
    Thank You,
    Meital

    Hi.....
    Try this
    select
    case
    when T2.[ItemCode] Like N'u05D7u05DC%%' AND U_Thickness >= 1 AND U_Thickness <=3 then U_Contour*2.17
    end
    FROM OITM T0
    INNER JOIN ITM1 T1 ON T0.ItemCode = T1.ItemCode
    INNER JOIN POR1 T2 ON T0.ItemCode = T2.ItemCode
    WHERE T2.itemcode = $[$38.1.0]
    Regards,
    Rahul

  • Formatted Search inside a Price List

    Hi,
    Is it possible to put a formatted search inside a Price List which will auto-update?
    I created a query which looks at Special Prices tables OSPP and put an FMS in Price List 10. However, this FMS does not auto-update - it only updates when I click the "magnifying glass" of the formatted search. It would be cumbersome to click all items one-by-one.
    Thanks,
    Ajay Audich

    Hi...
    I understand that your formatted search is applied to the price column in your list of Charges 10. You've proven that their execution is made when leaving the modified column "Manual"? ..
    This column can fill it with one and then clicking on the column header.
    Best regards,

Maybe you are looking for

  • How to get user information from ldap - bpm11g

    hi all, i need know how to do get information from ldap, but using adf bean for show user data in adf form. anyone knows about this ? tks.

  • Global Temp table Vs Regular table

    Hi, I need a temp table to store few IDs (which I select from a complex query). I would be deleting the data from the temp table at the end of the session. From a performance perspective, I was wondering if I should be using a GLOBAL temporary table

  • Do apps work on macbook air

    I have just purchased a macbook air, I have a iphone Im hoping apps such as sky go / bbc iplayer will play on the macbook. Sorry if this sounds like a stupid question but Im new to this.

  • Activating iPhone 4 through Apple ID

    I bought an iPhone 4 off my friend and I need to activate the iPhone through his Apple ID but he doesnt know his email or password. What do I do?

  • Untrusted certificate!!!!!!help

    Eevry page that i want to open i recive this message "" Wesite has sent an untrusted certificate.Accept anyway "" when i accpet it i have only this two options ! 1" Accept this time only 2 Certificate details