Problem with SAPScript BOTTOM Command

I have a SAPScript form with multiple paragraphs. In the original version I put a footnote at the bottom of a page by doing something like:
>/E FOOT_NOTE                                                            
>/: BOTTOM                                                               
>B1 <NR><I0><HL><IT> Some fixed text.</>                                                 
>/: ENDBOTTOM                                                            
That worked correctly. Now I am changing the form so that a number of paragraphs may or may not appear at the bottom of the page. Since I donu2019t know which paragraph may be first, I tried creating two new paragraphs:
>/E           START_BOTTOM
>/:           BOTTOM
>/*                                                                                  
>/E           END_BOTTOM
>/:           ENDBOTTOM
I call START_BOTTOM, then conditionally call whatever paragraphs are needed and finally call END_BOTTOM.
The problem is that the paragraphs simply continue on from the last line that was printed, not at the end of the page.
(I had also tried putting:
>/E           START_BOTTOM
At the beginning of each paragraph that could appear at the end, and it worked to a point u2013 each paragraph appeared at the end, but overwrote whatever previous paragraphs were there.)
Can anyone help me with controlling my BOTTOM?
Thanks
Rob

Yes that's true, that Split in BOTTOM command doesn't work same as it works with the PROTECT.. ENDPROTECT.
But, after some research I got success.
Don't create any element in your MAIN window for BOTTOM / ENDBOTTOM. Use the FM WRITE_FORM_LINES to append entire BOTTOM .. ENDBOTTOM lines. Like:
data: la_head like THEAD,
      lt_lines type standard table of TLINE,
      la_lines like line of lt_lines.
select single * from stxh into la_head
  where TDOBJECT = 'FORM'
    and TDNAME   = 'ZTEST_WATERMARK'
    and TDID     = 'DEF'
    and TDSPRAS  = sy-langu.
* Bottom Start
la_lines-tdformat = '/:'.
la_lines-TDLINE  = 'BOTTOM'.
append la_lines to lt_lines.
* Generic Text
la_lines-tdformat = '*'.
la_lines-TDLINE  = 'This is BOTTOM'.
append la_lines to lt_lines.
* Include Text1
la_lines-tdformat = '/:'.
concatenate '''' 'A1' '''' into la_lines-TDLINE.
concatenate 'INCLUDE ZTEST_NP OBJECT TEXT ID ST PARAGRAPH '
  la_lines-TDLINE into la_lines-TDLINE separated by ' '.
append la_lines to lt_lines.
* Include Text1
la_lines-tdformat = '/:'.
concatenate '''' 'A1' '''' into la_lines-TDLINE.
concatenate 'INCLUDE ZTEST_NP1 OBJECT TEXT ID ST PARAGRAPH '
  la_lines-TDLINE into la_lines-TDLINE separated by ' '.
append la_lines to lt_lines.
* Bottom End
la_lines-tdformat = '/:'.
la_lines-TDLINE  = 'ENDBOTTOM'.
append la_lines to lt_lines.
* Append lines to MAIN
CALL FUNCTION 'WRITE_FORM_LINES'
  EXPORTING
    FUNCTION                       = 'APPEND'
    header                         = la_head
*   TYPE                           = 'BODY'
    WINDOW                         = 'MAIN'
  tables
    lines                          = lt_lines
EXCEPTIONS
   FUNCTION                       = 1
   TYPE                           = 2
   UNOPENED                       = 3
   UNSTARTED                      = 4
   WINDOW                         = 5
   BAD_PAGEFORMAT_FOR_PRINT       = 6
   SPOOL_ERROR                    = 7
   CODEPAGE                       = 8
   OTHERS                         = 9
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards,
Naimesh Patel

Similar Messages

  • Problem with 'Edit Locally' command -- Due to IISProxy?

    Hi,
    We have a problem with 'Edit Locally' command since we are using Windows Authentication. Our architecture is:
    SAP EP 6.0 SP2 Patch 28 (Solaris)
    IIS Proxy (Windows 2003)
    The situation is:
    If we access to SAP Portal using old url (directly to Solaris) using form-based authentication we do not have any problem with 'edit locally' command.
    However, if we access to SAP Portal using IISProxy and Windows Authentication we get an 'Operation failed' error message.
         Java plug-in console shows the following message:
    cargar: clase com/sapportals/wcm/app/docapplet/DocApplet.class no encontrada.
    java.lang.ClassNotFoundException: com.sapportals.wcm.app.docapplet.DocApplet.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    Where is the problem? Is due to authentication method? SAP Portal or IISProxy configuration?
    Thanks,

    Thanks for your comment,
    Now, we have tested with version 1.5.0_01 plugin version but the result is the same: 'Operation failed'
    This is a very important topic to solve before installing Windows Authentication in a productive environment.
    Has anybody any solution?
    Damiá

  • Problems with the vba command sendkeys in Access 2013.

    Hi, I have problems with the vba command sendkeys in Access 2013.
    I use a text field (no control) in a form. By means of the VBA command SendKeys "+ {DELETE}", 1  I get the text in memory from the text field, then place (paste) the text in a Word document. The command line sendkeys
    is followed by moving the focus to a particular control. In Access 2003, which went smoothly. Now the sendkeys command is executed only in Access 2013 in the control that then receives focus. If the procedure ends with the sendkeys command then it works well.
    The procedure with the sendkeys command is activated by a button on a form.
    Who can help me?
    private user

    Hi H.Plmp,
    Based on the description, you want to call the sendkeys from a button.
    >> use a text field (no control) in a form. By means of the VBA command SendKeys "+ {DELETE}", 1  I get the text in memory from the text field<<
    What did you mean that you no control? And how did you get the text in memory from the text field? Also I am not able to understand the exact reason that the command doesn't works in Access 2013.
    And based on the test, sendkeys "+ {Delete}" works well for me when I set a focus for the textbox control. Here is th test code:
    Me.Controls("txtField1").SetFocus
    SendKeys "+ {DELETE}", 1
    If I misunderstood, please feel free to let me know.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Just installed Lion and the Magic TrackPad and I am having a problem with one click commands.  I have to hit the pad fairly hard with one finger to get it to accept the command.  Is this normal, is there another way that I am suppose to execute commands?

    Just installed Lion and the Magic TrackPad and I am having a problem with one click commands.  I have to hit the pad fairly hard with one finger to get it to accept the command.  Is this normal, is there another way that I am suppose to execute commands?

    No you just need to turn on Tap to Click. Go into System Preferences - Trackpad and click the Point to Click tab and select the first box which will say Tap to Click and you should be in business.

  • Problem with FNDLOAD upload command for Concurrent Program

    Hi Apps Gurus,
    I am facing a peculiar problem with the FNDLOAD command.
    My customer has a concurrent program which is running fine in Prod, and now they have requeseted for a change in the program, the change requested was to modify the parameters and the name of the program. I have done the changes and when I try migrating this change from DEV instance to IAT using FNDLOAD commands it is not getting migrated. There does not seem to be any problem with the LDT file, There is no error message in the log as well.
    However I have noticed something very peculiar.* In the target instance (IAT) , when i run the FNDLOAD command directly the migration is unsuccessful but when i delete the existing parameters of the prog and rename the concurrent program and then run the FNDLOAD command the migration is sucessful and the changes are getting reflected!!. I dont understand why this is happening. This is happening in preprod as well , the migration is unsucessfull initially when i directly run the command, when i modify the name and parameters of the prog and then run the command the migration is sucessful. Now i do not have access to prod and this trick of changing prog name and parameters cannot be done in prod , so I need a proper solution for the migration.
    Any pointers to resolve this issue will be helpful.
    Thanks,
    Mahesh

    I am facing a peculiar problem with the FNDLOAD command.
    My customer has a concurrent program which is running fine in Prod, and now they have requeseted for a change in the program, the change requested was to modify the parameters and the name of the program. I have done the changes and when I try migrating this change from DEV instance to IAT using FNDLOAD commands it is not getting migrated. There does not seem to be any problem with the LDT file, There is no error message in the log as well.
    However I have noticed something very peculiar.* In the target instance (IAT) , when i run the FNDLOAD command directly the migration is unsuccessful but when i delete the existing parameters of the prog and rename the concurrent program and then run the FNDLOAD command the migration is sucessful and the changes are getting reflected!!. I dont understand why this is happening. This is happening in preprod as well , the migration is unsucessfull initially when i directly run the command, when i modify the name and parameters of the prog and then run the command the migration is sucessful. Now i do not have access to prod and this trick of changing prog name and parameters cannot be done in prod , so I need a proper solution for the migration.
    Any pointers to resolve this issue will be helpful.What are the commands you used for the download/upload?
    Do you get any errors in the log files?
    Please see (FNDLOAD Download / Upload Concurrent Programs Fails To Load Parameters [ID 1101946.1]).
    Thanks,
    Hussein

  • Printing problem with sapscripts

    Hi everybody, I have a problem with a sapscript. This is called from a user exit, and take one value to print . I have that value in the sapscript with the same value between &&, but it doesn't print anything, only print the text I have there. Does anybody know which could be the problem??
    Thanks in advance

    Hi....
    it will display correctly...
    just check it once.
    if u have a variable called <b>'name'</b> in the print program then use <b>&name&</b> in the script. it will work fine.
    Just check it once.
    Reward points if useful......
    Suresh......

  • Problem with unix "foreach" command

    Hi,
    I am facing a problem with unix command "foreach". I trying to process files using unix foreach command. When running the script with 500 or 1000 files. It is running fine. But when I am trying to the script with 2000+ files. Its throwing an error "Arguments too long".
    below is the syntax I am using in the script:
    foreach name (*)
    end
    Could anybody help me on this issue.
    Thanks in Advance.
    Manasa.

    UNIX/Linux systems expand wildcards onto the command line before invoking the
    individual commands. In effect, the shell rewrites the command line you give
    substituting the wildcard expansion. There is a limit to how long this command
    line can get.
    For example, suppose you have two files ("foo" and "bar") in your directory.
    The line:
    foreach name (*)
      echo $name
    endgets rewritten to:
    foreach name (foo bar)
      echo $name
    endand then the shell starts interpreting your script. So if you have many, many
    files, the rewritten line becomes:
    foreach name (f1 f2 f3 ... f10927)
      echo $name
    endso chances are the "foreach" line simply gets too long. To avoid problems do
    it this way; it avoids any problems based on how many files you have:
    ls | while read name
    do
      echo $name
    doneThis way the shell never exceeds its line length limitations because the
    wildcard is never expanded.
    Cheers

  • Problem with Put Key Command

    Hi everyone
    I'm woking on Gem Xpresso card which support scp 02.
    I can Authenticate successfully and Install and load my applet on it. but I have problem in put key command.
    my first key set is:
    47454d5850524553534f53414d504c45
    and this is the key that I want to set as my new key:
    404142434445464748494a4b4c4d4e4f
    with the algorithm that I use the encrypt value of this key will be :
    33173C8ECDA55BDF7E50625531BE4FC5
    and its check value will be :
    8BAF47
    so this is the APDU that I send for Put Key command:
    80D800814301811033173C8ECDA55BDF7E50625531BE4FC5038BAF47811033173C8ECDA55BDF7E50625531BE4FC5038BAF47811033173C8ECDA55BDF7E50625531BE4FC5038BAF47
    but I recieve error 94 85 (invalid check value)
    do I calculate my check value wrong?
    does different versions of jcdk or different versions of globalplatform hav different ways for calculating check value and keys encrypted values?
    I'll appreciate any help
    Best Regards,
    Shilan

    Try visit Gemplus forum or mailing-list.

  • Problem with the dblink command

    I am working with the dblink command. i have connected to a remote machine which i have configured in my TNS names under the name 'miracle'. so now i have created a dblink to that m/c as:
    create database link data_link connect to scott identified by tiger using 'miracle';
    where scott/tiger is the schema on the remote machine.
    now i am accessing a table 'X' on the remote m/c as:
    select * from X@miracle;
    but i am getting an error saying:
    select * from x@miracle
    ERROR at line 1:
    ORA-02019: connection description for remote database not found
    somebody please help me.

    Also, is the source database (from where you are running the select statement), installed on the machine where you updated the tnsnames entry?
    If you change your local tnsnames it will not work. you need to change the tnsnames entry on the Orcle home where the database server is installed.

  • Problem with COMMIT WORKS command

    Hello all,
    I’ve a little problem. It seams that I don’t understand how ‘commit work’ command works. When I’m calling transaction with USING parameter:
    CALL TRANSACTION 'FPSA' USING itab_bdcdata.
    When inside of that transaction ‘Commit works’ occur, than commit is being executed and transaction is ending which is not good, because there is still code left that should be executed.
    When I run transaction without USING
    CALL TRANSACTION 'FPSA'
    Everything works fine. I’ve tried using UPDATE addition in CALL FUNCTION, but without result. Does anybody know what is the problem?

    This is meant to work exactly as you described:
    A transaction called with CALL TRANSACTION USING returns right after COMMIT occurs - if you don't provide any additional options.
    There is a way to make such transaction continue with the code after the commit. You just have to use "OPTIONS FROM" addition of the "CALL TRANSACTION" statement - parameter RACOMMIT.
    For more information put the cursor on CALL TRANSACTION statement in your abap code and press F1.
    regards
    good luck

  • Problems with "v", "]", and command keys on the keyboard

    Hi,
    On my MacBook, pressing either the "v" key or the command key to the left of the space bar, without pressing the other one as in a keyboard shortcut, pastes what is currently on my clipboard. Pressing only the command key to the right of the space bar, and not the "]" key in combination, moves me forward in my web browser. When I do press the "]" key, nothing happens (I had to copy and paste the "]" and the "v" for this post). Obviously this is somewhat annoying as typing anything with these two symbols becomes a chore. I am still able to use other keyboard shortcuts, however, but in doing so the command key either pastes from the clipboard or, if I'm using a web browser, moves me to the next page in my history before completing the shortcut. How can I fix this? Thanks.

    Try resetting your SMC.
    Resetting the System Management Controller >>
    Try resetting PRAM:
    1. Shut down the computer.
    2. Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    3. Turn on the computer.
    4. Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    5. Hold the keys down until the computer restarts and you hear the startup sound (bong) for four times.
    6. Release the keys.
    If neither help, you could have a hardware issue with the keyboard.
    Dave M.
    MacOSG Founder/Ambassador  An Apple User Group  iTunes: MacOSG Podcast
    Creator of 'Mac611 - Mobile Mac Support' (designed exclusively for an iPhone/iPod touch)

  • Problems with the Host command (copying files)

    i am trying to copy a file from one location to another.
    i use the get_file_name function to select the file i want to copy.
    it does not work when in the path, if the directory name has a space in between.(e.g New Folder).The error i get is(the system cannot find the path specified)
    it works fine when a folder name does not have any space(e.g NewFolder).
    y:='o:\documents\filname.doc';
    x := get_file_name(null,null,null,null,open_file,true);
    host('cmd /c start /w copy '|| x ||' '|| y,no_screen);
    any help would be appreciated
    Thanks

    But this is all me, and I do A LOT of scrolling back and forth to cross check facts and so on. Having to constantly switch between files would be a huge pain.
    I guess it's a matter of work styles, but I'd much prefer to switch around among a batch of open chapters with a simple key combination, as opposed to scrolling back and forth through pages in linear fashion.
    How would ID handle a document of this complexity?
    With the limited information you've offered, I'd say I have experience with similar documents, (product catalogs/pricelists), that ID handled just fine, and other cases in which seemingly simple files choked it. I can say the same of Quark. No one can answer your question definitively; there are too many variables. Chances are it's not (only) the size and complexity of your document in itself that are causing your problems. There can be any number of hardware or OS issues contributing, to name a couple.

  • Problem with AT^SJOTAP command using Siemens TC65

    I am trying to use OTAP to install a jar file onto a TC65 module using the AT^SJOTAP command. I have the jar and jad file on my server, and when I issue the AT command I can see the jad file being read but that's as far as it gets before timing out. I have the notify URL set but I don't receive any error codes.
    Using the syslog AT command I get this output.
    [OTAP] Parameters set per AT command:
    [OTAP] JAD File URL: http://[myserver]:8081/TC65apps/myapp.jad
    [OTAP] App Dir: a:
    [OTAP] Bearer: GPRS
    [OTAP] Apn Or Num: goto.virginmobile.uk
    [OTAP] Net User: user
    [OTAP] Notify URL: http://[myserver]:8081/RES/services/RES/register
    [OTAP] Parameters set per AT command:
    [OTAP] JAD File URL: http://[myserver]:8081/TC65apps/myapp.jad
    [OTAP] App Dir: a:
    [OTAP] Bearer: GPRS
    [OTAP] Apn Or Num: goto.virginmobile.uk
    [OTAP] Net User: user
    [OTAP] Notify URL: http://[myserver]:8081/RES/services/RES/register
    [OTAP] Parameters for current procedure:
    [OTAP] JAD File URL: http://[myserver]:8081/TC65apps/myapp.jad
    [OTAP] App Dir a:
    [OTAP] Http User:
    [OTAP] Http Pwd:
    [OTAP] Bearer: GPRS
    [OTAP] Apn Or Num: goto.virginmobile.uk
    [OTAP] Net User: user
    [OTAP] Net Pwd:
    [OTAP] Dns: 0
    [OTAP] Notify URL: http://[myserver]:8081/RES/services/RES/register
    [OTAP] Try to establish a GPRS connection ...
    [OTAP] GPRS connection established.
    [OTAP] Try to get http://[myserver]:8081/TC65apps/myapp.jad ...
    [OTAP] Connected.
    [OTAP] ERROR: Otap timer expired!
    [OTAP] Reboot now.
    Sometimes I will actually get an empty jad file in my app dir, but that's it. I've read through all the documentation several times and searched this forum to no avail.
    Any insight would be much appreciated.

    Hi Kiran,
    Generally double click works with 'F2' but try using this sy-ucomm value '&IC1'.
    You can as well validate your logic using system fields like sy-lilli for clicking and sy-lisel for the values that have been stored on your click.
    Hope it helps!
    Much Regards,
    Amuktha.
    Edited by: Amuktha Naraparaju on Feb 16, 2009 12:22 PM

  • Problem with executing SPARQL command using jdbc or jena in Java

    Hi everybody
    I am new to Oracle and SPARQL, so I'm sorry if my question is the elementry one!
    select s, p, o  from table(SEM_MATCH( '(?s ?p ?o) (?s <htt...> ?o) ', SEM_Models('OWlTEST'), null, null, null ))
    I have an SPARQL command which runs on Oracle correctly and returns 8 Rows. So far so good!
    I tried two ways to use this command in java code:
    Using java.sql.jdbc
    stmt = conn.createStatement();
    rs = stmt.executeQuery(...the whole command above ....);
    if (rs.next()){
    System.out.println(rs.getString("O"));
    Problem: resultset returns only One row, which is the first row, althogh in debug mode I can see validRow=8!!!
    Using com.hp.hpl.jena
    Model model = ModelFactory.createDefaultModel();
    String queryStr = "PREFIX : <.....> SELECT ?s ?p ?o  FROM  <...> WHERE {?s prefix:property ?o}";
    Query query = QueryFactory.create(queryStr);
    QueryExecution qexec = QueryExecutionFactory.create(query, model);
    com.hp.hpl.jena.query.ResultSet results = qexec.execSelect();
    for (;results.hasNext();) {
    Problem: it returns nothing!!
    Do you any Idea,
    Thanks in advance
    Sara

    Sara,
    I don't know about SPARQL not about jena, but for Java you need to change:
    {code}
    if (rs.next()) {..
    {code}
    to
    {code}
    while (rs.next()) {..
    {code}
    Otherwise you just fech and see only first row.
    Look at : http://www.java2s.com/Code/JavaAPI/java.sql/ResultSetnext.htm
    HTH
    Thomas

  • Problems with the "Get" command

    I downloaded my site to Dreamweaver. I used the "Get" command
    and imported it to Dreamweaver. That was fine except that it erased
    all my files on my server. Now my site is just a bunch of
    blank pages.
    I hope I can fix the problem by uploading my files back on to
    my server using the
    Put command.
    Is there any way to prevent this happening again?
    Thanks,

    > That was fine except that it erased
    all my files on my
    > server.
    Cannot possibly do this. The GET function only copies - it
    doesn't delete.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Tynos" <[email protected]> wrote in message
    news:ehfprp$fsl$[email protected]..
    >I downloaded my site to Dreamweaver. I used the "Get"
    command and imported
    >it
    > to Dreamweaver. That was fine except that it erased
    all my files
    > on my
    > server. Now my site is just a bunch of blank pages.
    >
    > I hope I can fix the problem by uploading my files back
    on to my server
    > using
    > the
    Put command.
    >
    > Is there any way to prevent this happening again?
    >
    > Thanks,
    >

Maybe you are looking for

  • Ipod disk can not be read from or written to

    I have updated my itunes software and restored my ipod to the original settings. It still will not let me load any music onto it, including music that was previously loaded onto it. When I tried to reset it, I got a message saying that it was corrupt

  • Japanese Chars

    I have an issue with Japanese characters. We have an application that was using NVARCHAR in Oracle 8.1.6 on Windows NT 4.0. There was no problem getting the data from the database. Then we upgraded from NT4.0 to Windows 2000. Under both Operating sys

  • How can I escalate this case to Lenovo corporate?

    Good afternoon, In April of 2015 my wife and I bought an brand new expensive Lenovo PC on Amazon.com through a reseller called Ultra Computers. We received the PC in the mail and proceeded to set it up. As soon as we turned it on it wouldn't work. I

  • Is OAS Standard Edition One license is enough to use OC4J Standalone?

    Hi, I would like to purchase a license for OAS SE One, but the latest version is 10.1.2. OC4J 10.1.3.4 suits better for my application. Can I use it with OAS SE One license? Bart

  • Where can I view my purchase history for itunes

    My bank statement has a charge from iTunes,  but I do not remember buying anything and I have no email invoice for this purchase. I cannot figure out how to view my purchase history in iTunes on the website or on the app. How can I view my purchase h