Regarding Line items printing

Hello Experts,
                           I am developing a purchase requisition in that i am printing line items like
material no, material code, quantity. while looping the item table, below every material code i need to
display material text from a standard text object, text id  like
10       material description       10000
          jkdhfjkdfghjkd
          jkxgdhvjkdhvjdkv
          nskdhvkldhvidskvkl
20      material description       10000
           jsdgcjkdsgc
           sbdjkcbdsjcd
but this material text has to extend till the end of the line,but  it is not extending because i created a
text node under material description
suggest any alternate method pls

Hi,
Create table with more than 3 or 4 lines ans for main window you have to use two lines. One is for item details and other one is for material text (This line should not have any coloumns). Then it should print till the end.
Thanks,
Pranav

Similar Messages

  • Printing in only last line item printing in main window

    Hi All,
    My requiremnet is to print same data in two blocks for F110 payment cheque
    Iam using 2 main windows to print same data if block exceeds it will go to next page
    iam calling the windows as shown below
    CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            window   = 'MAIN00'
            element  = hlp_ep_element
            function = 'APPEND'
          EXCEPTIONS
            window   = 1
            element  = 2.
        IF sy-subrc EQ 2.
          err_element-fname = t042e-zforn.
          err_element-fenst = 'MAIN00'.
          err_element-elemt = hlp_ep_element.
          err_element-text  = text_525.
          COLLECT err_element.
        ENDIF.
        CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            window   = 'MAIN01'
            element  = hlp_ep_element
            function = 'APPEND'
          EXCEPTIONS
            window   = 1
            element  = 2.
        IF sy-subrc EQ 2.
          err_element-fname = t042e-zforn.
          err_element-fenst = 'MAIN01'.
          err_element-elemt = hlp_ep_element.
          err_element-text  = text_525.
          COLLECT err_element.
        ENDIF.
    Iam getting only last line item printing in main window
    Please provide the inputs.
    Thanks,
    Kamalakar.
    Please use code tags.
    Edited by: Rob Burbank on Nov 25, 2011 11:51 AM

    Hi,
    My requirement was to print same block twice in cheque printing of F110.
    I have used the function module  'WRITE_FORM_LINES' to print more than one line item in secondary window in the script .
    fill the Lines internal table as shown below.
    Example :
        lines-tdformat = 'TM'.
        CONCATENATE regup-xblnr ',,' w_date ',,'  w_bsak-sgtxt ',,' w_gross ',,' w_dis ',,'
        w_net INTO lines-tdline.
    APPEND lines.
    CALL FUNCTION 'WRITE_FORM_LINES'
          EXPORTING
           function                       = 'APPEND'
           header                         =  header_t
           type                           = 'BODY'
           window                         = 'MAIN01'
        IMPORTING
          FROMPAGE                       =
          PENDING_LINES                  =
          TABLES
            lines                          = 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.
      ENDIF.

  • Regarding line-item-dimention

    hi,
    plz clarify my doubt regarding line-item-dimention.
    When line-item Dimensions are used without containing the line-item characteristic in the aggregate, which aggregate should be built?
    thanks,
    Neelima.

    Hi Nl .G
    Aggregates can be built out of other aggregates to reduce the amount of data to be read and, hence, to improve the roll-up performance Aggregate hierarchy is determined automatically. 
    In order to use an aggregate in the first place, it must be defined activated and filled. When you activate it, the required tables are created in the database from the aggregate definition. Technically speaking, an aggregate is actually a separate BasicCube with its own fact table and dimension tables. Dimension tables that agree with the InfoCube are used together. Upon creation, every aggregate is given a six-digit number that starts with the figure1.
    am sure using basic aggreate will solve this issue..Try and let me know..
    any furthur info you can read from the given link..
    [Aggregates|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cbd2d390-0201-0010-8eab-a8a9269a23c2]
    Edited by: Prasanna Kumar Perla on Aug 4, 2008 1:52 PM

  • Regarding line item dimension

    Hi all,
    what are the necessary prerequisities will u take regarding line item dimension.
    for eg., for sd cubes we r using sales doc no., i.obj as a line item dimension? why can't the other i.obj?
    plz explain me clearly?
    Thanks & Regards,
    V.Vijay.

    HI,
    Line Item and High Cardinality
    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:
    Line Item Dimensions
    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.
    High Cardinality
    If your dim table size exceeds the 20% of your fact table then you can say it as high cardinality, for ex: your fact table contains 100 records and your customer dimension contains 25 records means this dim is with high cardinality. you can check with your client for the expected records for those dimensions or for the info objects which you define in one dimension. to know the sizes of the dimension tables and fact tables you can runa a program in SE37 SAP_INFOCUBE_DESIGNS, it displays all your info cubes fact and dimension tables with sizes, if any dimension exceeds the more than 10% to 20% it will be in RED.
    It 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.
    http://help.sap.com/saphelp_nw04/helpdata/en/b2/fbb859c64611d295dd00a0c929b3c3/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/a7/d50f395fc8cb7fe10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/5c/d14d3c306f090ae10000000a11405a/frameset.htm
    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.
    SAP recommends that you use ODS objects, where possible, instead of InfoCubes for line items.
    Tarak

  • Repeat Line item prints on every new page of smart form of Service PO

    Dear Sir,
    I am  facing following Problem & need abaper help.
    example:-
    PO type is Service
    Line item 10.  Transportation  1  AU
      under this activities
              01.  Transportaion by Tree wheeler 3 Rs/ KM
              02.  Transportaion by Four wheeler 8 Rs/ KM
              03.  Transportaion by Heavy vehical 10 Rs/ KM
    Line item 20      Errection     1 AU
    Sub services are,
            01. Errection of Boiler   200 RS/Hr
    Like this way
    Now I am seeing Print Preeview
    Suppose line item 20 come in second page , in this case system copies sub services of firs line item
    example : - system shows line item 20 in second page as shown below which is wrong.
    Line item 20      Errection     1 AU
               01.  Transportaion by Tree wheeler 3 Rs/ KM
              02.  Transportaion by Four wheeler 8 Rs/ KM
              03.  Transportaion by Heavy vehical 10 Rs/ KM
    Pls, suggest where I need to change.
    Regards,
    Ravi

    hi ,
    i think you are not clearing the Barcode variable once it has printed.
    try declaring the variable like this in smartform,
    BARCODE     TYPE     CHAR24
    when one loop excecutes .and end of loop  in command line clear this variable.
    thanks & regards,
    kat.

  • Problem with line items print in Script MAIN window.

    Dear Friends,
    I am facing a problem with display the line items in main window.
    Here i have created my form with 2 pages,
    in first page i have created header window(my header information is full length of page), in second page i have created 2 windows, one for MAIN window and second for FOOTER window,
    i am having the Footer information about to off the page.
    and in my main window total 3 line items are coming, if i am having 3 line items then it is displaying properly (first 3 line items then immediately footer information on same page) but if am having more then 3 line items say four, then in my second page first it is printing 3 line items then it is switching into another page. After that footer is coming but. in previous page after printing 3 line items the remaining page is empty..
    my client want me to remove that place also. he wants to display continue..
    i think so u people r understand what is my problem...pls advice me what i want to do to solve this problem.
    Thanks
    Sridhar.

    Hi Sridher,
    If you want to display the footer information only on the last page why dont you use a table to display your details and place the footer details in the table footer instead of a seperate footer window.
    Regards,
    Vidya.

  • SCHEDULE AGREEMENT-DELIVERY SCHEDULE LINE ITEM PRINTING

    Scheduling agreement is created in ECC.
    Delivery schedule line items are generated using APO and CIFed over to ECC.
    Upon displaying in ME38 in ECC, the delivery schedule line items are appearing as required. The problem is that no output type is displayed for condition type LPET even though the settings are done & condition records are maintained.
    Can someone throw some light on this?

    Hi Anil ,
    Goto Transaction NACE , Select Application EL and then Click on O/p Types.
    Select your o/p and click on Processing routines.
    Make a copy of medium 1 and change it to 5. The program , Form , Form routine would remain the same.
    Maintain condition records with medium 5 in MN10.
    Ensure that email address exists in Vendor Master.
    Check with ur Basis to make sure that the setting are done in Transaction SCOT for sending document via PDF.
    Create a new Agreement and test it.
    Regards
    Ramesh Ch

  • Regarding Line Items posting in LSMW

    Hi
       Can You let me know the procedure that how we can post the data realted to the line items using LSMW technique.
    Regards,
    kumar

    LSMW cannot be used for data involving table control. U need to go in for a BDC session method for better performance .

  • Regarding Line item dimensions

    Hi all,
    In our project for one of the cube 3 line item dimensions are maintained already , But still we have to create one more line item dimension for that infocube because the percentage for the one of the  dimension and fact table is reached to 90%.So is it preferable to have more  line item dimensions? If not please provide the alternative suggestion.
    we maintained relative infoobects in dimensions.
    Thanks & Regards,
    Swarna.P

    Hi,
    If there is no other alternative to swap the Chars in between Dimensions, then go for Line Item Dimension. It won't be a problem if you have more then 2 or 3 Line Item Dimensions. I Used 4 Line Item Diemsions becasue the Ratio is crossing 90%. So Line Item is solution for my problem, first check the Chars in Dimensions and re-arrange it then check the Ratio, if it doesn't work then go for Line Item Dimension.
    Thanks
    Reddy

  • Regarding Line Item Selection and product category

    Hi Experts,
    We are having a requirement in Line Item Selection in Oppurtunity.The requirement is that we need to display only the product categories belonging to that particular company(for eg Product Categories belonging to Company X) by restricting the display of product IDs.Please provide me some pointers on this as this is a high priority requirement.
    Requirement:Line item selection of an opportunity will be at a 'X' category from the product hierarchy level.

    Hi Amar,
      You have to retrieve all you rproduct ids based on your criteria before the execution of the below step in your method.
    result = qs->get_query_result( ).
    Once you have all your product Id's then default your search criteria with your product id's using the below code.
    ls_selection-attr_name = 'PRODUCT_ID'.
          ls_selection-sign = 'I'.
          ls_selection-option = 'EQ'.
          LOOP AT it_product INTO v_productid WHERE comt_product_id CP ls_search_criteria-low.
            CLEAR ls_selection-low.
            ls_selection-low = v_productid.
            CALL METHOD qs->add_selection_param
              EXPORTING
                iv_attr_name = ls_selection-attr_name
                iv_sign      = ls_selection-sign
                iv_option    = ls_selection-option
                iv_low       = ls_selection-low.
            CLEAR: v_productid,wa_result.
          ENDLOOP.
    this code should be included in your event handler before calling get_query_result( ).
    Hope this helps.
    Regards,
    Lakshmi.Y
    Edited by: Lakshmi Soujanya on Jul 11, 2011 11:55 AM

  • GL line item printing

    Hi Experts
    When we print out the GL line item (transaction FS10N), is there any way we are able to capture the date, time and user ID of person generating the list in the printout.
    I know one way is via the printing of the cover sheet but we would like to capture this information in the same printout as the line item listing and not in a separate sheet of paper.
    Hope someone could advise.
    Thank you!

    Hi Paul
    Yes, this is what I am looking for. Noted that there is also an option to insert parameters in the header but it is not selectable. Do you know how to incoporate certain selection parameters (eg posting period) so that it is printed in the header as well?
    Hope you are able to advise.
    Thanks.

  • Regarding line item in bdc

    Hi,
         I tried bdc for transaction mfbf.
         After entering all values and entering into post   with correction the line item exists.
         Here using counter in bdc the batches are entered.
          say,
               (01),
               (02),
               (15).
         But after pressing page down.
         The line item changes to (02). and values are get
         stored in (02) of first page.
        Here i am facing some difficulty.
       Is there any possibility to rectify these.
       If there please send me...

    Hello Shiba,
    Try to do the recording again, but if you need to insert a new record in the table click the botton to add a new row, it will be always adding the data in the firts row, and the others will scrool down automatacally,
    Hope this helps,
    Gabriel. P

  • Regarding Line item

    Hi Friends,
    line item  dimension improves the preformence i know that but can i use 13 dimensions as line line items?
    or is there any limitation....please let me know friends.
    ---venkat

    Hello Venkat,
    Line item dimension improves performance; yes, but if you look into it, how it improves? you will know the answer for your question. Say you have 13 charac and you are going to have 13 different dimensions, this may not be the optimal design.  having all 13 charc in a single dimension, even this may not be the optiomal design. the optimal design  would be to group related characteristics with smaller crdinality into single dimension ad making the charac with very high cardinality as line item dimension and finally even grouping non-related characs with smaller dimension into a single dimension.
    the reason for having a line item dimension is, say document number is a charac and it is grouped with 0country. the values for doc no will be in millions nd combining this with country (say ur proj have 4 countries) will make these milions * 4, which will be a huge set in the dimension table to perform a search during querying.
    rgds,
    Hari

  • Regarding line item details in SCRIPT

    Hi Gurus,
    when I am debugging my driver program all the values are coming into the internal table and i am passing that internal table to the Script form ,every thing is ok.But the item details are not printing in my form.
    I checked all the sizes of the fields in my item.Every thing is ok.
    I have  to print the item details.How to do...?
    Any help can be appreciated highly.
    Regards,
    Sidram

    hi,
    are you passing the internal table directly..??
    try this way..
    Loop at t_data in wa.
    call write_form
    endloop
    in the form
    texteditor,
    display the item details in this way
    /E element
    &wa-col1&..&wa-col2&.. etc
    hope this helps...
    thanks
    Sharath

  • Regarding Line item of MIRO

    Hi all,
    I am preparing "ENTRY TAX" report. In that report , for one of the columns i have to fetch "POTEXT" field in MIRO transaction. I am not getting in which table  that value will get stored. I did SQL trace too.
    If anyone could help me, i shall be thankful to them.
    Thx & regards,
    Ravi

    Rbkp & rseg  use these tables..
    If not found in above tables than check in tcode  SE75
    here u can take help of abaper..

Maybe you are looking for

  • Using 2 computers and Syncing Address book isnt working like I want it to

    I have a Macbook (black) on 10.4.10 and a G5 dual 2.0 on 10.4.9. I edited the addresses in my Macbook to get ready for my iphone and merged a bunch of addresses and got rid of duplicates and ABook froze on me. I had to force quit and when i reopened,

  • Maximum /Minumum functionality for 2 Date fields

    I have a requirement to calculate the Min /Max date function using Bex Order No Start Date End Date         Price 124567890 10/11/2004 10/11/2004    100                    10/12/2004 10/12/2004 4500                    10/13/2004 10/13/2004 3450      

  • How to connect Java with Acces (DSN Less)

    Hi, I'm try to connect an Access DataBase in Java with an example. I find it in this forum, but don't work... I've my database in the folder Data, and its name is BaseDat.mdb... I'm working in NetBeans 5.5, and the DataBase is in the Folder: "C:/Docu

  • Arabic and Hispanic Language

    Hi all, I have two forms that are converted to Arabic, and one that is converted to Hispanic Language.  How can I set this up so that the users, when filling it out, will fill it out in their respective languages (Arabic and Hispanic)?  I'm new at do

  • Newly installed logic studio won't launch on my macbook pro

    I just installed Logic Studio on my macbook pro (core 2) and it crashes before it can launch all the way. could this be a conflict with my protools LE software, or Reason? any ideas? thanks.