Split or offset

HI experts,
I have a string with 150 lenth ,i ahve to split or offset this string into two parts, with 75, 75 lenths,
please give me an idia on this.
thanks in advance.
Radhakrishna

Hi Radhakrishna,
Use this:
data: var1 type string,
        var2 type string.
var1 = str+0(75).
var2 = str+75(75).
Hope this will help.
Regards,
Nitin.

Similar Messages

  • Standard costupdate customization

    Hi
    I need to customize standard cost update ti insert accounting lines to reflect
    material cost and material overhead cost by splitting in Accounting lines og GL
    Instead of one Account .
    can anyone suggets asolution for this.
    venuGopal. T

    venuGopal,
    Do you mean you want to split the offset (or standard cost variance) account entries? You may be able to do this using the Cost Hook, assuming Release 11i, or, you could write a custom program to add additional entries into the cost accounting distribution entries for the mtl_transaction_accounts table. The accounting line type would be a "2" or account for all of the additional entries, as you would not be touching the inventory entries (where the accounting line type =1). Hope this helps,
    Doug Volz

  • Issue in Split invoicing

    Hi,
    I have an issue in split invoicing.
    Here is the scenario:
    If we have indicated purchase condition for split invoicing (for
    example excise tax) we dont want to post them to inventory , i
    want to configure an offset condition .In the system i configred
    2 cond type for +ve and -Ve.Also configured Act key and Accruals
    I used AltCty 409 but i do not get the result..
    So Can anyone tell me that how to configure in condition type and
    how it works....
    Thanks in advance.
    Nitin

    Hi.
    Do not use the alternate condition formula for alternative calculation type. Already you have used the account key and accrual key.
    You can use either of the one.
    Either you can use accrue key or account key.
    Accrual key generally used for freight and freight related cost.
    I would suggest use the account key and you need to assign the account key to the condition type in the OB40.
    Try this it may resolve your issue. If it helps award me.
    Cheers
    Umakanth.

  • Vendor Open Item Was Not Offset After a Replacement Check

    Hi FI Guru,
    We have an issue with vendor replacement check.  Our vendor open item still apears in FBL1N after a replacement check is paid.  We initially issued a check against a vendor invoice and we had to void that check because due to check printing problem.   The check was cancelled in FCH8.  We then issued a replacement check in F110.  When I displayed open items for the vendor in FBL1N, the vendor invoice still showed up.  The replacement check already sent to our vendor.  So we have to apply the payment to the vendor's invoice.  It seems the second transaction (for the replacement check) is incomplete because I dont't think it hits our bank account.
    Here are my questions:
    1) Is there another transaction our user needs to offset vendor invoice?
    2) If we have to fix it manually, what is the best option to offset the open vendor invoice and still be able to hit our bank account.
    Any help is appreciated. 
    Thanks!!
    Reiling

    Hi,
    In order to change the Open Item Management for a G/L account using
    ZFSEPA02 the line item total(Total of open items)for this account
    should match/tally with the account balance for this account (FS10),
    otherwise the open item activation will not be possible.
    Unfortunately as per note 175960 you find reports RFSEPA02/ RFSEPA03
    are no longer supported as of release 4.5A.
    ALTHOUGH you can find a possible solution on how to tally the line items
    to the balance in the NOTE 403744.
    1.  Active New General Ledger
             This note applies ONLY WITH RESTRICTIONS to Release ERP 2004 or ERP
             2005 with activated New General Ledger and activated document
             splitting.
             In these releases, it is not currently possible to subsequently
             activate the open item management under the specified conditions.
             The only option currently available is to set up a new account with
             open item management and to use this instead of the original
             account.
             However, it is also possible to deactivate the open item management
             using report ZFSEPA03 under the prerequisites described below.
         2.  Migration to the New GL:
             If you are planning to migrate to the new General Ledger using a
             migration type that enables the use of document splitting, ensure
             that in Phase 1 and Phase 2 NO changes are make to the open item
             management. Phases 1 and 2 indicate the period between the migration
             date and the end of the actual migration (the "Migration Completed"
             indicator is set)

  • Custom report region (Conditionaly Split over two rows)

    I have a request, to take an existing report that displays data like this:
    Pool Performing vs
    Non-Performing Current Balance Low Value High Value Value Cumulative Cumulative
    WA Low WA High Loss Low Loss High
    AA Performing $XXX,XXX,XXX $XXX,XXX,XXX $XXX,XXX,XXX XX.XX% XX.XX% XX.XX% XX.XX%
    Non-Performing $XXX,XXX,XXX $XXX,XXX,XXX $XXX,XXX,XXX XX.XX% XX.XX% XX.XX% XX.XX%
    Sub-Total $XXX,XXX,XXX $XXX,XXX,XXX $XXX,XXX,XXX XX.XX% XX.XX% XX.XX% XX.XX%
    and to have it instead display like this:
    AA
    Performing $XXX,XXX,XXX $XXX,XXX,XXX $XXX,XXX,XXX XX.XX% XX.XX% XX.XX% XX.XX%
    Non-Performing $XXX,XXX,XXX $XXX,XXX,XXX $XXX,XXX,XXX XX.XX% XX.XX% XX.XX% XX.XX%
    Sub-Total $XXX,XXX,XXX $XXX,XXX,XXX $XXX,XXX,XXX XX.XX% XX.XX% XX.XX% XX.XX%
    I tried building a custom Named Column (row template), but ran into the issue that ALL ROWS being offset, not just the ones with value for the Pool..
    Is it possible to make a conditional row template that will allow for a row to be split ONLY if there is a value in the column?
    Thank you,
    Tony Miller
    Dallas, TX

    TexasApexDeveloper wrote:
    Paul,
    SO glad to hear from you again.... Here is the query that I am using:
    SELECT ASET_CAT_POOL_FST_TXT Pool,
    DECODE(Display_Order, 0, ASET_PERF_STAT_TXT, 1, 'Sub-Total', 2, 'Grand Total') AS Perf_Non_Perf,
    DECODE(Display_Order, 0, 'Normal', 1, 'Bold', 2, 'Bold') AS Css_Tag,
    CurrBal,
    LowVal,
    HighVal,
    LowPercent,
    HighPercent,
    LossHighPercent,
    LossLowPercent,
    Display_Order
    FROM
    SELECT Grouping(ASET_CAT_POOL_FST_TXT) + Grouping(ASET_PERF_STAT_TXT) AS Display_Order
    , ASET_CAT_POOL_FST_TXT
    , ASET_PERF_STAT_TXT
    , Round(Sum(ASET_CUR_BAL_AMT), 2)  AS CurrBal
    , Round(Sum(ASET_LW_VAL_AMT),       2)  AS LowVal
    , Round(Sum(ASET_HIGH_VAL_AMT),      2)  AS HighVal
    , Round(100 * DECODE(Sum(ASET_CUR_BAL_AMT),0, 0, (Sum(ASET_LW_VAL_AMT) / Sum(ASET_CUR_BAL_AMT))), 2) AS LowPercent
    , Round(100 * DECODE(Sum(ASET_CUR_BAL_AMT),0, 0, (Sum(ASET_HIGH_VAL_AMT)                / Sum(ASET_CUR_BAL_AMT))), 2) AS HighPercent
    , Round(100 * DECODE(Sum(ASET_CUR_BAL_CALC_CUM_LOS_AMT), 0, 0, (Sum(ASET_CALC_CUM_LOS_HIGH_AMT) / Sum(ASET_CUR_BAL_CALC_CUM_LOS_AMT))), 2) AS LossHighPercent
    , Round(100 * DECODE(Sum(ASET_CUR_BAL_CALC_CUM_LOS_AMT), 0, 0, (Sum(ASET_CALC_CUM_LOS_LW_AMT)  / Sum(ASET_CUR_BAL_CALC_CUM_LOS_AMT))), 2) AS LossLowPercent
    FROM ASET_VLTN_RVW_INSTSMRY
    WHERE USR_RPT_PBLSH_IND = 'Y' AND Etl_Src_File_Typ_Ind = 'C'
    GROUP BY ROLLUP (ASET_CAT_POOL_FST_TXT, ASET_PERF_STAT_TXT)
    ORDER BY POOL,
    Display_Order,
    Perf_Non_Perf DESCAs you can see I am doing a roll-up to get my sub-totaling.. Wouldn't anticipate any problems in going with a conditional named column template with that.
    In the report I am using a standard report, with breaks on Columns 1 & 2 (Pool,Perf_Non_Perf). Have you tried using the inscrutable Break Formatting options in the report attributes? Something like:
    Break Columns: First and Second Columns
    Break Column Style: Repeat Headings on Break
    For repeat heading breaks use this format, use #COLUMN_VALUE# subs
    <tbody><tr><th colspan="9" class="t17ReportHeader" align="left">#COLUMN_VALUE# #COLUMN_VALUE#</th></tr>(Match up the <tt>colspan</tt> and </tt>class</tt> with your displayed columns and theme.)
    Posting data MIGHT be an issue since it is proprietary data, I can try posting bogus data to my hosted area on Oracle's site though..That and access to the workspace would help, or post a <tt>CREATE TABLE</tt> script for <tt>ASET_VLTN_RVW_INSTSMRY</tt> and some inserts for the bogus data here.

  • How to split a single column row  in alv report

    Hi All,
    I need to split a row of the particular coolumn in alv report.
    for example row size is 10 that should be split into 5 & 5.
    Thanks
    Ram

    Hi Ram,
    You can add one more column for that..
    while processing your internal table you can split the value for that column using offset..
    DATA :  FIELD_STR(10) TYPE C.
    VAR1 = FIELD_STR+0(5) .
    VAR2 = FIELD_STR+5(5) .
    Now you can print this both VAR1 and VAR2 in seperate column.
    Please search on SCN before posting any question..
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

  • Document splitting error in cross company code invoice

    Hi
    I am trying to post an invoice through FB60 which is belong to multiple company code.
    while simulating the document, system is not able to find the cost object (profit centre) for vendor line item. following is the detail of the transaction:-
    Trasnaction Code - FB60
    Vendor (co code 1000) - Cr     10000
    Exp       (co code 1000) - Dr               5000
    Exp       (co code 2000) - Dr               5000
    Customization detail -
    Item category for vendor reconciliation a/c -           03000
    item cateogry for inter company clearing a/c -        01000
    item cateogry for inter company customer a/c -      02000
    Business Trasaction for document type (IC) used in FB60 - 0000. In document type IC i have allowed intercompany trnaction.
    can anybody revert where i am missing the configuration. what additional i need to do to get out this error.
    please revert
    Regards
    DD

    Hello,
    I also faced similar problem with posting cross company transacation whereby one of the document containing another Customer/Vendor line item which is not the intercompany clearing account. Both the additional Vendor/Customer and the Intercompany Vendor/Customer line items failed to derive the Profit Center information from the offsetting line items. The system recognize the Customer/Vendor line items (additional and Intercompany clearing) as "Leading Items" instead of derivating.
    The journal looks like below.
    CoCd A
    dr. GL Account        [PC-A]   100
    cr. ICT Vendor-B                   (100)   --> successfully deriving the [PC-A] information
    CoCd B
    dr. ICT Customer-A                  100      --> recognized as "Leading item", failed to derive PC-B
    cr. Customer                         (100)   --> recognized as "Leading item", failed to derive PC-B
    dr. GL Account       [PC-B]    100
    cr. GL Account       [PC-B]    (100)
    The GL Account in CoCd B are registered under Item Category "01000" and it has been registered as the splitting base item for the "ICT Customer-A" and "Cusomer" accounts.
    Would really appreciate your kind help or suggestion to solve this issue.
    Thanks a lot in adavance!
    Regards,
    Nurul F

  • Split a TOC over pages: page break in a table of contents

    I'd like to be able to put a page break in a TOC. I have a TOC spans a couple of pages. The second page only has a couple of lines in it, so I want to be able to split the TOC on TOC heading 1 with a page break.
    I know that I could adjust the styles for the TOC, but this is not a general enough solution for me - it would probably not last long (add new pages, the arbitrary page break is going to move).

    This answer assumes that your document uses the Default page style for physical pages 1-3. You are going to need two different page styles to accomplish what you want. (I'm guessing you have used a page number offset of -2 to get your physical page 3 numbered as 1 and this simply will not work in the TOC.)
    Put your cursor in the Title page (physical page 1) and open the Stylist (F11). Click the Page icon (4th from left) then click the New Style From Selection icon (2nd from right). Give it a name like 'Body'. Before you close the Stylist double click on Default just to make sure you did not change the style of the 1st page.
    While you are still on the 1st page click into the footer and remove the page number field assuming you do not want it.
    Put you cursor in the FIRST (1st) paragraph of the 3rd page and do **Format > Paragraph > Text Flow tab. In the Breaks section, check the Enable box, if not already checked, then check the With Page Style box, select the Body style from the drop down menu and set the page number to 1.
    If the page number field is still in the footer on this page then delete it and insert it again. It should now show 1.
    Click into the TOC, right click and select Update Index/Table.
    Just in case you have trouble translating this to your version of SO I have fixed your document and have attached it.
    * *To change to a new page style while writing your document do Insert > Manual Break > Page Break and select the new style. If you want a new page number you can check that box and set the new number.  

  • Insert at BWF Time Offset - Not working!

    I have some broadcast wave files generated with Cubase 5, and they definitely have BWF time offset. I can see it in File Info. When I select the option to Use BWF Time Reference Offset, and then attempt to insert the file, it just inserts at the cursor. How do I make it insert at the time offset?

    Seems this is a good thing in CS4.
    In CS3, you can split tracks that you didn't want split if you are not careful, so this seems like a very good new thing they added.
    Dave.

  • Need to split the document in 950 line iteam record in LSMW

    HI ALL,
    I am posting documents using LSMW  for Tcode FB01. But some documents having more no of line items like 1000.
    But SAP will allow only 950 line tems for each documents. In this sistuvation we need to split the data as 950 and 50. we need to post 2 different documents with same header data.
    <removed by moderator>.
    regards,
    srikanth
    Moderator message: please do not ask for documents being sent to you directly.
    Edited by: Thomas Zloch on Nov 15, 2010 2:18 PM

    There are a couple of things you can do:
    instead of posting the individual line itame detail, post summary items.
    Create a dummy offset account. Total the first 950 items and post the remainder to the offset. Then do the same for the remaining items. The total to the offset will be zero.
    If you search the forum, you will find more details on this.
    Rob

  • Drag and drop icons from onside of the split pane to the other side.

    Hello All,
    I am tring to write a program where i can drag and drop icons from the left side of the split pane to the right side. I have to draw a network on the right side of the split pane from the icons provided on the left side. Putting the icons on the labels donot work as i would like to drag multiple icons from the left side and drop them on the right side. CAn anyone please help me with this.
    Thanks in advance
    smitha

    The other option besides the drag_n_drop support
    http://java.sun.com/docs/books/tutorial/uiswing/dnd/intro.htmlis to make up something on your own. You could use a glasspane (see JRootPane api for overview) as mentioned in the tutorial.
    Here's another variation using an OverlayLayout. One advantage of this approach is that you can localize the overlay component and avoid some work.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.BufferedImage;
    import java.io.*;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    import javax.swing.event.MouseInputAdapter;
    public class DragRx extends JComponent {
        JPanel rightComponent;
        BufferedImage image;
        Point loc = new Point();
        protected void paintComponent(Graphics g) {
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            if(image != null)
                g2.drawImage(image, loc.x, loc.y, this);
        public void setImage(BufferedImage image) {
            this.image = image;
            repaint();
        public void moveImage(int x, int y) {
            loc.setLocation(x, y);
            repaint();
        public void dropImage(Point p) {
            int w = image.getWidth();
            int h = image.getHeight();
            p = SwingUtilities.convertPoint(this, p, rightComponent);
            JLabel label = new JLabel(new ImageIcon(image));
            rightComponent.add(label);
            label.setBounds(p.x, p.y, w, h);
            setImage(null);
        private JPanel getContent(BufferedImage[] images) {
            JSplitPane splitPane = new JSplitPane();
            splitPane.setLeftComponent(getLeftComponent(images));
            splitPane.setRightComponent(getRightComponent());
            splitPane.setResizeWeight(0.5);
            splitPane.setDividerLocation(225);
            JPanel panel = new JPanel();
            OverlayLayout overlay = new OverlayLayout(panel);
            panel.setLayout(overlay);
            panel.add(this);
            panel.add(splitPane);
            return panel;
        private JPanel getLeftComponent(BufferedImage[] images) {
            JPanel panel = new JPanel(new GridBagLayout());
            GridBagConstraints gbc = new GridBagConstraints();
            gbc.weightx = 1.0;
            gbc.weighty = 1.0;
            for(int j = 0; j < images.length; j++) {
                gbc.gridwidth = (j%2 == 0) ? GridBagConstraints.RELATIVE
                                           : GridBagConstraints.REMAINDER;
                panel.add(new JLabel(new ImageIcon(images[j])), gbc);
            CopyDragHandler handler = new CopyDragHandler(panel, this);
            panel.addMouseListener(handler);
            panel.addMouseMotionListener(handler);
            return panel;
        private JPanel getRightComponent() {
            rightComponent = new JPanel(null);
            MouseInputAdapter mia = new MouseInputAdapter() {
                Component selectedComponent;
                Point offset = new Point();
                boolean dragging = false;
                public void mousePressed(MouseEvent e) {
                    Point p = e.getPoint();
                    for(Component c : rightComponent.getComponents()) {
                        Rectangle r = c.getBounds();
                        if(r.contains(p)) {
                            selectedComponent = c;
                            offset.x = p.x - r.x;
                            offset.y = p.y - r.y;
                            dragging = true;
                            break;
                public void mouseReleased(MouseEvent e) {
                    dragging = false;
                public void mouseDragged(MouseEvent e) {
                    if(dragging) {
                        int x = e.getX() - offset.x;
                        int y = e.getY() - offset.y;
                        selectedComponent.setLocation(x,y);
            rightComponent.addMouseListener(mia);
            rightComponent.addMouseMotionListener(mia);
            return rightComponent;
        public static void main(String[] args) throws IOException {
            String[] ids = { "-c---", "--g--", "---h-", "----t" };
            BufferedImage[] images = new BufferedImage[ids.length];
            for(int j = 0; j < images.length; j++) {
                String path = "images/geek/geek" + ids[j] + ".gif";
                images[j] = ImageIO.read(new File(path));
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.add(new DragRx().getContent(images));
            f.setSize(500,400);
            f.setLocation(200,200);
            f.setVisible(true);
    class CopyDragHandler extends MouseInputAdapter {
        JComponent source;
        DragRx target;
        JLabel selectedLabel;
        Point start;
        Point offset = new Point();
        boolean dragging = false;
        final int MIN_DIST = 5;
        public CopyDragHandler(JComponent c, DragRx dr) {
            source = c;
            target = dr;
        public void mousePressed(MouseEvent e) {
            Point p = e.getPoint();
            Component[] c = source.getComponents();
            for(int j = 0; j < c.length; j++) {
                Rectangle r = c[j].getBounds();
                if(r.contains(p) && c[j] instanceof JLabel) {
                    offset.x = p.x - r.x;
                    offset.y = p.y - r.y;
                    start = p;
                    selectedLabel = (JLabel)c[j];
                    break;
        public void mouseReleased(MouseEvent e) {
            if(dragging && selectedLabel != null) {
                int x = e.getX() - offset.x;
                int y = e.getY() - offset.y;
                target.dropImage(new Point(x,y));
            selectedLabel = null;
            dragging = false;
        public void mouseDragged(MouseEvent e) {
            Point p = e.getPoint();
            if(!dragging && selectedLabel != null
                         && p.distance(start) > MIN_DIST) {
                dragging = true;
                copyAndSend();
            if(dragging) {
                int x = p.x - offset.x;
                int y = p.y - offset.y;
                target.moveImage(x, y);
        private void copyAndSend() {
            ImageIcon icon = (ImageIcon)selectedLabel.getIcon();
            BufferedImage image = copy((BufferedImage)icon.getImage());
            target.setImage(image);
        private BufferedImage copy(BufferedImage src) {
            int w = src.getWidth();
            int h = src.getHeight();
            BufferedImage dst =
                source.getGraphicsConfiguration().createCompatibleImage(w,h);
            Graphics2D g2 = dst.createGraphics();
            g2.drawImage(src,0,0,source);
            g2.dispose();
            return dst;
    }geek images from
    http://java.sun.com/docs/books/tutorial/uiswing/examples/components/index.html

  • Constrain Split View

    Hi,
    I have created a simple application that uses a "NSSplitView". Everything works perfectly, but I would like to be able to make sure that none of the two sides of the split view can have a width of less than 50 px.
    I tried this code:
    THE "MAVController.h" FILE:
    ========================
    #import <Cocoa/Cocoa.h>
    @interface MAVController : NSObject {
    IBOutlet NSSplitView *splitView;
    - (void)awakeFromNib;
    @end
    THE "MAVController.m" FILE:
    ========================
    #import "MAVController.h"
    @implementation MAVController
    - (void)awakeFromNib
    CGFloat minCoord = 50.0;
    [splitView constrainMinCoordinate:minCoord ofSubviewAt:0];
    @end
    I get the following error:
    warning: 'NSSplitView' may not respond to '-constrainMinCoordinate:ofSubviewAt:'
    (Messages without a matching method signature will be assumed to return 'id' and accept '...' as arguments.)
    How can I constrain the size of the two part of my split view?
    Thank you very much,
    franky26

    The splitView:constrainMinCoordinate:ofSubviewAt: method is called by a NSSplitView on its delegate.
    The simplest way is to declare MAVController as the delegate of the SplitView. For example in the awakeFromNib method splitView.delegate = self;Or in Interface Builder.
    Now MAVController is the NSSplitView delegate, you have to define the proper method in it. For example, if you want that each of the 2 parts of the NSSplitView have a min size of 50.0- (CGFloat)splitView:(NSSplitView *)sender constrainMinCoordinate:(CGFloat)proposedMin ofSubviewAt:(NSInteger)offset{
    CGFloat minCoord = 50.0;
    return (minCoord<proposedMin)?proposedMin:minCoord;

  • B/S Liability split

    Hi,
    Oracle automatic Offset offer the possibility to derive the B/S account (liability) by using the segment from the charge account (P&L) and the account from the supplier site.
    Could it be possible to limit the number of segments involved on the segment split.
    For me it is not usefull to derive all accounting segment from Charge accounting key; only 1 or 2.
    How could it be possible ?
    Thanks a lot,
    Regards,
    Stéphane.

    Hi Ernesta,
    The Planning items like 0SEM_BPS_<> that you are seeing in the Parameter group refer to group of items for which you would like to plan in B/S Planning.
    Some of the values I think are like
    Assets, Current Assets, Share Capital, Liabilities, Loans and so on. (Don't have access to a system displaying the same right now)
    These are structured in a hierarchical format to represent various items of Balance sheet planning.
    Hope it helps.
    Cheers
    Anurag

  • Moving views and split screen (AS3 games development issue)

    How do you move the workspace dynamically using AS3 (say in a platform game where the viewable area pans around the player)?
    One suggestion was to make everything move relative to the player:
    Is there a way to group all movie clips together, without creating and iterating through an array?
    For example there could be one holder movie clip which all viewable objects (apart from the background image) are attached to.
    Each of the objects could have x and y coordinates relative to the holder movie clip.
    I don't know how to do this though.
    Is there a better way (i.e. changing the x and y offset of the workspace dynamically)?
    Say if one was to make a multiplayer game where each level is over 4000x4000 px in dimensions.
    How do you split the screen with AS3 so that each player has their own view of the level?
    Thanks in advance for any replies

    After doing some further research I found that a genius named Bryan Heisey has invented a an opensource virtual camera using actionscript 3.
    I.e. a movie clip stores a snapshot of its current position as bitmap data which it draws on to the stage.
    After hours  of painful trial and error, I've modified the Actionscript 3 version of VCam, to be contained in an external actionscript file and to support split screen mode.
    I'm not sure if I've ironed out all the glitches out yet though as my trial version has expired and I'm still waiting for delivery of the registered version .
    I'll try and have a tutorial up and running in a week or 2...

  • Reg:(uncaught Exception :width/offset argument cannot be negative or exceed the text length)

    hi all,
        I just completed my application and import the COD File in Blackberry simulator 8300 . In my mobile after login click on button it throws error and exit the application.
    It throws "uncaught Exception:width/offset argument cannot be negative or exceed the text length"
    Kindly give suggestion

    Hello,
    You should ask in the
    Lightswitch forum.
    If this WAS in the Lightswitch forum, I suppose you should ask in Microsoft's ASP.Net forums:
    http://forums.asp.net/
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog:http://unlockpowershell.wordpress.com
    My Book:Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

Maybe you are looking for