SPLIT for line break on ##

Hi everybody
I tried to create a message for an internal abap ticket system.
The message is entered by an user on a bsp site. The Function module i have to use only takes the message as a table of char200 lines. So i have to put every 200 chars in another line of the table.
The problem is: I can't recognize the line breaks of the HTML. They are in the String from the site as ##. I tried the following: The split statement does not recognize the ## and does not split properly. can anyone please help? help will be rewarded!
while split_while = 'X'.
    clear lwa_text2.
    lwa_text = lv_html.
    replace all occurrences of lwa_text in lv_html with ''.
    "add new lines on '##'
    split lwa_text at '##' into table lt_split in character mode.
    if lt_split is initial.
      loop at lt_split into lwa_text.
        append lwa_text to lt_text.
      endloop.
    else.
      append lwa_text to lt_text.
    endif.
    if lv_html is initial.
      clear split_while.
    endif.
  endwhile.
THANKS a lot !
Best Regards

You can use FM  "RKD_WORD_WRAP" to split the text
CALL FUNCTION 'RKD_WORD_WRAP'
        EXPORTING
          textline            = wa_final-ldesc
          outputlen           = 72
        TABLES
          out_lines           = i_outlen
        EXCEPTIONS
          outputlen_too_large = 1
          OTHERS              = 2.

Similar Messages

  • Decode does not work for line breaks

    Hi experts,
    In a BLS, I am decoding a string which I output .  It decodes the spaces but not for linea breaks.  What is wrong ¡?
    Thanks and best regards,
    Antonio Rodriguez  Rubalcaba

    Jeamy, 
    I forgot the examples .
    Best regards,
    NOTE
    Note : Copying and pasting the text into the note pad shows no problem ( it has linebreaks ) . This is also true when I copied the decoded thext from the INFO section of the Transaction execution onto this message . However , the BLS OUTPUT does not have line breaks .
    UNDECODED TEXT EXAMPLE
    I use the following expression : "Text = " & IllumSQLQuery_0.Results{/Rowsets/Rowset/Row/NOTA} and I get the following :
    INFO : Text = REPRESENTACION%20NUEVO%20LAREDO.-%20SE%20RECIBE%20LOTE%20DE%20GAS%20DE%20IMPORTACION%20POR%2015%2C000%20BLS.%20FLUJO%20DE%20RECIBO%201%2C322%20BPH.%20%0D%0AINICIO%20EL%20RECIBO%20AYER%20A%20LAS%2023%3A50%20HRS.%0D%0A%0D%0AREPRESENTACION%20CADEREYTA.-%20EXISTENCIA%20BOMBEABLE%2010%2C000%20BLS.%0D%0A%0D%0ATDGL%20POZA%20RICA.-%20EXISTENCIA%20BOMBEABLE%206%2C000%20BLS.%0D%0A%0D%0ALPG%20DUCTO.-%20SE%20PRESENTO%20FALLA%20EN%20LA%20ESTACI%D3N%20NO.%204%20DE%20REBOMBEO%20SUSPENDIENDO%20EL%20FLUJO%20DEL%20LPG%20DUCTO%20DE%20LAS%2004%3A50%20A%2005%3A05%20HRS.%0D%0A%0D%0AB/T%20ANAFI.-%20ARRIBO%20EL%2010.02.2011%20A%20LAS%2006%3A00%20HRS.%20PARA%20DESCARGAR%2020%20MTM%20DE%20AMONIACO%20EN%20LA%20TDGL%20TOPOLOBAMPO%2C%20SE%20ENCUENTRA%20FONDEADO.%0D%0A%0D%0AB/T%20GASCHEM%20HAMBURG.-%20CONTINUA%20DESCARGA%20DE%20AMONIACO%20EN%20LA%20TDGL%20TOPOLOBAMPO.%20DESCARGADO%206%2C430%20TM%2C%20POR%20DESCARGAR%208%2C570%20TM.%0D%0A%0D%0AB/T%20BW%20BOSS.-%20ETA%2001.03.2011%20PARA%20DESCARGAR%2046.8%20MTM%20DE%20GAS%20LP%20EN%20LA%20TR%20PAJARITOS.%0D%0A%0D%0ACOATZACOALCOS%3A%20CONTINUA%20EL%20ENVIO%20DE%20BUTANOS%20A%20LA%20REFINERIA%20MINATITLAN.%0D%0A
    DECODED TEXT EXAMPLE
    I user the following expression : "Text = " & IllumSQLQuery_0.Results{/Rowsets/Rowset/Row/NOTA} and I get the following :
    INFO : Decoded Text = REPRESENTACION NUEVO LAREDO.- SE RECIBE LOTE DE GAS DE IMPORTACION POR 15,000 BLS. FLUJO DE RECIBO 1,322 BPH.
    INICIO EL RECIBO AYER A LAS 23:50 HRS.
    REPRESENTACION CADEREYTA.- EXISTENCIA BOMBEABLE 10,000 BLS.
    TDGL POZA RICA.- EXISTENCIA BOMBEABLE 6,000 BLS.
    LPG DUCTO.- SE PRESENTO FALLA EN LA ESTACI�N NO. 4 DE REBOMBEO SUSPENDIENDO EL FLUJO DEL LPG DUCTO DE LAS 04:50 A 05:05 HRS.
    B/T ANAFI.- ARRIBO EL 10.02.2011 A LAS 06:00 HRS. PARA DESCARGAR 20 MTM DE AMONIACO EN LA TDGL TOPOLOBAMPO, SE ENCUENTRA FONDEADO.
    B/T GASCHEM HAMBURG.- CONTINUA DESCARGA DE AMONIACO EN LA TDGL TOPOLOBAMPO. DESCARGADO 6,430 TM, POR DESCARGAR 8,570 TM.
    B/T BW BOSS.- ETA 01.03.2011 PARA DESCARGAR 46.8 MTM DE GAS LP EN LA TR PAJARITOS.
    COATZACOALCOS: CONTINUA EL ENVIO DE BUTANOS A LA REFINERIA MINATITLAN.

  • Quotation mark for line break on Powerpoint slide - Keynote 6.01

    Hello,
    When I copy over a Powerpoint slide into Keynote, it is displaying a double quote (") for linebreaks.  When I try and delete it, it delets the linebreak.
    Thanks for your help

    Update: Just updated to Keynote 6.2 but errors persist.

  • Code for a simple line break?

    Anyone know the syntax for a line break for data that is
    being displayed in notepad file:
    <CFCONTENT type="application/txt">
    <CFOUTPUT
    QUERY="getLines">#pccn##plisn##data##card#(need a line break
    here)</CFOUTPUT>

    Ken F. wrote:
    > Anyone know the syntax for a line break for data that is
    being displayed in
    > notepad file:
    >
    > <CFCONTENT type="application/txt">
    > <CFOUTPUT
    QUERY="getLines">#pccn##plisn##data##card#(need a line break
    > here)</CFOUTPUT>
    >
    #chr(13)##chr(10)# <!--- I.E. ASCII Codes for line break
    and carriage
    return. --->

  • Creating a PDF in pages that retains all line breaks and formatting as source

    Currently when we get pages documents, we convert them to PDF and send them off to be converted by a partner. We do this because said partner doesn't accept pages.
    However, lately we've found issues in PDFs created by pages that do not retain styling nor line breaks correctly.
    Example for line breaks:
    The quick brown fox
    jumped over the lazy dog.
    When converted to PDF it shows exactly the same on the PDF, as it did pages. The paragraph breaks are retain in the pages document, and the PDF looks correct.
    But when you copy/paste the text (which is generally how we test how valid the actual text is) you get something like:
    The quick brown
    fox
    jumped over the lazy dog.
    In some cases we even get line breaks on every word.
    We used the Export to PDF feature, the Print to PDF feature, and even generated a postscript and distilled with Acrobat Pro.
    Does anyone know how to solve this? It seems anything generated with QuartzPDFContext has issues.

    Interesting that preview works, but not Acrobat. Thanks!
    We are using export to word as a second option. The formatting (as in exact spacing and such) isn't always 100% retained. PDF afterall is a representation of what the customer wants. We don't always suggest it but in some type of books it helps.

  • How to include Line break in string?

    Hello Experts,
    I have a requirement like, I have to display the string value in 2 lines in Web UI.
    I have achieved that functionality using the below code in CRM Ehp1.
    data : str1 type string,
           str2 type string,
           lv_str type string.
    str1 = 'Hello'.
    str2 = 'World'.
    lv_str = |{ str1 }\n{ str2 }|.
    write /: lv_str.
    The output is: Hello#World
    In web ui, it is displaying in two lines like
    Hello
    World
    But, the special character '|' is not supported in CRM 7.0
    Is there anyway for line-break?
    Regards
    DNR Varma

    Hello
    I always use cl_abap_char_utilities=>cr_lf as a line-break symbol .
    Regards
    Joaquin

  • Thai script line breaking in CS6

    Hello,
    I am having serious difficulty finding a way to implement acceptable line breaking in a long document I am working in Thai script. I am working with InDesign CS6, using the World-Ready Composer. I have tried a variety of differnet Thai fonts. The text I am flowing into the document has already been marked (by the author) with a large number of additional acceptable break locations (which I have converted to different types of spaces). The text still breaks randomly in the middle of strings (and also at the space locations -- but not seemingly with any priority).
    I have tried using the standard Paragraph Composer as well. Some line spacing changes, and cursor behaviour over some strings is different, but the bad line breaks still happen.
    I have also tried the same text in CS5 and CS4. Same problem.
    The Language setting for styles is set to 'No Language'. I was certainly hopeful that the extra breaks marked in the text with thin or zero width spaces would provide enough line break flexibility. Does not seem so.
    Would anyone here have any advice, or other (better) experience working with Thai?
    Thanks
    Jeff

    Joel,
    Thanks very much for your reply. This was quite helpful. I was able to wrap all runs of Thai script letter characters with no break. I am actually importing InDesign Tagged Text into InDesign. I used the following regular expression to search and replace in the tagged text files.
    Search: ([\u0E01-\u0E5B]+)
    Replace: <cNoBreak:1>\1<cNoBreak:>
    Using a GREP style in InDesign is an easier solution. Unfortunately there is a chance in the text I am working with that the resulting style will become nested within a piece of text already wrapped with a character style, so the local noBreak instruction is the only reliable way.
    The World Ready Composer has added so much needed support for the OpenType font features required for complex script rendering. Much appreciated! I do hope in future versions of InDesign that support for these South Asian languages will continue to improve by adding the necessary text (morphology) analysis needed to implement real support for line breaking. (The characters in Thai belong to the Unicode line breaking class "SA", which indicates that software needs to provide this added support -- such as a dictionary lookup, or other analysis, to indicate which characters should be allowed to break after)
    It feels like InDesign (at this point) is just treating all characters in these Thai text runs as an acceptable breaking location, and doing its best to stick close to the prefered justification word and letter spacing values.
    Thanks, again for the helpful idea.
    Jeff

  • Line breaks in java

    Hi, I'm a little new to Java. I am trying to make a line break that is not in a textbox. So far, to make something similar to a line break, I played with the size of the applet on the HTML file. However, it's not working for one of my applets because it must be in several lines.
    I know that you can use /n or /r/n for line breaks in a TextArea, but I need to use line breaks to separate Buttons and several TextFields.
    In an earlier forum there was something like this:
    System.getProperty("line.separator");
    I don't really know how to add the line separator to my code. I pasted that just inside
    public class ClassName extends java.applet.Applet
    implements ActionListener
    right before
    public void init( )
    I tried putting "line.separator" in a string, but it did not work
    I also tried the following:
    add(/n);
    add(/r/n);
    add(line.separator);
    but none of them worked.
    If someone could help me, I would very much appreciate it. Thanks!

    I don't know why I didn't think of that, but there's an error when I compile it.
    SquareRoot.java:21: cannot find symbol
    symbol : method add(java.lang.String)
    location: class SquareRoot
    add(System.getProperty("line.separator"));
    ^
    And the same thing happens when I try it with \n
    SquareRoot.java:21: cannot find symbol
    symbol : method add(java.lang.String)
    location: class SquareRoot
    add("\n");
    ^
    Here's the code:
    public class SquareRoot extends java.applet.Applet
         implements ActionListener
         TextField m1, m2;
         Button b;
         double i1, i2, i3, i4;
         public void init( )
              m1 = new TextField(20);
              m2 = new TextField(20);
              b = new Button("Calculate");
              add(m1);
              add("\n");  //I'm trying to add a line break here
              add(b);
              add(m2);
              b.addActionListener(this);
         }Thanks!

  • How to replace line break for comma

    Hi there,
    i have a string which is like
    header1,value1,header2,value2,header3,value3,header4,value4now i have to write the above string to a file which should be like
    file.txt should be
    header1,value1
    header2,value2
    header3,value3
    header4,value4i can write the string to a file easy, but i need to make the every even number , to line break.
    any help
    Thanks
    R

    You may get a better way, but this is how I would do this:
    -- split the string on comma
    -- iterate through the array using a for i+=2 loop and concatenate every pair of strings with comma-space between.
    db
    edit And write the results to a new array of half the length, of course. Then write the new array to the file.
    Edited by: Darryl.Burke

  • How to extract compiled stored procedure without line break for long statement

    After I compiled stored procedure which contains long statement, the statement would cut into 2 rows into dba_source.
    However, when I extract the codes from dba_source table, the source couldn't be compiled successfully because of
    the broken lines.
    For example, the following statement would be broken into 2 rows like this:
    (line 1) gv_Message := 'Interface Description: Interface with Training '|| 'and Development Intran
    (line 2) et (Evaluation Statistic Details)';

    That's very strange. What did you originally compile it with (sql*plus, toad, etc...)? I was able to compile a procedure with the maximum line length (2499 characters see error SP2-0027) and there is no split. Is the procedure in a VALID state with that line break? Honestly, this seems very odd, possibly even a bug here somewhere.
    Richard

  • File adapter-How to set line break in text file-split record into two lines

    Dear Guru's,
    I have to solve following problem with XML (with mulitiple records) to TEXT file scenario using file adapter. I have to output for ever ONE data record in XML always two identical lines in text file. Second line should have a little bit different mapping in few fields like date,... So I did duplicate fileds in my output structure in mapping and need to know how to set line break in the middle and see half of structure in first line and next structure half in second line
    My output structure in mapping is:
    CASHFLOW
    - INTERFACE
    - GESELLSCHAFT
    - ANWENDUNG
    - PRODUKT
    - VERTRAG
    - BETRAG
    - WAEHRUNG
    - DIRECTION
    - BEWEGUNGSTYP
    - FAELLIGKEIT
    - ZINSFESTSTELLUNG
    - ZAHLUNGSTAG
    - RENDITE
    - INTERFACE2
    - GESELLSCHAFT2
    - ANWENDUNG2
    - PRODUKT2
    - VERTRAG2
    - BETRAG2
    - WAEHRUNG2
    - DIRECTION2
    - BEWEGUNGSTYP2
    - FAELLIGKEIT2
    - ZINSFESTSTELLUNG2
    - ZAHLUNGSTAG2
    - RENDITE2
    Question is how can I set on receiving file adapter in Content Conversion Parameters that fields from first structure half INTERFACE...RENDITE should be outputed in one line and fields from second half of structure INTERFACE2...RENDITE2 should start on second line in final text file.
    I'm getting at the moment one line only and I need to know how can set line break so that second line starting with INTERFACE2(CA)...RENDITE2 will start in new line.
    CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",2,12,2009-01-28,2009-01-27,2009-01-28,"0.0000000",CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",1,10,2009-01-27,2009-01-27,2009-01-27,"0.0000000"
    This should be final output:
    CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",2,12,2009-01-28,2009-01-27,2009-01-28,"0.0000000"
    CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",1,10,2009-01-27,2009-01-27,2009-01-27,"0.0000000"
    My file adapter settings:
    RecordsetStructure=CASHFLOW
    CASHFLOW.fieldNames=INTERFACE,GESELLSCHAFT,ANWENDUNG,PRODUKT,VERTRAG,BETRAG,WAEHRUNG,DIRECTION,BEWEGUNGSTYP,FAELLIGKEIT,ZINSFESTSTELLUNG,ZAHLUNGSTAG,RENDITE
    CASHFLOW.fieldSeparator=,
    CASHFLOW.endSeparator='nl'
    CASHFLOW.fieldNames=INTERFACE2,GESELLSCHAFT2,ANWENDUNG2,PRODUKT2,VERTRAG2,BETRAG2,WAEHRUNG2,DIRECTION2,BEWEGUNGSTYP2,FAELLIGKEIT2,ZINSFESTSTELLUNG2,ZAHLUNGSTAG2,RENDITE2
    CASHFLOW.fieldSeparator=,
    It wont help if I add two identical structures in mapping because in output i would see for multiple entries section with first lines only and after that section with second lines only. And CASHFLOW is one part of more complex mapping ...
    (This is final output structure RecordsetStructure=HEADER,CASHFLOW,CONDITION,REFERENCE,CONTRACT - more sections with different data and all these should have duplicate lines at the end)
    Thanks a lot for any help
    Cheers
    Marian
    Edited by: Marian  Luscon on Jul 14, 2009 11:44 AM

    Hi Ivan,
    right, I did test just for sure.
    Putting constant 'nl' into field CASHFLOW-INTERFACE1 didnt help - still getting one line instead two lines.
    CA ,"0100" ,"7" ,"512" ,20090127GTP101 ,-12454762586.6800 ,"EUR" ,2 ,12 ,2009-01-28 ,2009-01-27 ,2009-01-28 ,"0.0000000" ,'nl' ,"GTP1" ,"7" ,"512" ,20090127GTP101 ,-12454762586.6800 ,"EUR" ,1 ,10 ,2009-01-27 ,2009-01-27 ,2009-01-27 ,"0.0000000"
    So there is still question. Is there any way (mapping,...) how to output always 2 lines in text file for one record in XML. It always does 1 record in mapping structure = 1 line but we need 2 lines ...
    Example:
    Input: 4 records in XML
    Output: 8 lines in final text file ...
    Thanks to you all guys
    Marian

  • How can I create a line break in pages for iPad?

    On the Mac you can hold the shift key while pressing the return key to creat a line break. Only pressing the return key will creat a new paragraph of course.
    On the iPad you only can creat paragraphs. Pressing the shif key does not change that.
    Does anybody know how to force a linebrek on the pages app for iPad?

    Tap and hold where you wish to insert the line break. Select Insert from the pop up menu, then Line break.
    this might be helpful for future reference: http://help.apple.com/pages/ipad/1.7/

  • Line Break for XML File

    All,
    I am able to generate xml file from an internal table. The problem is, if I open the file in IE everything looks good. When I open it in notepad or notepad++, everything is in one line. Can you tell me how to generate a line break after each tags.
    Please find the following code used by me for reference.
    LOOP AT lt_ohd INTO ls_ohd.
        ls_temp_ohd = ls_ohd.
        AT FIRST.
          l_ixml = cl_ixml=>create( ).
          l_document = l_ixml->create_document( ).
          l_element_ohd  = l_document->create_simple_element(
                      name = 'OHD'
                      parent = l_document ).
        ENDAT.
        AT NEW cc.
          CLEAR : lv_inhaltskom, lv_text.
          lv_inhaltskom = ls_temp_ohd-cc.
          CALL FUNCTION 'ISM_SELECT_TEXT_JJTIKO'
            EXPORTING
              pv_inhaltskom = lv_inhaltskom
            CHANGING
              pv_langtext   = lv_text.
          TRANSLATE lv_text TO UPPER CASE.
          l_value = lv_text.
          l_element_county  = l_document->create_simple_element(
                      name   = 'city_county'
                      value  = l_value
                      parent = l_element_ohd  ).
        ENDAT.
        AT NEW order.
          l_element_neighborhood  = l_document->create_simple_element(
                      name    = 'entry'
                      parent  = l_element_county  ).
        ENDAT.
        l_value = ls_temp_ohd-neighborhood.
        l_element_address  = l_document->create_simple_element(
                    name   = 'neighborhood'
                    value  = l_value
                    parent = l_element_neighborhood ).
        l_value = ls_temp_ohd-address_detail.
        l_element_address  = l_document->create_simple_element(
                    name   = 'address_detail'
                    value  = l_value
                    parent = l_element_neighborhood  ).
        l_value = ls_temp_ohd-order.
        l_element_address  = l_document->create_simple_element(
                    name   = 'order'
                    value  = l_value
                    parent = l_element_neighborhood  ).
        l_value = ls_temp_ohd-item.
        l_element_address  = l_document->create_simple_element(
                    name   = 'item'
                    value  = l_value
                    parent = l_element_neighborhood  ).
        l_value = ls_temp_ohd-cc.
        l_element_address  = l_document->create_simple_element(
                    name   = 'cc'
                    value  = l_value
                    parent = l_element_neighborhood  ).
        l_value = ls_temp_ohd-address.
        l_element_address  = l_document->create_simple_element(
                    name   = 'address'
                    value  = l_value
                    parent = l_element_neighborhood  ).
        l_value = ls_temp_ohd-price.
        l_element_address  = l_document->create_simple_element(
                    name   = 'price'
                    value  = l_value
                    parent = l_element_neighborhood ).
        l_value = ls_temp_ohd-bed.
        l_element_address  = l_document->create_simple_element(
                    name   = 'bed'
                    value  = l_value
                    parent = l_element_neighborhood  ).
        l_value = ls_temp_ohd-bath.
        l_element_address  = l_document->create_simple_element(
                    name   = 'bath'
                    value  = l_value
                    parent = l_element_neighborhood  ).
        l_value = ls_temp_ohd-opentime.
        l_element_address  = l_document->create_simple_element(
                    name   = 'opentime'
                    value  = l_value
                    parent = l_element_neighborhood  ).
        l_value = ls_temp_ohd-state.
        l_element_address  = l_document->create_simple_element(
                    name   = 'state'
                    value  = l_value
                    parent = l_element_neighborhood ).
        l_value = ls_temp_ohd-zip.
        l_element_address  = l_document->create_simple_element(
                    name   = 'zip'
                    value  = l_value
                    parent = l_element_neighborhood ).
        l_streamfactory = l_ixml->create_stream_factory( ).
        l_ostream = l_streamfactory->create_ostream_itable( table = lt_xml_table ).
        l_renderer = l_ixml->create_renderer( ostream  = l_ostream
                                              document = l_document ).
        l_rc = l_renderer->render( ).
        l_xml_size = l_ostream->get_num_written_raw( ).
      ENDLOOP.
    Regards,
    Salil
    Edited by: salil vaidya on Jan 18, 2011 2:34 PM

    Thanks.
    But now, I have a syntax error.
    BEGIN OF xml_line,
              data(256) TYPE x
    END OF xml_line.
    DATA: lt_xml_table      TYPE TABLE OF xml_line,
          ls_xml_table      TYPE xml_line.
    LOOP AT lt_xml_table INTO ls_xml_table.
        CONCATENATE ls_string cl_abap_char_utilities=>cr_lf INTO ls_string.
        MODIFY lt_xml_table FROM ls_xml_table INDEX sy-tabix.
        CLEAR : ls_xml_table, ls_string.
      ENDLOOP.

  • Line Break for the column

    Hi,
    I have a BIP Report.
    The report includes the layout of a free text column. This text goes towards the right side for sufficient length.
    I want to wrap the text or line break this text.
    In the rtf template, I am using the following formula:
    <?html2fo: OUTPUT_NOTES?>
    Any Ideas?

    Dear,
    Add the UDF's on the marketing document you want the tax break up.
    Apply FMS using below queries and call these UDF's on your PLD.
    FOR BED
    DECLARE @Amount as Numeric(19,2)
    DECLARE @Rate as Numeric(19,0)
    DECLARE @TAmount as Numeric(19,2)
    set @TAmount =$[$38.21.Number]
    SELECT    @Rate=STA1.Rate
    FROM         OSTC INNER JOIN
                          STC1 ON OSTC.Code = STC1.STCCode INNER JOIN
                          STA1 ON STC1.STACode = STA1.StaCode Where   OSTC.Code=$[$38.160.0] And STA1.SttType='9' order by STA1.EfctDate desc
    set @Amount=(@TAmount * @Rate)/100
    Select @Amount
    For Cess
    DECLARE @Amount as Numeric(19,2)
    DECLARE @Rate as Numeric(19,0)
    DECLARE @TAmount as Numeric(19,2)
    set @TAmount = $[$38.U_BED.Number]
    SELECT    @Rate=STA1.Rate
    FROM         OSTC INNER JOIN
                          STC1 ON OSTC.Code = STC1.STCCode INNER JOIN
                          STA1 ON STC1.STACode = STA1.StaCode Where   OSTC.Code=$[$38.160.0] And STA1.SttType='8' order by STA1.EfctDate desc
    set @Amount=(@TAmount * @Rate)/100
    Select @Amount
    For HCess
    DECLARE @Amount as Numeric(19,2)
    DECLARE @Rate as Numeric(19,0)
    DECLARE @TAmount as Numeric(19,2)
    set @TAmount = $[$38.U_BED.Number]
    SELECT    @Rate=STA1.Rate
    FROM         OSTC INNER JOIN
                          STC1 ON OSTC.Code = STC1.STCCode INNER JOIN
                          STA1 ON STC1.STACode = STA1.StaCode Where   OSTC.Code=$[$38.160.0] And STA1.SttType='10' order by STA1.EfctDate desc
    set @Amount=(@TAmount * @Rate)/100
    Select @Amount
    This will help you.
    regards,
    Neetu

  • Excise invoice getting split for every 2 line items in J1IS

    Dear Experts,
    While doing J1IS - Excise invoice getting split for every 2 line items.
    can anybody help me.
    regards,
    sri ram

    Hi,
    Please check the maximum number of line items per excise invoice under customizing
    logistics general->Tax on goods movement->India->Basic settings->Maintain excise registration->check for EI items.
    I think it is defined as 2.
    Regards,
    Krishna A S V

Maybe you are looking for