Regarding left justified and right justified in sap script

Hi Experts,
I create sap script. in sap script i have 2 field in one row 1) amt discription and other is amount... amt discri is a left side and amount is a rigth side like:
amt discript   amt
blablabla      100
now what i want amt disc should be left side and and amt should be right side...
so how can i do this?? if that 2 field is different row so i have no problem but this field in one row.. so how can i make paragraph element or give tab in one row...
Give me suggetion.
Vishal

I am fine...Thanks.. How are you?
You can go to SE71...
Go to Paragarph ...select your paragraph say <b>P1</b>.. go to Tabs..
Now define as I have suggested...
If you want to use only one for the Amount that define like:
1 15 CM RIGHT..
In the text element write like this:
P1      Amt Desc,, AMT
RIGHT tab means, the value related to that field should end before the specified limit. Like in this case it should end at 15 CM.
Regards,
Naimesh Patel

Similar Messages

  • Tab delimited and Right justified fields

    Hi
    My requirement is to produce an output file where the line items consists of 5 fields of variable lengths and all of them are tab delimited and right justified at the same time
    for eg.
    ABC       123456ghtje  4567.45678   67.45678  pqr
    where all the values in the first field 'ABC' and 2nd field '123456ghtje' are right justified and are tab delimited and asme is the case for '4567.45678' , '67.45678' and 'pqr'
    they are all separated from each other by a tab but are not fixed lengths
    How can i achieve that ? i am using File Receiver Adapter ??
    Can it be done without Adapter Module ?
    Thanks
    Dev
    Edited by: sd on Feb 22, 2010 2:25 PM
    Edited by: sd on Feb 22, 2010 2:26 PM

    > they are all separated from each other by a tab but are not fixed lengths
    When thay are not fixed length fields, why do you have to worry about left or right justification? In delimetted files, you would only have the delimitter between the fields. You do not need to fill spaces for justifying them.
    VJ

  • Sapscript Justified, Not left-justified, not right-justified, but Justified

    In Sapcript (46c) I would like to use Alignment Justfied (or Block). Not Left-Justified or Right-Justified. I have created a Paragraph Format with alignment Justfied (Block) and used it in the Std Text which is called as an INCLUDE in the Sapcript. But it does not align as a Block.

    Hi Julie, it may be a silly question but....have you tried using the paragraph format directly in the sapscript rather than in an include? It could be an issue with the include. I don't mean stop using the include in your long-term solution just test it out to see if you can get the justified format working in-line.
    Cheers,
    Neil

  • Left pane and right pane(Multiple Panes/Multiple Views) in single FACET

    Hi All,
      Please suggest how can we add left pane and right pane(Multiple Panes/Multiple Views) in single FACET , Do we need to create mutiple custom BO's or single custom BO is enough.    Is it feasible requirement to place mutilple panes/views in a single FACET.   Please suggest. 
    Thanks in advance.
    Tim

    Hi,
       Use Back Satement for that.
    ex.
    DATA:  TOWN(10)      VALUE 'New York',
           CUSTOMER1(10) VALUE 'Charly',
           CUSTOMER2(10) VALUE 'Sam',
           SALES1 TYPE I VALUE 1100,
           SALES2 TYPE I VALUE 2200.
    RESERVE 2 LINES.
    WRITE:  TOWN, CUSTOMER1,
          /       CUSTOMER2 UNDER CUSTOMER1.
    BACK.
    WRITE: 50 SALES1,
           /  SALES2 UNDER SALES1.
    Reagrds,
    prashant

  • Move to previous or next magnified photo     Press Left Arrow and Right Arrow keys does not work

    Move to previous or next magnified photo
    Press Left Arrow and Right Arrow keys
    This command no longer works in iPhoto. The photo just bounces for a moment, then all the photos begin scrolling. I used to be able to just hit the key to scroll one at a time.

    What version of iPhoto and system are you running?  What mode are you in, edit, full view, full screen, ???
    OT

  • Role of left input and right input in merge join

    Hi All
    I really appreciate if someone explain me the difference between left input and right input in Merge Join.

    Think it in terms of transact sql join statement. The left input and right input represents the left and right part of join operation. So depending on type of operation chosen like LEFT JOIN,INNER JOIN etc it takes correspondig input as the base input and
    does join operation with the other input. Also it relies upon order of records in input which is why its essential that data should be sorted and also Issorted property must be tru for both the inputs.
    The real significance of choice is for left join as it will take left input as base table and does the comparison with other input returning all records from base input irrespective of whether or not it found a match. In all other cases (INNER/FULL JOIN)
    it gives similar output regardless of the which input you choose as left or right input.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • This is regarding totals and sub totals in sap-scripts

    Hi to all...............
    1...How to print totals and subtotals in sap-scripts? where we have to code the logic.what sort of logic is needed to print the same?
    regards,
    swaminath.

    Hi
    HI,
    To calculate totals and sub totals in sap scripts you have to use subroutines.
    Say if you have to add the unit price (KOMVD-KBERT) then in the main window whereever tat value is picked write this routine
    /: DEFINE &TOT_PRICE&
    /: PERFORM F_GET_PRICE IN PROGRAM <subroutine prog name> /:USING &KOMVD-KBERT& /:CHANGING &TOT_PRICE& /:ENDPERFORM
    Then write the variable where ever you want it to be printed (mostly it will be in footer window)
    Then create subroutine pool program and you have to write the code.
    FORM F_GET_PRICE tables int_cond structure itcsy
    outt_cond structure itcsy. data : value type kbert.
    statics value1 type kbert.
    Read int_cond table index 1.
    value = int_cond-value.
    value1 = value1 + value.
    Read outt_cond table index 1.
    outt_cond-value = value1.
    Modify outt_cond index 1.
    ENDFORM.
    To know more, have a look at this thread ..
    Re: SAP Script: Display Total calculated  on page 2 in page 1
    <b>Reward if usefull</b>

  • What are all the components and attrubutes of the SAP script

    hi
    what are all the components and attrubutes of the SAP script
    please reply
    thanks in advance

    Hello Ashok,
    The componest of the Script are:
    HEADER,PAGES,WINDOWS;PAGE WINDOW;PARAGRAPH FORMAT AND CHARACTER FORMATS.
    THE HEADER WILL HAVE THE ATTRIBUTES OF THE SAPSCRIPT LIKE
    DESCp.PAKAGES Etc.
    If useful reward points.
    Regards,
    Vasanth

  • PO for item of service Level short and long text using sap script

    Please let me know how to do the PO for item of service Level short and long text using sap script.
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on May 5, 2009 10:25 AM

    Hi ,
          In the transaction related to PO select the path goto->header texts and then details of the texts like ID,objectname,language,name.Pass all theses details to 'READ_TEXT '   FM. Then you will get text lines described for a perticular Po ,similarly for item also.
    Thanks,
    Suma.

  • Left and right justifiation in alv grid

    I m using alv grid to display a tbale.I have to justify one perticular cell depending on value.So i have to first check the value of that field in itab and then justify right or left accordingly.
    Therefore , i cnt use just field of field catalog as im not goin to justify whole column.
    I tried to save justified value in itab  and then display in alv but alv doesnt display white space charaters in start and end.
    Could you help me with this topic.
    regards

    hii,
    i think this is not possible.

  • Left- and right-justifying with dot leaders in JLabel and JButton

    Hi,
    I am developing checklists using JLabel and JButton components and want to finish up with the text in each component looking something like the following (each line is a separate button/label):
    ACTION No1............................RESPONSE No1
    ACTION No2............................RESPONSE No2
    ACTION No3............................RESPONSE No3
    The idea is to have the �Action� text left-justified and the �Response� text right-justified with dot-leaders as shown.
    Each text line will be put into its own fixed length label or button.
    I plan to construct a string from text blocks �ACTION No1� and �RESPONSE No1� and add the calculated, exact no of dots in between to fill the space.
    The text font can be fixed (e.g. Courier) or proportional (e.g. Arial).
    My question is how to calculate the number of dots to add to fill the space for different fonts and font sizes.
    I think that using FontMetrics could provide some help but am not sure how this would work.
    Can anyone help.
    Many tks
    John

    Hi,
    I've developed your suggested code further to enable selected JLabels to be toggled visible(true/false) by pressing a JButton.
    I'd like however that when a label is made invisible that the rest of the labels/buttons move up to fill the space left by the now invisible label and vice versa.
    How do I do this, can you enlighten me on a solution?
    Modified code included below. Not very elegant but serves to illustrate the point in question and only makes the label invisible.
    Many tks
    John
    package componentwierd;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class ComponentWierd extends JFrame implements ComponentListener, ActionListener {
        boolean isVisible = true;
        JLabel label2 = new JLabel();
        public ComponentWierd() {
            getContentPane().setLayout( new GridLayout(0, 1) );
            // Using my original suggestion
            JLabel label = new JLabel();
            label.setLayout(new BorderLayout());
            label.add(createWierdComponent());
            getContentPane().add(label);
            JButton button = new JButton();
            button.setLayout(new BorderLayout());
            button.add(createWierdComponent());
            button.addActionListener(this);
            getContentPane().add(button);
            // Using Font Metrics
            // JLabel label2 = new JLabel("Label2 West...Label2 East");
            label2.setText("Label2 West...Label2 East");
            label2.addComponentListener( this );
            getContentPane().add(label2);
            JButton button2 = new JButton("Button2 West...Button2 East");
            System.out.println(button2.getIconTextGap());
            button2.addComponentListener( this );
            button2.setVisible(true);
            getContentPane().add(button2);
        public void actionPerformed(ActionEvent e) {
            if (isVisible == true) {
                isVisible = false;
                label2.setVisible(false);
            } else if (isVisible == false) {
                isVisible = true;
                label2.setVisible(true);
        private JComponent createWierdComponent() {
            JPanel panel = new JPanel(new BorderLayout());
            panel.setOpaque( false );
            panel.add(new JLabel("Label WEST"), BorderLayout.WEST);
            panel.add(new JLabel("..............................................."));
            panel.add(new JLabel("Label EAST"), BorderLayout.EAST);
            return panel;
        public void componentResized(ComponentEvent e) {
            if (e.getComponent() instanceof JLabel) {
                JLabel component = (JLabel)e.getComponent();
                String text = component.getText();
                String fitText = fitText(component, text);
                component.setText( fitText );
            if (e.getComponent() instanceof JButton) {
                JButton component = (JButton)e.getComponent();
                String text = component.getText();
                String fitText = fitText(component, text);
                component.setText( fitText );
        private String fitText(JComponent component, String text) {
            // Calculate the total width for painting the text
            // (Not sure why I need the -8)
            Insets insets = component.getInsets();
            int availableWidth = getWidth() - insets.left - insets.right - 8;
            // Calculate the minimum width our text will take
            String start = text.substring(0, text.indexOf("."));
            String middle = "...";
            String end = text.substring(text.lastIndexOf(".") + 1);
            FontMetrics fm = getFontMetrics( component.getFont() );
            int startWidth = fm.stringWidth( start );
            int middleWidth = fm.stringWidth( middle );
            int endWidth = fm.stringWidth( end );
            int minimumWidth = startWidth + middleWidth + endWidth;
            // Add dots to fill out the extra space
            StringBuffer buffer = new StringBuffer(start);
            buffer.append(middle);
            if (minimumWidth < availableWidth) {
                String dot = ".";
                int dotWidth = fm.stringWidth( dot );
                int dots = (availableWidth - minimumWidth) / dotWidth;
                for (int i = 0; i < dots; i++) {
                    buffer.append( dot );
            buffer.append(end);
            String result = buffer.toString();
            return result;
        public void componentHidden(ComponentEvent e) {}
        public void componentMoved(ComponentEvent e) {}
        public void componentShown(ComponentEvent e) {}
        public static void main(String[] args) {
            ComponentWierd frame = new ComponentWierd();
            frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
            frame.setSize(200, 200);
            frame.setLocationRelativeTo( null );
            frame.setVisible(true);
    }

  • LI2721s 1 inch border on left, top, and right sides

    Hello,
    I called tech support but they didn't even seem to know what I was talking about in regards to this monitor, someone will get back to me I was told.
    I recently bought this on Amazon, and it looks great, the entire point of me upgrading my monitor was the entire "edgeless" monitor...... but I seem to have a 1.5 inch border (both bezzel, and black bars).  Is this just a fact of the monitor, in which case, it should really be told somewhere in the advertising that this monitor has a 1 inch border.  Orrrrr its a software issue, either or any help is appreciated.
    v/r,
    Z

    Hello Bgriffin2,
    As I told you guys in Twitter, IMO this is not a technical problem, this is an advertaising problem. The black border is not part of the LCD panel, its part of the transparent plastic that protects the lcd, but is painted, there are no pixels behind that black border.
    Can you guys plug one of these monitors and check this by your self and confirm me and the rest of the customers that this is a mistake in the advertising ?.  PLEASE TRY IT YOURSELF !
    I'm copying below some review from Amazon.
    "As many others posted, it is no where near edgeless. I've gone under my graphic's card settings and scaled it to 100% vertical and horizontal and still no luck. I looked at the screen under very good lighting and found that the black 2/5 inches from both the left and right edges are not pixels and is colored very well to blend in with the pixel screen."
    "I'll weigh in with the "not edgeless" camp. It's actually not edgeless in two ways. 1) there's a 3/16" plastic frame around the entire monitor. It would be easy to look at the product photo and believe the glass goes up to the edge with only a band of plastic across the bottom."
    "Secondly there's a 3/8" 5/16" band of dead real estate inside this plastic frame along the sides and top. This band is not apparent when the monitor is off, but when the monitor is on it just doesn't light up. It actually looked to me like i just needed to figure out how to scale the monitor properly, but i searched through all the options and no dice. Plus i verified that the actual live pixels measure 27" diagonally, so this is apparently the way it was intended to look."
    "The screen has quite a large annoying bevel. Their description of "The Worlds first edgeless 27" IPS Display" is so massively misleading it's insane, "world first" lol, world's first what?"
    "As many others posted, it is no where near edgeless. I've gone under my graphic's card settings and scaled it to 100% vertical and horizontal and still no luck. I looked at the screen under very good lighting and found that the black 2/5 inches from both the left and right edges are not pixels and is colored very well to blend in with the pixel screen."

  • Render left eye and right eye in cs6

    Hi there,
    I have a video that it is 3D Stereo in after effects and it is on anaglyth mode ( added a camera, second mouse button, camera, create stereo 3D rig ) and i have all set. But now how i render the left and right eye, with out the anaglyth look?
    Cause now in the main comp where is the Stereo 3D Controls, both comps are off ( that is normal) but when i enter in the both comps i notice that they are not offsseting as they supose to do ( or how it doing on the main comp) I notice that the left and right comp have been offset to left and right but the image is not moving, and if i the layers as 3D i will have a gap, and if i try to compensate the by incrising the size of the comp, the gap is even bigger. so I dont know how to do it. Can anyone help me?
    Thanks

    If you are referring to these arrows in the CS5 interface:
    They have been removed in CS6:
    note:
    If you're new to CS6 from CS5, just wait until you try to select
    a transition vs. a cut point in the Timeline.

  • Putting cross line under top left corner in a cheque through SAP SCRIPT.

    Hi,
    How to put cross line over top left corner in cheque   (cross cheque) while doing it through  SAP SCRIPT.
    Thanks.

    Hi,
    i can give you two solutions. try the thing which looks fine for you.
    1.  say this is line editor of the script.
    you have to design like this manually(its a bit time consuming for alignments and all - both should align side by side using '/')
    so try the second way.
    2.  make this 'corss' as an image and simply pass as a text on to the window on which you needs this.
    it will be simple and an easy way.
    Thanks & regards,
    Sasi Kanth.

  • Font color  and font effects in sap scripts

    Hi,
    I want to change the color of font(usually it is black).I want in some other color other than black.
    Thanks in advance,
    Priya.

    Hi Priya,
    I know it's quite a long time that you started this discussion.
    But if you still want to know the answer, please go through my blog on how to do color printing in SAP scripts.
    White Paper on 'Color Printing in SAP Scripts'
    Regards,
    Sireesha Ch

Maybe you are looking for

  • Can't open RAW images in Photoshop

    I purchased a new computer. It runs 64 bits. I have CS4. Since uploading it to my computer, I can not open RAW images. I have downloaded the most recent updates. I have been using the 32 bit photoshop because I could not get my NIK filters to work in

  • How can I get my PDFs to show up as anything but the Firefox html icon?

    I need the old format where the contents of the first page of the PDF showed up as its icon instead of the Firefox icon. Now they all look alike, which really slows down my work production! I now have to read every title to find the PDF I want! Also,

  • Error starting managed server with JRockit VM

    I getting this error when i start the server with Jrockit VM 3.1 with -Xthinthreads option on. The OS is NT. Any clues , please ? exception: couldn't initialize IOPort: The parameter is incorrect. (error 87, fd 824) - with nested exception: [java.lan

  • Disk Warrior hangs in 10.4.7 too

    I originally posted this in April, when I was using 10.4.6 - no replies then so I'm hoping someone's found a solution since. I just updated to 10.4.7 but the problem remains unchanged. (Not sure if this should be posted here or in the Powerbook secti

  • Get number out of String

    Hi, I have several emptyMCs on my page, created with a for loop; Each MC has now a different name, like "Roll_mcT0","Roll_mcT1","Roll_mcT2", and so on.... How could I get the number property out of this MC name? var depthT:Number = 1000+d; this.creat