Script(tab positions)

hi to all,
help me in this issue
i have defined a paragraph format and tab postions for 7 colums
and in main window i have assigned that paragraph format but the paragraph format is not working.
for amounts can i kept as (R) for right alignment of amounts but it is also not working the amounts r not aligned.
thanks in advacne
kiran kumar

hi,
did u give like this
Assume DP is ur paragraph format
DP  ,,&itab-v1&,,&itab-v2&,, and so on
define tabs as follows
1  5.00 cm   left
2 10.00 cm  left
don't think that if u give right it is  assigned to right like that
left means from left it move to the 5 cm position and then display at that position ,right means from right corner it will adjust the alignment
better to define all tabs either to left or right to avoid confusion,it takes some time time to ajust properly,activate the code before u test
do assign points if it helps you

Similar Messages

  • Script TAB position issue

    Hi,
    I have an issue in creating Tab position under Paragraph section.  I have to display a column like which 10 character length and it is numeric value and also it needs to right justified. 
    if i make the tab right justified .. will system start printing it from right to left or left to right? this is my question.

    Hi,
    if it's right justified it will work as below,
    say you have a tab format
    P1 5CM Right justified,
    in this case it leaves 5CM from the left side of your window & then starts printing from RIGHT TO LEFT.
    say if it's left justified output is,
    >--5CM---->TEST
    right justified output will be,
    >----
    >TEST.
    >--5CM>
    hope this helps.
    Regards,
    Raghavendra

  • Script Paragraph Format-TAB position Problem....

    In Script- Medruck , There is a line:
    IM   ,,,,,,Qty. ,,Unit   ,,Deliv. date ,,,,&ETUHRTXT&
    where IM is a paragraph format with TAB positions at:2,3,23,24,34,40,51,57.
    what is the meaning of ,,,,,,Qty ????
    what is the difference in writing :
    IM ,,Qty,,Unit,,Deliv. date,,&ETUHRTXT&                                 AND
    IM   ,,,,,,Qty. ,,Unit   ,,Deliv. date ,,,,&ETUHRTXT&
    How would the Display look like??

    Hi Srikar again,
    If you are putting one tab position after every field, in this case count tab position from the starting i.e. from first variable and go on countin till end . This will take you adding position one after other and it will not overlap.
    e.g. Mat,,qty,,price
    and tab position as 1 : 5  2: 10 3: 15 4:20
    then mat will start at 1 to 5 and qty will from 10 onward.
    Regards,
    Vijay

  • Find Tab position

    Hi All,
    I need to find the tab position and alignment, and change the following:
    1. Change the first tab in the paragraph (Left align tab into Center align tab)
    2. Change the second tab in the paragraph (Left align tab into Right align tab)
    Before script:
    After Script:

    Hi Chinnadk,
    Excellent Stuff!!!!!
    But there is a small confusion, what I explain in the above thread.
    Please refer the below screenshots:
    After using the below script:
    var paras = app.activeDocument.stories.everyItem().paragraphs.everyItem().getElements();
    for(var i=0;i<paras.length;i++)
        var tabstops = paras[i].tabStops;
        if(tabstops.length>1){
            tabstops[0].alignment = TabStopAlignment.CENTER_ALIGN;
            tabstops[1].alignment = TabStopAlignment.RIGHT_ALIGN;
    Output looks likes:
    But the Final Requirement is,
    1. Extend upto the end of textframe
    2. Equal space between the three entry
    I need a script for the following things only
    Once again Great thankful, If you help for this request.
    Could anyone help for this complex task?
    Thanks for All
    Siraj

  • Re: script tabs

    Hi,
       I am facing one problem with the script tabs. I have to print three text columns.
    20,30,40 lengths of three columsn.
    how to set the tabs to fix the lengths of teh columns and how to write it in the script editor.
    rgds
    p. krishna prasad

    Hi Krishna,
       In your form create a new paragraph format. In that paragraph format got to TABS option and mention the required lengths and their positions in the tab positions provided. In the window in which you want to use these tabs write two commas without any space.(,,). This represents a tab positions. Suppose you want to print v1 , v2 and v3 in the three tab positions defined write as ,,&v1&,,&v2&,,&v3&. This will print v1 value at first tab position , v2 in the second and v3 in third tab position.
    Thanks and Regards,
    Bharat Kumar Reddy.V

  • All scripts are missing from scripts tab

    I dont know why but all the scripts that were in my scripts tab are missing.  This happened once before and I found a fix but cant locate the steps to that again.  I remember it had something to do with backing up a few files and have ID recreate them or something.  Any ideas?

    Follow this link and try resetting your indesign prefrence.
    Shonky

  • Script tab info req??

    hi
    i had an req like to display in format the quantity with there values below them:
                  quan1      quan2     quant3     quan4      quan5
    value:        10            11          12           13            14
    my above line is displaying like this,but below line is coming:
    value:             10               11            12            13
    14
    i want to take this in same line,below there respective quantity lables.pleae tell how to do?
    also when i make a para p7,the TAB option in that shows only 3 tabs,tell what to do,if fileds in a line are 5,6,than how to give tab spacing b/z them.
    my code:
    P8           INVOICE VALUE:
    =           &DTL2-MENGE&,,&DTL2-RATE&,,&DTL2-RATE1&,,&DTL2-RATE2&,,&DTL2-VALUE&
    tabs in P8
    1. 2cm
    2. 3cm
    3. 4cm.i am not very much clr with this tab funda,plz explain me.
    regds

    This is how tab concept work in SAPscript or in Smartform.
    Go to your paragraph format and click on tabs.
    Now define all your tab scpaces here.. Since you have 5 variable your can define either 5 or 4 tab spaces, for your undertanding I will define 5 tab spaces, let us assume our paragraph format is AS
    Tabspaces: for paragraph AS
    Tab Position        Alignment
    0.2   CM             LEFT
    1.2    CM             LEFT
    3.7    CM             LEFT
    5.5    CM             LEFT
    6.5    CM             LEFT
    Now inside your window call you paragraph format with tab spaces with all your variables as shown below
    AS ,, &variable1& ,, &variable2& ,, &variable3& ,, &variable4&,, variable 5&
    In above ,, --> represents tab spaces
    since, before variable 1 we have given a tab space as shown above it will print at 0.2 CM position from window start and second variable will print from 1.2 cm from start of window and 3rd variable will print at 3,7 CM from start of window and so on...
    Close the thread once your question is answered.
    Regards,
    SR

  • Indent /tab position for text from INCLUDE texts in SAPscript

    Hi, ABAP colleagues!
    Need your help on this sapscript problem:  How to align texts taken from "INCLUDE TEXT" in SAPscript, according to tab defined in Paragraph Format?
    Or, how to control tab positions for texts which were extracted from “INCLUDE text” commands in SAPscript?
    I defined a paragraph format with tab stop at 8 CH so that with 2 commas (,,) my text will be displayed there.  However it always appears to the left (e.g. 1st column) and not indented at the proper column for description/text (e.g. which is in second column). 
    Pls help, bec a different heading and information is not acceptable to client for the Thailand characters. 
    Above is the description of the problem.  Below are some technical details.
    For specific example, I am editing Zversion of standard sap MM form MEDRUCK Window Main -  Text Element Item Text.
    BG ,,&TTXIT-TDTEXT&
    /: INCLUDE &T166P-TXNAM& OBJECT &T166P-TDOBJECT& ID &T166P-TDID&
    /: NEW-PARAGRAPH BG
    So far, tried these approaches:
    PARAGRAPH
    NEW-PARAGRAPH
    LANGUAGE '2'
    THANGSAN font
    Any ideas?
    Thank you so much in advance for all your help. Our project team will really appreciate it. May the Lord bless you as we go through our SAP work!
    Sincerely,     
    Celeste

    Hello Caleste,
    Please let me know what settings you have done to solve this issue.
    Help me with steps for Spool Request/Print settings.
    Regards!!
    Surya

  • Tab position change at runtine of tab canvas

    Dear gurus,
    Is it possible to change tab position of tab canvas at runtine in 10g forms?
    George.

    Gerd: Thank you very much for your advice.
    I will explain my situation. I have a form : INV. This has got three tabs : Header, Detail and Expenses. Some users prefer to see Header as the first tab while others want to see Details and still others like to see Expenses.They have their logic - what is important to that particular user he wants to see as the first tab.
    These preferences can be set in a different table(by an admin user) and can be applied once when the form opens and not during the runtime.
    Since tab order change facility is not available in forms, I need to apply the logic in a different way - activate the tab that each user prefers to see as the form opens regardless of the tab order.
    Hope you understand my case.
    George.

  • SAPscript - Tab Position need more info

    Greetings.
    Could some one help me to explain the purpose of the tab position and what is  SIGN mean for Alignment attributes.
    In the tab position we can declare many TAB position, if we declare Number -1 Tab Position -17.00 CM Alignment - SIGN
    is it mean when we put , is it the position of the characters will be at 17cm from the left?
    Thank you.

    Hi,
    If you give the First tab position as 14 & 2nd Tab position as 17 c.m., it mean the first printing text starts at 14 C.M. and 2nd text starts from 3C.M.(17-14) next to 1st Tab Position (14c.m), i.e., the difference betn 1st Tab & 2nd Tab will 3 c.m.
    NOTE: Always any tab position starts from Origin not from the previous tab position.
    U dont need to give 2 couple of comma's for 2nd tab position.
    Eg:
    If you want the Text2 at 2nd tab position, u have to print like below:
      P1 ,,text1,,text2
    If you want the Text1 at 2nd tab position, print like below:
      P1 ,,,,text1
    Hope its clear!!
    Rgds,
    Pavan

  • Tab positions in sapscripts

    I am trying to change a paragraph format such that the tabs contain positions and so the text is displayed starting at a specific position in the document. But adding the tab positions is not moving the actual text. What could I be doing wrong?

    CP is the paragraph format
    CP        Contact Person                  LEFT           0,10  CM    0,00  CM
    15.00  CM          LEFT
    This is how I am using it
    CP           &acc-sydt&,,&acc-contact&,,&PAGE& / &sapscript-formpages(2)&
    This is the window it is been used in
    DATE       Date, Your contact and page    9,70 CM   2,00 CM  10,00 CM   1,00 CM
    Now I would expect the contact text to start from 15.00 cm. But it does not, it starts right after the date

  • Indent here with left indent changes tab position

    I have a sheet set up with a left indent and then a bunch of tabs.
    e.g.: Course #, Course description, then a set of eight tabs with dates
    The course descriptions are twice as long this year and so I was using indent-to-here (because there are rules below, and shift-return pushes the rule below under the second line only). But the tabs don't line up. They are "looking" at the left indent and making an adjustment - if I increase the left indent then the tabs associated with the indent-to-here line move left (the bigger the left indent the further left they are from the tab position)
    Why?
    Why would anyone want that to be the default behavior?
    I can fix it with a second para style, but it breaks the association between the two lines of the description and now requires manual updating in the future, instead of a simple indent-to-here substitution.
    I'm just wondering why this happens, seems completely counter intuitive - tabs should always align!

    Will: As you can see by the screenshot it's easily "solved" with a second style, my reason for writing is why is this happening? - is this a bug that needs to be reported to Adobe? I don't understand why an Indent Here (given a left Indent), would change the primary attributes of tabs (i.e. lining-up!)
    Peter: Prefs trashed; happens on any/all docs; CS6 (8.0.2). [You are setting a left indent, and then using the Indent Here (Cmd\)??]
    Anyone else able to recreate?
    Appreciate the replies.
    Em

  • Just upgrade to 33.1.1, terrible! new tab position not configurable, no response for clicking a link, how can I have the old version? Thanks!

    Just upgrade to 33.1.1, terrible! new tab position not configurable, no response for clicking a link, not going to the website by click "enter", "space" keyboard can not be the page down anymore, always die....
    how can I have the old version?
    Thanks!

    Just to clarify, let's say you have tab 1 Google results and tab 2 something else. When you Ctrl+click a link in tab 1, it opens between tab 1 and tab 2 instead of at the end? Here's how you switch that:
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''tabs''' and pause while the list is filtered
    (3) Double-click the '''browser.tabs.insertRelatedAfterCurrent''' preference to switch it from true to false.
    You can switch back to an earlier tab and test. Success?

  • Is there a script to position document windows?

    I think it's likely that someone (Dave?) has written a script for this, but I can't find one.
    I want to open (or at least reposition) document windows on my second monitor, not under the open panels on the primary display on my MacBook screen; and I'd like to find a way of doing this with keystrokes.
    If a script doesn't exist, is it possible, or is there some roadblock? Should I post in the scripting forum?

    I have indeed written such a script, but it is not aware of second monitors, and off the top of my head, I'm not sure how to make it aware.
    Ah, it doesn't have to be aware. The bounds are relative to the total monitor space. So my script will work.
    Here you go:
    //DESCRIPTION: Resets active window size or uses front window to set default size.
    // Check for WindowDefault.txt; if present use it to set front window
    // if not, use front window to set it after checking with user.
    myPath = app.activeScript;
    myParts = myPath.toString().split("/");
    myParts[(myParts.length - 1)] =  "WindowDefault" + app.version.slice(0,1) + ".txt";
    myNewPath = myParts.join("/");
    mySettingsFile = File(myNewPath);
    // Before proceeding, check that there is a front window
    // If not, offer user the chance to delete the current settings
    if (app.windows.length < 1) {
    beep();
    if (confirm("No window is open; would you like to delete the settings file?")) {
      // User said yes; check that it exists
      if(mySettingsFile.exists) {
       mySettingsFile.remove();
    } else {
    if (mySettingsFile.open("r")) {
      savedBounds = mySettingsFile.read();
      mySettingsFile.close();
      myBounds = savedBounds.split(",");
      for (i = 0; i<myBounds.length; i++) {
       myBounds[i] = Number(myBounds[i]);
      app.windows[0].bounds = myBounds;
    } else {
      beep();
      if (confirm("Settings file is missing. Use current front window to set default?")) {
       // User said: go to it.
       new File(mySettingsFile);
       mySettingsFile.open("w");
       mySettingsFile.write(app.windows[0].bounds);
       mySettingsFile.close();
    Before you run the script for the first time, position a window where you want this script to position all subsequent windows. It keeps the information in a text file in the same folder as the script. You can reset the position by editing the file (that's what I often do to fine tune the position) or by running the script again with no window open.
    Dave

  • Tab position in sap script

    Hi all,
    i have following fields to print..
    ZEILE, MATNR ,CHARG, KOSTL, LGORT, MENGE ,MEINS, maktx,
    and format is like:
    item matrial batch costcen. sto.
    mat desc. qty Un
    zeile matnr charg kostl lgort
    maktx                     menge meins
    and in this format I want to display menge and meins fields in right alingment ,
    Plz help me...
    I gave tab like
    1 cm left
    4 cm right
    5 cm left
    in paragraph p1.
    Plz help me....

    Hi,
    You create paragraph format P
    In TABS as you mentioned like below
    No           Position                  Unit                   Alignment
    1             1,00                        CM                    Left-Aligned
    2             2,00                        CM                    Left-Aligned
    3             3,00                        CM                    Left-Aligned
    4             4,00                        CM                    Left-Aligned
    5             5,00                        CM                    Left-Aligned
    6             6,00                        CM                    Right-Aligned
    7             7,00                        CM                    Right-Aligned
    8             8,00                        CM                    Left-Aligned
    In smartform or sapscripts text editor you need to mentioned like below
    ,,matnr,,kunnr,,bukrs,,vbeln,,posnr,,menge,,mein,,quan
    it will showing in output above showing position
    i hope it will help ful you
    regards
    bhupal

Maybe you are looking for

  • Using and analyzing maintenance 3.8 log

    I read recently that this program shouldnt actually be used often or mostly at all. It seems when I get frequent program crashes it has fixed them up, but I have never been able decipher or understand the log file that comes with it. If anyone can he

  • Messages and FaceTime failing

    Everytime I connect to messages and FaceTime I'm faced with these two errors "There was a problem with Messages. You need to quit and open Messages again." and There was a problem with FaceTime. You need to quit and open FaceTime again. It was fine w

  • Sales Report in XL Reporter within Bill Of Materials Components

    Hello @ all, I've tried to create a XL Report, to know which and how many components of the BOMs are sold. It should look like this example: article no.12345 (BOM)         sold 10x - component No. 1---- 10x - component No. 2---- 20x - component No. 3

  • Exception aggregation - Last Value

    Hi, We are having requirement where we have a table in non R/3 system for SKU - Customer level closing stocks on particular day are maintained. We want to create a cube for the table in BI. This table contains entries for SKU + Customer for diff days

  • Why do I keep getting an "error 5002" when trying to purchase my wish list?

    Why do I keep getting a "error 5002" while attempting to purchase my iTunes wishlist?