Loop and read issue

Hi Experts
I am trying to do basically as shown below
LOOP AT T_EDID4 INTO WA_EDID4 WHERE DOCNUM = T_EDIDC-DOCNUM .
READ TABLE T_EDID4 WITH KEY DOCNUM = T_EDIDC-DOCNUM
                            SEGNAM = 'E1KNVVM'
if sy-subrc eq 0 .
endif.
endlloop.
If there are more than 1 E1KNVVM for idoc number , how can i make sure not to read the segnam which has already been read

Sanju,
  While extracting the  data into T_EDID4 take the data of  "SEGNUM" column from EDID4 table.
SORT : T_EDIDC BY DOCNUM,
            T_EDID4 BY DOCNUM SEGNAM SEGNUM.
LOOP AT  T_EDIDC.
   LOOP AT T_EDID4 INTO WA_EDID4 WHERE DOCNUM = T_EDIDC-DOCNUM
                                                             AND   SEGNAM = 'E1KNVVM'
                                                             AND   SEGNUM =  T_EDID4-SEGNUM.
      if sy-subrc eq 0 .
       endif.
endlloop.
Don't forget to reward if useful...

Similar Messages

  • How to loop and read repeating table data of infoPath form in Visual studio workflow.

    Hi,
    I am trying to read info Path form repeating table data in Visual studio workflow.
    could anyone elaborate me in brief how to loop through repeating table and read all rows value one by one in workflow.
    any help would be more then welcome. 
    Thanks...

    Hi Rohan,
    According to your description, my understanding is that you want to create a Visual Studio workflow to get data from info path repeating table.
    I suggest you can submit Repeating Table to a SharePoint List and then you can create a .NET workflow to read data from the SharePoint List.
    Here are some detailed articles for your reference:
    Codeless submitting InfoPath repeating table to a SharePoint list
    Create a Workflow using Visual Studio 2010
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • LOOP and Read statements

    Hi abapers,
                        I want to know the difference between statements.
    SELECT MATNR MAKTX FROM MAKT INTO TABLE IT_MAKT.
    SELECT EBELN EBELP ... ..... ..... FROM EKPO INTO IT_EKPO WHERE MATNR = IT_MAKT-MATNR.
    1st statement
    LOOP AT IT_MAKT INTO WA_MAKT.
    READ TABLE IT_EKPO INTO WA_EKPO WITH KEY MATNR = IT_MAKT-MATNR.
    2ND Statement
    LOOP AT IT_EKPO INTO WA_EKPO.
    READ TABLE IT_MAKT INTO WA_MAKT WITH KEY MATNR  = IT_EKPO-MATNR.
    Frnds , can anyone please help me to understand the exact difference between the above statements.
    Thanks,
    satish

    Hi,
    SELECT MATNR MAKTX FROM MAKT INTO TABLE IT_MAKT.
    collects matnr and maktx form makt and stores in it_makt
    SELECT EBELN EBELP ... ..... ..... FROM EKPO INTO IT_EKPO WHERE MATNR = IT_MAKT-MATNR.
    endselect.
    selects ebeln and ebelp from  ekpo and stores in it_ekpo
    1st statement
    LOOP AT IT_MAKT INTO WA_MAKT.
    READ TABLE IT_EKPO INTO WA_EKPO WITH KEY MATNR = IT_MAKT-MATNR.
    endloop.
    looping at it_makt compares matnr from it_makt with it_ekpo. reads and stores in work area wa_makt with primary key as index
    2ND Statement
    LOOP AT IT_EKPO INTO WA_EKPO.
    READ TABLE IT_MAKT INTO WA_MAKT WITH KEY MATNR = IT_EKPO-MATNR.
    endloop.
    looping at it_ekpo compares matnr from it_makt with it_ekpo . reads and stores in work area wa_ekpo with primary key as index
    regards

  • Windows 8.1 Install loop and boot issue

    Hi
    I have two harddrives in my desktop. I used to use one for my Windows 7 boot and one for data.
    Now I partitioned my C: drive for windows 7 as well as data, and I formatted my second HDD to install windows
    8 on.
    I burned my ISO to USB using rufus, no problems there. Once in the setup of windows 8, I used the command prompt
    to clean my disk and convert it to GPT. (I first tried to install windows 8 on a partition of the same disk win7 runs on, but I'd have to clean the disk to convert it, which would mean I'd lose my win7 boot and files).
    The setup continues and all seems to go well. I get to the point where it says "Finalizing setup"
    and then it says it will reboot in 10 seconds. Now here's where the problem shows up. When it reboots, it restarts the setup all over again, instead of showing the usual "personalizing" phase.
    I tried unplugging my USB during the reboot so it wouldn't boot to that, to no effect. I also checked in my
    UEFI setup what my primary boot device was: "Windows Boot Manager". If I changed it to either of the other two options (SATA's), it booted my Windows 7. It seems as though it doesn't properly display the disk to which I installed windows 8, as it
    either restarts the setup or boots the other OS.
    If I check my disks when in Win 7, it shows the disk to which I installed win 8. It then has all the folders
    in it you'd expect when you installed an OS on it, such as Windows, Program Files, ...
    The only thing I notice that might be strange during the installation process is that, when you check the drivers
    of the disk I'm installing to, it doesn't display any. In all the tutorials I've read through though, it doesn't say anywhere that you have to provide those yourself.
    Any ideas as to what might be the problem?
    Thanks in advance

    Hi,
    Pleas make sure to boot your PC into UEFI mode, If you install Windows using the wrong mode, you won’t be able to use the features of that firmware mode without reformatting the drive
    Windows Setup: Installing using the MBR or GPT partition style
    http://technet.microsoft.com/en-in/library/dn336946.aspx
    http://technet.microsoft.com/en-in/library/hh825112.aspx
    "Once in the setup of windows 8, I used the command prompt to clean my disk and convert it to GPT."
    Does drive: C on this disk? If you want to convert the disk to GPT, make sure that the disk does not contain any partitions or volumes before you setup Windows 8, otherwise you will lose data. 
    Lastly, please make sure the bootable usb drive you manually created is not corrupted.
    Yolanda Zhu
    TechNet Community Support

  • Closing a serial port after executing a for loop of write and reads.

    Hello,
    Labview is opening and then closing each write to the port. I have tried to leave the close outside of the for loop, but labview wont allow it. What do I need to change to make all the writes and reads execute on 1 open and close of the serial port.?
    Thanks.
    Attachments:
    Controller.vi ‏27 KB

    J_es--
         The program that you posted looks to be ok for the most part, you might consider putting an open after your configure (but that's trivial). The other thing that is a minor issue is the loop tunnel coming out of your for loop is currently being auto-indexed.  This function is used to index data for each interation of the loop.  You are using a static address (not an array) and so you don't need this.  If you right-click and remove the auto-index the broken wire will go away. Other than that it should be ok.
         I would suggest looking at one of the shipping examples that come with LabVIEW.  "Basic Serial Read and Write" is essentially the same thing that you are doing and is tested here and might save you a bit of time.  Anyway, take a look if you have a second. Best of luck with your application!
    John H.
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • Performance syntax loop at  and read table

    in the routine , for reading one line in a internal table  , the syntaxe
      loop at  xxx where   and read tabl exxx   with key     XXXX
    has a great difference on performance or not?

    Loop at statement is used only for processing multiple records.Read table is used for reading a particluar record of an internal table.If you just need to check whether record exists in internal table, use can sort and use binary search with TRANSPORTING NO FIELDS addition. Also, try to use field symbols so that performance is increased.

  • Hi, i am having an issue with a basic motion scroll effect.  I already watched and read every tutorial out there regarding this topic and even tried the adobe chat support, but the guy on the other end of the line disconnected me-, probably he didn't unde

    Hi, i am having an issue with a basic motion scroll effect.
    I already watched and read every tutorial out there regarding this topic and even tried the adobe chat support, but the guy on the other end of the line disconnected me…, probably he didn't understand what i wanted from him because english is not my native language, so a will try to be very, very clear about this one..
    please note, that i am new to muse, this is my first project ever.
    my idea is as following:
    when the customer comes to our companies site, he just sees our logo on a white Background. the logo consists of, say, four elements. when the customer scrolls down, the logo starts to disassamble: first the first part of the logo flies out the left side of the site, then the second part of the logo vanishes down, then the third part of the logo flies to the right, then the fourth part of the logo flies to the top and out of the customers view. given what i have seen, it is possible to do that….
    so…..
    now i have the four parts of my logo imported as png files into muse and assembled them in design view to build our companies logo. I select every one of the four parts and go into the scroll effects tab left beside the layers tab. first i enter the same values for every one of the four parts: initial motion: 0x and 0x again for the left and right motion; key position ( t-handle) : 0px; final motion: 0x and 0x again for the left and right value.
    now i hit "preview".: the logo is "pinned" at the correct position, i can scroll but the logo stays where it is. so far so good….
    now i select all the four elements again and go to the scroll effecs tab. at "final motion", i click the down arrows and enter 1x. I hit Preview…
    when i am scrolling down the WHOLE logo goes down…. so far so good.
    NOW i want the first part of the logo to go down, THEN the second part to go left, THEN the third part to go up, THEN the fourth part to go right.
    so i select ONLY the first part, go to the scroll motion tab, at "final motion" i click the left arrows, then i enter 1x.( the up-down value, i set to 0 again).. i hit Preview…
    the first part of the logo goes left as soon as i start scrolling, the other three parts still go down at the same time…
    NOW i want the second part of the logo to start moving, when the first part has left the scene, not at the same time as the first part.
    SO I SELECT THE SECOND PART AND DRAG ITS T-HANDLE (KEY POSITION) DOWN TO, LETS SAY, 200PX. SO IT STARTS MOVING ONLY AFTER THE CUSTOMER HAS REACHED THAT POINT, RIGHT?
    BUT WHEN I PREVIEW THAT ****, THE LOGO IS NOT TOGETHER ANYMORE, THE SECOND PART IS FLOATING ANYWHERE ELSE BUT WHERE IT SHOULD BE…..WTFF????
    short: when i move the t handle, the initial position of the object changes. thats what i said to the adobe employee, but he said, that thats the expected behavior….
    but if thats so, how can i have my four parts correctly together, so they form my logo, but with different t handles, so that they all start to move at different times??
    Pleeease help me, i am dying of frustration here…..:( that behavior cant be right, right?
    Thanks so much to everyone who actually reads this post and tries to help…….
    All the best,
    Niki Lapan

    Thank you so much for helping,
    But i really wonder how you did that. did you always switch between design view and preview view, then change the key position for 2px then switch back, to align the four letters? because i imagine that can get really frustrating, if you have a logo consisting of 58 parts instead of 4!:)
    Anyway thank you very much for your time and effort!!!!

  • How can I download my issues with Reader's Digest when each time a pop appears and reads " the item you tried to buy is no longer available"?

    I can no longer download my purchased Reader's Digest magazine since August as it requires updating the RD app. So when i try to download the RD app a pop up appears and reads " the item you tried to buy is no longer available". What does this mean and what do I do? I have 2 pending reader's digest issues that needs to be downloaded.

    I don't have an answer for you but it may help to have a look at the "More Like This" section at the far right of this page. Reading those additional threads may get you some idea of the actual issue and how to resolve it. It could be that problems were found with the app and it was temporarily pulled for some reason which may be the reason for the "the item you tried to buy is no longer available" message.

  • Acrobat 7.0.9 and Reader 9 - Issues opening PDF in IE6

    I'm hoping someone can help.  All our users have Reader 9 installed as part of the corporate image.  Some of our users run Acrobat 7.0.9 as well.  For those users, we are experiencing issues where when we try to open a PDF in IE6.  We get the following error:
         SW:iexplore.exe_application error - The instruction at "0x052f51b6" referenced memory at "0x00000010".  The memory could not be "read".
    I've opened Acrobat 7.0.9 and checked Edit, Preference, Internet.  The option to untick "Display PDF in browser" is greyed out.
    I've opened IE6 and gone to Tools, Manage Add-Ons and there is nothing listed for "Acrobat Control for ActiveX (pdf.ocx)" listed.
    I've tried uninstalling Acrobat and reinstalling.  I've then also tried running a repair on both Reader and Acrobat, but nothing seem to be fixing the issue.  This has only started happening since we upgraded Reader to 9 in our image.
    Any advice on how to fix the issue would be greatly appreciated.

    From: <[email protected]><br /><br />| Adobe STRONGLY recommends that you DO NOT not have Acrobat and Reader installed on the<br />| same system. If you have just Acrobat installed, it will perform all the functions<br />| Reader does and much more. Therefore, you should uninstall Reader, install Acrobat, and<br />| DO NOT install Reader again.<br /><br />| Ken F.<br /><br />Not to mention that nobody should be using Adobe Reader v7.x do to all the vulnerabilities <br />in it that are *actively* being exploited !<br /><br />-- <br />Dave

  • PS CS3, Camera Raw 4.6 Update and Nikon D810 NEF File Reading Issue

      Currently Have Photoshop CS3 & Adobe Bridge CS3 2.1.1.9.
    According to Adobe, Camera Raw 4.6 supports Nikon D810 NEF files.  I have downloaded Camera Raw 4.6 Update. When
    I try to open Nikon D810 NEF files, I get Photoshop CS3  error that says
    "cannot complete request your because it is not the right kind of
    document. These NEF files wont open in Adobe Bridge at all.  What am I doing wrong?

    Hey,
    Before I purchased, let me get your thoughts on another option that just occurred to me which involves:
    1)Editing my D810 NEF files in LR 5.6, which I have, then exporting/saving the edited files as JPEGs.
    2) Doing any additional editing, as necessary (i.e. that might require layering or selections..etc) , with the JPEGs  with Bridge or PS CS3. 
    This method wont involve any additional software purchase now.. right?    Am I missing anything.   here?    Since my final output to my customers are JPEGs any way, wont this work?   Will I be at any disadvantage.   Am I missing anything.   here? 
    From: ssprengel <[email protected]>
    To: charles cash <[email protected]>
    Sent: Monday, October 6, 2014 9:49 AM
    Subject:  PS CS3, Camera Raw 4.6 Update and Nikon D810 NEF File Reading Issue
    PS CS3, Camera Raw 4.6 Update and Nikon D810 NEF File Reading Issue  created by ssprengel in Adobe Camera Raw - View the full discussion  
    You can buy it from here:
    http://creative.adobe.com/plans
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6795004#6795004
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: 
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link. 
    Start a new discussion in Adobe Camera Raw by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • How to write select statement before the loop and how to use read statemnt

    Hi,
    Recently our system has changed from 4.6 to ECC6.
    As its migrated its showing lots of errors like in between loop and endloop there should be no select statemnt........
    Can any one please tell how to write that coding in ECC6 , how can i change the code......
    In between loop and endloop i am having lots of select statemnts.....ple tell thye coding how can i select before the loop starts and
    how to read that internal table in loop.

    Hi Deepthi,
    You can do as per below:
    1) Select the required entries from the tables you need (VBAK, VBAP, KNA1, etc)
    SELECT VBELN ERDAT KUNNR
        into table it_vbak
        from VBAK
    where VBELN = S_VBELN. "Selection criteria
    If sy-subrc = 0.
    SELECT VBELN POSNR MATNR
        into table it_vbap
        from VBAP
    for all entries in it_vbak
    where VBELN = it_vbak-vbeln
    SELECT KUNNR NAME1
        into table it_vbak
        from VBAK
    where VBELN = it_vbak-vbeln.
    endif.
    2) Loop at the entries, and read internal table it-kna1 for customer info.
    Loop at it_vbak into wa_vbak.
    read table it_kna1 into wa_kna1 with key kunnr = wa_vbak-kunnr.
    if sy-subrc = 0.
    endif.
    loop at it_vbap into wa_vbap where vbeln = wa_vbak-vbeln.
    endloop.
    endloop.
    This is the basic idea and short example of how to extract entries and read internal table.
    Hope this helps.
    Regards,
    Patrick

  • Acrobat and Reader Version Issues

    Hi,
    I've created a PDF porffolio made up of several PDFs. When I view the PDF portfolio at the "top level" (where you see names of the individual PDFs on top of a window that looks like it should show the first page of the PDF) all it says in the window is "For the best experience, open this PDF porffolio in Acrobat X or Adobe Reader X, or later. However, I have Acrobat XI and am viewing it in Acrobat XI, so why am I having this issue?
    I can at least open the PDF portfolio and all the PDFs inside. My girlfriend gets the same window when I try sending it to her and can't open the PDF portfolio at all andl she has Acrobat 11.0.3. Why is this happening to her?
    Attached is a screenshot of my issue.
    Thanks.

    Yes, I guess I did. So I guess that's the issue. Thanks!
    Since you seem to know Acrobat and Reader pretty well, I have two other issues I'm dealing with:
    1.) I'd like to create a PDF portfolio of my graphic design work. In the past I've created a PDF portfolio and added other PDFs or jpegs into them with difference pieces of work. However, is it possible to create a portfolio where a multi-page PDF (within the larger portfolio) can be viewed in it's entirety (at the top level of the portfolio) without having to open the file? The idea would be that you would see one page of the portfolio with a piece of work, scroll to the right and see another, then when you get to the multi-page PDF if you kept scrolling right it would just take you through that entire PDF instead of having to open the file. Basically, what I'm trying to avoid is having to create jpegs of individual spreads of an InDesign file so they can be viewed seamlessly in a PDF porfolio instead of being able to drop in a multipage PDF. Let me know if you need clarification on this.
    2.) Finally, when I've tried to re-order files within PDFs, I've occassionally had success renaming the files (ie 1.jpg , 2.jpg, 3.jpg, 4.pdf, etc) in the "display name" column under the Files tab. I once had success doing an "Initial Sort" for display name but other times it hasn't worked. Is there anyway to make re-order work consistently?
    Thanks!

  • Plugin issue after using SignPlugin and Reader-enabling

    Hi all,
    I would like to ask for a help with plugin that we have developed for Adobe Reader.
    We are running into an issue with the plug-in and I was hoping that you can help me out.  It looks like plug-in works perfectly in the Acrobat but we have an issue with getting it  to work with Reader as described below.  I would greatly appreciate your help.
    We have a problem with plugin after signing it using RIKLA certificate provided by Adobe and Reader-enabling.
    Our plugin has been developed to allow users to sign PDF XML data from Reader user interface using custom library (sign library) and msxml3.dll library ( to transform PDF form XML into custom XML format). Plugin target is Adobe Reader 9 and it has been tested using Adobe Acrobat 9 earlier. Recently we received RIKLA certification key and after we tried to sign plugin and use it in Reader we started to have problems.
    Plug-in, compiled directly from source code and installed in Adobe Acrobat 9 is working correctly. We haven’t experienced any issues and everything seems to be working properly.
    The same plug-in signed using SignPlugin tools from Acrobat SDK 9.1 (command SignPlugin -kp keypairFileName -cf Reader_Integrated_Key_FileName  MyPlugin.api) and RIKLA key is not working correctly in Adobe Reader 9.
    The problem appears when plugin is trying to access external library msxml3.dll and execute createProcessor() function.  The same function work properly in Adobe Acrobat 9 before sing plug-in with RIKLA key.
    Below there is fragment with code that doesn’t work in Adobe Reader after reader-enabling but works in Adobe Acrobat.
    Plug-in crushes in line pProcessor = pTemplate->createProcessor();.
    try{
      pProcessor = pTemplate->createProcessor();
    } catch(_com_error &e) {
      printf("Error setting XSL style sheet : %s\n",
             (const char*)_bstr_t(e.Description()));
      AVAlertNote("Error setting XSL style sheet");
      AVAlertNote(e.Description());
      exit(-1);
    Code that we use in catch() block lets us know that error source is “msxml3.dll” library.
    As we have discovered problem occurs only after Reader-enabling .api plugin file. Clear compiled .api file works properly in Adobe Acrobat 9 without any problems.
    We would like to know if you have experienced any similar issues? If yes, what have caused them?
    Why same plugin is working in Acrobat 9 before signing and after signing using provided certificate it stops working?
    Are there any restrictions of using external libraries in Reader that are not working there, and these restrictions are not obeyed in Acrobat?
    Any help would be greatly appreciated.

    Hi Irosent,
    Is there a way that Acrobat and Reader differentiate between library initialization?
    Would it be useful if I place any part of code or project configuration for you so maybe you will be able to help?
    Libraries that we use (our own dll files) we place in windows/system32 folder (there also exists msxml3.dll file that we use).
    Here are preprocessor definitions that we have defined:
    _AFXDLL
    _USERDLL
    READER_PLUGIN
    NDEBUG
    WIN_PLATFORM
    WIN32
    _WINDOWS
    WIN_ENV
    ACRO_SDK_LEVEL=0x00090000
    As for library msxml3.dll that we use in code we have:
    #import <msxml3.dll>  named_guids
    using namespace MSXML2;
      MSXML2::IXMLDOMDocumentPtr
              pXml(MSXML2::CLSID_DOMDocument);
      MSXML2::IXMLDOMDocumentPtr
              pXslt(CLSID_FreeThreadedDOMDocument);
      IXSLTemplatePtr pTemplate(CLSID_XSLTemplate);
      IXSLProcessorPtr pProcessor;
    Later there is a part of code that I have posted in first post and where plugin crashes.
    I would really appreciate your help.

  • I need to loop through 1 table and read another until a value changes

    i need to read a table and sum the quantity field until a reason code changes.  how do I go about doing this?

    sort itab by reasoncode.
    Loop at itab.
    quantiy = quanity  + itab-quantity.
    at end of reasoncode.
    jtab-reasoncode = itab-reasoncodee.
    jtab-sum = quantity.
    append jtab.
    clear quantity.
    endat
    endloop.
    or
    sort itab  by reasoncode.
    loop at itab.
    at end of reasoncode.
    sum.
    jtab = itab.
    append jtab.
    endat.
    endloop.
    or
    let us say itab and jtab are two tables and you want to loop through itab and read jtab for reasoncodes.
    if jtab has only one entry for each entry in itab then use read else use loop.
    loop at itab.
    loop at jtab where reasoncode = itab-reasoncode.
    quantiy = quantiy + jtab-quanity.
    endloop.
    endloop.
    or
    loop at itab.
    read table jtab with key reasoncode = itab-reasoncode.
    if sy-subrc eq 0.
    endif
    endloop.

  • Have some issues downloading itunes. getting a pop up that reads MSVCR80.dlll and another one pops up and reads something about a moblie device

    have some issues downloading itunes. getting a pop up that reads MSVCR80.dlll and another one pops up and reads something about a moblie device

    See Troubleshooting issues with iTunes for Windows updates.
    tt2

Maybe you are looking for

  • Autofill not working after Restoring Shuffle

    I have an old shuffle (bought in 2006). I was forced to restore it in order to put new music on it.  After restoring, I clicked "autofill" and it won't work - it says all the songs in my library are already on my ipod, but they aren't, it was wiped c

  • Cannot unzip .zip even with Archive Utility

    Hi, I have problem unzipping a .zip file. When I use the Archive Utility to unzip it, it yields a file with the same name with .zip.cpgz on its end. When I subsequently make another trial - to unzip this new file, it yields the very same file only wi

  • Updating episode on iTunes store

    hi there, i updated my feed for the itunes store because i added a new video podcast. does it take a little while before it actually gets added in and for the changes to take place? thanks, andy

  • Dreamweaver CS5 Slow to Open File... Enable Related Files

    Hello, I have a page that uses the Fancybox script and it takes Dreamweaver 50 seconds to open this page. This script requires jQuery, so in the head of my page I have this: <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.

  • UGA running into the problem

    Hi, I am studying Oracle architecture and strucked badly in UGA and PGA like sort area kinda.. can any one provide some links or doc's to get out this thing early and effectively... one more thing is there any good book or doc to become master in PL/