Continuation of line item data to next page in SmartForm

Hi,
Currently i had a requirement in SmartForm. Iam displaying the line items from bseg table in main window and totals of credit and debit in the total window which comes under the main window.
If the line items are more and it continues to next page i want to display the total window and created by window only after all the line items.
Please try to send ASAP.

You can print total by reading page numbers.
Ex: IF <current page> EQ < next page number>
  Print total.
     ENDIF
Regards,
Sairam

Similar Messages

  • Two items data in one page of smartform

    hi friends,
    there are two smartforms i need to display in single page , so here i have two internal tables item data , in one internal table 8 line items and other 12 line items , so these data I need to display in single page using smartforms can u plz sujjest me, points will awarded ,
    with regards,
    prasad

    hi prasad,
    can you please elaborate on your problem.
    do you mean you have 2 header data n corresponding line items or do you have 2 internal tbale data or something else.
    PLease elaborate so that we can help.

  • Line item data does not appear on all master pages - Adobe forms

    Hi Guys,
    I have a problem in Adobe forms as explained below-
    I have a page in the form which has, you can say, a 2 windows or subforms (  Information window/subfirm on top right corner, main on middle of the page ). The data of the main subform is a line item data of delivery. Some parts of the same data need to be printed on the Information subform also. The main subform can overflow  to next pages but the information window will have only very limited data to be printed on one page itself, meaning it does not overflow.
    Now the requirement is that  each line item should be printed on a new page. For example if there are 2 lines items then first line item should be printed on first page. Then there will be a conditional page break and the next line item will be printed on the next page ( I have achieved this using condition page break). The information window will contain information related to corresponding line items. If the first line item data overflows in main then information window of first line item should be printed on first and 2nd page. The second line item should start printing on 3rd page and information window of  3rd page will contain data of 2nd line item.
    I created 1 body page and 1 master page. I created one internal table with data of main window and information window. I put the information window on master page to make it appear on all the pages. 
    This solution unfortunately does not work. The issue is that in case of overflow, 1st page information window shows first line item. 2nd pages shows 2nd line item and 3rd page is blank whereas ideally 1st and 2nd page information window should show first line item and 3rd page should show 2nd line item. This means that master page and body page are not getting linked. If I create the information window on body page itself, it does not repeat on all the pages. Please provide some inputs to resolve the issue.
    Thanks
    Abhi

    Hi Abhinav,
        I am also trying to solve the similar issue. Need to print the internal table data in the Master page.
      Have you resolved this issue. Can you Please share your solution .
    Thanks
    Swarna.

  • Header and line item headings in new page in Sapscipts

    HI,
    In Main window, I am displaying the header details.
    In a box below, I am displaying its item headings and item data details. Now when the no. of line items exceed the first page, they are displaying in the second page with other windows, but the header details, box and the line item headings are not getting displayed in the next page.
    Can anyone help me How to get the box, line item headings and header data also in the next page..
    thanks in advance........
    Rakesh

    Hi Rakesh,
    The header details, item headings and the box are also in the main window, thus, if the items exceeded and a next page is triggered, it will still continue to display the items until the loop ends.
    what you can do is that you can make a separate /E elements for header details, item headings, box and line items. so if a new page is triggered, you can call again the elements for header details, item headings, and box, then continue with the line items.
    Thanks,
    M

  • Restricting the item data for two pages if data is more then cutoff

    Hi Expers,
    I have one requirement that i need to restrict item data upto two pages .If more data is vailabe even pritning after two pages then data should cutoff(means we don't want to print that extra  data in the next pages ).Could you please explain  how can we achive this in main window ?Can we achive this even using secondary window also?Thanks for your help in advance.
    Thanks and Regards,
    Venkat

    Dear experts,
    For restricting the data up to two pages in the mainwondow ,I have written the condition SFSY-PAGE LE 2.But still i am getting more than two pages means entire data.Can any one explains why this condition is failed(My main window is in the first page itself).
    Many thanks for your help,
    venkat

  • Line item data is not saving while creating a Sales order using Interactive

    Hi all,
    I am creating a sales order Using Interactive forms. In the form i am having Header data and line item data.I had created two structures one for Header data and one for Line item data. For entering  the LINE ITEM DATA i had created a Dynamic table with Buttons ADD ROW and DELETE ROW.
    User will Add the Row or Delete the Row based on the requirement.
    My issue is When ever the user clicks the SUBMIT button after entering the header data and 3 line items data , Sales order has been created with only first line item and the remaining two line items are not created.
    My Interactive form is like below
    HEADER DATA
    DOC_TYPE
    SALES_ORG
    DIST_CHN
    DIVISION
    PURCH_NO
    PARTN_ROLE
    PART_NO
    LINE ITEM DATA
                             ITEM_NO      MATERIAL          PLANT          QTY        COND_TYPE            COND_VALUE
    ADD ROW
    DELETE ROW
                                                                                    SUBMIT
    My  code for the method ONACTIONCLICK is like below
    method ONACTIONCLICK .
    data:
          Node_Adobe       type ref to If_Wd_Context_Node,
          Node_Zsaleheader       type ref to If_Wd_Context_Node,
          Elem_Zsaleheader       type ref to If_Wd_Context_Element,
          Stru_Zsaleheader       type If_Main=>Element_Zsaleheader,
          Node_Zsaleitem       type ref to If_Wd_Context_Node,
          Elem_Zsaleitem       type ref to If_Wd_Context_Element,
          Stru_Zsaleitem       type If_Main=>Element_Zsaleitem.
      data: header_data type BAPISDHEAD.
      data: item_wa type BAPIITEMIN.
      data: item_data type table of BAPIITEMIN.
      data: partner_wa type BAPIPARTNR.
      data: partner_data type table of BAPIPARTNR.
      data: sales_order type BAPIVBELN-VBELN.
      data: Errorlog type BAPIRETURN1.
    navigate from <CONTEXT> to <ADOBE> via lead selection
      Node_Adobe = wd_Context->get_Child_Node( Name = IF_MAIN=>wdctx_Adobe ).
    navigate from <ADOBE> to <Zsaleheader> via lead selection
      Node_Zsaleheader = Node_Adobe->get_Child_Node( Name = IF_MAIN=>wdctx_Zsaleheader ).
      Node_Zsaleitem = Node_Adobe->get_Child_Node( Name = IF_MAIN=>wdctx_Zsaleitem ).
    get element via lead selection
      Elem_Zsaleheader = Node_Zsaleheader->get_Element(  ).
      Elem_Zsaleitem = Node_Zsaleitem->get_Element(  ).
    get all declared attributes
      Elem_Zsaleheader->get_Static_Attributes(
        importing
          Static_Attributes = Stru_Zsaleheader ).
      header_data-DOC_TYPE = Stru_Zsaleheader-DOC_TYPE.
      header_data-SALES_ORG = Stru_Zsaleheader-SALES_ORG.
      header_data-DISTR_CHAN   = Stru_Zsaleheader-DISTR_CHAN.
      header_data-DIVISION = Stru_Zsaleheader-DIVISION.
      header_data-PURCH_NO = Stru_Zsaleheader-PURCH_NO.
      partner_wa-PARTN_ROLE   = Stru_Zsaleheader-PARTN_ROLE.
      partner_wa-PARTN_NUMB = Stru_Zsaleheader-PARTN_NUMB.
       append partner_wa to partner_data.
        Elem_Zsaleitem->get_Static_Attributes(
        importing
          Static_Attributes = Stru_Zsaleitem ).
      item_wa-ITM_NUMBER = Stru_Zsaleitem-ITM_NUMBER.
      item_wa-MATERIAL   = Stru_Zsaleitem-MATERIAL.
      item_wa-PLANT = Stru_Zsaleitem-PLANT.
      item_wa-REQ_QTY = Stru_Zsaleitem-REQ_QTY.
      item_wa-COND_TYPE   = Stru_Zsaleitem-COND_TYPE.
      item_wa-COND_VALUE = Stru_Zsaleitem-COND_VALUE.
      append item_wa to item_data.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
      EXPORTING
        ORDER_HEADER_IN           = header_data
      WITHOUT_COMMIT            = ' '
      CONVERT_PARVW_AUART       = ' '
    IMPORTING
       SALESDOCUMENT             = sales_order
      SOLD_TO_PARTY             =
      SHIP_TO_PARTY             =
      BILLING_PARTY             =
       RETURN                    = errorlog
      TABLES
        ORDER_ITEMS_IN            = item_data
        ORDER_PARTNERS            = partner_data
      ORDER_ITEMS_OUT           =
      ORDER_CFGS_REF            =
      ORDER_CFGS_INST           =
      ORDER_CFGS_PART_OF        =
      ORDER_CFGS_VALUE          =
      ORDER_CCARD               =
      ORDER_CFGS_BLOB           =
      ORDER_SCHEDULE_EX         =
    endmethod.
    PLEASE SUGGEST ME IF ANY CODE CHANGE IS REQUIRED
    Thanks in advance
    Ajay

    Hi,
    The item data is not read because, the dynamically added rows should also reflect back to the Web Dynpro context. When the user clicks on Add Row, use the Onsubmit event to add a empty line to internal table and then bind it to the context. And if the user removes a row, remove a row from internal table and bind it back to the context.
    You may refer this article.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/802f0ed1-a17a-2c10-7db4-d515a5b047ed
    Regards,
    Runal

  • How to delete the Cost center line item data

    How to delete the cost center line item data of particular cost center and only one cost center is exisiting for that company code.
    Is there any way to delete the line items in that cost center.
    Can data archiving & deleting can help us..........
    does it have any effect over other cost center data....
    any input needed.........
    regards
    rajesh

    Hi,
    i found 2 reports for you:
    1) CO_TOTAL_WRI - Archiving CO Totals Records   
    2) RKCOITW1     - Archiving CO Line Items: Write Program        
    from 2) is a linlk to customize archiv-parameters
    -> start it with transaction se38 / sa38
    A.

  • What is table name in SAP R/3 for PM order line item data

    Hello,
    I am extracting data for PM module and Interested in PM order line item data. Table AUFK is for PM order header master data.
    Is there any other table for PM order line item master data?
    Thanks,
    Ishak

    Hi Ishak,
    The item table is AUFP.
    Thanks.

  • FI Line Item Data

    Hi,
            I have report against FIAR line items data(0FIAR_O03).The purpose is to report at Customer level for aged trail balance amounts(only for charge back amounts).I have the report ready and restricted document type only with CB- charge back.But the problem is,on the R/3 side for some CB accounts,there is a reference amounts like Credit memos or Customer Payments(document type DZ and DG).How can get these refrences into my report when i restrict the report only with CB.So under charge back ammount,the user should be able to see the associated Credit memos and Customer Payments as in R/3.Thanks for the help.
    Ravi.

    Hi Revathi,
    Kindly find the answers below :
    1.How the table BWOM2_TIMEST will work for delta & what is the selection will happen at BKPF-CPUDT
    Basically, BWOM2_TIMEST will show you the Last Time stamp for both Init and Delta..
    Whenever you will do an Init load.....automatically an entry will take place in this table.....and you will see a "X" sign in the field "LAst TS"....
    Also for Delta...there may be N number of entries with Update mode D....but only for the latest delta you will see a "X" sign in the field "LAst TS"....
    With Financial Accounting line items that have been posted in the SAP R/3 system since the last data request, the extractors identify the following delta dataset using the time stamp in the document header (BKPF-CPUDT).
    2.How the tbale will wok BWOM_SETTINGS for delta
    With these settings your delta extraction uses CPU date of recording records in table in R/3 to define your security interval with at least 1 day
    This means that your data is loaded until the actual day - 1.
    You can check the SAP note : 485958
    Regards,
    Debjani..

  • Line Item Data?

    Hi experts,
                   What is Line Item Data? Can somebody give me an example to understand better the use of Line item data from the reporting prospective?
    thanks in advance
    regards,
    dubbu

    Hi
    I think ur question releted to LINE ITEM DIMENSION
    Line Item and High Cardinality
    Use
    When compared to a fact table, dimensions ideally have a small cardinality.  However, there is an exception to this rule. For example, there are InfoCubes in which a characteristic document is used, in which case almost every entry in the fact table is assigned to a different document. This means that the dimension (or the associated dimension table) has almost as many entries as the fact table itself. We refer here to a degenerated dimension. In BW 2.0, this was also known as a line item dimension, in which case the characteristic responsible for the high cardinality was seen as a line item. Generally, relational and multi-dimensional database systems have problems to efficiently process such dimensions. You can use the indicators line item and high cardinality to execute the following optimizations:
           1.      Line item: This means the dimension contains precisely one characteristic. This means that the system does not create a dimension table. Instead, the SID table of the characteristic takes on the role of dimension table. Removing the dimension table has the following advantages:
    ¡        When loading transaction data, no IDs are generated for the entries in the dimension table.  This number range operation can compromise performance precisely in the case where a degenerated dimension is involved. 
    ¡        A table- having a very large cardinality- is removed from the star schema.  As a result, the SQL-based queries are simpler. In many cases, the database optimizer can choose better execution plans.
    Nevertheless, it also has a disadvantage: A dimension marked as a line item cannot subsequently include additional characteristics. This is only possible with normal dimensions.
           2.      High cardinality: This means that the dimension is to have a large number of instances (that is, a high cardinality). This information is used to carry out optimizations on a physical level in depending on the database platform. Different index types are used than is normally the case. A general rule is that a dimension has a high cardinality when the number of dimension entries is at least 20% of the fact table entries. If you are unsure, do not select a dimension having high cardinality.
    Note: In SAP BW 3.0, the term line item dimension from SAP BW 2.0 must a) have precisely one characteristic and b) this characteristic must have a high cardinality. Before, the term line item dimension was often only associated with a). Hence the inclusion of this property in the above.  Be aware that a line item dimension has a different meaning now than in SAP BW2.0.

  • Schedule line item data missing in Purchase order form in ECC6.0

    Hi All,
    We are doing ECC6.0 upgradation project . I am trying to print Purchase order in ECC6.0 , all data is coming fine in PO except schedule line item data is missing.
    Same print program and form works fine in 4.7E but schedule line item data missing in ECC6.0.
    Print program is a copy of standard SAP program SAPFM06P and layoutset is a copy of MEDRUCK.
    If anyone knows if there is any OSS note for the standard print program or any solution please let me know.
    Thanks,
    Sonali.

    Resolved on own.

  • Line items are printing different page

    hi all,
    I neet to print line items in the same page.
    but when i execute my pogram it is giving 6 pages with one line item each page.
    how can we print 6 line items in same page if there is no space it must print in second page.
    Kind Regards,
    Kiran.

    Hi,
    You can specify, either in the style or in the form, that a particular paragraph should not be split in two by a page break. If this page protect attribute is set, then the complete paragraph is always printed on one page. This property applies only to that particular paragraph.
    This attribute is not intended to be used to protect all paragraphs against a page break. The point is that a page break is by its very nature a dynamic event and the exact point at which it occurs depends on the current state (length and contents) of the preceding text. It is also possible that you may want to protect only certain parts of a paragraph against a page break. One way to achieve this is to use the NEW-PAGE command immediately before the text concerned starts. Explicitly beginning a new page at this point should ensure that a further page break does not occur within the text. However, this technique is not change-friendly. For example, you format your text with the help of the NEW-PAGE command so that no page breaks occur where they should not. At a later time, you insert or delete some lines. These changes cause all the subsequent text to be moved relative to the printed page, and you must check each NEW-PAGE command you previously inserted to see if it is still in the correct place.
    To allow you to define the areas to be protected against a page break on an individual basis, SAPscript provides the PROTECT.. ENDPROTECT command pair. If you enclose the text to be protected in these commands, then SAPscript will ensure that each line of this text is printed together on the same page. If the complete text fits in the space remaining on the current page, then it is printed on this page just as it would be if no PROTECT command had been used. If, however, the remaining space is not sufficient for the text, then the PROTECT command has the same effect as a NEW-PAGE command and text is printed on a new page.
    Thus the PROTECT/ENDPROTECT commands may be regarded as a kind of conditional NEW-PAGE command, the condition being whether or not the lines enclosed between the two commands fit in the space remaining in the current main window.
    Syntax:
    /: PROTECT
    /: ENDPROTECT
    The text lines to be protected are enclosed between the two commands.
    An ENDPROTECT command without a preceding PROTECT command has no effect.
    If the terminating ENDPROTECT is missing, SAPscript assumes it at the end of the text.
    PROTECT.. ENDPROTECT command pairs cannot be nested. If a second PROTECT command occurs before the first one has been terminated by an ENDPROTECT, it is ignored.
    If the text enclosed by a PROTECT.. ENDPROTECT pair is itself too long for a single page, then a page break is generated immediately before the text and the text is printed in the normal way. It is then unavoidable that a page break will occur at some point within the text.
    Thnks and reward me with pts if useful.

  • MB_MIGO_BADI - Line item data inside CHECK_ITEMS method

    Hi All,
    I have implement MB_MIGO_BADI and i want to put a check inside the method CHECK_ITEMS where the importing parameter is line ID.
    How can I get the data for the line based on the line ID inside the check_items methods, so that I can make the custom checks inside the method and populate the error message.
    Please let me know how can we access the line item data inside the method CHECK_ITEMS.
    Thanks and Regards,
    Vijay

    Hi,
    My requirement is to use BADI MB_MIGO_ITEM_BADI and restrict the creation of GR of items which have delivery date > PO Delivery date.
    exact requirement is:-
    Invoke Badi MB_MIGO_ITEM_BADI
    Only for GR
    Check EKKO-BSART =PJ where EKKO-BELNR = MSEG-EBELN
    Check if the Po Line item has single or multiple delivery
    a) If single
    Check if MKPF-CPUDT-3 > EKPO-EEIND
    Yes u2013 Create GR
    No --- Give error message
    b) Multiple Delivery
    Check if EKET WEMNG =0
    Select EKET-EINDT where EKET-WEMNG < EKET MENGE
    Check EKET-EINDT < MKPF-CPUDT-3
    Yes u2013 Create GR
    No --- Give error message
    Error Message : u201CGR Cannot be posted as Delivery date is in future u201C
    Thanks
    Vivek

  • Line Items Data Source for General Ledger

    Hello everybody,
    I'm trying to generate a Data Source for Line Items (new General Ledger) in transaction FAGLBW03. When I generated a Total Record-Data Source, everything was done correctly. When I try to generate a Line Item-Data Source, I receive following error message: "Extractors for general ledger documents are not yet supported". I was looking for any SAP notes that would explain this issue, but I couldn't find anything.
    Could you please tell me how can I generate Data Source for Line Items? Add some SP, use some another transaction, ...?
    Thank you for any help
    Janule

    Hi,
    Can u tell me how did u solve that problem.
    i m facing same.
    /sachinkumar.

  • To update the po line item data into sap thru bdc

    Hi Experts,
    My requirement is to create a bdc program .  get the po line item data from the file and will update in sap thru bdc .so please help on source code how to create .
    Thanks advance,
    Prashanth p.

    Hi,
    Check this link,
    /message/5215197#5215197 [original link is broken]
    Regards,
    Bhanu

Maybe you are looking for

  • Next line character error

    Hello All, I am trying to concatenate two strings along with next line character. I am using the following syntax. v_str1||chr(13)||chr(10)||v_str2; The problem I am facing is if the string is like greater than about 40 characters, then the new line

  • Using JTA enabled connection in a JSP/servlet without transaction

    Can we use a JTA enabled connection in a JSP/servlet without any transaction? Thanks

  • Tabbed views in an iView

    Hi, i want to know how to develop a tabbed view in an iView through PDK development. i'm new to SAP so really dont know how to go about it.would appreciate if anyone would explain in simple terms. Thanks in advance, Regards ash

  • Transfer data rate

    OK, so I have resolved an older problem only to have dropped frames all the time during playback. How do I find out the maximum transfer data rate my processor can handle? ANy suggestions on how to get around an issue like that? If I want clean crisp

  • Can we use partition with condition?

    Hi, I want to partition the table using a coumn, and some conditions on the columns. Can we do this? Any suggesitions are welcome. Thanks and regards Gowtham Sen.