Draw 'box' in FORM?

Hi,
Is it possible to draw a box, using lines and NOT BOX?
I have one MAIN window, and in element END_OF_DOCUMENT I want to draw a box. But if I use BOX, then I have to define POSITION.
The problem is that element END_OF_DOCUMENT has not the same position every time FORM is been printed.
So I would like to draw a BOX using lines or something?
Adnan.
Adibo A

Hello,
I have handle a similar situation with box.That is drawing dynamically based on no of items.
If there are 2 items,the box height for 2 items will be displayed and if there are 10 itmes then box height for 10 items will be displayed.
Only thing is u have to calculate the no of records and multiply with some sutable constant.Pass this content into varible declared in character format and use it in in box command as height.
BOX XPOS '0' CM WIDTH '18.5' CM HEIGHT &G_F_COUNT20& CM FRAME 2 TW
Here G_F_COUNT20 is varible.
Try this way and let me know if u face any problem.
If useful reward.
Regards
Vasanth

Similar Messages

  • Drawing Boxes in Script - main window

    hi,
    In script, in main window <u>after table line item datas</u>, i want to draw a box in which i will place some text. On drawing box, it appears on top of that window which i dont want, since it should be placed after item details.
    kapil.

    I do not know this is still relevant for You or not but here is the solution what I did:
    First of all I have to mention this requires SAP standard object modification. !!!
    1.Start SE80 and get into STXC function group.
    2.Select COP_RELATIVE_NUMBER subroutines and double click on that.
    3.Click on Edit button and Get SSCR  Object number from SAP.
    4.Change interface of the COP_RELATIVE_NUMBER subroutines extending it with TYPE parameters
    5.Change the first if Statement.
    6.Extend the Relative case section with a new WHEN '#'.
    7. Cange All COP_RELATIVE_NUMBER calls with new input parameter in CO_BOX, In CO_POSITION, In CO_SIZE.
    From now in Your SAP script You can call BOX statement like this:
    BOX XPOS ‘#10’ TW YPOS ‘#10’ TW  …..
    Will start drowing BOX from cursor current position plus 10 twip.
    Numbers after the # sign are optional.
    Solution works only with TW.
    form co_box.
    data: begin of bx,
            x    type i,
            y    type i,
            w    type i,
            h    type i,
            f    type i,
            i(3) type n,
          end of bx,
          next(10),
          xpos         type i,
          ypos         type i,
          is_relative like boolean.
      bx-x = ft-wpx.
      bx-y = ft-wpy.
      bx-w = ft-wpw.
      bx-h = ft-wph.
      while co-endline = false.
        perform cop_next using next 10.
        case next.
          when 'XPOS'.
    *{   REPLACE        ED1K902054                                        1
    *        perform cop_relative_number using is_relative xpos.
            perform cop_relative_number using is_relative xpos 'X'.
    *}   REPLACE
            add xpos to bx-x.
          when 'YPOS'.
    *{   REPLACE        ED1K902054                                        2
    *        perform cop_relative_number using is_relative ypos.
            perform cop_relative_number using is_relative ypos 'Y'.
    *}   REPLACE
            add ypos to bx-y.
          when 'WIDTH'.
            perform cop_number_value using bx-w.
          when 'HEIGHT'.
            perform cop_number_value using bx-h.
          when 'FRAME'.
            perform cop_number_value using bx-f.
          when 'INTENSITY'.
            perform cop_next using next 3.
            bx-i = next.
          when space. exit.
          when '.'.   exit.
          when others.
            perform cop_warning using subrc_param_unknown next.
        endcase.
      endwhile.
      perform cop_end.
      check co-error = false.
      perform pc_box using bx-x bx-y bx-w bx-h bx-f bx-i.
    endform.
    form co_position.
    data: begin of pos,
            x type i,
            y type i,
          end of pos,
          next(10),
          relative like boolean,
          xpos     type i,
          ypos     type i.
      pos-x = ft-wpx.
      pos-y = ft-wpy.
      while co-endline = false.
        perform cop_next using next 10.
        case next.
          when 'XORIGIN'.
    *{   REPLACE        ED1K902054                                        1
    *        perform cop_relative_number using relative xpos.
            perform cop_relative_number using relative xpos 'X'.
    *}   REPLACE
            if relative = true.
              add xpos to pos-x.
            else.
              pos-x = xpos.
            endif.
          when 'YORIGIN'.
    *{   REPLACE        ED1K902054                                        2
    *        perform cop_relative_number using relative ypos.
            perform cop_relative_number using relative ypos 'Y'.
    *}   REPLACE
            if relative = true.
              add ypos to pos-y.
            else.
              pos-y = ypos.
            endif.
          when 'WINDOW'.
            pos-x = ft-tdwlefts.
            pos-y = ft-tdwtops.
          when 'PAGE'.
            pos-x = 0.
            pos-y = 0.
          when space. exit.
          when '.'.   exit.
          when others.
            perform cop_warning using subrc_param_unknown next.
        endcase.
      endwhile.
      perform cop_end.
      check co-error = false.
      ft-wpx = pos-x.
      ft-wpy = pos-y.
    endform.
    form co_size.
    data: begin of dim,
            w type i,
            h type i,
          end of dim,
          next(10),
          relative     like boolean,
          width        type i,
          height       type i.
      dim-w = ft-wpw.
      dim-h = ft-wph.
      while co-endline = false.
        perform cop_next using next 10.
        case next.
          when 'WIDTH'.
    *{   REPLACE        ED1K902054                                        1
    *        perform cop_relative_number using relative width.
            perform cop_relative_number using relative width 'X'.
    *}   REPLACE
            if relative = true.
              add width to dim-w.
            else.
              dim-w = width.
            endif.
          when 'HEIGHT'.
    *{   REPLACE        ED1K902054                                        2
    *        perform cop_relative_number using relative height.
            perform cop_relative_number using relative height 'Y'.
    *}   REPLACE
            if relative = true.
              add height to dim-h.
            else.
              dim-h = height.
            endif.
          when 'WINDOW'.
            dim-w = ft-tdwwidths.
            dim-h = ft-tdwheights.
          when 'PAGE'.
            dim-w = form_header-tdpagwidth.
            dim-h = form_header-tdpagheigh.
          when space. exit.
          when '.'.   exit.
          when others.
            perform cop_warning using subrc_param_unknown next.
        endcase.
      endwhile.
      perform cop_end.
      check co-error = false.
      ft-wpw = dim-w.
      ft-wph = dim-h.
    endform.
    *{   REPLACE        ED1K902054                                        3
    *form cop_relative_number using is_relative like boolean
    *                               val         type i.
    form cop_relative_number using is_relative like boolean
                                   val         type i
                                   type        type c.
    *}   REPLACE
    data: num type f,
          next(10).
      clear is_relative.
      perform cop_next using next 10.
    *{   REPLACE        ED1K902054                                        1
    *  if next(1) cn '+-.0123456789 '.
      if next(1) cn '#+-.0123456789 '.
    *}   REPLACE
        perform cop_warning using subrc_param_unknown next.
        clear: is_relative, val.
        exit.
      else.
        if next+1(9) cn '.0123456789 '.
          perform cop_warning using subrc_param_unknown next.
          clear: is_relative, val.
          exit.
        else.
          case next(1).
            when '+'.
              is_relative = true.
              num = next+1(9).
            when '-'.
              is_relative = true.
              num = next+1(9).
              num = -1 * num.
    *{   INSERT         ED1K902054                                        2
            when '#'.
              is_relative = true.
              num = next+1(9).
              case type.
                when 'X'.
                  num = ( ft-line_width  - ft-rem_width ) + num.
                when 'Y'.
                  num = ( ft-fill_height - ft-rem_height ) + num.
              endcase.
    *}   INSERT
            when others.
              num = next.
          endcase.
        endif.
      endif.
      perform cop_num_val using num.
      val = num.
    endform.

  • Launching file open dialog box in Forms 6i

    hi,
    We have to launch file open dialog box using forms 6i within oracle apps
    and store the file into the database.
    Any ideas?
    Thanks,
    AZ

    Hi azodpe
    i have a solution(Source Code) plz give me ur email address
    i ll mail u later.
    Khurram

  • Drop-Down List Box on Form Is Cleared at Each Step in a Workflow Process

    Hello users,
    I am posting this in the Workflow Designer, Workflow Server and Form Designer forums so that it gets a little more exposure, so I apologize if you receive this more than once.
    I have a Form Designer 5.0 form attached to a Workflow Server 6.1 process. On the form, I have a drop-down list box being populated from a text box by the OnDataLoad event on the form ONLY when the process is first initiated. The text box is populated by the OnAssign event of the first step in the process map. When the task initiator submits the form to the second step in the process and the user opens the form, the drop-down list box is no longer populated - it has been cleared. There is no code anywhere in either the form or in the process map that clears this field.
    Can anyone tell me why this is happening? Is it a bug?
    Thanks.

    Unless you hard coded the list box on design time, it will lose all data when the form is routed.
    Only solution to this is:
    create a text box and store your list box choice list to the text box before submitting your form and import the list box choice list back from the text box on form ready.
    Hope this helps.

  • How to connect any scanner and cash draw box in retail outlets

    we have JHS 10g oem copy.how can connect with barcode scanner and cash draw box, print invoice over the JHS? is it any pre defined ADF application available in Oracle for retails?

    we have been developing ADF application,we pause development? due to the  connection with cashdraw devices( Point of Sale Devices) over the JSF pages! this is our core issue! how can achieve this goal?
    we have 40+ outlets with CashDrawer with bar-code scanner! those devices should communicate with our ADF application!
    either any such type of devices are compatible with ADF application.please suggest,we can buy.

  • Drawing boxes dynamically in the script

    Hi All,
             I have requirement in SAP script. iam getting the data from different elements and it has to displayed in the table format.after column header i need to draw the box and i have to print the data as in the format of boxes. iam placing box command in the first element but iam not getting the boxes for all data it is printing only on the top of the page. so please suggest the solution for drawing boxes dynamically .
    Thanks and Regards
    D.Ramesh

    I have handle a similar situation with box.That is drawing dynamically based on no of  items.
    If there are 2 items,the box height for 2 items will be displayed and if there are 10 itmes then box height for 10 items will be displayed.
    Only thing is u have to calculate the no of records and multiply with some sutable constant.Pass this content into varible declared in character format and use it in in box command as height.
    BOX XPOS '0' CM WIDTH '18.5' CM  HEIGHT &G_F_COUNT20& CM  FRAME 2 TW
    Here G_F_COUNT20 is varible.
    Try this way and let me know if u face any problem.
    Regards

  • Drawing Frames on forms

    Dear all
    First of all I would like to Thank Engineer Francois Degrelle for his great efforts. Francois has created a java bean that draw frame on forms on runtime. this is the demo
    http://www.4shared.com/file/qAowkMhD/frames.html
    the demo contains a form and jar file
    the demo works fine in case the direction of the form is LEFT_TO_RIGHT
    my application form is Bi lingual. User can modify the Direction on runtime to be RIGHT_TO_LEFT
    the X position of the frame is not correct when changing the Form direction on runtime.
    this is my form
    http://www.4shared.com/file/mBHI0UQN/TESTTITLE.html
    Can any one help me.
    Thanks in advance

    Hello and thank you,
    <p>Concerning the Java Beans grouped on this site, please do not ask questions on this forum. Send an email at [email protected] or ask the question on the dedicated forum</p>
    Anyway, I have to confess that none of the beans I have created and stored on this site are tuned to work with Right to Left orientation :(
    Francois

  • Can i give color ot check box in forms 6i

    HI
    is it possible to change the color of check box in forms 6i..??
    i want to change the color of inner part of square of check box.. is it possible??
    pls reply me asap .

    Hi,
    It is not possible to change the colour of the check box where the check appears. You will be able to only change the colour of the other areas.
    Hope this helps.

  • Drawing box in main window of sapscript form

    Hi all,
    I am developing a script for vendor balance confirmation report, in which I have to provide check boxes to allow the user to select an option.
    My problem is if I use the BOX statement to draw the box the alignment keeps changing when the size of vendor address changes.
    i.e the boxes moves up and down
    I have another reference script in which they used the following statement to draw the box <527>.
    Please suggest a way to use statement like this <527>
    Thanks,
    Rajan

    Try it as shown below for drawing dynamic boxes.
    Here the code works this way the YORIGIN is incremented by 0.6CM each time it is in the loop thus drawing tables dynamically.
    /E TAB
    /: POSITION XORIGIN '0.9' CM YORIGIN '+0.6' CM
    /: SIZE WIDTH '3.0' CM HEIGHT '0.6' CM
    /: BOX FRAME 10 TW.
    /: POSITION XORIGIN '3.9' CM
    /: SIZE WIDTH '7.3' CM HEIGHT '0.6' CM
    /: BOX FRAME 10 TW.
    /: POSITION XORIGIN '11.2' CM
    /: SIZE WIDTH '2.8' CM HEIGHT '0.6' CM
    /: BOX FRAME 10 TW.
    /: POSITION XORIGIN '14' CM
    /: SIZE WIDTH '2.6' CM HEIGHT '0.6' CM
    /: BOX FRAME 10 TW.
    /: POSITION XORIGIN '16.6' CM
    /: SIZE WIDTH '3.2' CM HEIGHT '0.6' CM
    /: BOX FRAME 10 TW
    P4 &X_VBAP-KWMENG(C)&,,&X_VBAP- ARKTX&,,&V_TOTALa&,,&V_TOTALb&,,&V_TOTALc&
    the driver program's piece of code.
    LOOP AT it_vbap INTO x_vbap.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    element = 'TAB'
    window = 'MAIN'
    EXCEPTIONS
    element = 1
    function = 2
    type = 3
    unopened = 4
    unstarted = 5
    window = 6
    bad_pageformat_for_print = 7
    spool_error = 8
    codepage = 9
    OTHERS = 10.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDLOOP.
    Regards,
    SaiRam

  • How to open a save file dialog box in form

    hi
    all
    I have prob in form desing , i have open the save file dialog box , how to open a save dialog box
    and path of the select file to save in disk
    help
    thx

    hi
    user this query when-button-pressed trigger
    :txtfile := GET_FILE_NAME(directory_name =>'d:\ali_raza\backup\', file_filter=> 'DMP Files (*.dmp)|*.dmp|');
    Rizwan

  • I am new to using flash and need to know how to add check boxes and forms

    I have been going mad trying to figure this out as well as searching until exhaustion.
    So I am hoping someone can point me in the right direction.
    Okay here is what I am trying to accomplish.
    I have laid out my design as a psd and brought it into adobe flash pro cs5.
    I have menu items such as toppings that I want to put check boxes next to each and then once someone goes thru the page and places their choices,I want to be either be emailed what they have chosen from the form... This seems like it might be the easier of the ways to capture data, Or if there is a better way in flash to capture this data, I would take that as well.
    SO here is as far as I can get.
    Imported the psd and added one checkbox in front of the first item and labeled it strawberries. Now I really don't want the word strawberries to show up at all on the page,just the checkbox. But I am not sure if the label for the checkbox actually passes on the value of the checkbox.
    I admit I am lost.
    I did also slice and export this same image into dreamweaver and then I made a separate apDiv for each checkbox, and added into a form. It emails the results,but it is not outputting it in a very readable way.
    Oh I also brought this int Flash Catalyst and added the checkboxes, but I don't know where to go from there.
    So if anyone can let me know the proper way to do this or point me to some videos or tutorials or even a sample file that I can alter....
    I would really appreciate it.
    Thanks

    http://www.flashloaded.com/userguides/ezform/formelements.html

  • Can't get rid of black boxes when form is printed

    When I save a form to PDF there are visible black boxes around the feilds in the form. I thought these would go away once it printed but they are still there and make the form look cluttered. Any idea how to fix this?

    Hi;
    There is no option in FormsCentral to modify the fields text input box borders.  You could edit the PDF in Acrobat and remove the border.  In the screen shot below I removed the border color from the top two fields, in the bottom two fields I added a fill color so you could see the input box and it doesn't just blend in with the page:
    In this screen shot the form has been filled out, and this is how it would print:
    If you are going to edit a FormsCentral PDF in Acrobat take a look at this FAQ first:  http://forums.adobe.com/docs/DOC-3661
    Thanks,
    Josh

  • Text box in forms

    How can I limit the pdf form in adobe acrobat XI to the size of the actual text box?  Even when I limit the character size, it is still going over the actual text box and I have enabled the visible area under options, but it still does goes through.

    Un-tick the option "Scroll Long Text" under Properties - Options.

  • Open a new window, draw boxes in the window, and communicate between the two windows

    I'm going to research this, but figured I'd jump start here in case someone can give me a quick link or point me in the right direction on how to do this while I'm looking.  This is an area of Flex I haven't hit on yet.
    Basically I need to have my flex app (AIR Application) open a new window, allow the user to draw a box on that new window, and then pass the info of the box (X and Y, Width and Height) back to the main window.
    I've never done any of that and am going to try to find out how, but if someone could point me here before I find it online, that would help a great deal, kind of in a time crunch.... thanks.

    You can open the new window as a TitleWindow popup. You can pass info back to the main app using mx.core.Application.application.
    In main app:
    public var windowInfo:Object;
    In popup:
    import mx.core.Application.application;
    private var app:Object = mx.core.Application.application;
    app.windowInfo.x = this.x;
    app.windowInfo.y = this.y;
    app.windowInfo.otherOne = this.otherProp;
    Looking ahead, it is best to pass information between the main app and components using custom components. Below systemManager, popups and the main app are in different display lists, so add event listeners for custom events to systemManager. My Flex Cookbook post on custom events shows this:
    http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=2&postI d=11246
    http://livedocs.adobe.com/flex/3/html/help.html?content=layouts_12.html
    If this post answers your question or helps, please mark it as such.

  • Combo box in form manager

    Hi!
    I've made a form in Designer 8 with combo box, tested it (everything was ok) and than upload it to form manger. And here the problem beggins. When I'm writting something in combo boxes field it looks like there wasn't any or sometimes I can write only 10 letters when the Combo Box was set up for 11. Why is that? I want to use Combo Boxes. Is it a bug of FM? Thanks.

    VC,
    Have you had a chance to add an example? I checked your application and could not find the combo box in tabular form.
    Robert
    http://apexjscss.blogspot.com

Maybe you are looking for

  • Compatible printers for Mac mini (Mac's)

    Where can I find a list of compatible printers for Mac. My current Windows printer is a Canon LBP-1120 and cannot use it with my Mac mini. So its probably time to get another printer for my Macs.

  • What's This? tool in RH 8

    I am researching new ways of presenting context sensitive help, instead of opening a topic from the full help. Cannot find info about What's this? I want to know what the output looks like. Is it in a 'bubble', does it appear when you hover over a fi

  • Why is Windows 7 blocking me from downloading Firefox?

    When I go through the entire process, including completing the execution of the installation wizard, I get a message that Firefox is being blocked by some kind of security setting (unknown), or maybe a firewall.

  • Can't add to portal favorites with "&" in the name field

    Hi there Interesting problem which has been identified this morning ... it appears that certain iviews cannot be added to the portal favorites, and upon closer inspection, it appears that those iviews all have the "&" character in the name field. For

  • Runtime error at installing basis patch

    hi experts i applied basis patch SAPKB60070012 in ECC 6.0 with databse oracle10.2.0after iam logging to the sap i got run time error below Runtime Errors         SYNTAX_ERROR Date and Time          22.10.2008 11:03:27 Short text      Syntax error in