How to insert horizontal line dynamically after every line item in sapscrip

Hi All,
I have to insert a horizontal line  after every new item in sap script.
How to do this .
In some material there is2 line item or in other line item it ay be more .
How to insert horizontal line dynamically after every line item
Point will be rewarded
Regards
Niraj

Hi Niraj,
You can get your work done by keeping the horizontal line (&ULINE&) after all the item level fields, in this case once each item line is written you will get a horizontal line.
In case you have different fields for the item lines which are optional (not printed every time) then you can have them in an IF....ENDIF condition and below the endif use a horizontal line.
Some thing like this:
/E ITEM_HEADER
IL <TI>Item,,Material,,Description</>
IP <TI>,,,,Quantity,,,,Price,,Price unit,,,,,,Value</>
/ &ULINE(71)&
Let me know if this helps, else please describe your problem with an example.
Luck.

Similar Messages

  • How to create horizontal line dynamically after evry line item

    Hi all,
    I have to redesign the sapscript.
    For a invoice for every new material a horizontal line will be drawen.After that for that material all new line item will be displayed than again a horizontal line should drawn.
    In dynamic how i can know how many line item will be there for the particular material.
    Guranted points will be rewarded .
    Regards
    raj

    Hi
    1st u draw a table and in that u mention all the line items. You can change the size from there it self
        The Code is here for drawing the Box for Total in last page (where there is no next page)
        /:   IF &NEXTPAGE& = 0
        /:   BOX FRAME 10 TW
        /:   BOX HEIGHT ‘0.8&#8242; CM FRAME 10 TW
        /:   BOX HEIGHT ‘1.9&#8242; CM FRAME 10 TW
        /:   BOX XPOS ‘2.5&#8242; CM YPOS ‘0.8&#8242; CM WIDTH ‘1.1&#8242; CM HEIGHT ‘1.9&#8242; CM FRAME 10  >
    Now some help from help.sap.com to understand the code better
    1. /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    Reward all helpfull  answers
    Regards
    Pavan

  • Inserting a calculated column after every column in cross tab, in crystal report 2011

    HI,
    I want to insert a calculated column after every column i a cross tab . The cross tab shows , sales by region for a number of years , for example from 2007 to 2013. The year can be changed based on the user parameter. How can I do that ?
    Thanks

    Hi Feroz,
    To calculate the Percentage Change and also to show the Percentage sign, here's what you need to do:
    1) Right-click the Calculated Column Header > Calculated Member > Edit ColumnValue Formula and use this code:
    cdate(1890,01,01)
    If the field used as the column is a datetime field, use this:
    cdatetime(1890,01,01,0,0,0)
    2) Right-click one of the zero values in the Percentage Column and select Calculated Member > Edit Calculation formula and use this code:
    if CurrentColumnIndex  = 2 then 
        If GridValueAt(CurrentRowIndex, CurrentColumnIndex-2, CurrentSummaryIndex) = 0 then 
        0 
        else 
         (GridValueAt(CurrentRowIndex, CurrentColumnIndex-1, CurrentSummaryIndex) - GridValueAt(CurrentRowIndex, CurrentColumnIndex-2, CurrentSummaryIndex))/ 
         GridValueAt(CurrentRowIndex, CurrentColumnIndex-2, CurrentSummaryIndex)
         ) * 100 
    else 
        If GridValueAt(CurrentRowIndex, CurrentColumnIndex-3, CurrentSummaryIndex) = 0 then 
        0 
        else 
         (GridValueAt(CurrentRowIndex, CurrentColumnIndex-1, CurrentSummaryIndex) - GridValueAt(CurrentRowIndex, CurrentColumnIndex-3, CurrentSummaryIndex))/ 
         GridValueAt(CurrentRowIndex, CurrentColumnIndex-3, CurrentSummaryIndex)
         ) * 100 
    3) Right-click one of the Values in the summary cells > Format Field > Number tab > Customize > Currency Symbol tab > Click the formula button beside 'Currency Symbol' and use this code:
    If Year(GridRowColumnValue("Date_field")) = 1890 then
    "%" else "$"
    Note: Replace Date_field with the field name you've used as the Column in the Crosstab. The double-quotes ARE required and you should remove any curly braces that CR adds automatically.
    4) You might want to use a similar code in the 'Position' formula too.
    Let me know how this goes.
    -Abhilash

  • How to insert horizontal lines in alv report?

    hi,
        i have to insert horizontal lines in alv report.( RM07MLBB )
            actually my requirement is:
                               basis list = RM07MLBB.
    first secondary list = another report is called here ( RM07DOCS )
                      i want to insert horizontal lines in the first secondary list, when i execute individually RM07DOCS , i can get horizontal lines, but when i dounle click in the basic list --> in the first secondary list , i am not getting the horizontal lnes.
    functional modules used are REUSE_ALV_HIERSEQ_LIST_DISPLAY & REUSE_ALV_GRID_DISPLAY.
        here in this program,
                        is_layout = alv_layout.
    hence i tried to give     
                  alv_layout-no_hline = ' '. 
    but not effecting.
              can some one please tell me , how to insert lines in the alv report.
    thanks in advance,
    Dastagir.

    hello,
         so i cannot insert horizontal lines in the first secondary list according to my sorting condition, i.e., in a single block there should be :
           if same delivery challan number is repeating they should come in the same block,
    for the corresponding delivery challen number, if have po number, is repeating , they also should come in the same block.
                       in this way i have to seperate the blocks containing EXNUM , EBELN CONDITIONED.

  • How can we read some bytes from every line of the file

    How can we read some bytes from the every line of the file moving on to the next line
    without using the read line

    Actualiy readLine() takes more execution time
    for reading a part of line if we can do so without
    readLine() we can save some time...Well, if you knew, beforehand, the length of each line, you could use RandomAccessFile and its seek method, but, since you don't, you would have to read the rest of the line character-by-character, checking to see if it is a newline, in order to place the "cursor" at the beginning of the next line in order to read the next few characters you want.
    So, as you can see, you will need to read the entire line anyway (and if you do it yourself you also have to do the checking yourself considering all three possible end-of-line sequences), so you just as well use readLine().
    Some people may suggest Scanner and it's nextLine() method, but that also needs to read the rest of line (as evidenced by the fact that it returns it), so that is no different than the readLine() (or read it yourself) solution.

  • How to insert the new row after current row in RowIterator - Steve Muench

    Hi,
    Our client wants the new row to be added after current row on the front end instead of before current row.
    we were using "new JUActionBinding(this,iterBinding,JUActionBinding.ACTION_CREATE_INSERT_ROW);" this code inserts the new row after current row.
    I tried a lot to insert the new row after current row. Used new JUActionBinding(this,iterBinding,JUActionBinding.ACTION_LAST to move the cursor to last row in rowiterator and the used .ACTION_CREATE_INSERT_ROW but this thing inserts the new row as the second last row.
    Could somebody plesae help ?
    Message was edited by:
    user556161

    I am using JDeveloper 9.0.4.2.0 (Build 1459)

  • How can i glow a led after every five seconds

    dear sir
    i am using labview 7.0
    i want to glow the led after every five seconds. See  let us consider i start my vi at 22feb2007 at time 10:14:10. When my system time reaches to 10:14:15 at same date i want that led should glow for two seconds only. i want to continue with his loop that is led ON and OFF after  every five seconds
    Is it possible? If yes please help me.
    falgandha 

    Your setup is a bit irregular, because it will be off for 5 seconds, on for two, of for three, on for two, etc.
    Heres' one simple possibiility, modify as needed.
    Message Edited by altenbach on 02-21-2007 09:32 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    OnOff5Sec.png ‏5 KB

  • Acrobat v9 JavaScript Alert Box - any way to add space or line break after each array item?

    I have a Document level Javascript used to identify blank required fields and is triggered on document actions, Print and Save. The script identifies the blank required fields, counts them, and outputs to an Alert box indicating the number of required fields blank and lists the fields by tooltip name. The script identifies the required fields by an asterisk at the end of each tool tip.
    My question is there any way to add a space or a line break after the comma for each listed item?
    Here is an image of the output where the listed items are all run together.
    Here is the code:
    function validateFields()
    //a counter for the number of empty fields
    var flg = 0
    // count all the form fields
    var n = this.numFields
    //create an array to contain the names of required fields
    //if they are determined to be empty
    var fArr = new Array();
    //loop through all fields and check for those that are required
    // all fields that have a '*' in their tool tip are required
    for(var i = 0;i<n;i++){
    var fn = this.getNthFieldName(i);
    var f = this.getField(fn);
    //tool tip is the fields\'s 'userName' property;
    var tt = f.userName
    //test for the '*';
    if(tt.indexOf('*')!=-1 && f.value == f.defaultValue){
    //increment the counter of empty fields;
    flg++;
    //add the fields userName (tool tip) to the list of empty field names;
    fArr[fArr.length] = tt;
    //now display a message if there are empty fields
    if(flg>0){
    app.alert('There are '+flg+' fields that require a value\n\n'+ fArr,3)
    else{
    this.print();

    Thank you! The alert box array items now have a line break, image below.  You know you have made my day and possibly several weeks as now I have more understanding about how to apply everything I have been reading in the Acrobat JavaScript guide and of course as soon as you pointed out using a "join", that triggered some old-days of working with Access and SQL queries.
    I will work on the required attribute to see how I might reference it.  I am laughing at myself now - good luck to me in figuring it out as I was very stick-in-the-mud regarding the line break issue.
    Thanks again and here is the result of the updated code:

  • How to insert animation before and after this animation template??

    I'm using the file from the online template below, but am going to replace the flag with a man's tie that's going to be "flapping in the wind" momentarily.
    BUT I need to add a small amount of animation before this "flapping" animation begins, as well as after it, and I only want the flapping to last about 1.5 seconds or so - not continually looping.
    http://www.senocular.com/flash/source.php?id=0.188
    I don't know how to even begin to add the animation I need before/after, and to edit the time down on the looping. Any help is GREATLY appreciated!!

    change the flag to your tie and change the onEnterFrame loop:
    use
    loopI = setInterval(loopF,40);
    to start the waving and use:
    clearInterval(loopI);
    to stop the waving.
    function loopF(){
        // move the matrix by speed along x to shift the noise
        shift.translate(speed, 0);
        // drawing in the perlin movie clip,
        // create a rectangle with the perlin noise
        // drawn in it with an offset supplied by the
        // shift matrix
        with (displace_mc.perlin){
            clear();
            beginBitmapFill(noiseBitmap, shift);
            moveTo(0,0);
            lineTo(ramp._width, 0);
            lineTo(ramp._width, ramp._height);
            lineTo(0, ramp._height);
            lineTo(0, 0);
            endFill();
        // draw the displacement movie clip in the
        // displaceBitmap (used in displaceFilter)
        displaceBitmap.draw(displace_mc);
        // apply displaceFilter to the flag
        flag_mc.filters = [displaceFilter];
    updateAfterEvent();

  • How to insert field from form into subject line of email

    I have a form:
    http://www.mcw.edu/FileLibrary/Groups/HMGC/Forms/HIPAAForms/HumanSequencingTertiaryAnalysi .pdf
    and I would like to have the name of the person fill in automatically in the subject line.  Right now when the email button is clicked the subject line reads: "Submitted Human Sequencing Tertiary Analysis Submission Form."  Once the form is filled out, I would like the subject line to read: "[PI-Name] - Submitted Human Sequencing Tertiary Analysis Submission Form,"  (as highlighted below)
    event.target.submitForm({cURL:"mailto:?subject=[PI-Name] - Submitted Human Sequencing Tertiary Analysis Submission Form&body=Please find attached the completed Human Sequencing Tertiary Analysis Submission Form.",cSubmitAs:"PDF",cCharset:"utf-8"});
    I read the other discussion on this, but it didn't seem to pertain to me, or I just couldn't figure it out.  Anyone have any ideas?
    Thanks, Anne

    Hi Anne,
    This has come up several times on the forum. Most recently here, with links to examples and descriptions as to how it works: http://forums.adobe.com/message/4183125#4183125.
    Hope that helps,
    Niall

  • How to insert a page dynamically into a form

    Good Morning,
    We've used LiveCycle to create a very intricate work order for our service company. Although most work orders we create don't need additional documents (aside from the form itself), some do. For example, we may want to add a PDF coversheet to work orders for certain commercial accounts that have special billing instructions. At this time we will add pages to an existing work order through the following process:
    Enter all data into the LiveCycle form
    Print the form to PDF and save
    Use the "Insert Page" feature to add the necessary page (these pages are templated for continuous use)
    Resave the document
    My goal is to find a solution that would allow the user to dynamically select/add the necessary pages to the work order during step one (entering data into the form). Then, when we print the work order to PDF the printed copy would include both the work order and whatever page was added. I hope my explanation makes sense. Is this possible in LiveCycle?

    If your form is a dynamic PDF then adding or removing pages is not going to happen within Adobe Acrobat Pro or Reader. I am pretty sure you can only modify the layout of an XFA Livecycle PDF within Livecycle. However what I have done in the past is add in the necessary pages that a user may want, hide the pages from the layout and then with a button click or some other type of control, show the pages. Hope I am understanding you right.

  • How is she doing this? "Underlining Every Line of a Paragraph"

    So a very "crafty" designer before me... in Pagemaker 7, managed to make a paragraph that had an 'underline' under each line.
    Now whatever she did, it translates into InDesign (CS5) but I can not figure out in either Pagemaker or InDesign, how the formatting is being achieved...
    what it's not is a "custom underline" and I doubt it's an anchored stroke as, it generates and removes lines as new rows are created and rows are deleted...

    paragraph rule

  • How do you stop the "alignment" after every print job?

    We got this printer because at first received great reviews, it had a fax, copier and printer.  However, as discussed in another forum, we are wasting color ink when we print in black/white.  I just installed a magenta and already it has lost 1/4 of the ink for "aligning".   Is it set up in the programming to align after print job?  I"m so over this!  I have to hit cancel then wait 4 min for it to cancel.  I have algined and everything is ok, not sure why after each print job.  I followed "HPs guidelines" on the program but there is nothing there to address this issue.  Any help or thought would be greatly appreciated!
    Thanks!

    hi there,
    could you provide the community with a little more information to help narrow troubleshooting? Things like your printer model and your operating system help out a lot.
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • How to commit the PO form after each line using form personalization

    Hi All,
    I have a requirement, wherein we need to commit the Purchase order form, once a line is entered or before moving to the next line using form personalization.
    Please assist me in getting it done.
    Regards,
    KR.
    Edited by: 834152 on Feb 17, 2011 9:13 PM

    Hi Sandeep,
    Thanks for your response.
    At the line level in the purchase order form, we have configured DFF with one field for train# and 14 fields for the container#.
    In order to prevent the user from entering the same container# twice in the same PO. We need to save the PO on each line. So that when the user move to the next line, our program will check with base tables and confirm whether the entered container# is free to use or not.
    Regards,
    KR.

  • How to give space to variable after every letter

    hi,
    i am having variable like this
    123445
    i have to diplay like 1 2 3  4 4 5, is there si any FM...
    i dont to want to use offset logic

    hi Siva
    Use WRITE "USING EDIT MASK"
    You will need declare only more one DATA.
    data: X(10) VALUE '123456',
          Y(40).
    WRITE X TO Y USING EDIT MASK '_ _ _ _ _ _ _ _ _ _'.
    WRITE Y.
    use at edit mask '_ _' the most number of space declared at your data.
    ex:
    x(2) -> mask '_ _'
    x(5) -> mask '_ _ _ _ _'
    x(8) -> mask '_ _ _ _ _ _ _ _'
    Regards
    Allan Cristian

Maybe you are looking for