Finding material doc given delivery no ( without using VBFA table )

Dear friends ,
I need to find out material document no given delivery document no,  using data base tables .  Using VBFA table is ruled out due to performance issues .
What is the way to do this ?
Regards
Mahesh.

As an ABAPer, I can assure you that you will get much better performance with VBFA than with any other table. In VBFA you'll be searching by the VBELV and POSNV, which are the primary key. This should work quite fast, as long as the SELECT statement has been programmed correctly. I bet the poor performance has been caused by an inefficient SELECT statement. If you post the code fragment here, I might be able to suggest some improvements.
In MKPF you'll have to search by LE_VBELN field, which is not part of the primary key or any standard indexes. This will be very inefficient and I would not recommend that.

Similar Messages

  • Is there any way to find a lost iPod Touch 4G without using Find My iPhone or MobileMe? By using the serial number or the iTunes account synced in it?

    Is there any way to find a lost iPod Touch 4G without using Find My iPhone or MobileMe? By using the serial number or the iTunes account synced in it?

    "Is there any way to find a lost iPod Touch 4G without using Find My iPhone or MobileMe? "
    Other than looking for it or luck, no.
    "By using the serial number or the iTunes account synced in it?"
    No.

  • Write the sql query to find largest value in row wise without using   great

    write the sql query to find largest value in row wise without using
    greatest fuction?

    Another not so good way, considering you want greatest of 4 fields from a single record:
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (Select 100 col1,200 col2,300 col3,400 col4 from dual
      2  union select 500,600,700,800 from dual
      3  union select 900,1000,1100,1200 from dual
      4  union select 1300,1400,1500,1600 from dual
      5  union select 1700,1800,1900,2000 from dual
      6  union select 2100,2200,2300,2400 from dual
      7  union select 2800,2700,2600,2500 from dual
      8  union select 2900,3000,3100,3200 from dual)
      9  SELECT (CASE WHEN col1 > col2 THEN col1 ELSE col2 END) Max_value
    10  FROM
    11  (SELECT (CASE WHEN col1_col2 > col2_col3 THEN col1_col2 ELSE col2_col3 END) col1,
    12         (CASE WHEN col2_col3 > col3_col4 THEN col2_col3 ELSE col3_col4 END) col2,
    13         (CASE WHEN col3_col4 > col4_col1 THEN col3_col4 ELSE col4_col1 END) col3
    14  FROM
    15  (SELECT (CASE WHEN col1 > col2 THEN col1 ELSE col2 END) col1_col2,
    16         (CASE WHEN col2 > col3 THEN col2 ELSE col3 END) col2_col3,
    17         (CASE WHEN col3 > col4 THEN col3 ELSE col4 END) col3_col4,
    18         (CASE WHEN col4 > col1 THEN col4 ELSE col1 END) col4_col1
    19* FROM t))
    SQL> /
    MAX_VALUE
           400
           800
          1200
          1600
          2000
          2400
          2800
          3200
    8 rows selected.
    SQL> Edited by: AP on Sep 21, 2010 6:29 AM

  • How to display ICONS in normal report without using icons table

    Hi Friends,
    I have to display icons(traffic lights) in a normal report.
    Can we do that without using icons table?
    If yes, please let me know how?
    Thanks,

    Hi Pagidala,
    Go to txcode - ABAPDOCU and in that expand BC-ABAP Programming->ABAP User Dialog->Screens->complex screen elements->status icons on Screens.
    In this you can see sample code which may help you.
    Cheers!!

  • Cancellation of Invoice, Material doc, Inbound delivery and TO

    Hi
    I have run the following business ME21N->VL31N->LT03(TO)->LT12(TO confirmation)->Material doc is created->MIRO.
    Now i want to reverse the whole process. I have cancelled the Invoice then cancelled the Material document (MIGO), after the material document is cancelled a TR(LB11) is created, then i have created a TO from the TR created(LT04) ->TO confirmation. After this the quants are reversed from the bin to the GR area external reciepts.(nullifying with the first TO)
    My question here is how to post the stock again i.e. from where should i start ? When i am trying to create TO wrt VL32n its not happening because the status showing as completed and is it possible to cancel the inbound delivery created, If yes how to do that.
    The reason for this scenario is that the customer for some reason entered incorrect values and want to cancel the documents created.Everything should be cancelled except PO

    Scenario 1
    While creating the customer master my client forget to give the account assignment group in the billing tab of the sales area data. Because of this it did not hit the proper G/L Account. Automatically it went to some other accounts.
    My question is weather we want to cancel only the invoice or we want to reverse the delivery
    If your GL accounts will be determined based on the customer account assignment group and material account assginment group combination then you can enter manually in Billing document (if accounting document is not created), No need to reverse the invoice and delivery.
    Second Scenario 2
    My client taken the invoice without calculating the TAX and the same also released to accounts.
    Now he wants to Add the TAX
    You can cancel the previous invoice and create new invoice with taxes.

  • How to find Material Doc number.

    Hi experts,
    Is there a way we can identify the Material Doc number<MBLNR> from PP tables?
    Given only the following table-fields:
    afpo-kdauf
    afpo-kdpos
    afpo-aufnr
    afpo-charg
    I will be needing the Matdoc num so i can extract data from MSEG.
    Thanks,
    FAA

    hi..
    u have these fields in MSEG.
    afpo-aufnr = mseg-aufnr
    afpo-posnr = mseg-aufps
    apart from above, the following is also there..
    PS_PSP_PNR - WBS element
    NPLNR - Network Number - same as aufnr
    AUFPL - Routing number of operations in the order
    regards,
    Padma
    Edited by: Padmashree RamMaghenthar on Oct 15, 2008 1:57 PM

  • Insert XML file into Relational database model without using XMLTYPE tables

    Dear all,
    How can I store a known complex XML file into an existing relational database WITHOUT using xmltypes in the database ?
    I read the article on DBMS_XMLSTORE. DBMS_XMLSTORE indeed partially bridges the gap between XML and RDBMS to a certain extent, namely for simply structured XML (canonical structure) and simple tables.
    However, when the XML structure will become arbitrary and rapidly evolving, surely there must be a way to map XML to a relational model more flexibly.
    We work in a java/Oracle10 environment that receives very large XML documents from an independent data management source. These files comply with an XML schema. That is all we know. Still, all these data must be inserted/updated daily in an existing relational model. Quite an assignment isn't it ?
    The database does and will not contain XMLTYPES, only plain RDBMS tables.
    Are you aware of a framework/product or tool to do what DBMS_XMLSTORE does but with any format of XML file ? If not, I am doomed.
    Constraints : Input via XML files defined by third party
    Storage : relational database model with hundreds of tables and thousands of existing queries that can not be touched. The model must not be altered.
    Target : get this XML into the database on a daily basis via an automated process.
    Cheers.
    Luc.

    Luc,
    your Doomed !
    If you would try something like DBMS_XMLSTORE, you probably would be into serious performance problems in your case, very fast, and it would be very difficult to manage.
    If you would use a little bit of XMLType stuff, you would be able to shred the data into the relational model very fast and controlable. Take it from me, I am one of those old geezers like Mr. Tom Kyte way beyond 40 years (still joking). No seriously. I started out as a classical PL/SQL, Forms Guy that switched after two years to become a "DBA 1.0" and Mr Codd and Mr Date were for years my biggest hero's. I have the utmost respect for Mr. Tom Kyte for all his efforts for bringing the concepts manual into the development world. Just to name some off the names that influenced me. But you will have to work with UNSTRUCTURED data (as Mr Date would call it). 80% of the data out there exists off it. Stuff like XMLTABLE and XML VIEWs bridge the gap between that unstructured world and the relational world. It is very doable to drag and drop an XML file into the XMLDB database into a XMLtype table and or for instance via FTP. From that point on it is in the database. From there you could move into relational tables via XMLTABLE methods or XML Views.
    You could see the described method as a filtering option so XML can be transformed into relational data. If you don't want any XML in your current database, then create an small Oracle database with XML DB installed (if doable 11.1.0.7 regarding the best performance --> all the new fast optimizer stuff etc). Use that database as a staging area that does all the XML shredding for you into relational components and ship the end result via database links and or materialized views or other probably known methodes into your relational database that isn't allowed to have XMLType.
    This way you would keep your realtional Oracle database clean and have the Oracle XML DB staging database do all the filtering and shredding into relational components.
    Throwing the XML DB option out off the window beforehand would be like replacing your Mercedes with a bicycle. With both you will be able to travel the distance from Paris to Rome, but it will take you a hell of lot longer.
    :-)

  • How to load external data without using external tables

    Hi,
    I'm asked to develop an ETL for loading external data into a database but, unfortunately, the vers. is 8i so I can't use external tables.
    I know that it's possible by using SQL-Loader. What I want to know is whether there's another way in 8i to load external data from a text file or a CSV file directly with a stored procedure without having to write CTL of SQL-Loader on the server. I mean, is there a way to write everything on the database the same manner I'd do whether I wrote data from a table to a file using for example UTL_FILE or the unique way is to write control files of SQL-Loader directly on the server?
    Thanks!

    Mark1970 wrote:
    Thank you very much Karthick
    I didn't know I could use UTL_FILE also for reading files. I've always use it only for writing data into external files.Yes you can use UTL_FILE to read. The version of oracle you are using i last used in 2004 :) Still remember giving the OS path of the file to open the file. That is long gone now. Its surprising that you are still in 8i.

  • Determine when a database was backed up without using MSDB tables?

    Hi all,
    I was wondering if there was another method to determine when a database was last backed up without using the backup history tables in msdb? whether using DBCC DBINFO, DBCC PAGE on a specific database page...etc.
    Also, when restoring a database, is there a trace flag you can use to force restore details to be written to the error log?
    John M. Couch

    The backup success message is written to the log, but the question is whether you can get restore information outside of successful restore messages to the log. i.e. backup file header information
    And on a server I just restored a database too, if its not the source server, there will be no backup information in MSDB for the database or log file. Is there something internal to the database that would have that information?
    John M. Couch
    if you restore the database -- your msdb database has restore tables, that will tell you where you got the backup from etc..
    select * from msdb.dbo.restorehistory 
    if the backup is from another server, use linked server in the msdb fr backup tables(not restore tables)
    refer https://sqlwhisper.wordpress.com/2015/01/08/database-restore-report/
    also, AFAIK,i do not think backup information is stored in the database, i would be curious know
    as well.

  • To Find out Source datastore in ODI interfaces using SNP tables

    Hi,
    Could you please let me know how to find out Source datastore(s) in ODI interfaces using SNP tables ?
    Regards,
    Rashmik

    Please use below query...Just pass the interface name..
    SELECT C.TABLE_NAME AS "Target Table Name",
         A.COL_NAME AS "Target Field Name",
         Wm_Concat(G.SOURCE_DT) AS "Target Data Type",
         Wm_Concat(G.LONGC) AS "Target Data Length",
         Wm_Concat(TXT) AS "Transformation Rule",
         Wm_Concat(DISTINCT F.TABLE_NAME) AS "Source Table Name",
         Wm_Concat(D.COL_NAME) AS "Source Field Name",
         Wm_Concat(D.SOURCE_DT) AS "Source Data Type",
         Wm_Concat(D.LONGC) AS "Source Data Length"
    FROM
         SNP_POP_COL A JOIN SNP_TXT_CROSSR B ON A.I_TXT_MAP=B.I_TXT
         JOIN SNP_POP C ON A.I_POP=C.I_POP
         JOIN SNP_TXT E ON A.I_TXT_MAP=E.I_TXT AND B.I_TXT=E.I_TXT
         LEFT OUTER JOIN SNP_COL D ON B.I_COL=D.I_COL
         LEFT OUTER JOIN SNP_TABLE F ON F.I_TABLE= D.I_TABLE
         LEFT JOIN SNP_COL G ON A.I_COL=G.I_COL
    WHERE POP_NAME = 'XXXXXXX'
    GROUP BY C.TABLE_NAME,A.COL_NAME ORDER BY 1
    Edited by: KaushikPatel on Apr 18, 2013 6:52 AM

  • Is there any way to track or find my lost ipod touch 5G without using Find My Iphone?

    Imlost my ipod about a week and a half ago, and the last place i remeber using it was ina friends car, but i looked in my friends car and it was no where to be found!! Kinda weird, but anyway I want to know if there is any way for me to track or find it without the Find my Iphone app.

    Only the old fashioned way like if you lost a wallet or purse.
    No app is required.                                               
    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    iCloud: Find My iPhone
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it unless you had iOS 7 on the device. With iOS 7, one has to enter the Apple ID and password to restore the device.
    - Apple will do nothing without a court order                                                        
    Reporting a lost or stolen Apple product                                               
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • Find driving distance between two points without using API by use of Lat & Long?

    Using Google geocode API : http://maps.googleapis.com/maps/api/geocode/xml?address=thane&sensor=true
    We performed get distance between search criteria entered by user and all related clubs by lat & long  stored at db.
    2. Two different points such as  
    (origin: Lat1 & Long1) and (destination: Lat2 & Long2)
    We tried for to get distance between these two points,
     (Lat2 & Long2) to (Lat1 & Long1)
    But distance which we get by calculation is simple straight line distance 
    Origin Destination
    (Lat1 & Long1) (Lat2 & Long2)
    3. This is not driving distance as google shows in exact Km
    4. For that Google provide another API (distancematrix API)
    http://maps.googleapis.com/maps/api/distancematrix/xml?origins=Thane&sensor=true&destinations=khopat&mode=driving&language=en%20-%20EN
    5. But there is limit for DistanceMatrix-Service without ClientID and client key
    100 elements per query.
    100 elements per 10 seconds.
    2 500 elements per 24 hour period.
    But as element request exceeds it shows : OVER_QUERY_LIMIT error  
    6. In case of Client ID and Client key
    In Distance Matrix 100 000 elements per 24 hour period,a maximum of 625 elements per query and a maximum of 1 000 elements per 10 seconds.
    As per this one there is option to get purchase these API but basic question is remain same for us if we are requesting single origin and multiple destination then how element calculation done by google?
    But in document google says :
    Elements
    The information about each origin-destination pairing is returned in an element entry. An element contains the following fields:
    Status: See Status Codes for a list of possible status codes.
    Duration: The duration of this route, expressed in seconds (the value field) and as text. The textual representation is localized according to
    the query's language parameter.
    Distance: The total distance of this route, expressed in meters (value) and as text. The textual value uses the unit system specified with the
    unit parameter of the original request, or the origin's region.

    Any information that you see in a google map webpage can be retrieved using the API.  The best way of finding the tags on the webpage is to manually perform the query using an IE webpage.   Then capture the source and save to a file so you
    can use a text editor to look at results.  I often on a webpage use the menu : View -  Source and then copy the source to a text file.
    jdweng

  • Network material cost planning price entry without using moving average

    Hi,
    When adding the stock material (internal activity) to a network activity the system takes the moving average price of the material.
    How can we enter the material AND the price for cost planning?
    Note: The reason is that the material being procured may cost more than the moving average price on the system. When a user gets a quote for the material they'd like to enter the quoted buying price instead of the system taking the moving average.
    Thanks
    Kru

    Hi,
    Normally System allow to Edit Material -  Price/Currency  field in network planning instead of  moving average price.
    Please check it may greyed out for edit.
    Regards
    Ahamed

  • Find the length of a String, without using any String API

    Hi All,
    I need to write an method which will accept String obj as an argument and will return its length, but method should not have any String API.
    Please help

    Simratpal wrote:
    Hi All,
    I need to write an method which will accept String obj as an argument and will return its length, but method should not have any String API.
    Please helpWell I have strongly argued against doing this, (it seems like a pointless exercise), and I have even stated that it cannot be done, even Reflection at some level will use a String method. I have not bothered to dissect wether the same is true with JNI. However, if we take the statement of the original problem exactly as stated, particularly the
    but method should not have any String API.i.e. we don't care if a String API is used 'under the covers', just so long as there is no direct usage in the new method that is written, then the answer is trivially easy:
    public class Main
        public static void main(String args[])
            Main worker = new Main();
            String str = "123456789";
            int len = worker.strLenUsingNoExplicitStringClassMethod(str);
            System.out.println("Length of string \""+str+"\""+" is "+len);
        public int strLenUsingNoExplicitStringClassMethod(String string)
            StringBuilder sb = new StringBuilder(string);
            return sb.length();
    }

  • F4-Help without using a table search help

    Hi,
    We´re using CRM 2007 and I have created several F4-Helps for different fields on the webui.
    There it was always necessary to use an existing table search help in the GET_V-method:
    CREATE OBJECT rv_valuehelp_descriptor
        TYPE
          cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id                  = lv_help_id   "search help name
          iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name
          iv_input_mapping            = lt_inmap
          iv_output_mapping           = lt_outmap
          iv_trigger_submit           = abap_true.
    But how can I create a f4-help without an existing search help. I have an internal table that I want to be shown like an f4-help (not as dropdown -> a dropdown-field wouldn´t be a problem).
    Structure of the internal table: COML_PROD_CAT_REL_F4
    Thanx for help.
    Greetings,
    Sven
    Edited by: Sven Keller on Aug 13, 2008 4:26 PM

    Hi Sven,
    you already pasted the correct call for creating a value help. Now what you have to alter is the variable lv_help_id to reflect a F4-Valuehelp class.
          CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr
            EXPORTING
              iv_help_id        = '(CL_CRM_UIU_BP_IDTYPE_2_F4)' "#EC NOTEXT
              iv_help_id_kind   = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
              iv_input_mapping  = lt_inmap
              iv_output_mapping = lt_outmap.
    As you can see CL_CRM_UIU_BP_IDTYPE_2_F4 is a normal ABAP class implementing interface IF_BSP_WD_CUSTOM_F4_CALLBACK. Please take a look at it.
    It should not be very hard to implement the single method
    cheers Carsten

Maybe you are looking for

  • Inline popup restriction

    Hi, I am using JDev 11.1.1.4 and for re usability issues I have constructed a task flow in which I have some sort functionality in a jspx page (for this task flow, behavior is set to start a new transaction and 2 task flow returns are used: one for c

  • Cold backup error

    Hi All, OS: windows DB:11g Why is that when I shutdown my database and take the cold backup of my database and at the time in which the files are getting copied, I try to startup database, Oracle do not allow me to start the database and throws an er

  • Changing SSIS name

    We had to change our SSID name due to being hacked.  I was using e-print on our cell phones and my I pad.  Also was using my printer with my HP laptop.  I have a deskjet 3520 all in one printer.  Now I can't use printer because I can't change the SSI

  • Fit block diagram to window

    This might be a stupid question, but how do I fit the block diagram of my vi to fill the screen (kind of like a "zoom out" feature)?  I want to take a screenshot of my current block diagram in its entirety, but the vi is fairly large.  I can't seem t

  • 100%, completely, and unquestionably OT: help me with this movie quote

    something along the lines of "...and i don't appreciate you questioning my loyalty just then" maybe a mob movie? it's driving me to distraction.