About at new statement with offset/length

Hi All,
I have following source code:
data:
  begin of tab occurs 3,
          fcode(4) type c,
      end of tab.
append 'aaaa' to tab.
append 'babb' to tab.
append 'abaa' to tab.
append 'cdef' to tab.
data:
  lv_test(4) type c.
loop at tab.
  at new fcode+1(1).
  move tab-fcode+1(1) to lv_test.
  write / lv_test.
  endat.
ENDLOOP.
The excution result is:
a
a
b
d
My question is:  why the offset/length of 'fcode+1(1)' doesn't work at all.
Any help is appreciated!

AT for group change
Change of group when processing loops of extracts and internal tables.
Syntax
AT NEW <f>.
AT END OF <f>.
AT FIRST.
AT LAST.
AT <fg>.
The statements are used to process group levels within a loop using an extract dataset or an internal table. They introduce statement blocks that must be closed with ENDAT. The statements between AT and ENDAT are only executed if the corresponding group change occurred.
When ever you use the control events and display the data you get some scrapped values.
So, to avoid it use <b>READ TABLE <table name> INTO <WA></b>. and then print the values.
Regards,
Pavan P.

Similar Messages

  • Problem with offset length

    Hi,
    i have a problem with offset length please see below code and suggest :
    data: content_new                LIKE soli-line.   "It has a length of 255 charecter
    content_new = 'MTE:SD0\nwssd01_SD0_00\CPU\CPU_Utilization'.
    content_new = content_new+4(251).
    it is giving result:
    content_new = SD0\nwssd01_SD0_00\CPU\CPU_Utiliza  "it is removing last 4 charecter of UTILIZATION also
    while i need :
    content_new = 'SD0\nwssd01_SD0_00\CPU\CPU_Utilization'.
    can anyone plz help me?
    regards.
    Moderator Message: Duplicate Post.
    Edited by: kishan P on Oct 28, 2010 9:44 AM

    You can find string length first. Subtract length by 4,  Then use like new = str+4(len), use condense if required.

  • How to use " PERFORM ", STATEMENT WITH OFFSET

    hI,
    How we use Perform statement with offset, like
      Example:   " PERFORM READ_SEGRELEASE USING INT_EDIDC+11."
    My requirement is to use Perform with Automatic length declaration.
    Automatic length declaration in PERFORM statement
    Kindly Explain and Provide some Example programm written in this situation.
    Thanks,
    P.N.Kumar

    Hiere is an example of what you probably require:
    DATA:
    lv_offset        TYPE syoffi,
    lv_length        TYPE flength,
    lv_field          TYPE string.
    lv_field  = 'This is my value: hello world'.
    lv_length = 5.
    lv_offset = 18.
    PERFORM read_segrelease USING lv_field
                                                            lv_length
                                                            lv_offset.
    *&      Form  READ_SEGRELEASE
    *       text
    *      -->P_LV_FIELD  text
    *      -->P_LV_LENGTH  text
    *      -->P_LV_OFFSET  text
    FORM read_segrelease USING    p_lv_field         TYPE string
                                                         p_lv_length      TYPE flength
                                                         p_lv_offset      TYPE syoffi.
      DATA:
      lv_result    TYPE string.
      lv_result = p_lv_field+p_lv_offset(p_lv_length).
      WRITE: / lv_result.
    ENDFORM.                    " READ_SEGRELEASE

  • Bug report about create new footprint with Rounded rectangle in 3D info Bottom

    I create new footprint with rounded rectangle in 3D info Bottom,the rounded rectangle must be in bottom,but In fact,the rounded rectangle
    created in top layer.i think it's wrong.
    I used ultiboard 10.1.357.

    Hi,
    Thank you for reporting this. This has been a long standing issue with Ultiboard and we are looking into resolving this.
    There is a work around although a very inconvenient one. You can set the height to what you require and use a negative offset to move the shape to the other side of the board. The 3D shape will appear on the other side, but in reality is just shifted, not mirrored.
    Hope that helps. We apologize for the inconvenience.
    Yi
    Software Developer
    National Instruments - Electronics Workbench Group

  • About Jdeveloper10g new feaure  with Jhs9.0.5.1 compatibility

    In Jdeveloper10g have new feaure about Visual Editor, that will allows developer to work in both visual and code views separately or simultaneously. But I try this feature in Jhs9.0.5.1 with BC4J/Struts solution, the JSP seems did not have this feaure ?
    and about disable the Struts technology awareness of JDeveloper 10g, whether cause disable "Visual development of application page flow using Apache Struts" , the page flow visualize is whether still support in Jheadstart9.0.5.1 environment ?

    Ting Rung Dai,
    About using the JSP Visual Editor:
    I have used the JSP Visual Editor myself with Jhs9.0.5.1, it works fine. One reason I can think of why it might not work in your case, is that you have JSP's that were generated with an earlier version of JHeadstart. Older versions of JHeadstart generated JSP's that started with a line like this:
    <?xml version = '1.0' encoding = 'ISO-8859-1'?>
    This line prevents the JSP Visual Editor from rendering correctly. You can remove that line without changing the functionality of the JSP, and then the JSP Visual Editor should work again.
    About the disabling of Struts technology awareness:
    unfortunately, this disables the page flow visualization as well. As soon as JDeveloper bug 3607211 is fixed (causes CPU to hang when some types of struts-config.xml files are opened), the Struts technology awareness can be enabled again. You could also take the risk and try if your particular struts-config.xml file does not run into this bug, but if it does, you will have to forcefully end the JDeveloper session.
    Until then, you can still use the other new features in JDeveloper 10g like the Visual JSP Editor, the much enhanced Java coding support, etc.
    Hope this helps,
    Sandra Muller
    JHeadstart Team

  • About at new  control statement

    hello everybody
                                I need a small information about  at new control ..like when i'm using this control to get every new vendor  details ...in the out put its coming the related data like ********** .why its comin like this .can i know .please help me out .
    thanks&regards
    Lavanya

    AT for group change
    Change of group when processing loops of extracts and internal tables.
    Syntax
    AT NEW <f>.
    AT END OF <f>.
    AT FIRST.
    AT LAST.
    AT <fg>.
    The statements are used to process group levels within a loop using an extract dataset or an internal table. They introduce statement blocks that must be closed with ENDAT. The statements between AT and ENDAT are only executed if the corresponding group change occurred.
    When ever you use the control events and display the data you get some scrapped values.
    So, to avoid it use <b>READ TABLE <table name> INTO <WA></b>. and then print the values.
    Regards,
    Pavan P.

  • Paste image into new frame with same offset

    InDesign CS4-- I'm trying to copy an image from one frame and Paste Into another frame on the same page, and have it appear in the same position within the frame. I want it to adhere to the offset coordinates of the previous frame, but instead, it uses the offset coordinates of the page, or centers the image within the new frame. As I recall, CS2 or CS3 had a feature that allowed me to do this, but I cannot figure it out in CS4. Please help! Thanks.

    Thanks, Rob. Unfortunately, I got a new error with the latest script you posted (sorry--not trying to be a pest!!). It says,
    Apple Script Error!
    Error Number: -2753
    Error String: The variable myRend is not defined.
    (One thing that's different is I'm working on a different machine than I was the first day I posted about this, but I'm using the exact same version of InDesign. Would this make a difference? I forgot to copy the original script file from the other computer before coming to work today... If I need to do that, I can.)
    Thanks for your continued help!

  • IDCS3 - Paste image into new frame with same cropping offsets?

    Anyone know if there's a better way do to this?<br />It used to work in CS2, and (I know this comment won't be popular, but since half the studio I'm trying to convert brings up this point, I'll pass it along <G>), it's always worked in Quark. <G><br />http://indesignsecrets.com/paste-image-into-new-frame-with-same-cropping-offsets.php<br />Be nice to get this to work without having to jump through hoops.<br />(And please, please don't tell me I need to update to CS4 to get this basic functionality BACK).<br />k.

    Thanks, Rob. Unfortunately, I got a new error with the latest script you posted (sorry--not trying to be a pest!!). It says,
    Apple Script Error!
    Error Number: -2753
    Error String: The variable myRend is not defined.
    (One thing that's different is I'm working on a different machine than I was the first day I posted about this, but I'm using the exact same version of InDesign. Would this make a difference? I forgot to copy the original script file from the other computer before coming to work today... If I need to do that, I can.)
    Thanks for your continued help!

  • Hi everyone, I have LR 5 that I purchased with a serial number and about a week ago I got the message about a new update, I want to get LR 6 but not the creative cloud, last time from LR4 to LR5 there was just an update without buying the creative cloud,

    Hi everyone, I have LR 5 that I purchased with a serial number and about a week ago I got the message about a new update, I want to get LR 6 but not the creative cloud, last time from LR4 to LR5 there was just an update without buying the creative cloud, is that possible from LR5 to LR6? Thanks so much.

    Welcome to Apple Discussions!
    You can't install 9.2.1 or earlier on any Mac that is only Mac OS X bootable. In fact you need to use the restore disks which came with those Macs to install 9.2.2 on those Macs. 8.6 is only possible to install on Macs which came with 8.6 or earlier. The 9.1 disk may be useful for your 1999 PowerMac G4, but won't be of any use for a 2006 Powerbook G4.
    Adobe Pagemill does not follow w3.org web publishing standards. If you want a webpage editor, get http://www.barebones.com/ BBEdit
    MS Office, there is a free Mac OS X alternative in http://www.neooffice.org/
    Or you can upgrade to the full Office 2004 for the Mac, or get http://www.thinkfree.com/ or Open OS X Office.
    Wordperfect files can be converted to Word files with http://www.dataviz.com/ 's Maclinkplus.
    Microsoft no longer has Internet Explorer for download (that quit being offered January 2006), though that is covered more in my FAQ:
    http://www.macmaps.com/browser.html
    As for other Mac OS X inquiries, I strongly recommend seeing my other FAQ:
    http://www.macmaps.com/macosxnative.html
    which should answer most of your other questions. If you have further questions, please feel free to ask me.
    Disclaimer: Reference to links I make to my Macmaps.com website are a for your information only type reference. I do not get any profit from this page, and it is open to the public.

  • I have an iMac purchased new about 5 years ago with OS 10.4.11. I would like to upgrade to Lion. I currently have a 2.33 GHz Intel Core 2 Duo processor with 2 GB of ram. Can I upgrade to Lion, and what is the best way to do so?

    I have an iMac purchased new about 5 years ago with OS 10.4.11. I would like to upgrade to Lion. I currently have a 2.33 GHz Intel Core 2 Duo processor with 2 GB of ram. Can I upgrade to Lion, and what is the best way to do so?

    From what I read here:
    http://www.tuaw.com/2011/06/06/lion-...u-2-gb-of-ram/
    s long as they already have Snow Leopard 10.6.8 installed in it.All a person needs to do with that type of iMac is to upgrade/max out their Ram. They claim that an Interl iMac with Core 2 Duo is all that is needed, as long as it has OS 10.6.8 installed. They say you don`t need  the "Core i3, Core i5, Core i7, or Xeon processor"
    But I wonder about the RAM speed, the iMac 2.33Ghz uses DDR2 SDRAM,  which I believe is rated at 667Mhz. Lion maybe installed but it might be problems running smoothly or not?
    Did some quick checking and the iMacs apple is selling this year use 1333MHz DDR3 SDRAM.
    The only thing to do is to make sure you have a good back-up, Install your RAM and install Snow Leo, then wait a couple of hours and install Lion.
    Good Luck

  • I have just bought a new pc with windows 7 my old one can not be started so I can not deauthorise etc, how do I now put my iphone 4 on my new computer, I don't care about the songs I have those on external hard drive, but I don't want to loose my contact

    I have just bought a new pc with windows 7 my old computer cannot be started so I cannot deauthorise it etc, how do I now put my iphone 4 on my new computer, I don't care about the songs I have those on external hard drive, but I don't want to loose my contacts, calenders etc

    Terry,
    Plug your iPhone 5 into your Leopard Machine.
    Fire up iPhoto.
    The phone should become available in iPhoto, and then you can import the camera roll.
    -Alan.

  • I have LR4 already installed and a new disc with LR5 on it (never activated - have serial number).  I do not have a drive on my computer to install from the disc.  How do I go about upgrading to LR5?

    I have LR4 already installed and a new disc with LR5 on it (never activated - have serial number).  I do not have a drive on my computer to install from the disc.  How do I go about upgrading to LR5?

    Download the installation file(s) and use the serial number you have to activate it. 
    Lightroom - all versions
    Windows
    http://www.adobe.com/support/downloads/product.jsp?product=113&platform=Windows
    Mac
    http://www.adobe.com/support/downloads/product.jsp?product=113&platform=Macintosh

  • Issue with : Stateful BSP Applications: New State Management Option

    Reference:weblog by Thomas Jung -  /people/thomas.jung3/blog/2004/11/09/updated-stateful-bsp-applications-new-state-management-option
    I see a comment by one user to send the complete code... I am not sure what else can be sent   - try it out rather than getting spoon-fed. - getting offline - sorry...
    I had two issues with this ITSM way of session handling.
    First - if you are using an SP42 environment, check CL_BSP_RUNTIME=>ON_SESSION_CMD() to see if CANCEL is defined as an option. If not make sure that you use &sap-sessioncmd=CLOSE" instead of the &sap-sessioncmd=CANCEL" . If CANCEL is not defined , it will give you shortdumps...
    Second - when I closed the window, the session was not terminated. I used onbeforeUnLoad="exitBSPApplication(); instead of onUnLoad="exitBSPApplication(); and it worked fine. Not sure if it has any other issues.
    But now I am facing a new issue... all but one application is not ending... I have no clue on why this is happening.. I am still checking..
    Thanks Thomas, you are the best, as always...

    Thanks for checking the code in your system.
    After some investigation, I found the behavior as explained below.
    If the actual url has any fields passed as parameters, e.g.. /default.htm?var1=a&var2=2 ...
    - if I use CANCEL as the option, a shortdump is created and the session is not closed. if I use CLOSE, Session is terminated and no shortdump happens.
    If the actual url does not have any parameters, e.g.. /default.htm ...
    - CANCEL does the work, but CLOSE does not exit the session.
    In my applications I used request->get_form_fields to see if there are any parameters, and if there are, then I use CLOSE as the option and else, I use CANCEL. So now, the session
    management works beautifully...
    There is a good chance that I am doing something wrong here too.

  • Your opinion about creating new accounts, FSV and legal statements

    Hello friends.
    I was asked to cretate a managerial statement with New GL accounts for managerial postins only (postings on these new accounts can not influence balances of legal Balance sheet and P&L).
    Dou you see any problem if I create those Gl accounts in the same Chart of accounts used by the legal staments (balance and P&L) and include them in a new FSV?
    Thank you,
    Naej

    Hi Naej,
    I can see two solutions to your requirement:-
    1. Create the seperate range of managerial gl accounts such that their totals comes to zero and include in FSV as non-assigned account, so will not impact your main balance sheet and P&L account.
    2. Create a new ledger for managerial account and post to the manegerial account only in these ledger in addition to the normal posting. This will clearly seperate the legal books away from the managerial books.
    Regards,
    Gaurav

  • Hey, I'm trying to authorize my new laptop with my iTunes account. How would I go about doing this?

    Hey, I'm trying to authorize my new laptop with my iTunes account. How would I go about doing this?

    Hi Michael1296,
    Thanks for visiting Apple Support Communities.
    Here are the steps to authorize a computer in iTunes:
    How do I authorize a computer?
    Open iTunes on the computer you want to authorize.
    Choose Store > Authorize This Computer from the menu bar.
    You might need to show the menu barto see this option in Windows. In earlier versions of iTunes, you can access this option from the Advanced menu.
    Enter your Apple ID and click Authorize.
    If your Apple ID uses an expired MobileMe account, you can still use it to authorize your computer.
    If iTunes asks you to authorize your computer again, it won't use a new authorization. iTunes uses the same authorization for the same computer.
    You can find these steps and more information at this link:
    Authorize your computer using iTunes
    All the best,
    Jeremy

Maybe you are looking for