Printing line items in next line smartforms

how to print line item description in next line...
suppose
i have line item description as
"this is description of line item"
then i need to print as
"this is"
"description of line item"
in two lines......
            so that no trunkation takes place please reply me ....

Use offset
v_text(20)
in the second line use
v_text+20(40)
If this does not work
then declare two more fileds
and write the code
v_text1 =  v_text(20)
v_text2 = v_text+20(40)
and print the new fields
Reward points if useful,
Regards,
Nageswar

Similar Messages

  • Print line items on next page if does not fir onto current page

    Hello Experts,
    I have a query related with Smartform.
    For every Line item, I have 4 lines. Means, if there are 4 line itmes in Internal table then it means, on form 16 lines should be printed.
    My Requirement - If any of the Line item does not fin onto a single page then shift the whole line item onto next page. Means, If Line item 1 and 2 are printing on 1st page completely, but line item 3 is not able to print completely on 1st page then shift all the 4 lines of line item 3 onto next page.
    I tried - Put the main table of main area in a Folder and checked the PAGE PROTECTION of that folder. And in the Foder itself, use a command with checked GO TO NEW PAGE. But it is not printing. Form goes into shortdump.
    Please help me to resolve this issue.
    Regards
    Kuldeep M.

    Hi,
    U try to fix the no of lines per page. If the no of lines in ur table are more than the lines per page then u call the COMMAND 'Go to New Page' and give the Page name.
    Eg:
    data : lv_lines TYPE i,
              lv_lines_per_page TYPE i value 12.    (Try to design the Window height to fit 12 lines or ur wish)
              lv_count TYPE i.
    describe table itab lines lv_lines.
    Now, u loop the itab table and put a condition in the LOOP:
    LOOP AT itab.
      lv_count = lv_count + 1.
    IF lv_count GT lv_lines_per_page.
       clear lv_count.
       create command 'Go to New Page'.             --->In COMMAND put condition lv_count GT 12
    endif.
    ENDLOOP.
    Hope it helps!!
    Rgds,
    Pavan

  • Control Line Items of table in Smartforms

    Hi,
    Please help me out for following problem which  I am facing in smartforms.
    Scenario u2013 I am trying to print Bank Payment voucher, In this I am passing two internal  tables from my driver program, One internal table is for header details and other internal table for Line item details.
    I am Looping for header details and under the templates, I am populating header data into itu2019s appropriate places, for line item details, I am using Table and able to populate line item details, Now say my line item should print only 5 line items in one  page and if there are more than 5 line items , it should print next line items on next page.   when new page will start it should print header details  and footer details also,
    In last last row, I have put the program code where I am counting the number of line items, and below that i have put 'Command' and in command condition, I have stated that if linecnt > 5 , go to next page%2 and in page 2, I have again copied the header details but , it is not working,
    In short the Flow of Smartforms is given below.
    Loop    (For Header details)
    Template
    Template
    Template
    Table   (For Printing Line Item Details)
      (row 1
       row 2
      program line (Whre I am counting Number of Line items
      Command (Go to next page is activated )
    Template ( For Printing the footer details
    Page%2
    Template
    Template
    Template
    Looking out for your valuable help .
    Thanks and Regards
    Rani

    And one thing more that line count may not be increasing. ..... so try to send the flag of page triggring from ur driver program.
    as i have done here.
    *  Page Break after 21 Records means
      count_rec = 1.
      loop at it2_all_outlet_sale into wa_it2_all_outlet_sale.
        count_loop = sy-tabix.
        if count_rec = 21.
          wa_it2_all_outlet_sale-zyear = '9998'.
          modify it2_all_outlet_sale from wa_it2_all_outlet_sale index count_loop.
          clear: count_rec.
        endif.
        add: 1 to count_rec.
      endloop.
      describe table it2_all_outlet_sale lines count_rec.
    " This part of code for not page triggering after last 21 records
      read table it2_all_outlet_sale into wa_it2_all_outlet_sale index count_rec.
      if sy-subrc = 0.
        count_loop = sy-tabix.
        if wa_it2_all_outlet_sale-zyear = '9998'.
          wa_it2_all_outlet_sale-zyear = '9999'.
          modify it2_all_outlet_sale from wa_it2_all_outlet_sale index sy-tabix.
        endif.
      endif.

  • Create multiple line item from one line item in BizTalk mapping

    Hi,
    In one of our new requirement we need to create 3 line items for every line item we are receiving with same value but in the below format.
    Sample Input:
    <EmpId>1234</EmpId><Name>ABCD></Name><Dept>YYY</Dept><Year>2014</Year><Desc1>D1</Desc1><Desc2>D2</Desc2><Desc3>D3</Desc3><Valid>Yes</Valid>
    Sample Output in Flatfile:
    1234,ABCD,,,D1,Yes
    1234,ABCD,YYY,,D2,Yes
    1234,ABCD,YYY,2014,D3,Yes
    Can you Pls help me in creating the mapping in above format.
    Thanks in advance,
    Regards,
    Elango
    Chennai.
    Mark As Answer or Vote As Helpful if My Reply Does.

    Elango,
    Before I explain about the solution, make sure when you give inputs/requirement in forums for us to help you, pay attention.
    The input instance you have shown
    Doesn’t have a root element
    Has a typo - <Name>ABCD></Name> -Element has invalid “>” character.
    This makes us to spend more time in cleansing your input and then find out solution.
    We are here to help you, so help us to help you better.
    Anyway, coming to the solution
    You have to create map with a structure similar to the below shown image:
    Here destination schema is a flat file schema with comma-delimited fields.
    If you look into the destination schema, it look similar to your input schema, but there is just one “Desc” field instead of “Desc1”, “Desc2”, “Desc3” in your source schema. In destination, the
    record has to repeat with same values for rest of the fields. And for “Desc” in destination schema will have corresponding index value of “Desc1” or “Desc2” or “Desc3” from source. i.e. first node of destination will have value of “Desc1” from source to “Desc”
    field in destination, second node of destination will have value of “Desc2” from source to “Desc” field in destination and third node of destination will have value of “Desc3” from source to “Desc” field in destination.
    I use XSLT in the map, with recursive template which will repeat for 3 times. I have given comment in the XSLT for your benefit.
    <?xml version="1.0" encoding="UTF-16"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var" version="1.0">
    <xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
    <xsl:template match="/">
    <xsl:apply-templates select="/Root" />
    </xsl:template>
    <xsl:template match="/Root">
    <Record>
    <!--Call the template with index and counter of 3. There times as you wanted for every item-->
    <xsl:call-template name="LintItemTemp">
    <xsl:with-param name="i">1</xsl:with-param>
    <xsl:with-param name="count">3</xsl:with-param>
    </xsl:call-template>
    </Record>
    </xsl:template>
    <xsl:template name="LintItemTemp">
    <xsl:param name="i" />
    <xsl:param name="count" />
    <Details>
    <EmpId>
    <xsl:value-of select="EmpId/text()" />
    </EmpId>
    <Name>
    <xsl:value-of select="Name/text()" />
    </Name>
    <Dept>
    <xsl:value-of select="Dept/text()" />
    </Dept>
    <Year>
    <xsl:value-of select="Year/text()" />
    </Year>
    <!--as in your output instance, Lineitem1 will have value of Desc1-->
    <xsl:if test ="($i =1)">
    <Desc>
    <xsl:value-of select="Desc1/text()" />
    </Desc>
    </xsl:if>
    <!--as in your output instance, Lineitem2 will have value of Desc3-->
    <xsl:if test ="($i =2)">
    <Desc>
    <xsl:value-of select="Desc2/text()" />
    </Desc>
    </xsl:if>
    <!--as in your output instance, Lineitem3 will have value of Desc3-->
    <xsl:if test ="($i =3)">
    <Desc>
    <xsl:value-of select="Desc3/text()" />
    </Desc>
    </xsl:if>
    <Valid>
    <xsl:value-of select="Valid/text()" />
    </Valid>
    <xsl:value-of select="./text()" />
    </Details>
    <!--Recursive template, i.e. calling the template again for 3 times as your requirement-->
    <xsl:if test="$i &lt; $count">
    <xsl:call-template name="LintItemTemp">
    <xsl:with-param name="i">
    <xsl:value-of select="$i + 1"/>
    </xsl:with-param>
    <xsl:with-param name="count">
    <xsl:value-of select="$count"/>
    </xsl:with-param>
    </xsl:call-template>
    </xsl:if>
    </xsl:template>
    </xsl:stylesheet>
    So the input and output will look like the below:
    You can change the schema/XSLT and its corresponding namespaces as you want.
    When the above shown output is send to a custom-pipeline with flat file assembler in send port will output the above shown output to the flat-file structure as you wanted. Again, I repeat you
    to use flat-file file schema with comma-delimited fields as the destination schema in the above shown map for you to get the flat-file output as you needed.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Copy Trading Partner to Asset line items from Vendor line items in F-90

    Dear Friends,
    I want to copy trading partner field from Vendor line item to other line items like Asset and Tax in T.code - F-90
    Client want to use Transaction type - 100
    Is it feasible?
    Thanks in advance

    try:
    1) substitution - tcode OBBH
    or
    2) open FI - menu FIBF tcode BF44
        - event 1120 or 1130
    A.

  • FBCJ LINE ITEM AND FI LINE ITEMS ARE DIFFERENT

    Dear Expert
    FBCJ LINE ITEM AND FI LINE ITEMS ARE DIFFERENT

    Hi,
    It seems from the screen shot you are seeing different documents as in the first screen shot it clearly shows you have booked the multiple expenses under one see the below screen shot we have circled it
    whereas FB03 screen shows different.
    You can do one thing click on circle item and check the expenses involved in it and accordingly go to FBL3N and display documents for that G/L for the date 05.04.2014.
    Hope your issue has been resolved else revert.
    Regards,
    Tejas.

  • How to split a line item to 2 line item.

    Hi all !
    I have a request, help me please !
    In system I have a invoice with 1 line item value 1000 USD.
    Customer payment 600$. a incoming payment with value 600$ will post to system.
    I want incoming payment and invoice will auto clear 600$ but system can't auto clearing because value is not Identical.
    I want line item of invoice will split to 2 line item. Line item 1 value 600$ and line item 2 value 400$.
    Line item 1 of invoice will auto clear with incoming payment and system will exist a invoice with 1 line item value 400$.
    How to split a line item to 2 line item ? Have FM for split a line item to 2 line item in SAP ?
    If you have other solution for this request, help me please !
    Thanks !

    Hi,
    Have a look at Split line item - Sales Order
    Regards

  • KE24 line item report  ( profitability line item report)

    Hi all,
    we need sub total sale order wise automatically in KE24 line item report  ( profitability line item report)  . How can i do for this .
    could you please help me.
    Regards,
    K.Satish
    [email protected]

    Hi,
    Please forward the same to my mail id:[email protected]
    Thanks in advance.
    Regards,
    Prasad

  • MM: Purchase requisition line Items - How many line items can we use

    Hi all,
    1. Purchase requisition Line items  (How many line items can we use?), is there any restrictions.
    2. While creating PO with only one tax code for the related PR to input Tax code (without selecting  line Items).
    Regards,
    Sudheer

    Hi
    There is no limitation for number of items in PR.
    Tax code is always applicable for individual item only.It cannot be selected form the whole PO.
    Regards
    Dev

  • Is it possible multiple line items debit & single line item credit and different cost centers and different profit centers in fbcj

    Hi all ,
    I have a requirement to Post Cash Journal Document using FBCJ tcode.
    Is it possible multiple line items debit & single line item credit and different cost centers and different profit centers
    for exp:
    pk   GL a/c   description       amount   cost center  profit center
    40  400101  telephone exp   500        1403            P 1000
    40  400101  telephone exp    100       1404            P 2000
    50  200100  cash in hand      600-                             
       This is My requirement  is it possible in fbcj
        Please suggest me.ASAP.
    Regards
       Naresh.

    Hi,
      This you can do it in two ways:
    1. Make three header under top level....one Product A, 2nd Product B ( as Billing element) and third as Common expense ( only cost). Now 1st & 2 nd WBS, you have to have sales order linking with individual lint item, for third you will accumulate all the common expense till the period end then make a reposting of the same in desired proportion to both products WBS hierarchy
    (This is if you want to have a track on the common expense as well.......like planning, budgeting & control)
    After this reposting, run RA for individual billing element and hence you will all the complement detailing and control over Revenue and expense with respect to Product A and Product B individually.
    2. If you don't want to maintain that kind of detailing the common expense and keep track of it through project, then have cost centers accordingly and make an assesment/ distribution with respect to expenses accumulated at those cost centers for the period to the respective WBS under each product. Then execute the period end processes for the project.
    Or
    You can try with have two more line items in the costing sheet as an overhead against common expenses with respect each product.
    I hope this should help you.
    Regards
    Avisek Bhardwaj

  • CREATE SUBSTITUTION RULE FOR u0093COPYING LINE ITEM TEXT FOR LINE ITEMSu0094

    Hi every body
    When user post transactions in FB60 we have give the line item text, Suppose no.of lineitems are there in tht instnace my client asked to create the substitution rule to “COPYING LINE ITEM TEXT FOR LINE ITEMS”
    pls tell me the processes how to create the substitution rule
    Plz can anyboby help me out...
    laxmi velaga

    sorry,
    link doesn't work:
    here's the content:
    you must add your rules at event 3 (complete document)
    in an exit of ZGGBS000:
    data htext type bseg-sgtxt.
    *find
      LOOP AT BOOL_DATA-BSEG INTO BSEG
                      WHERE    bseg-sgtxt <> space.
      move  bseg-sgtxt to htext.
      ENDLOOP.
    *copy
      LOOP AT BOOL_DATA-BSEG INTO BSEG
                      WHERE    bseg-sgtxt = space.
      move  htext to bseg-sgtxt
    *modify
      MODIFY BOOL_DATA-BSEG FROM BSEG.^
      ENDLOOP.
    http://help.sap.com/saphelp_47x200/helpdata/en/5b/d231a843c611d182b30000e829fbfe/frameset.htm
    please reward useful answers
    thanks and regards
    Andreas

  • Copy texts from parent line item to substituted line item in Sales order

    Hi Guys,
    I want to copy texts from parent line item to substituted line item in a sales order where the material is substituted by SCM.Can you guide me which FM can be used in which user exit or any new suggestion?
    Thanks
    Swathi

    Hi,
    do you want to set long text or just short one? Obviously you can not use this BADI to set different fields than are available in the method interface. But I found thread with a similar problem here on SDN.
    Re: Automatic Population of Texts during Sales Order Processing
    If you call subroutine on commit, it should be working.

  • Unable to print line item 1 and line item 2 into one box iin SMARTFORMS

    helo,
    i have printed in the folowing  way.
    but i want these two things to come ion one box....like page protection..
    <b>Item Details
    Item   material     term     qty    uom    unit price    total</b>
    1        ..................................................................
    2        ..................................................................
    <b>Item Quality Specifications
    characteristic    basis    limit    oper    value    base unit    per </b>
    a                        ..............................................................
    b                        ............................................................
    Till the above part i have printed.
    now i want to make those two items together in a group.
    i have tried page protection but i dint get .
    those two should together with a rectangular box around it.
    if the those two will not fit in the box then it should go to second page.
    kindly help me .
    Regards,
    deepthi.

    Hi
    Which SRM version are you using ?
    Please go through this ->
    If you are using extended classic scenario you can simply delete the line items in the PO within SRM. This will replicate the appropriate changes in the backend.
    You won't be able to change the PO in the backend as this is standard functionality.
    You can also archive SRM PO incase you don't want to delete the same
    PO Archiving
    Once the purchase order is ordered and issued, it is a legal document between your company and the vendor. Only PO line items can be deleted and you can not delete PO header.
    Deleting line item of PO is not enough. Make sure that PR or SC history does not contain any follow on document else system will interpret this a close PR or SC.
    Because the PO was already printed or output exist... You cannot delete PO header.
    Once the PO has been issued to vendor in any form, deletion is not possible at the header level, only possibility is deleting line items of the PO (deletion indicator marked for all the line items of PO). Only when the PO is rejected by the approver (in case any, which will be in the 'release rejected' status) or in held state (before issued to vendor), PO can be deleted at the header level, as the data still exists in SRM and not get transferred to R3 backend. If you want to forcibly delete the PO at the header level, flag DOC_CLOSED field in the table BBP_PDHGP (header tabe) through BBP_PD for the respective PO.
    Try using the Function Modules "BBP_PD_PO_DB_DELETE".
    BP_PD_PO_ITEM_DELETE_LOCAL
    Some other relevant Function modules ->
    BP_PD_PO_DB_DELETE_MULTI
    BP_PD_PO_ITEM_DELETE_LOCAL
    BBP_BS_POD : Spooler, delete PO
    SPOOL_PO_DELETE :Spooler function to delete a po in core
    SPOOL_PO_DELETE_DO :Spooler function to delete a po in core
    Related links ->
    Re: Cannot delete Limit Shopping Cart line item
    Re: How to delete a PO in SRM
    Re: SRM PO Deletion
    Re: Delete item in the PO
    Do let me know. Hope this will help.
    Regards
    - Atul

  • How to print table items in column in smartform in 4.6c version.

    Hi Experts,
    I want to print the items i have in columns (like name invoice number) in smartforms but when i create table in main window there no options for header footer and main area, i have created the template for header and footer but how i print the items in columns. Pls reply ASAP.
    Thanks in advance,
    Abhishek Pandey.

    Hi
    create a table under main window
    Under the Header create a Row or Line
    Under the Row create a Cell and Under that Cell create a text field
    In that text you can write what ever field name u want to write
    Reward if it is helpful to you
    Thanks
    Krushna

  • Multipl line item for single line item in smart form

    Hi
    I have an issue wwith smart form. i Designed a Smarform with main window but each line item have again multilpe line items.Example.My smartform should print like this
    SNO.......Descriptions..................................................................Specifications
    1..............     Pepsi.......................................................................500ML Bottle
    ................................................................................................Rs.20.
    ................................................................................................No sugar COntent
    ................................................................................................Buy one get one free.
    2..............Coke.......................................................................1000ML Bottle
    ...............................................................................................Rs.$10.
    ...............................................................................................Added flavours COntent
    ...............................................................................................Buy one get 2 free.
    IN the above example Sno and Descriptions are from one internal table and Specifcations are form
    other internal table and both the tables are linked with one common field.
    Any inputs please.
    Regards
    Farook
    Edited by: farook shaik on May 15, 2009 11:56 AM

    Hi Farook,
    Either you cam merge in the driver program as said before -this is the best option.
    OR in smartform:
    Create a line type with columns for sno ,descr ,specification.
    Use a DATA TABLE  for the first internal table with the above line type and fill the first 2 columns.
    and a LOOP inside the data table's 3rd column  for specifications with the common field in where condition.
    eg
    first table - DATA TABLE
    HEAD
    MAIN
      |___ linetype
              |-cel1
                  |-Sno-text
              |-cel2
                  |-Descriptions text
              |-cel3-Specifications
                    |__loop for second table  in where condition - match common fields.
                          |-text for Specifications
    FOOTER
    Regards,
    Fonseca DC
    Edited by: Fonseca Christina on May 15, 2009 1:10 PM

Maybe you are looking for