Item is repating twice in smartforms

Hi All,
In smartfroms item is repating twice when ever page is triggering.please tell me what might be the problem
Eg:
in internal table 12 records are there , first 3 records are printing in first page and in second again 1 line item is repating  and again in 4th page also first line item is repating
1st page
10
20
30
2nd page
10
50
60
70
3rd page
80
90
100
4th page
10
120
but this is wrong in 2nd page 40 has to come and in 4th page 110 has to come.
in debugging i found where it is changing ,the item text has decalred has newline and assigned the line type.
the corresponding coding in function module is
CALL FUNCTION 'SSFCOMP_TABLE_NEXT_ROW'
     EXPORTING  I_LINE_TYPE = 'IT_KOND_WA'
     EXCEPTIONS NON_MAIN_OVERFLOW = 1
                OTHERS            = 2.
before the iitem no. is 40
after control going to above function module the item no is changing to again 10,please help me what might be the problem.
Thanks in advance...

Hello,
This is may be because of the variable, which is printing the required information on to the smartform, is definetely present in the loop. So I would suggest plz remove that variable which is present in the text notepad of the smartform and declare it seperately (out of the loop). It will solve your problem & hope it would give the desired results.
Regards,
Akg

Similar Messages

  • SAP Script Check printing Layout, Line Items to display twice in First Page

    Hi All,
    This requirement is for US check printing Layout.
    My Requirement is to display Items twice on the first page.
    Eg : Main Window has 10 Items, I need to display all the Items at the bottom in another window at the bottom.
    I can't create 2 Main windows in the first page, as the data from the Main window 1 overflows to Main window 2 in the first page.
    I copied print program RFFOUS_C into a Z-version and try to implement the logic, however unable to print the line items in the bottom window.
    Kindly give your valuable Inputs.
    Thanks
    Vinayak

    Hi
    I had the same request for a check form in Canada. I solved it by writing the line item output into variables and print these variables in a second window. It was ~10 hours of effort, not a real nice technical solution but it worked.
    If you require I can send you a PDF of the sap script form definition. You can contact me at [email protected] Answers can take 1 week or more. 
    Best regards
    JD

  • Item txt using include text smartform

    Hello Friends ,
    How can we print Item text from purchase order in smartform using include text . I know click on the include text mode and then write the following details .
    text id = f01
    lanuage = en
    object = ekpo
    what should i write in text name . Any other details i need to mention
    Do i need to create one using SO10 . Plzzzzzzzzzzz help
    Joseph

    Hi,
    Right click on node(on which you need the text)
    Create-Flow logic-Program lines.
    system gives %CODE1
    there are two tabs General attributes and Conditions
    click on General Attributes
    Provide the Input parameters - which contains po no and item no
    Provide the output parameters- globally defined Variable  ex NAME type C
    write the code:
    CONCATENATE ekpo-ebeln ekpo-ebelp into name
    Now again right click on program line create Text.
    Give text type as Include text.
    provide the details
    Text Name      &NAME&
    Language        EN
    Text ID         F01
    Text Object     EKPO   
    Check the box : no error
    Rgd
    Narsim
    Edited by: Aeda N on Nov 17, 2009 11:59 AM

  • Including delivery text item (object VBBP) in a Smartform

    Hi,
    I want to include 'Delivery Text' ( Object VBBP, Text ID 0004) into my Delivery smartform.
    I have created a Include Text Text field but what is the Text Name of this delivery text item.
    tnks for any help

    it is delivery number + item number
    delivery number should be 10 digits ,0000045677000010

  • 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.

  • Playlist is doubled .... each list item is listed twice

    12.1.0.5.0 iTunes  up to date
    All the items in my playlist listings are doubled: Diana Krall and Diana Krall 1  Dave Matthews and Dave Matthews 1  etc.  Does this have something to do with the cloud or a setting. I delete the doubled item (followed by a 1) but if soon reappears.
    Thanks
    Barb

    You're if statements aren't correct, As you have them now if the first
    if result is equal to {"Co-Packer, 10.5oz"} then
    doesn't fire none of the following if statements will be evaluated. What you want to do is use
    if condition1 then
         statement1
    else if condition2 then
         statement2
    else if condition3 then
         statement3
    else
         statement4
    end
    So you code becomes:
    if result is equal to {"Co-Packer, 10.5oz"} then
             your code
    else if result is equal to {"Co-Packer, 32.0oz"} then
         your code
    else if result is equal to {"Co-Packer, Elixir"} then
         your code
    end
    Message was edited by: Frank Caggiano - Added example from OP's code

  • TileList Drag/Drop functionality is broken if the same item is dropped twice or more

    Hi Folks.
    This is quite frustrating.
    I'm using two tilelists and you can drag items from one to
    the other.
    If you drag an item more than once then when you rollover
    that item it highlights the second(or most recent) version of the
    item you dragged.
    Basically the second tile list is containing exact copies of
    the first, so that when you rollover an item it is behaving as if
    only the most recent addition to the component is there.
    Here is the code.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" width="560" height="341">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    [Bindable]
    private var listArray:Array=[
    {label: "item0", data: 0},{label: "item1", data: 1},
    {label: "item2", data: 2},{label: "item3", data: 3},
    {label: "item4", data: 4},{label: "item5", data: 5},
    {label: "item6", data: 6},{label: "item7", data: 7}];
    [Bindable]
    public var cartFilterCol:ArrayCollection ;
    ]]>
    </mx:Script>
    <mx:Canvas width="568" height="340">
    <mx:TileList
    id="filterTilelist"
    direction="vertical"
    dataProvider="{listArray}"
    itemRenderer="mx.controls.Button"
    allowMultipleSelection="false"
    dragEnabled="true"
    width="219"
    borderStyle="inset" height="228" x="48" y="36">
    </mx:TileList>
    <mx:TileList backgroundColor="#ffffff"
    dataProvider="{cartFilterCol}"
    dropEnabled="true"
    allowMultipleSelection="false"
    dragMoveEnabled="true"
    dragEnabled="true"
    borderStyle="inset"
    columnCount="1"
    height="228" width="194" x="275" y="36">
    </mx:TileList>
    </mx:Canvas>
    </mx:Application>
    I think this is the issue here
    https://bugs.adobe.com/jira/browse/SDK-11894
    It seems to suggest that this issue is resolved but it
    doesn't go into details. Can anybody help me, even an ugly hack
    would do? Have tried several things like manually setting the
    mx_internal_uid on object beign dragged before it is dropped but no
    luck so far. I'm using Flex builder 2.0.1.
    Thanks
    Rob

    Check that you still have the "Bookmarks Toolbar items" placed on the Bookmarks Toolbar
    * Make sure that you have the "Bookmarks Toolbar" visible: "View > Toolbars"
    * Check in "View > Toolbars > Customize" that the "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    * If the "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the Customize window onto the Bookmarks Toolbar
    * If you do not see the "Bookmarks Toolbar items" then click the "Restore Default Set" button
    You can only move the content from a toolbar onto other toolbars if all toolbars support that feature. You need to check that in the options of each toolbar.

  • JList item selected displayed Twice...Please suggest

    Folks,
    The selected value from the JList is being displayed twice.
    I am unable to figure out why this is being displayed twice.
    Can anyone suggest??
    If you click Black..it will de displayed twice!!!!
    public class JListDemo extends JFrame{
    private JList colorList;
    private Hashtable ht;
    private Container c;
    private String colorNames[] = {"Black", "Blue","Red","Green","Yellow"};
    public JListDemo() {
    super("JList Demo");
    c = getContentPane();
    c.setLayout(new FlowLayout());
    //** Create a List
    colorList = new JList(colorNames);
    colorList.setVisibleRowCount(3);
    colorList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    c.add(new JScrollPane(colorList));
    //** Set up Event Handler.
    colorList.addListSelectionListener(
    new ListSelectionListener() {
    public void valueChanged(ListSelectionEvent e)
    System.out.println(colorList.getSelectedValue());
    setSize(1000,550);
    show();
    public static void main(String[] args) {
    JListDemo JListDemo1 = new JListDemo();
    So if you click

    Sure, the Swing tutorial on "Using Lists" will explain whats happening and give you a solution:
    http://java.sun.com/docs/books/tutorial/uiswing/components/list.html#selection

  • Long text for line item appears twice in my PO form...

    Hello Experts,
    I am wondering why my long text for my 1st line item is appearing twice. In my PO, I only
    maintained a long text for my 1st PO line item appeards twice. below is my code:
    /E          ITEM_LINE_1
    IZ           &EKPO-EBELP&,,&EKPO-TXZ01&
    IZ           ,,&EKPO-EMATN&,,&EKPO-MENGE&,,&EKPO-MEINS&,,&EKPO-UMREZ&,,&EKPO-NETPR&,,
    =           &EKPO-NETWR&
    /:           DEFINE &LV_TEXTNAME& = ''
    /:           PERFORM GET_LONGTEXT_ITEM IN PROGRAM ZMMRP0008
    /:           USING &EKPO-EBELN&
    /:           USING &EKPO-EBELP&
    /:           CHANGING &LV_TEXTNAME&
    /:           ENDPERFORM
    /:           INCLUDE &LV_TEXTNAME& OBJECT 'EKPO' ID 'F01'
    The element 'ITEM_LINE_1' is called per line item. So in my case, 3 times. The INCLUDE statement
    at the end of the element is for the longtext. I am now confused as to why it appears twice for the 1st line item.
    Thank you guys and take care!

    Hi,
    You can debug and check whats happening there.
    Regards,
    Ram

  • Display header text and item text in smartform

    Hi all,
    I have to display header text and item text of PO in smartform BBP_SUSPO.
    So how to do that.. I have to use 'read_text' Fm or directly i can get values from any table ???
    Thanks in  advance.
    Regards,
    Anagha Deshmukh

    Hi Amit,
    I have used inculde text that is avalable in smartforms to display header & Item text in this way
    For header :
    Text Name         Header guid
    Text Object       BBP_PD
    Text ID           HTXT
    Language          EN
    For Item:
    Text Name         Item Guid
    Text Object       BBP_PD
    Text ID              ITXT
    Language          SY-LANGU
    U can used this attributes in read_text function mdule also.
    Thanks & Regards,
    Anagha Deshmukh

  • Smartform- Item Level Output to be displayed for sales Order

    Dear All ,
    I have a requirement to display output on smartform on item level Baisi i.e GO to Va02 , select Item > Go to Extras ->Output> Item --> Print Priiew .
    My Problem is that I am using copy of standard driver RVADOR01 program . In this all item vales are passed to smartform .
    I need to display information for single item selected .
    In this program there is no structure that will show which item is selected
    Kindly help . I will be highly tahnkfull

    Hi,,
    just check the interface structure values any fields are marked or not . check any notification are there for particular line item in the structure.
    Regards,
    karthikeyan k s.

  • Double items in list-view calendar iOS 7

    Since I first opened the calander-app in iOS 7, some, but not all items are shown twice in the list-view, but not in the other views. If I delete one of the doubles, both are gone. It seems to be completely random what items are shown twice. Is it a bug? It happens both with iCloud and Exchange items. Both single and repeating appointments. I can not see any logic in it. Please help, because it makes the list-view very cluttered now...
    Kind regards,
    Piet

    Okay, I don't understand why, but the problem seems to be induced by the update process. Though the other views are unaffected, some (a lot) items in the list-view are being doubled. It seems to be random, but both my iOS devices are affected in exactly the same way, so there must be a mechanism that causes it.
    But... If you turn off the calendars for the affected accounts (iCloud, Exchange), confirm that they are being removed from your device, and then turning them on again, they are being re-synchronized. This creates new entries in the calendar that in the list-view are not doubled anymore.
    Be careful! Do not delete the items manually, since this will delete the item on all synchronized devices. Just turn the calendars off in the account settings and choose not to keep them on your device but remove them from your device instead.
    This will fix the problem quick and easy.
    Kind regards,
    Piet Groeneveld

  • How to call smartform in me54n

    Hai All,
              Iam developing a smartform for PR print with  ztcode,the user asked me that,he dont want seperate tcode,in me54n tcode itself he want
    print.I have tried in the enhancement spot but it is not firing.
    Regards,
    Siva jyothi.

    Hi ,
    The print button creates a spool number through which you can get ALV output of the ITEM details but cannot call smartform from that.
    PR is just an internal document.There is no other way to do it(As far as i know).
    You now have only two options to go for:
    1) Create a subscreen with a pushbutton , and then call the driver program to print the smartform.
    2) A Z transaction to print the PR , which you have already done.
    Let me know if you find any other way to do it.
    Br.
    Giri

  • Mapping text in smartforms

    How can i map the <b>header text</b> or <b>item text</b> in a smartforms .

    thanks for reply ,
    I have all ready done these things which u suggests me but still i dont get expected result.
    these r the details which i have done .
    text-include text .
    Text name : &g_tdname&
    Text Object : j1ii for out going Excise invoice
    Text id : 0001.
    language : en .
    pls suggst me the solution for this.
    Thanking you !
    Prasad.

  • BOM items planned cost allocation

    Hi experts,
    I'm transferring a multilevel BOM to the project to two different network activities (using reference points) which are assigned to different WBS elements.
    The total planned cost of the BOM corresponds to the sum of the price of all the items, what is correct for me.
    The issue is that all the cost is assigned to the WBS where the BOM header is assigned. I will like to have the cost distributed accordingly to where the items are assigned, is this possible?
    Thanks.
    P.S.: I had a look through the Profile BOM Transfer and the Costings Variants but I couldn't find nothing useful.

    Hi,
    I'm using transaction CN33 for transfer the BOMs.
    I was doing it as Preliminary Requirements, I just have modified the transfer profile to transfer the components as firm demand and now the cost is each WBSE. Thanks!
    But what I wasn't expecting, though it might be normal, is that the cost of the items of the BOM which have sub-items are counted twice, by the sum of the cost of all his items and his own cost. I believe it-s standard behaviour, isn't it?

Maybe you are looking for