Two Loop for the position

Hi people i explain my situation.
I have a table with some component.
Every component have a type. For example:
Pos  Name  Netprice Type Uepos
10    xxxx    xxxx      TAP 
20    yyyy    yyyy      TAN     10
30    zzzz    zzzz      TAN     10
Now i must do it.
Loop at this table, if TYPE = TAN i read the UEPOS value and get it into a Zvariable.
Now i must reloop in the table because i must SUM the Netprice of every element Type TAN that have the same UEPOS, and this UEPOS must be the same of the POSNR of the element that have the Type TAP.
Understand? I Know it's difficolt to explain. I try more in another type.
I have this situation:
POS NAME NETPR
10     A        0
20     A.1     xx
30     A.2     yy
40     B        0
50     B.1     xx
In this actual situation the A.1 are dependento of A and i wanto to sum in the NETPR of A the netpr xx , yy of the A.1 and A.2. then the same for B position.
Thanks for the attention.

hey i think you can do like this.
SORT ITAB by TYPE UEPOS.
clear: w_type, w_uepos, w_netpr.
loop at itab.
if w_type ne itab-type
or w_uepos ne itab-uepos.
here you can capture previous type and uepos.. so write logic to use netprice before clearing that.
clear w_netpr.
w_type = itab-type.
w_uepos = itab-uepos.
endif.
w_netpr = w_netpr + itab-netprice.
endloop.
Pos Name Netprice Type Uepos
10 xxxx xxxx TAP
20 yyyy yyyy TAN 10
30 zzzz zzzz TAN 10

Similar Messages

  • Can we create two POs for the same 3rd party Sales Order?

    Hi MM experts,
    Issue: Can we create two POs for the same 3rd party Sales Order
    In Third party purchase process, first sales order created with a spl. item category  and it creates the PR automatically with the Sales order material and Qty and this PR converted PO.
    They got a pur.req. for sale order on same item for same delevery date. They did not get any warning msg. saying that a PO was prviously placed against this sale order.
    How it is possible that we were able to place another PO? concern is that second PO was palced against SO which was already used & completed. they were able to place 2 POs for the same customer same delevery date. How it is possible?
    If anyone face the same issue, please let me know if you have any answer to this questions.
    Thanks in advance.
    Suresh.

    Suresh,
    It is hard for me to give you a definitive answer since you have created a customized solution.
    How it is possible that we were able to place another PO? concern is that second PO was palced against SO which was already used & completed. they were able to place 2 POs for the same customer same delevery date. How it is possible?
    Normally, the system will not do this.  A third party PR or PO will be 'account assigned' to the Sales order.  SAP standard 3rd party will not create additional purchase reqs unless there has been manual intervention.  Try searching for changes in the Sales order and changes in the original purchase order.  They may give you a clue.
    I believe the normal Item category for third party SO is TAS (I am working from memory here, I am not in front of a system).  I don't know what ZTAG does.  I confess I am not an SD expert.  You might also want to post your question in an SD forum.
    You mention two custom applications, ZMMPLAN and ZSTPMP.  These somehow have functionality that is used to help you convert your PRs to POs.  If I were in your position, I believe I would also look at these applications for clues to how they might be contributing to your problem.  And please don't send me details about these apps.  I will not comment on custom code in this forum.
    Sorry I can't be of more help.
    Rgds,
    DB49

  • Use two indicators for the same variable in two different VIs

    hello, I want to use two indicators for the same variable in two different VIs running at the same time
    should I use global variables?? I want to avoid because I have lot of variables and it would takes too much memory,I tried with this code but the value of the second indicator is not updated 
    I tried to use the queue and it works but the problem is as i said previously that i have many variables shoud I use a queue for each one??
    what should I do?
    thank you in advance
    cordialy
    Attachments:
    projet.zip ‏13 KB

    CrisSTine01 wrote:
    hello, I want to use two indicators for the same variable in two different VIs running at the same time
    I'm a huge fan of User Events to send updates to GUIs from who knows where.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • The product that I purchased is not working!!!! I need help and I've been stuck in your "Contact us loop" for the last few days and I'm getting frustrated. How do I contact you for HELP!

    The product that I purchased is not working!!!! I need help and I've been stuck in your "Contact us loop" for the last few days and I'm getting frustrated. How do I contact you for HELP!

    Probably the best place to start is the right forum for your product. This is the forum for Distiller Server, a long dead product used by big companies, and probably not what you have. If you can't find the right forum, please let us know the FULL name of what you paid for (please check your invoice, as Adobe have many similar products), and we can perhaps direct you. Good luck!

  • How can I get the direction handles to show up for the Position attribute?

    How can I get the direction handles to show up for the Position attribute?
    I have CS3 and I did the formentioned test and was able to make the handles work for the scale attribute but they don't seem to show when editing the position values.
    *I am in the graph editor looking at the "value graph"
    *I select the keys and convert the keys to auto bezier (I also tried the ease in and out buttons)
    *It changed the graph the way you might think (no longer linear) however the handles are not showing to edit further.
    *I also tried using the "convert vertex tool" (part of the pen tool) and still no luck getting those handles.
    *the handles only show up in the speed graph but that does me no good.
    Please help!
    THANKS 

    I don't have CS3 installed on any of my machines any more but your value graphs for position should look something like this:
    There are no handles for position in the Graph editor. You adjust the position curve by editing the motion path in the composition window. Press the G key to bring up the pen tool, then use the modifier keys Crtl/Cmnd and Alt/Option to temporarily switch between select and convert vertex to adjust the paths. Changes will be reflected in the value graphs. You will get editable handles with scale and rotation because these are not spatial properties. Spatial properties, position, Anchor Point, all XY & Z coordinates are edited in the comp window or in the layer window after revealing the properties. IOW, you edit anchor point position paths by opening up the layer window and choosing Anchor Point from the display options.
    The Manual isn't wrong. Here's a link to the live docs.

  • Compare tables in two schemas for the table with particular column & value

    Hello All,
    I have a query to find out the list of table from a given schema to extract all the tables having a search column .
    ex :
    SELECT OWNER, TABLE_NAME, COLUMN_NAME FROM
    ALL_TAB_COLUMNS WHERE OWNER='<SCHEMA_NAME>'
    AND COLUMN_NAME='<COLUMN_NAME>'
    I want to compare two schemas for the same above query .
    Can we wirte a query on this - I am using SQL DEVELOPER , which has menu item - TOOL - database differneces to find the diffenence between two schemas but my requirement is to find the differences in two schemas for all the tables matching for a particular column ( as given in quer).
    Appreciate your help.
    thanks/Kumar
    Edited by: kumar73 on 29 Nov, 2012 1:50 PM

    Hi, Kumar,
    This is the SQL and PL/SQL forum. If you have a question about SQL Developer, then the SQL Developer is a better place to post it. Mark this thread as "Answered" before starting another thread for the same question.
    If SQL Developer has a tool for doing what you want, don't waste your time trying to devise a SQL solution. The SQL Developer way will probably be simpler, more efficient and more reliable.
    If you do need to try a SQL solution, then post some sample data (CREATE TABLE and INSERT statements for a table that resembles all_tab_columns; you can call it my_tab_columns) and the results you want from that data.

  • On iOS 7.0.2, after web (OTA) installation there are two icons for the app on the home screen; one is invalid.

    Hello,
    I have filed a bugreport, but I am curious if anybody else has noticed this.
    Summary:
    Icon that was displaying progress of installation stays on screen next to normal icon and it is impossible to delete it or start the app with it.
    Steps to Reproduce:
    1. Full factory reset of iPhone with iOS 7.0.2
    2. Open web page with link for OTA installation.
    3. After install is finished there are two icons for the app.
    Expected Results:
    Icon that was displaying the progress should disappear after installation.
    Actual Results:
    Icon that was displaying the progress stays on screen is not usable and cannot be deleted.
    Version:
    7.0.2
    Notes:
    Configuration:
    Server used to serve the page with installation files is "Server" app on MacBook Pro with Mountain Lion.
    The same happens if other servers are used; Ubuntu 12.04 LTS.

    Hello,
    I have the same problem!
    Any idea?
    Thanks.

  • Post a witholding tax in two countries for the same vendor

    Hi all,
    I would like to know if there is any way (standar not development) to post a witholding tax in two countries for the same vendor belonging to a company code. (extended witholding tax scene).
    System always display extended witholding indicators belonging to the country of the company code.
    Thanks in advance.
    Emilio Rozalén
    SAP FI Consultant.

    Hi B.Rama,
    I think so, but Do you know the meaning of country witholding field in vendor master?.
    Besides you can find this field in customizing, reports but I dont know its functionality.
    Thanks and regards
    Emilio Rozalé

  • I was charged two times for the same game

    I was charged two times for the same game...how can I get my money back?  I even was emailed a receipt for them both...no one noticed?  Please help me.

    How to report an issue with Your iTunes Store purchase

  • Why are there two prices for the same audiobook?

    Why are there two prices for the same audiobook in iTunes?

    May be one is abridged and one unabridged ? or they just may want to get the suckers that think the more expensive one is better ... haha.

  • Urgent: two authors for the same book

    I have a database with three tables: books, authors and aux.
    The books table stores the names of the books. The authors table stores the name of the authors. Table aux takes the id of the other two. I did this for the case of the same book has two or more authors
    The query I did was the following:
    SELECT authores.author, books.title
    FROM aux, authors, books
    WHERE aux.books_id = books.id AND aux.authors_id = authors.id
    ORDER BY books.title ASC
    How do I show the two authors for the same book?
    For now, I'm using a simple table:
    <table border="1" cellpadding="1" cellspacing="1">
      <tr>
        <td>author</td>
        <td>title</td>
      </tr>
      <?php do { ?>
        <tr>
          <td><?php echo $row_rsBooks['author']; ?></td>
          <td><?php echo $row_rsBooks['title']; ?></td>
        </tr>
        <?php } while ($row_rsBooks = mysql_fetch_assoc($rsBooks)); ?>
    </table>
    Thus, the table presents two results for the same book, instead of uniting the two authors of the same book.

    Thanks for the reply.
    In the meantime, got what I wanted. The expression looks like this:
    SELECT livros.titulo, GROUP_CONCAT(autores.autor SEPARATOR ',') AS Autores
    FROM livros INNER JOIN aux ON aux.livros_id = livros.id INNER JOIN autores ON aux.autores_id = autores.id
    GROUP BY livros.titulo

  • Two infopackages for the same DS-- IS combination initialised

    Hello Friends,
    Can we have two infopackages for the same DS-->IS combination initialised with the same selections conditions and init requests. I have seen this in my client system. How can this be achieved.
    Thanks for your help.
    ---Simmi

    That is not possible.
    Are you sure Inits were done for same selections ???

  • Two listener for the same queue - different extraction rule

    Hi all.
    I've the following situation that I'm trying to troubleshoot.
    OSB communicates with another system using JMS Queues.
    One queue for teh request, one for the response.
    Depending on the kind of service, the request is published on the request using a dynamical routing to a Business Service. Depending on the cases, this business service could be:
    1. Just insertion on the queue (no response required)
    2. "Queue Manager" - Insertion and wait for response (response required, JMS Correlation ID as correlation pattern)
    About the extraction from the response queue, when the messages are published from the "Queue Manager", then they must be extracted from the same resource based on the Correlation ID.
    Otherwise, all the messages published in other way (not the "Queue Manager" but the option #1), a different resource should extract them from the response queue (a proxy service with protocol JMS).
    What happens at runtime is that the messages published from the "Queue Manager" are extracted from the other resource.
    How can I solve this?
    Do I need to use two separate queues or there is a way to configure two different listener on the queue, one based on the JMS Correlation ID and the other one that extracts all the other requests?
    Thanks in advance to anyone that will help.

    Unfortunately, I've already evaluate the message selector option, but in the following case:
    BS1 (Request Only)----->JMSQRequest ----->Your Logic ----->JMS Reponse--->JMS Proxy service with Message selector
    The JMS Proxy with message selector should know the value that is the key for the extraction. In this case we have not this infornation since when we run this scenario there is an external system that extracts the request and provides the response... and in the middle we lost the informations (e.g. if we use a key ID, the Proxy with message selector doesn't knwo which value is has to search for in the ID).
    For the moment I think that the best solution could be to have two separate queues, but I'm trying to figure out if there is any other option.

  • Find the Difference in time for creation of two activities for the same SR

    Hi
    I need to find the difference in time of cretaion of two different activities for an SR. Is there any function which I can use to get the same
    For e.g.
    SR # |Activity Created Date |Duration
    123 12-nov
    123 13 nov 1 day
    Thanks in advance
    Meena

    There's a TIMESTAMPDIFF function.
    An example from the book Oracle CRM On Demand Reporting has the following example...
    TIMESTAMPDIFF( SQL_TSI_MINUTE, Activity."Start Time", Activity."End Time" )
    which would return the difference in minutes.
    As I type this, I'm thinking you probably know this and your problem is how to get the Activity start time for the next activity into this function. I sorry can't think of any way to do that.

  • Using two routers for the same SSID

    So here's my story. I have a standard Actiontec router in my basment, connected straight to the coax outlet, and connected by LAN Ethernet to a crappy computer nobody uses. It gives off a WPA2 wifi network, let's call it MyNetwork. For the longest time it's been the only router in the house. The coax outlet is on a splitter, splitting the coax outlet into one wire that goes to the Actiontec modem/router and the other to my TV STB. Recently we installed a new coax outlet on the other side of my house and next to it we have a brand new desktop computer that we use often. It has no wifi so and we can't run an ethernet cable throughout the entire house so we got a new Actiontec modem/router from our neighbor who just moved out. It's the exact same Actiontec device.
    What we want to do is make it so that both routers give off signal on the same MyNetwork we have to make it a wider reaching signal, and so that I can connect the new desktop computer to the new router with an ethernet cable. I've read so many guides and they're all so confusing and it's such a mess that I almost completely screwed over my network. it seems like the two routers are completely independent of one another, not even aware of the others' existence. The new router is definitely in range of the old one. I've logged into 192.168.1.1 on the new computer and the new router seems to think it IS the old router (or so I think). It showed me all the same devices that have connected to MyNetwork and such, but then again it's always hard to be certain exactly which device is which. After messing around I must have changed some IP address or something, but it seems that 192.168.1.1 doesn't take me to the Verizon login screen, but 192.168.2.1 does. Can I reset those IP addresses?
    And of course, can somone please provide a clean, easy to follow course of action as to how to set up two routers on one network?

    maxbirch wrote:
    ... I have a standard Actiontec router in my basement ... connected by LAN Ethernet to a computer ... It gives off a WPA2 wifi network, let's call it MyNetwork ... The coax outlet is on a splitter ... one wire that goes to the Actiontec ... other to my TV STB ...
    ... installed a new coax outlet on the other side of my house ...
    ... What we want to do is make it so that both routers give off signal on the same MyNetwork we have to make it a wider reaching signal, and so that I can connect the new desktop computer to the new router with an ethernet cable ...
    ... can somone please provide a clean, easy to follow course of action ... ?
    I suspect it might be a good idea to step back reconsider your ultimate layout.  Essentially you now have two (or if the STB is also included, three) coax drops connected to the ONT.  It seems that you desire that one of these service the STB, and the other two each service a desktop and a wireless access point.  If this is the case, continue reading.
    There is no need to consider the original Actiontec router as the primary router, wireless or otherwise.  Use the new coax location to connect to the primary Actiontec router (you can use either router).  For starters, reset both routers to their factory defaults using the reset switch on the back of each device (for details, do a search).
    Once the primary router has been located (or relocated) to the new coax drop, just connect the new desktop there using an Ethernet cable connected to one of the LAN ports on the back of the router.  Then set up your primary wireless network based on this router (once again, do a search on these forums for specifics on setting up a basic wireless home network).
    Now use the original coax outlet where the first router was located to set up another access point.  This access point will provide Ethernet connections plus an additional wireless network (if it's still needed).  However you cannot have two wireless devices on a single home network with the same SSID (i.e., network name).  Here are details on some methods to do this:
    http://www.dslreports.com/faq/12506
    For additional details, here's the complete FAQ:
    http://www.google.com/url?sa=t&rct=j&q=&esrc=s&frm=1&source=web&cd=1&cad=rja&sqi=2&ved=0CCwQFjAA&url...
    Take a careful look at these suggestions and references to decide if this is what you want.  Then report back if there are remaining questions.  Good luck.

Maybe you are looking for