SAPSCRIPT problem - skipping lines in an element

Hello,
I am having a weird problem with a SAPSCRIPT form that it is not executing an ELEMENT(/E) completely. When I debug it, I clearly see executimg only the first line and then it skips the rest of the code. I have ensured that I do not have any ENDIF's missing or any syntax errors. I also changed in the ABAP program(print program) to use another ELEMENT and it is also skipping the second and subsequent lines. I am not sure if it a problem with the print program or the SAPScript form.
Here is my ABAP code:
Init the barcode window
            CALL FUNCTION 'WRITE_FORM'
            EXPORTING
              window  = 'BARCODE'
              element = 'INIT_BARCODE'
            EXCEPTIONS
              window  = 1
              element = 2.
Here is my SAPScript code:
/E INIT_BARCODE
/:  DEFINE &G_XPOS1& = &ZBAR-G_XPOS1&
/:  DEFINE &G_XPOS2& = &ZBAR-G_XPOS2&
/:  DEFINE &G_XPOS3& = &ZBAR-G_XPOS3&
/:  DEFINE &G_XPOS4& = &ZBAR-G_XPOS4&
/*  Print startcode
/:  POSITION XORIGIN '0.2' CM YORIGIN '28.4' CM
/:  IF &Y2OF5-C01& = '1'
/:  BOX XPOS &G_XPOS1& TW WIDTH 0 TW HEIGHT 6 MM FRAME 8  TW INTENSITY 100
/:  ENDIF
/:  IF &Y2OF5-C02& = '1'
/:  BOX XPOS &G_XPOS2&  TW WIDTH 0 TW HEIGHT 6 MM FRAME 8  TW INTENSITY 10
/:  ENDIF
/:  IF &Y2OF5-C03& = '1'
/:  BOX XPOS &G_XPOS3&  TW WIDTH 0 TW HEIGHT 6 MM FRAME 8  TW INTENSITY 10
/:  ENDIF
/:  IF &Y2OF5-C04& = '1'
/:  BOX XPOS &G_XPOS4& TW WIDTH 0 TW HEIGHT 6 MM FRAME 8  TW INTENSITY 100
/:  ENDIF
Any ideas on this problem?
Thanks,
Nick F.

Yes, you are correct. I fixed the definition that I had an error and it is as follow:
TABLES: j_1ai02, y2of5, zbar.
DATA:
      g_xpos1(4) TYPE n,
      g_xpos2(4) TYPE n,
      g_xpos3(4) TYPE n,
      g_xpos4(4) TYPE n,
      g_xpos5(4) TYPE n,
      g_xpos6(4) TYPE n,
      g_xpos7(4) TYPE n,
      g_xpos8(4) TYPE n,
      g_xpos9(4) TYPE n,
      g_xpos10(4) TYPE n,
      g_xpos11(4) TYPE n,
      g_xpos12(4) TYPE n,
      g_xpos13(4) TYPE n,
      g_xpos14(4) TYPE n,
      g_tw_esp(2) TYPE n.   "TYPE i VALUE 12.
DATA: w_n        TYPE i,
      w_digitos  TYPE i,
      w_resto    TYPE i,
      w_pos      TYPE i,
      w_nro(2)   TYPE n,
      w_barcode(44) TYPE n.
But, I am still getting the warning in the SE71 check and skipping the lines of the ELEMENT section...

Similar Messages

  • Problem in line items(text elements printing) in smartform

    Hi all
    Here iam printing line item data in invoice form
    around 7 fields(text elements) iam having  the fileds are displaying one by one
    I need to diplay all 7 fields one after another with some gaps in the same line
    can u please let me know how to do it with text elements
    thank you

    Hi,
      create a table. In once line type(Line type 1)  create 7 different cells (Columns) for a single row.
    For eg:
    Line typ1 :  cell1 cell2 cell3 cell4 cell5 cell6 cell 7.
    cell1 : &mara-matnr&
    cell2 : &mara-ersda&.
    like soon in 7 different cells.
    Br,
    Laxmi.

  • My pixma printer skips lines/text only in black

    My pixma printer skips lines/text.  Color prints fine.  Anything printed with PGBK (5) does not.  I have cleaned the printer head by removing the carriage that holds the cartridges and using a Q-tip.   That did not work.   It seems that many people have this problem, but nobody can solve it.  Note, the problem is in the printer, not the computer, as the test sheet does not print the PGBK correctly (skips some of it).   I almost suspect that the printer prints fine when the cartridge is going in one direction, but when it comes back, it doesn't print at all as the pattern is very regular.  Like this:
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    Has anyone solved this? 

    Hi, ChesterJ!
    So that the Community can help you better, we will need to know exactly which printer model you're using. That, and any other details you'd like to give will help the Community better understand your issue!
    If this is a time-sensitive matter, our US-based technical support team is standing by, ready to help 24/7 via Email at http://bit.ly/EmailCanon or by phone at 1-800-OK-CANON (1-800-652-2666) weekdays between 10 AM and 10 PM ET (7 AM to 7 PM PT).
    Thanks and have a great day!

  • Hp 6510 skips lines

    HP 6510 skips lines - I have cleaned the heads  2x  it is a little better but some lines are missing - ink is good and I've aligned it - what else can I do -  I am using a mac but it does the same on a PC

    Hi Emmeline,
    This behaviour happens due to a known issue with the HP Scan software which prevent modifying the scan shortcut settings on Yosemite, currently being investigated by HP and Apple...
    Please try the following workaround and let me know if that helps:
    Download and install the following software, be sure to check the HP Scan software.
    (This will upgrade the HP Scan software to a later version which should not be affected.Note: if the installation ask you to connect the device, select to skip that part and complete the software installation:
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=mp-134717-2&cc=us&dlc=en&lc=en...
    Once the HP Utility will appear and the Device Configuration appear, skip that part as the intention is only to upgrade the HP Scan software.
    Oce you are done, try following the steps to modify the scan shortcut, it should now work as expected:
    1. Open the HP Utility and select your device.
    2. From Scan Settings open the "Scan to Computer".
    3. Click the Scan Tasks tab.
    4. Select the affected shortcut and click on Edit... (or just double-click the shortcut).
    5. In the section of Scan from an HP Device click on the blue triangle or the Show Details button to enlarge the menu.
    6. From the enlarged menu now open the drop-down menu next to Mode
    7. Now select the Color option and then click on OK to save the changes. The next scanned document using this workflow will appear in color.
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Problem with display of many elements in IE11

    Hi,
    After automatic Windows Updates today I am having problems to see correctly many elements in any webpage, this is more notorious in buttons, where I can always see some weird cross.
    I attach some screenshots
    http://imgur.com/nz6aTBG
    http://imgur.com/SsdJyoN
    This is very annoying for some sites where this error is everywhere, how can I fix it?
    I am using Windows 8.1 x64 with Internet Explorer 11 completely updated.
    Regards,
    Manuel.

    Hi Manuel,
    Please check in update history if there is any updates for display card.
    If so, please remove it and restart the computer the check the results.
    If there is no related device driver update, I suspect that the udpates were not installed or configured properly, please perform a system restore back to when the IE 11 work fine, and try to reinstall them one by one.
    After each update, restart your computer and then go to next one.
    Let's try to find out if one of them cause this issue, and let me know the KB number of this update, I will help to research the root cause.
    Kate Li
    TechNet Community Support

  • Problem with lines in Flash!!!

    Hello, I am currently using flash cs5.5. I am not having any software malfunctions or anything like that, I am just having a prolem with lines. When drawing with the pen, (or even pencil tool), is there anyway to make the lines you draw one solid line when you're done? For example, if tracing with the pen tool, each time you put an anchor, it creates a different line, which is fine while you're drawing it. I'm wondering is there anyway to select a certain amount of lines and make them one solid line? Let's say I am drawing an ear with the pen tool; by the time i am done drawing it, it is made up of 3 seperate lines. I did not know if there was anyway to select those three lines and make them one solid line? I know that I can double-click, but I just want to select the ear, not the entire head, (which is what happened when I double-click).
    Hopefully I got my question across, I'm not really sure how to describe it. Any help is greatly appreciated. Thank you so much!
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    Also too, on a 100% different note, I am also running into a different problem with lines. When drawing with the pencil tool, everytime I trace something with curves or bumps, by the time I let off the tablet, (this is not a tablet problem), the line with be in 100 different segments, even though I drew the line with one solid motion. It seems to do it more when I am working within a symbol. I do not know if there is a fix for this or not, but again, any help is greatly appreciated.
    Please do not get confused, both of these problems are 100% different from each other. The first is just something I am wondering if it exists. The second is more of a malfunction/glitch with the progam. Thanks again!

    Not sure if I understood you completely but let me suggest you a couple of things.
    1. Try drawing in Object mode. (available lower down in the tools panel. shortcut - J)
    The entire shape you draw now without releasing your mouse button will be treated as one shape object. These can be selected independently, broken apart (Ctrl + B) and even combined (Modify Menu -> Combine Objects -> Union). You can perform all the normal shape editing tasks as well on shape objects directly.
    2. For Pencil/brush tools, you can set the curve smoothness for your tools from the Properties panel -> Smoothness option.
    If you already have a line or curve drawn on Stage with too much of segmentation, you can select it then goto bottom of the Tools panel and click on Smooth button multiple times till you get the desired smoothness.,
    Hope this helps! Let me know in case of any doubts.
    -Nipun

  • HT4009 Do you understand me ? I want money back.Because I have problem with LINE In App Purchase.And no one try to resolve this problem.And the answer of NEVER LINE JAPAN they don't have responsibility.I think it will be effect with APPLE image also.I wan

    Do you understand me ? I want money back.Because I have problem with LINE In App Purchase.And no one try to resolve this problem.And the answer of NEVER LINE JAPAN they don't have responsibility.I think it will be effect with APPLE image also.I want you to help me everyways to refound my monet back.Could you?

    Contact iTunes Store Support.

  • Problem with value in object element declared as NUMBER(26,3)

    We have an object OBJ_NAME_1 created like below and total element in the object are around 100 with in which only one element is of data type VARCHAR2(4000). Other are with small size as below
    create or replace TYPE OBJ_NAME_1 AS OBJECT
    ( v_col1 VARCHAR2(4),
    v_col2 VARCHAR2(4),
    d_date DATE,
    amount_1 NUMBER(26,3) . . . . . . . . . . .)
    And we are creating an VARRY of above object as below:
    create or replace TYPE ARRAY_NAME_1 AS VARRAY(1000) OF OBJ_NAME_1
    Now we have one procedure with IN parameter of type ARRAY_NAME_1 as below and we are calling this procedure from java.
    create or replace PROCEDURE SP_PROC_1 (
    P_ARR_1 IN ARRAY_NAME_1,
    P_FILE IN VARCHAR2,
    E_MESS OUT VARCHAR2,
    E_CODE OUT NUMBER) . . . . . . . .
    My problem is with value of element amount_1 of array ARRAY_NAME_1 in the procedure. Actually data type of this element is NUMBER(26,3) in object. But from java we are able to pass value like 1234.12345 (with 5 decimal).
    The declare section of the procedure are like below :
    l_OBJ_NAME_1 OBJ_NAME_1;
    m_amount_1     table_1.amount_1%type; /* amount_1 in table_1 declared as NUMBER(26,3)*/
    n_amount_1     NUMBER(26,3);
    In the begin section we are assigning variable like below:
    IF (P_ARR_1 .COUNT>0) THEN
    FOR i IN P_ARR_1.FIRST .. P_ARR_1.LAST LOOP
    l_OBJ_NAME_1 := P_ARR_1(i);
    m_amount_1 := P_ARR_1(i).amount_1;
    n_amount_1 := P_ARR_1(i).amount_1;
    END LOOP;
    The value of variables are below after above assignment:
    l_OBJ_NAME_1 . Amount_1 → 234.12345 (without round off)
    m_amount_1 → 234.12345 (without round off)
    n_amount_1 → 234.123 (with round off)
    Actually all the above 3 variable/element has been declared as NUMBER(26,3), then the value in these variables should be with rounded up to 3 decimal place. Then why it is not happening with variable
    l_OBJ_NAME_1 . Amount_1 and m_amount_1?
    Please help.
    Edited by: SANT007 on Aug 12, 2011 9:45 AM

    Okay, thanks Patrick. I commented that out so now I can see the full error message. Actually, now the page just returns an "OK" (nothing else), and I click on that to return back to the page where I see:
    Checksum error for Hidden and Protected item ID (26968176992578859), value ([object]), posted checksum (326873D5A54A4AF425EC4D500B9B4D02), expected checksum (********************************), index_i (10), index_j (2), index_m (2);
    Okay, so that's evidently a new option in 3.1, it should have just been a 'Hidden' item, not 'Hidden and Protected'. So, I change this back to just 'Hidden', refressh the page, the re-execute it and try to select from the popup again. This time, instead of the more-or-less blank page with only "OK" on it, I also get "ORA-01722: invalid number" above the "OK". When I click the "OK", then I am returned back to the last good 'runnable' page I executed (since the search page is no longer 'runnable' (the javascript evidently is still returning an object instead of a number).
    On a previous run of trying to track the problem down, I made the :P3_SEQ as a regular text field so I could try to see what was going on, and it briefly displayed "[object]" before the search executed and returned the error.
    So thanks for helping me get past the first stage so I could see a better version of what the error is. Now I just need to figure out why an object is being returned instead of number. This worked fine in 3.0, and the only thing I can think of is that something, somewhere in 3.1's javascript is slightly different now, but I really don't know.
    Bill Ferguson

  • Good Morning.  I'm having a problem using both my Photoshop elements and premiere programs.  I've installed the programs, redeemed my code and entered the serial numbers, and created the adobe log-in.  I am able to open up the organizer without problems,

    Good Morning.  I'm having a problem using both my Photoshop elements and premiere programs.  I've installed the programs, redeemed my code and entered the serial numbers, and created the adobe log-in.  I am able to open up the organizer without problems, but when I try to open up the photo editor (either by trying to open up the program from the main menu, or right-clicking on a photo in the organizer to edit in elements), the program asks me to sign in to adobe (which I can do and it doesn't give an an "incorrect password" or log-in ID error) then accept the terms and conditions.  When I click to accept the terms and conditions, nothing happens and the editor fails to open.  Everytime I click on the program, I get this same "loop" of signing in and accepting T&C's, but the program fails to open.  Any advice?

      Premiere Elements 10 is now 64 bit, but not PSE10.
    Take a look at your scratch disk set-up and if you have a spare volume, allocate that first before the C drive. Elements use scratch disks when it gets low on RAM.
    Click image to enlarge
    Turn off face recognition and the auto-analyzer to improve performance.
    When editing photos or videos check the task manager to see what background processes may be running and end them temporarily if not needed.

  • Problem with Photomerge Exposure, Photoshop Elements 13?

    Problem with Photomerge Exposure, Photoshop Elements 13?. Why does Photomerge Exposure not give me a finished DONE photo. If I open 2 photos, it will merge then, and when I press DONE I get a new photo file that I can save. However, if I open 3 photos, and go through the same process, the software analyzes the photos, I get a new image, BUT when I press DONE, the new image vanishes???? I can open the same 3 photos in Elements 8 and it works fine. any ideas please.

    I, too, am having problems in version 11 with Photomerge Exposure.  I can merge the 3 photos successfully with version 10.  In version 11 when I click done, I am taken back to the Expert mode of the Editor but the merged photo in the photo bin is not accessible.  When I first return to the editor, one of the original images (before merge) is selected.  When I double/click on the merged photo it doesn't become the active image.  In fact, any image I double click on momentarily becomes the active image and then jumps to another one.
    The merged photo is visible in the photo bin but I can't select it.
    I am running version 11 on my MacBook running OS 10.6.8
    Mary Lou

  • How to skip line for delimited file type?

    Hi, i wanna ask how to skip (example: the first two line) for delimited file type?
    Thanks...
    Here is my script
    Function NY_Skip06Center [strField, strRecord]
    ' FDM DataPump Import Script:
    'Created by: FDM_Admin
    'Date created: 2/28/2006
    Dim strEntity
    'Check first two characters of entity
    For strEntity = 1 to 6
    'Skip line
    Res.PblnSKip = True
    Next strEntity
    End if
    End Function
    But it returns this error when imported
    Error: An error occurred importing the file.
    Detail: Object variable or With block variable not set
    Anyone knows what's wrong
    Edited by: user649207 on Mar 19, 2010 2:15 AM
    Edited by: user649207 on Mar 19, 2010 3:04 AM

    strAcc = DW.Utilities.fParseString (strField, 1, 1, chr(9))
    I didn't look closely enough last time. The above is illogical. The parsestring function parses a string based on a delimiter.
    The function has these arguments:
    String to Parse
    How many fields are in the string
    The parsed field to return
    Field delimiter
    In the above, strField is returning the field specified in your import format. You are also saying that there is a total of 1 field. If that were the case, you wouldn't need to parse anything.
    I am guessing that your call needs to look something more like this:
    strAcc = DW.Utilities.fParseString (*strRecord*, *8*, 1, chr(9))
    Make sense?
    If not, maybe you can include a few sample lines from your data file and that will make it easier to help you.
    Is your import format fixed or delimited?

  • Problem in transporting the text elements for user exit EXIT_SAPLV09A_002

    Hi  All,
    I am facing a problem in transporting the text element (text symbol) for the exit EXIT_SAPLV09A_002. It is implemented and transported but the text elements are not transported and even if I try to delete them and then create them again, on activation it doesn't prompts for TO and it version its shows it as local object. I have tried to manually assign the TO by using limu as id of program and rept as type and SAPLXV09 as the name of the object but still it doesn't allows as an error message comes prompting local object cannot be assigned to TO. Kindly suggest solution this problem.
    Regards,
    Sachin
    Edited by: Sachin Dangayach on Nov 15, 2010 4:21 PM

    Hello ,
               In the Quality after you run the report check in the layout option>display text elements> variables and check what value is displayed for the use exit variable , if it is correct then problem may be in the selection you gave when you run the report if the user exit variable value is wrong , then set a break point in the code and run the report from rsrt and check where the error is.
    hope it is clear
    assign points if useful

  • Read sql error log, skip lines that are in a exception list

    Could someone help, I am creating a nice powershell script to read a sql server log file but to skip lines that are normal in a sql server. the "normal lines are held in a SQL table.
    To expand.
    I run a query to get the list of exception lines using invoke-sqlcmd  this creates $TextEXP
    this will contain things like "Microsoft Corporation", "All rights reserved", "Starting up Database"
    I then connect to a sql server using SMO and want to read in the error log where the text is not matched the values in $textExpI want to avoid reading extra data and process it. I have a work round but its not a nice clean as its hardcoded the match.
    $ENV =$srv.ReadErrorLog()
    |? {  $_.text
    -notmatch'This
    is an informational message only'-and$_.text
    -notmatch'No
    user action is required'-and$_.text
    -notmatch'found
    0 errors'-and$_.text
    -notmatch'Microsoft
    Corporation.'-and$_.text
    -notmatch'All
    rights reserved.'-and$_.text
    -notmatch'Server
    process ID is'-and$_.text
    -notmatch'System
    Manufacturer: '-and$_.text
    -notmatch'Starting
    up database'-and$_.text
    -notmatch'Using
    ''dbghelp.dll'' version'-and$_.text
    -notmatch'Authentication
    mode is'-and$_.text
    -notmatch'Logging
    SQL Server messages in file '-and$_.text
    -notmatch'Setting
    database option'-and$_.text
    -notmatch'The
    error log has been reinitialized. See the previous log for older entries'-and$_.text
    -notmatch'Server
    is listening on '-and$_.text
    -notmatch'Registry
    startup parameters:'-and$_.text
    -notmatch'Clearing
    tempdb database'-and$_.text
    -notmatch'Service
    Broker manager has started'-and$_.text
    -notmatch'The
    Service Broker protocol transport is disabled or not configured'`
    -and$_.ProcessInfo
    -notmatch"Logon"-and$_.logdate
    -ge$Sdate}

    So after some looking about on the web I found that you can use the | in a string
    the following will give an idea of how to use this (this is not a clean bit of code but will give you a starting point)
    $TextEXP  this is a data table from sql server with the list of values I want to skip
    The field name (col name) is extext
    Set the string to be empty
    $exclusions = ""
    #Create a string with the values in $TextExp
    Foreach($value in $TextExp){
    $exclusions = $exclusions + "$($value.extext)|"
    #remove the last pipe from the string
    $exclusions = $exclusions.substring(0,$exclusions.length-1)
    ##This will create a long string value|value|value###
    $err = $srv.readerrorLog() | ?{$_.text - notmatch $exclusions}
    ###end
    May need bit of a clean up and may be a better way but seems to do what I need for now.
    Thanks all for the help

  • Skip Lines (Enter Key) in Adobe Story AV Scripts

    Hello,
    I'm working with Adobe Story online (not desktop application). I just began an AV script. My project requires that the visual aspects only come in every once in a while, and I need them to match up with the text they coincide with. I don't know how to do this because neither column allows me to "skip lines" using the enter/return key. After writing one line, I am able to hit enter and go down to the second line, but I can's skip any more lines. I need to be able to skip multiple lines on both sides since this is starting out as more of an outline and will grow into a full script with significantly more text than video/visual information.

    The tab button will get me what I want on the Audio side of the script. However, on the visual side, when I hit tab, it takes me back over the the audio side. Please help!

  • Hello, i have a problem with the adobe photoshop elements 10 in the organizer impossible to use the

    Hello, i have a problem with the adobe photoshop elements 10 in the organizer impossible to use the magic mouse, Where can I configure this one?
    Thank you.

    What do you mean by "impossible to use"? I use a magic mouse with PSE all the time. What are you wanting to do that isn't working?

Maybe you are looking for

  • Have I hit the limitations of CR?  Help please

    Post Author: eseidel CA Forum: Charts and Graphs I have a subreport that I'm having a lot of difficulty with and I dont know if I've hit the limitations of CR or I just don't know how to do it.  I need to set the subreport graph parameters on the fly

  • Mdp to hdmi doesnt work

    why doesnt this work !!!!!!!!!!!! iv read all the possible ******** that people come up with and quite frankly am so ****** off with your service, and mostly where are your answers to provide us all with correct infomation as to why your products are

  • WCS can't logon to ACS 3.3

    Just fired up a new Windows WCS install and have been trying various optoins to get it to work with ACS (for admin only at this point). I've tried RADIUS (IETF) and tacacs+(Cisco IOS) with various failed attempts logged in ACS. Any ideas what I'm mis

  • Probably a daft Mac NOOB question but...

    Is there a way to allocate more RAM/CPU to audio apps? I'm running Logic Pro & I can quite easily overload my system as I use a tonne of plugins in realtime so I can keep them open to edit and automate.. I sort-of design my sound as Im working & i li

  • In sap plm projects

    hi guru. in sap plm projects is this necessary , to generate the reports,scripts. what is exactly sap plm projects,give some idea briefly.because just recently i got offer for working in sap plm development projects. help me. thanks& regards subhasis