Read all material components from activity

Hi
I need to read all the material components for an activity.
For this i have read the table AFVC with the WBS of the activity and found my activity.For this activity i went to table RESB and read with key RESB-AUFPL = AFVC-AUFPL and RESB-VORNR = AFVC-VORNR and finally i get the informations needed for my material components.
My problem is that by reading RESB with these 2 parameters ,the query lasts very long.For just one record i have to wait 1-2 minutes until something is found.
Does anyone know how to read the RESB faster,when i know the WBs element and the activities.
Thank you.

Hi
i found the solution for this
I read with WBS element in AUFK
AUFK-AUFNR = AFKO-AUFNR
AUFK-PSPEL = AFVC-PROJN
And then read table RESB with key
RESB-RSNUM = AFKO-RSNUM
RESB-AUFPL = AFVC-AUFPL
RESB-VORNR = AFVC-VORNR
Read all my records in 2 sec.
thanks

Similar Messages

  • Reading all input components from PDS

    Hi experts,
    My requirement is--- based on a manufactured product (procurement type-F) , I have to retrieve  corresponding distribution product (procurement type-E) .
    For this purpose , I think I will have to read the PDS for that manufactured product (procurement type-F).
    How to read the PDS in the z-program?
    I have found a BAPI called BAPI_PDSSRVAPSIF_RECEIVELIST which reads PDS , but I am not able to use the BAPI. In other words , I am not able to get the proper data to use it , example, where to give the F type material,and where to get the corresponding E type materials..Please help..
    If you know any table in APO which contains all PDS input and output components, please suggest it..

    Ajay,
    Can you please give me the link to APO Forum , from where I can get quick replies..

  • File Adapter and reading all XML files from direcotry

    Problem occurs on PI 7.1
    I defined sender file adapter. File name mask is: "*.xml" to read all XML messages from directory.
    Quality of service is: Exactly One.
    Poll Interval: 30
    Retry interval: 30
    Processing mode: Archive with option "Add Timestamp".
    Processing sequence: by name.
    I though that with above configuration my File Adapter will be reading folder for all coming XML files. But  somehow it is reading XMLs only when I'm activating it in Integration Builder.
    Any idea what can cause such strange problem?

    Hi Tomasz,
    As per my understanding, you need to activate the file adapter for reading the XML files on your directory. Right?
    If that is the case, then the issue might be with the Cache.
    1. Clear the cache from the Integration Builder.
    2. Check in SXI_CACHE whether there are any issues. Click on Delta Cache refresh to find out if there are any cache related issues.
    Thanks,

  • How to read all material documents created for a service order /maint.order

    Hello,
    in my Z-Program i need to read all material documents which are created for a service order or maintenance order.
    Is there a function module which could be used or do you have some other hinds for this requirement?
    Thanks a lot.
    Kind regards
    Manfred

    HI,
    Have you tried BAPI_ALM_ORDER_GET_DETAIL for fetching components details. Actually we have used it to get some other details.
    Regards
    Shakti

  • Reading all related keys from a properties file

    I have in my propeties file, keys the following way:
    FIRST_DATASOURCE=COM.XYZ.ABCSERVER.JDBC1
    SECOND_DATASOURCE=COM.ABC.SERVER2.JDBC1
    FIRST_DATASOURCE=COM.123.SERVER3.JDBC3What is the solution to read all the keys wit _DATASOURCE and return as a string array?
    Thanks in advance.

    Thanks kajbj..
    The problem here is the datasources are added from
    time to time and the program should pick-up
    dynamically.
    If I hardcode for the existing available datasources,
    how can it handle for the future?
    Appreciate your thoughts.Many answer can be found by reading API
    http://java.sun.com/j2se/1.4.2/docs/api/java/util/Properties.html#propertyNames()

  • I want to remove all the components from particular panel.

    hi all,
    i have 3 panels p,p1,p2.i added panels p1 and p2 to a window,then i added a panel p(this panel contaning JScrollPane) to a panel p1.i have a button on panel p2,if i press that button i want to remove all the components as well ass JScrollPane(remember JScrollPane in panel p).
    if possible give example.
    Thanks in advance
    bhaskar
    code is here
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    public class test1 extends Window implements ActionListener
    JPanel p,p1,p2;
    JScrollPane jp;
    Button b,b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12;
    test1()
    super(new Frame("testing"));
    p=new JPanel();
    p1=new JPanel();
    p2=new JPanel();
    adding();
    jp=new JScrollPane(p);
    jp.setPreferredSize(new Dimension(300,300));
    add(jp);
    setSize(new Dimension(200,200));
    setVisible(true);
    public void adding()
    b12=new Button("hai");
    b12.addActionListener(this);
    p2.add(b12);
    add(p1,BorderLayout.CENTER);
    add(p2,BorderLayout.WEST);
    p.setLayout(new GridLayout(11,1));
    p.setBackground(Color.white);
    b=new Button("one");
    b1=new Button("two");
    b2=new Button("three");
    b3=new Button("4");
    b4=new Button("5");
    b5=new Button("6");
    b6=new Button("7");
    b7=new Button("8");
    b8=new Button("9");
    b9=new Button("10");
    b10=new Button("11");
    b11=new Button("12");
    p.add(b);
    p.add(b1);
    p.add(b2);
    p.add(b3);
    p.add(b4);
    p.add(b5);
    p.add(b6);
    p.add(b7);
    p.add(b8);
    p.add(b9);
    p.add(b10);
    p.add(b11);
    p1.add(p);
    public void actionPerformed(ActionEvent e)
    if(e.getSource()==b12)
    System.out.println(e.getSource());
    System.out.println("111");
    p.removeAll();
    public static void main(String args[])
    test1 t=new test1();
    /*****************************************/

    p.removeAll();

  • Reading all the files from Application Server in a specific folder

    Hi,
    I want to read all the files present in a folder on Application Server ( AL11 ). My problem is that I do not know the name of the file but I know the folder path where files are present.
    I need to go to this folder and pick up all the files present in this folder and then process these files in my program.
    Can any one help me in this!
    Regards,
    Lalit

    You can use a call to
    C_DIR_READ_START'
    and
    CALL 'C_DIR_READ_NEXT'
    Regards,
    John.

  • How can i read all the lines from a text file in specific places and use the data ?

    string[] lines = File.ReadAllLines(@"c:\wmiclasses\wmiclasses1.txt");
    for (int i = 0; i < lines.Length; i++)
    if (lines[i].StartsWith("ComboBox"))
    And this is how the text file content look like:
    ComboBox Name cmbxOption
    Classes Win32_1394Controller
    Classes Win32_1394ControllerDevice
    ComboBox Name cmbxStorage
    Classes Win32_LogicalFileSecuritySetting
    Classes Win32_TapeDrive
    What i need to do is some things:
    1. Each time the line start with ComboBox then to get only the ComboBox name from the line for example cmbxOption.
       Since i have already this ComboBoxes in my form1 designer i need to identify where the cmbxOption start and end and when the next ComboBox start cmbxStorage.
    2. To get all the lines of the current ComboBox for example this lines belong to cmbxOption:
    Classes Win32_1394Controller
    Classes Win32_1394ControllerDevice
    3. To create from each line a Key and Value for example from the line:
    Classes Win32_1394Controller
    Then the key will be Win32_1394Controller and the value will be only 1394Controller
    Then the second line key Win32_1394ControllerDevice and value only 1394ControllerDevice
    4. To add to the correct belonging ComboBox only the value 1394Controller.
    5. To make that when i select in the ComboBox for example in cmbxOption the item 1394Controller it will act like i selected Win32_1394Controller.
    For example in this event:
    private void cmbxOption_SelectedIndexChanged(object sender, EventArgs e)
    InsertInfo(cmbxOption.SelectedItem.ToString(), ref lstDisplayHardware, chkHardware.Checked);
    In need that the SelectedItem will be Win32_1394Controller but the user will see in the cmbxOption only 1394Controller without the Win32_
    This is the start of the method InsertInfo
    private void InsertInfo(string Key, ref ListView lst, bool DontInsertNull)
    That's why i need that the Key will be Win32_1394Controller but i want that the user will see in the ComboBox only 1394Controller without the Win32_

    Hello,
    Here is a running start on getting specific lines in the case lines starting with ComboBox. I took your data and placed it into a text file named TextFile1.txt in the bin\debug folder. Code below was done in
    a console app.
    using System;
    using System.IO;
    using System.Linq;
    namespace ConsoleApplication1
    internal class Program
    private static void Main(string[] args)
    var result =
    from T in File.ReadAllLines(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "TextFile1.txt"))
    .Select((line, index) => new { Line = line, Index = index })
    .Where((s) => s.Line.StartsWith("ComboBox"))
    select T
    ).ToList();
    if (result.Count > 0)
    foreach (var item in result)
    Console.WriteLine("Line: {0} Data: {1}", item.Index, item.Line);
    Console.ReadLine();
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my webpage under my profile but do not reply to forum questions.

  • HT5622 my friend believes her phone has been hacked as her ex partner has read all her messages from people for the last week how is this possible?

    my friend has an iphone 4 and believes her messages on her phone have been hacked as and ex boyfriend has contacted her telling her who she has spoken to and read the message she has for the past week, is this possible and how can she stop this?
    Thanks

    You're welcome.
    Ask her if they shared an Apple ID to download iTunes Store content such as apps and music?
    If not, he knows the password for her Apple ID email address.
    She can create a new Apple ID with this link.
    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/wa/createAppleIdForIK B?localang=en_US&path=
    She needs to create a new email address first as well.
    Tell her not to use any security questions that her ex knows or may know.
    After she has created a new Apple ID, on her iPhone go to Settings > Messages > Send & Receive > Apple ID.
    Select the Apple ID and at the menu window that appears, select Sign Out.
    She signs back in at the same location with her new Apple ID to register her iPhone phone number with her new Apple ID and this will prevent her ex from having access to all iMessages that she sends and receives.

  • Read and Submit Data from Active Application

    I do have window application that accept the user and password.
    I would like to write an application using C# to write the user and password then hit submit to this active screen.
    how can we do this?
    hussain

    Hello,
    Welcome to MSDN forum.
    Your issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    You can tell us what type of windows application you are working with, we can check whether another proper forum can support your issue better.
    If you are working with Windows Forms app, you can directly consult on Windows Forms Forum:http://social.msdn.microsoft.com/Forums/windows/en-US/home?category=windowsforms
    If you are working with WPF app, please consult on WPF forum:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wpf
    Here isVisual Studio Language Forums:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=vslanguages
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Read Combination segments for material account from item level

    Dear Value Consultant,
    Read Combination segments for material account from item level
    "For any inventory transactions"
    Is there is away to read the material account from item level , to affect the real combination segments not general combinations segments from item master or organization
    Business Impacts :
    All inventory transaction for all item will affect the same combination segments for material accounts
    After I transfer to GL, This not helps me to differentiate the balance for material value is related to any item category
    Also for Budget Wise , I want to map the budget on combination level for materials accounts , and this not actualize without affect the real combination for material accounts in subledger ,
    Thanks

    I have not seen any client asking for this, but you can consider Costing Hooks to create your own accounting engine for inventory transactions. Hope you are taalking about standard costing. In such case, costing hooks are available in Oracle for you to write your own accounting.
    Even better in R12, you can do this with setup in SLA.
    Thanks
    Nagamohan

  • How to retreive all unconsumed messages from a topic with a MDB?

    Hello!
    I have a webapp that stores TextMessages in a Topic in WebLogic.
    I have an ejbapp (Message driven bean) that reads messages from the topic.
    If both are up and running the ejbapp reads all messages sent from the webapp to the topic.
    But if I stop the ejbapp for a while and sends a couple of messages to the topic and then deploy the ejbapp again, then the ejbapp does not read the unconsumed messages. If I send a new message to the topic the ejbapp reads that new messages but it does not get the previous messages that are on the topic.
    Is this the way it should work? Or could I get the message driven bean to consume all the messages that it has not consumed from the topic when it starts?
    My weblogic-ejb-jar.xml looks like:
    <!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN' 'http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd'>
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>OrderManagerMDB</ejb-name>
    <message-driven-descriptor>
    <pool>
    <max-beans-in-free-pool>200</max-beans-in-free-pool>
    <initial-beans-in-free-pool>20</initial-beans-in-free-pool>
    </pool>
    <destination-jndi-name>jms/OrdersTopic</destination-jndi-name>
    <connection-factory-jndi-name>jms/OrdersConnectionFactory</connection-factory-jndi-name>
    </message-driven-descriptor>
    <enable-call-by-reference>True</enable-call-by-reference>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>And my ejb-jar.xml looks like:
    <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
    <ejb-jar>
    <enterprise-beans>
    <message-driven>
    <ejb-name>OrderManagerMDB</ejb-name>
    <ejb-class>brownbagwarehouse.OrderManagerMDB</ejb-class>
    <transaction-type>Container</transaction-type>
    <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
    <message-driven-destination>
    <destination-type>javax.jms.Topic</destination-type>
    </message-driven-destination>
    </message-driven>
    </enterprise-beans>
    </ejb-jar>My MDB onMessage looks like:
    public void onMessage(Message message)
    try
    TextMessage textMessage = (TextMessage)message;
    System.out.println(textMessage.getText());
    catch(Exception e)
    e.printStackTrace();
    }Best regards
    Fredrik

    I am not much familiar with Weblogic, but i would suggest, you do a search for how to setup "Durable Subscriptions" in Weblogic. This will ensure the the messages that were sent when the consumer was not available, will be delivered once the consumer is available

  • How to read time capsule files from iphone

    any one knows how to do this?
    i have used in the past an application call Soonr to access the mac but haven't tried if it works with time capsule.
    thanks for any thoughts/suggestions...

    Hi Harish,
    U can read all the files from a App's dir with this FM.
      CONCATENATE  '' '.'
             INTO LV_FILE1.
    *FM lists out the files present in App Server directory matching with given pattern.
      CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
        EXPORTING
          DIR_NAME                     = DIR_NAME
          FILE_MASK                    = LV_FILE1
       IMPORTING
    DIR_NAME                     =
         FILE_COUNTER                 =  FLE_CNT
    ERROR_COUNTER                =
        TABLES
          DIR_LIST                     = IT_DIRTAB
       EXCEPTIONS
         INVALID_EPS_SUBDIR           = 1
         SAPGPARAM_FAILED             = 2
         BUILD_DIRECTORY_FAILED       = 3
         NO_AUTHORIZATION             = 4
         READ_DIRECTORY_FAILED        = 5
         TOO_MANY_READ_ERRORS         = 6
         EMPTY_DIRECTORY_LIST         = 7
         OTHERS                       = 8
    Regards,
    KC

  • How to retrive all unread messages from a topic?

    Hello!
              I have a webapp that stores TextMessages in a Topic in WebLogic.
              I have an ejbapp (Message driven bean) that reads messages from the topic.
              If both are up and running the ejbapp reads all messages sent from the webapp to the topic.
              But if I stop the ejbapp for a while and sends a couple of messages to the topic and then deploy the ejbapp again, then the ejbapp does not read the unconsumed messages. If I send a new message to the topic the ejbapp reads that new messages but it does not get the previous messages that are on the topic.
              Is this the way it should work? Or could I get the message driven bean to consume all the messages that it has not consumed from the topic when it starts?
              My weblogic-ejb-jar.xml looks like:
              <pre><!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN' 'http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd'>
              <weblogic-ejb-jar>
              <weblogic-enterprise-bean>
              <ejb-name>OrderManagerMDB</ejb-name>
              <message-driven-descriptor>
              <pool>
              <max-beans-in-free-pool>200</max-beans-in-free-pool>
              <initial-beans-in-free-pool>20</initial-beans-in-free-pool>
              </pool>
              <destination-jndi-name>jms/OrdersTopic</destination-jndi-name>
              <connection-factory-jndi-name>jms/OrdersConnectionFactory</connection-factory-jndi-name>
              </message-driven-descriptor>
              <enable-call-by-reference>True</enable-call-by-reference>
              </weblogic-enterprise-bean>
              </weblogic-ejb-jar></pre>
              And my ejb-jar.xml looks like:
              <pre><!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
              <ejb-jar>
              <enterprise-beans>
              <message-driven>
              <ejb-name>OrderManagerMDB</ejb-name>
              <ejb-class>brownbagwarehouse.OrderManagerMDB</ejb-class>
              <transaction-type>Container</transaction-type>
              <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
              <message-driven-destination>
              <destination-type>javax.jms.Topic</destination-type>
              </message-driven-destination>
              </message-driven>
              </enterprise-beans>
              </ejb-jar></pre>
              My MDB onMessage looks like:
              <pre>public void onMessage(Message message)
                   try
                        TextMessage textMessage = (TextMessage)message;
                        System.out.println(textMessage.getText());
                   catch(Exception e)
                        e.printStackTrace();
              </pre>
              Best regards
              Fredrik

    For subscriptions to continue to exist even while no subscriber is attached they need to be "durable". See the EJB programmer's guide, and search for "durable" in the MDB doc.
              In JMS terminology these are termed "durable subscriptions".
              Tom

  • Read all raw data out of the CAN bus

    Hello,
    our company has purchased a complete CAN bus HW; chasis 9174 and module 9862. I am using NI-DAQmx 9.5.5, NI-XNET 1.5.
    I have connected the module (CAN High, CAN Low, Vsupp 12V - Car battery, GND - Car battery) to the ABS CAN bus segment.
    Using Osciloscope on CAN High and CAN Low wires I can see communication rolling when I start the car ignition.
    I had no success using the Bus Monitor utility.
    I made a very simple read VI hoping to monitor some traffic.
    All VIs run without error, but the Read VI is returning same data (Ignition off or on), I do not know what am I supposed to recieve, what kind of data is the output.
    I think it is wrong, since I get the same data out of it no matter what the CAN bus traffic is.
    The array of frames is filled with two frames with message identifiers that should be transmitted. I added two frames into emopty database and no signals.
    1) From my understanding, the Bus Monitor utility monitors only those messages that I specify in the database, so that no messages/frames = no traffic monitored, is this correct ?
    2) Is there any way, how to read all raw data from the bus ? What VI palettes to use... ?

    Problem solved, the company that was preparing the car made wrong labels (swapped CAN H with CAN L)

Maybe you are looking for

  • Windows 7 left side is cutted!

    I dont know how it happened i shuted down my computer and on the other day when I switched it on the left side was cutted i need help i looked in google for a solution but i didnt find nothing!I think that the problem is in the screen resolution so i

  • Mountain Lion Installation (Very Strange)

    So I download Mountain Lion, everything normally. Rebooted, then it started 'installing OS X on the disk Macintosh HD'. 'time remaining' started at 34 minutes. And then eventually 'less than a minute' and now its into minus!! Currently at -10 minutes

  • CCA Transaction Data Table

    Hi, What is the R/3 table for Cost center transaction data? Thanks

  • Using a DLL or .so in a JNLP-launched applet

    I have a 3rd-party JAR which includes code that requires a DLL (or .so on Linux) to work and I need to use it in a JNLP-launched applet. What's required with Java 6 Update 16? 1. I believe I need to get the DLL inside its own JAR and mark it as a nat

  • Error messages when deploying application on Linux NW4

    Good evening, my issue has been kicked around here a couple of times but none of the solutions suggested worked. Even though just a quick fix/tip would be more than appreciated, I would also love to understand the background information regarding the