Sapscript: position OBJECT GRAPHICS ID

Hi all,
I hope there is someone can help me...
My problem is: i've used the istruction to insert an image in a Sapscript
/: BITMAP 'LOGO_TOPAZIO_DATI1' OBJECT GRAPHICS ID BMAP TYPE BCOL
now, how can i position the image in the centre of page?
Thanks a lots,
regards,
Alex.

Hi,
To print image, you have to import a tif file from your local hardisk via the SAP abap program RSTXLDMC.
In the sap script, add in the following script.
: / INCLUDE ZLOGO OBJECT TEXT ID ST LANGUAGE EN.
or
Tested in 4.6x
Go to transaction SE78.
Follow the path given below (on the left windows box) :-
SAPSCRIPT GRAPHICS --> STORED ON DOCUMENT SERVER --> GRAPHICS --> BMAP
Enter the name of the graphics file on the right side and Go to the menu GRAPHIC --> IMPORT.
Thanks,
Neelima.

Similar Messages

  • SAPScript: Positioning a Window (Graphic) behind the main window

    Hello,
    I want to print a graphic behind the main window. But I am not able positioning a window or graphic-window behind the main window. The result is that my graphic always shows up in front of the printed text of the main window and not behind the text of the main window, as I wish. I thought that the order of the windows determines which windows is on top? But I am not able of putting a window before the 'MAIN' design window.
    Regards, Lars.

    Hi Lars
    Please check the following thread:
    ABAP Development
    /: BITMAP MYLOGO OBJECT GRAPHICS ID BMAP TYPE BMON
    I think, trick must be in 'TYPE'.
    Try to explore what options you can have (here it is BMON). I will also try.
    Regards
    Ashish Jain

  • Object Graphics deleted on paint component

    Hello everybody!
    I have a question about the object graphics when paint a component in it. I'm trying to paint a component in a image, and after show it in the screen.
    The problem is that in order to make it possible, I have to put the function that paint the image inside the code paint() of the principal class.
    With this code in one class named: Program:
    public void paint(Graphics g){
    Graphics2D g2 = (Graphics2D) g.create();      
                gt = new GraphicT(view);   <-HERE IS THE PROBLEM
                g2.setColor(getBackground());
                g2.fillRect(0,0,getWidth(),getHeight());                               
                g2.drawImage(gt.getImage(), 0, 0, this);
    ...and with this other in other named: GraphicT:
    private JComponent view;
    private Image image;
    private Graphics gaux;
    public GraphicT(JComponent view){
            this.view = view;
            this.image = new BufferedImage (view.getWidth(),view.getHeight(),BufferedImage.TYPE_INT_BGR);
            gaux = image.createGraphics();
          //  gaux=image.getGraphics();
            this.view.paint(gaux);       
    public BufferedImage getImage(){              
            return this.image;
    ...I don't want to do it because each time that Program paint , create the image (object) in GraphicT. I want to create the image only one time, I mean to put the class GraphicT inside the Program like a object private. But if I do this, program doesn't paint anything.
    Do you know why about this behaviour?
    Thanks everybody
    Edited by: ginnkk on Feb 5, 2009 3:15 AM

    So you want to paint a component to an image and display the image. The reason it works if you put it in the paint() method is becasuse by that time the component has already been made displayable, approprietly sized, and consequently can be painted.
    If all you are doing is painting an ordinary JComponent, then it's the approprietly sized part that matters.
    Dimension prefSize = myJComponent.getPreferredSize();
    myJComponent.setSize(prefSize.width,prefSize.height);
    myJComponent.doLayout();
    GraphicT gt = new GraphicT(myJComponent);This is more or less the code required to paint the component outside the paint method right after the JComponent has been constructed.

  • Many javax.swing.text.Position objects en masse

    Hi,
    I am wondering if anyone has much experience with the performance of javax.swing.text.Document implementations (using GapContent) and a large number of registered Position objects. I am trying to keep track of token boundaries for quick re-lexing, and the token count can be rocket high. I am just beginning to work with this API, and I guess I am looking for any insider information I may be missing.
    Thanks,
    galaxy

    Hi,
    I am wondering if anyone has much experience with the performance of javax.swing.text.Document implementations (using GapContent) and a large number of registered Position objects. I am trying to keep track of token boundaries for quick re-lexing, and the token count can be rocket high. I am just beginning to work with this API, and I guess I am looking for any insider information I may be missing.
    Thanks,
    galaxy

  • Insert Object graphic in standart text

    Hi Experts,
    I need put object graphic in the middle of line in standart text. When I insert this object it make 3 lines instade one. Could You help me??
    Example:
    Test A: < OBJECT GRAPHIC > OK
    Thanks in advance,
    Marcin
    Edited by: Marcin Szlenk on Feb 26, 2008 12:54 PM
    Edited by: Marcin Szlenk on Feb 26, 2008 12:55 PM

    Well, I found a solution.
    Instead of:
    p.addChild(inlineGraphic);
    where:
    p is my paragraphElement assigned to my textFlow
    inlineGraphic is my InlineGraphicElement with source, width and height
    I use:
    edition.insertInlineGraphic(inlineGraphic.source, inlineGraphic.width, inlineGraphic.height);
    where:
    edition is my EditionManager assigned to my TextFlow
    inlineGraphic is my InlineGraphicElement with source, width and height
    Now, I can insert graphics anywhere my cursor is placed.

  • [JS] CS4 How to position a graphic within a Frame

    I have a JS script that I am converting from CS3 to CS4 and I am finding that the behaviour for positioning a graphic within a frame has changed.  I have code that sets the geometric bounds of a graphic to a negitave value within the frame, within CS3 this works great.  However using the same code on CS4 to set the geometric bounds does not produce the same result.  The graphic is always placed at 0,0 and it ignores the negitive top and left values supplied.
    Does anyone know what has changed with the geometric bounds of a graphic within a recrangle frame?  How would I set the position of the graphic within the frame since setting the geometric bounds does not seem to work any longer.
    Thanks,
    Sheldon

    I have yet to determine why the behavior is different from CS3 to CS4 and how to correct the positioning within CS4.  To help explain the problem further I have included a sample script which demonstrates the problem.  I have run the script on both CS3 and CS4 and included screen shots of the results when the resulting INDD file is opened.  Could someone help explain why the position of the image is wrong in CS4 and what I can do to correct the problem?
    Here is the sample script ...
    for(i=app.documents.count()-1;i>=0;i--){app.documents.item(i).close();}
    app.textPreferences.useOpticalSize = false;
    app.textPreferences.typographersQuotes = false;
    app.textImportPreferences.useTypographersQuotes = false;
    app.taggedTextImportPreferences.useTypographersQuotes = false;
    app.pasteboardPreferences.minimumSpaceAboveAndBelow = "300p";
    app.textFramePreferences.firstBaselineOffset = FirstBaseline.ascentOffset;
    app.colorSettings.cmsSettingsPath = File("C:\\etc\\Friesens_Yearbook_Custom_Color_Settings.csf");
    app.marginPreferences.top = '24pt';
    app.marginPreferences.bottom = '48pt';
    app.marginPreferences.left = '36pt';
    app.marginPreferences.right = '36pt';
    var doc = app.documents.add();
    doc.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
    doc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
    doc.documentPreferences.pageHeight = 792;
    doc.documentPreferences.pageWidth = 612;
    doc.documentPreferences.pageOrientation = PageOrientation.portrait;
    doc.documentPreferences.pagesPerDocument = 2;
    doc.documentPreferences.facingPages = true;
    doc.sections.firstItem().continueNumbering = false;
    doc.sections.firstItem().pageNumberStart = 2;
    var pg = doc.pages.item(0);
    var frm = pg.rectangles.add();
    frm.geometricBounds = ['200.5pt','200.2pt','447.8551pt','415.5206pt'];
    try{frm.place (File('c:\\test.jpg'), false);}catch(err){};
    if(frm.graphics.count() > 0) {frm.graphics.firstItem().geometricBounds = [frm.geometricBounds[0]-147, frm.geometricBounds[1]-49, 407.04+frm.geometricBounds[0]-147, 271.68+frm.geometricBounds[1]-49];};
    var objStyle = doc.objectStyles.add();
    objStyle.enableStroke= false;
    objStyle.transparencySettings.blendingSettings.opacity = 100;
    frm.applyObjectStyle(objStyle, true, true);
    frm.rotationAngle = 59;
    doc.label = '824203.indd';
    doc.packageForPrint('c:\\test\\824203\\', true, true, true, true, true, false, '', false, false);
    for(i=app.documents.count()-1;i>=0;i--){app.documents.item(i).close();}
    The line that I highlighted is the one that adjusts the images position within its frame.  It uses a formula to determine the exact position relative to the containing frames position.  This is why you will see the calculations to determine the geometric bounds.
    Here is the result of the script using InDesign Server CS3, notice the position of the image based on the 'Direct Selection Tool' highlight area (this is the desired result):
    And, here is the result after running the script against InDesign Server CS4:
    As you can see the Image is placed at the lot left corrner of the frame which is wrong.  Any insight into the diffrences in the behavior would be appreciated.
    Thanks

  • Changing the position of graphic item

    Hi all,
    I am using graphical items in my form canvas. I want to change the position of these items in runtime.
    can any one suggest me how to change the positions at run time.?.....
    Thanks,
    Pavan.

    Hello,
    This question has been aked so many times, and the answer is always the same : NO
    There is no available buit-in to deal with graphical objects located on the canvas. All you can do is to drop them on a small stacked-canvas, then move this stacked-canvas.
    Francois

  • ABAP Objects - Graphical Tree Structure

    Hi All,
       I have a problem in splitting the container of graphical tree.
        i want to split the left side container which will generally have the tree hierarchy in small size, which can be viewed on the right side in a bigger size by positioning on the necessary portion of left side container.
       Please help me out as in how to split the container. is there any property which has to be set so taht it can be splitted.
    Regards,
    Theja.

    Thejaswi,
    You can do it in two ways. If you want only two divisions then you can use a EASY SPLITTER. If you more parts you can go for a SPLITTER CONTAINER.
    w_custom_contnr  TYPE REF TO cl_gui_custom_container,
    w_split      TYPE REF TO cl_gui_easy_splitter_container,
    w_contnr_top     TYPE REF TO cl_gui_container,
    w_contnr_bot     TYPE REF TO cl_gui_container,
    IF w_custom_contnr IS INITIAL.
      Create Event Receiver
       CREATE OBJECT w_event_receiver.
        IF cl_gui_alv_grid=>offline( ) IS INITIAL.
          CREATE OBJECT w_custom_contnr
                 EXPORTING container_name = c_container.
        Create the splitter control
          CREATE OBJECT w_split
             EXPORTING
               parent            = w_custom_contnr
             ORIENTATION       = 0
               sash_position     = 16
               with_border       = 0
             EXCEPTIONS
               cntl_error        = 1
               cntl_system_error = 2
               OTHERS            = 3.
        Get the containers of the splitter control
          w_contnr_top = w_split->top_left_container.
          w_contnr_bot = w_split->bottom_right_container.
        ENDIF.
        CREATE OBJECT w_tree
    EXPORTING i_parent = w_contnr_bot.
    Regards,
    Ravi
    Note : Please reward the posts that help you.

  • Position/Draw graphics on graphics

    I'd like to let a textarea draw itself then get it's graphics and add it to another graphics object.
    This code always draws the textArea at position (0,0) on the incoming graphics object.
        protected void paintComponent(Graphics g)
         g.setColor(m_bgColor);
         g.fillRect(0, 0, getWidth(), getHeight());
         Graphics2D g2d = (Graphics2D) g.create();
         g2d.setColor(Color.black);
         textArea.setText("1 foo bar\n2 foo bar\n3 foo bar");
         textArea.setSize(25,25);
         // I'd like to do something like this (compare to icon.paintIcon below):
         // textArea.paint(g2d, xLocation, yLocation);
         textArea.paint(g2d);
         icon.paintIcon(this, g2d, 100, 50);
         g2d.drawString("< text >", 200, 20);
         g2d.dispose();
        }or something more general like a drawGraphics in Graphics2D:
         g2d.drawGraphics(textArea.getGraphics(), xLocation, yLocation);Any ideas?

    Use Graphics2D translate method.
    Don't forget to store AffineTransform before translating and restore it after painting.
    Regards,
    Stas

  • Automatic numbering of objects (graphics)

    I work on music sheets that contain a large number graphics, which are placed on pages in different orders.
    I want to give names to all these graphic, for instance 1, 2, 3, 4... Or 1.1, 1.2, 1.3.... Or 1.a, 1.b, 1.c etc or just a, b, c, etc.
    I want to place these numbers for each graphic on the same position and with the same font. If I remove some of graphic, I want also to have it re-numbered, so that all graphic after deleted one are again proportionally numbered.
    How to do it easily?

    Use a number list paragraph style. Define the style to continue across stories.
    Bob

  • Positioning anchored graphic outside of table

    I have a single-cell table with a small graphic that is anchored so that it is positioned to the left of the table and is particially in the margin area. The reason that the graphic can't be in a table cell is because it has to jut into the margin, past the text frame.
    The table is inserted periodically throughout several documents. The lines of text in the table can vary -- sometimes it will have 1, 2, 3 lines of text in the cell.
    I need to have the anchored graphic centered vertically to the left of the text in the cell -- the "y" distance for the anchored graphic varies according to the number of lines in the table cell. Is there a way to automatically center the graphic so that it doesn't need to be manually positioned for each table?

    Make that frame the height of your cell and center its contents vertically. .. Oh wait, your row heights may be different, so you still have to resize the anchored frame. Anchor the frame into a cell that has its own contents vertically centered?
    Perhaps there is an easier way. Re-reading from the top, you state "The reason that the graphic can't be in a table cell is because it has to jut into the margin, past the text frame." Well, a table can jut out into the margin at the right, if it is wider than the text frame -- a flaw/oversight/"feature" that has been put to good use for creating straddling headlines over two columns.
    Let me put this question to you: what happens if you (a) insert a new column to the left of your table to put the graphic in, thus making the table too wide, and then (b) **Sanity Warning! Untested Claim Follows** set the paragraph of the table to right alignment?

  • Positioning objects in a JTabbedPane

    Is the any way to specify the positioning of an object in a JTabbedPane?
    I am placing JPanels which contain JLabels and JTextFields into tabs
    of a JTabbedPane. All the panels are centered in the tab panes.
    This is annoying because one panel contains more labels and fields than
    the others. As result some of the data on the smaller panels isn't visible without scrolling.
    Is there some way to orient all panes NORTHWEST ? So when a user selects a tab the data is visible.
    It seems to me it would be done when adding the tabs (.addTab())
    but I can't figure out how.
    I tried grigBag.setConstraints(jtp, gridBagConstraints) where jtp
    is the tabbed pane. But it did not work.
    Is this just the way the JTabbedPane works ?
    TIA

    Looks to me like you are using FlowLayout - this is the default for JPanels. FlowLayout is a pain in the thingimybob. Try using a more suitable layout manager (e.g. BorderLayout).
    This applies both to to the container you're putting the JTabbedPane into, and the JPanels you're putting within the JTabbedPane.
    You can set the layout when you create a container, for example...
    JPanel panel = new JPanel(new BorderLayout() );
    JTabbedPane tabs = new JTabbedPane();
    panel.add(tabs, "Center");Hope this helps!
    Regards,
    Tim

  • How to position a graphic on a page

    I am a realtively new Output Designer user, struggling to figure out how to do some things.
    For this question: I am putting a graphic on the page with ^graph. It shows up partially displayed in the upper right. I presume that is where the pen is at the time.
    How can I position the pen, the graphic, where I want it?
    Brian

    Check out the
    b ^position
    command.
    I prefer to use a "logo" in the designer or a "graphic field" if the graphic and be variable. That way you have easy control of where it goes.

  • Positioning Objects on the Page.

    Hi, Expert:
    How can I position two objects on the page relatively? Say, I have two data tables, or one data table and after the table, some other object (button?, etc). B/c I don't know how many rows will return from the database, if I placed two tables too close, the first table will overlay the second one below. Is there a way to place them relatively so the second one will be always at the end of the first one?
    Thanks
    Jimmy

    Yes, and it's pretty easy :)
    Drag and drop a GroupPanel component to the page and put both tables into it.
    Or you can try changing the layout of the page to Flow Layout, but I use the GroupPanel.

  • SapScript Position

    Hi,
    I want to change the position of a BOX in sapscript. So I used the following commang
    /:   POSITION WINDOW
    /:   POSITION XORIGIN '-0.5' CM
    /:   BOX WIDTH '8.5' CM HEIGHT 5 CM FRAME 10 TW
    It works fine. I can really see that the BOX moved 0.5 cm on the left.
    The problem is that the paragraph didn't moved on left.
    So What i wrote in the BOX don't fit.
    hope it's clear
    thank you
    joseph

    Yeah I know that but i don't know what happening w/ this form I getting crazy!
    And it's hard to explain the problem by writting....:(
    But I will try:
    The original Form is HEBREW language so that mean that the form will be display from RIGHT to LEFT.
    The RIGHT margin is 0.5 CM.
    The second language of the is ENGLISH so the the form will be display from LEFT to RIGHT.
    I was excpected that left margin will be also 0.5 cm but no.
    Joseph

Maybe you are looking for

  • Why is my video fuzzy in Youtube?

    I have now created and uploaded three new videos using my ipad 3 and imovie. However, the video quality is not great at all and seems rather fuzzy.  In fact, I have uploaded to youtube the 'large' version and the 'HD' version and they both appear the

  • How to create publishing custom approval workflow will assign approvers.

    Hi All, I am new in sharepoint development. I have a page library where we add artical page with different department I want to create publishing custom approval workflow will assign approvers based on what department is selected for display.  The de

  • Full screen screwed up.

    Ok. I downloaded iTunes like 9.1 or something, the most recent version. Anyway, now the viewing screen for my movies is messed up. It's too small on the iTunes screen and full screen isn't full screen. It is a black background with the movie the same

  • HT1338 Can I do a clean install after using time machine backup?

    Can I do a clean install after using time machine backup?

  • How to initialize Button Array at "declaration"?

    How to initialize Button Array at "declaration"? Button[] b = new Button[2]; b[0] = "label" ? b[1] = "label" ? Again,please at declaration not using setText within main program.