Problem in fetching data for Tcode QA03

Hi,
I am working on a report in which i have to pick up the dates for a material i.e. when it is MIGO is done and when it is moved to unrestricted stock.
Till now i am fetching up the data from MSEG nad MKPF where i am getting the data w.r.t. movement types(101,321).
Now the problem is ,i had checked that when i execute Tcode QA03 there is a option of checking the log of it where i found that is shows the value that the purticular value has been moved to unretricted stcok..
The problem is it is storing the value in table RSTXT and field name TXLINE. How can i pick up the value for it and moreover it doesnot have the movt.type mentioned in it? Should i pick the value from MSEG n MKPF or make my logic through QALS and
RSTXT.
Please provide me some information about it...

Hi Firends,
I had developed a code for it now,but the problem is i am facing right now is when try to have difference between dates and time of both mvt.types 101 and 321,there comes a problem that it is not able to calculate the diiference as the data of both present in the seperate lines of the itab. Is there anyway that it can be  calculated.
Here is the link to the code which i had created, please tell me  where i can rectify the error  :-
I am really facing the problem in it.. plzz check the code whether it is corect or not?
http://docs.google.com/View?id=dngp529_4grr2ctf6
Edited by: nav009 on Nov 6, 2009 9:43 AM

Similar Messages

  • I have Problem in fetching data from CONTROL BLOCK

    Sir,
    I am facing problem in fetching data from control block.
    Asif.

    is your control-block a filter-block for the detail-block?
    Do you want to see only the detail-data of the user-id you have displayed in the master?

  • Swing Applet in JSP: problem with fetching data from database

    i am facing a problem while fetching data from database using Swing Applet plugged in a JSP page.
    // necessary import statements
    public class NewJApplet extends javax.swing.JApplet {
    private JLabel jlblNewTitle;
    private Vector vec;
    public static void main(String[] args) {
    JFrame frame = new JFrame();
    NewJApplet inst = new NewJApplet();
    frame.getContentPane().add(inst);
    ((JComponent)frame.getContentPane()).setPreferredSize(inst.getSize());
    frame.pack();
    frame.setVisible(true);
    public NewJApplet() {
    super();
    initGUI();
    private void initGUI() {
    try {
    this.setSize(542, 701);
    this.getContentPane().setLayout(null);
    jlblTitle = new JLabel();
    this.getContentPane().add(jlblTitle);
    jlblTitle.setText("TITLE");
    jlblTitle.setBounds(197, 16, 117, 30);
    jlblTitle.setFont(new java.awt.Font("Dialog",1,20));
    jlblNewTitle = new JLabel();
    this.getContentPane().add(jlblNewTitle);
    Vector vecTemp = getDBDatum(); // data fetched fm DB r stored here.
    jlblNewTitle.setText(vecTemp.get(1).toString());
    jlblNewTitle.setBounds(350, 16, 117, 30);
    jlblNewTitle.setFont(new java.awt.Font("Dialog",1,20));
    } catch (Exception e) {
    e.printStackTrace();
    }//end of initGUI()
    private Vector getDBDatum() {
    // fetches datum from oracle database and stores it in a vector
    return lvecData;
    }//end of getDBDatum()
    }//end of class
    in index.jsp page i have included the following code for calling this applet:
    <jsp:plugin type="applet" code="NewJApplet.class" codebase="applets"
    width="600" height="300">
    <jsp:fallback>Could not load applet...</jsp:fallback>
    </jsp:plugin>
    if i view it in using AppletViewer it runs perfectly and display the data in JLabel. (ie, both jlblTitle and jlblNewTitle).(ie, DATA FETCHES FROM db AND DISPLAYS PROPERLY)
    BUT IF I CLICK ON INDEX.JSP, ONLY jlblTitle APPEARS. jlblnNewTitle WILL BE BLANK(this label name is supposed to fetch from database)
    EVERY THING IS DISPAYING PROPERLY EXCEPT DATA FROM DATABASE!!!
    i signed the applet as follows :
    grant {
    permission java.security.AllPermission;
    Can any body help me to figure out the problem?

    This is the Swing Applet java code
    import java.awt.Dimension;
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.util.Vector;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.JScrollPane;
    import javax.swing.JApplet;
    import javax.swing.JButton;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JTree;
    import javax.swing.ScrollPaneConstants;
    import javax.swing.SwingConstants;
    public class HaiApplet extends javax.swing.JApplet {
         private JLabel     jlblTitle;
         private JLabel     jlblNewTitle;
         private Vector     vec;
         * main method to display this
         * JApplet inside a new JFrame.
         public static void main(String[] args) {
              JFrame frame = new JFrame();
              NewJApplet inst = new NewJApplet();
              frame.getContentPane().add(inst);
              ((JComponent)frame.getContentPane()).setPreferredSize(inst.getSize());
              frame.pack();
              frame.setVisible(true);
         public HaiApplet() {
              super();
              initGUI();
         private void initGUI() {
              try {               
                   this.setSize(542, 701);
                   this.getContentPane().setLayout(null);
                        jlblTitle = new JLabel();
                        this.getContentPane().add(jlblTitle);
                        jlblTitle.setText("OMMS");
                        jlblTitle.setBounds(197, 16, 117, 30);
                        jlblTitle.setFont(new java.awt.Font("Dialog",1,20));
                        jlblTitle.setHorizontalAlignment(SwingConstants.CENTER);
                        jlblTitle.setForeground(new java.awt.Color(0,128,192));
                        jlblNewTitle = new JLabel();
                        this.getContentPane().add(jlblNewTitle);
                        Vector vecTemp = getDBDatum();
                        jlblNewTitle.setText(vecTemp.get(1).toString());
                        jlblNewTitle.setBounds(350, 16, 117, 30);
                        jlblNewTitle.setFont(new java.awt.Font("Dialog",1,20));     
              } catch (Exception e) {
                   e.printStackTrace();
         }//end of initGUI()
         private Vector getDBDatum() {
              Vector lvecData = new Vector(10,5);
              Connection lcon = null;
              Statement lstmt = null;
              ResultSet lrsResults = null;
              String lstrSQL = null;
              String lstrOut = null;
              try {
                   OmmsDBConnect db = new OmmsDBConnect();
                   lcon = db.connectDb();
                   lstmt = lcon.createStatement(lrsResults.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
                   lstrSQL = "select DT_ID from P_DATATABLES";
                   lrsResults = lstmt.executeQuery(lstrSQL);        
                   int i = 0;
                   lrsResults.last();
                   int length = lrsResults.getRow();
                   System.out.println(length);
                   lrsResults.beforeFirst();
                   int recCount = 0;
                   while (lrsResults.next()) {
                        recCount++;
                        lvecData.addElement(new String(lrsResults.getString("DT_ID")));
                   //     System.out.println("ID :  " + lrsResults.getString(1));
                        i++;
                   }System.out.println("here 3 out fm while");
              catch(SQLException e) {
                   System.out.print("SQLException: ");
                   System.out.println(e.getMessage());
              catch(Exception ex) {
                   lstrOut = "Exception Occured " + ex.getMessage();
              finally {
                   try {
                        lrsResults.close();
                        lstmt.close();
                        lcon.close();
                        System.out.println("[DONE]");
                   catch(Exception e) {
                        System.out.println(e);
             }//end of finally
              return lvecData;
         }//end of getDBDatum()
    }//end of classOfcourse the above code compiles and runs well. in Applet Viewer
    I plugged the above Swing Applet in a JSP page index.jsp
    <jsp:plugin type="applet" code="NewJApplet.class" codebase="applets"
                   width="600" height="300">
         <jsp:fallback>Could not load applet...</jsp:fallback>
    </jsp:plugin>Every thing is working fine in AppletViewer...But if i view this in any browser, then only the jlblTitle is displaying. jlblNewTitle is not displaying(this label name is actually fetching from thedatabase)
    can any body help me regarding this matter.? Thx in Advance.

  • How to fetch data for a struture from a cluster table

    How can I fetch data for a struture, from a cluster table, based on the name of the structure?

    Hi,
    In order to read from Cluster DB Table use the following statement:
    Syntax
    IMPORT <f1> [ TO  < g1 > ] <f2> [TO < g2 >] ...
    FROM DATABASE <dbtab>(<ar>)
    [CLIENT <cli>] ID <key>|MAJOR-ID <maid> [MINOR-ID <miid>].
    This statement reads the data objects specified in the list from a cluster in the database <dbtab>.
    You must declare <dbtab> using a TABLES statement. If you do not use the TO <gi> option, the
    data object <fi> in the database is assigned to the data object in the program with the same
    name. If you do use the option, the data object <fi> is read from the database into the field <gi>.
    For <ar>, enter the two-character area ID for the cluster in the database. The name <key>
    identifies the data in the database. Its maximum length depends on the length of the name field
    in <dbtab>.
    The CLIENT <cli> option allows you to disable the automatic client handling of a client-specific cluster database, and specify the client yourself. The addition must always come directly after the name of the database.
    For Eg:
    PROGRAM SAPMZTS3.
    TABLES INDX.
    DATA: BEGIN OF JTAB OCCURS 100,
    COL1 TYPE I,
    COL2 TYPE I,
    END OF JTAB.
    IMPORT ITAB TO JTAB FROM DATABASE INDX(HK) ID 'Table'.
    WRITE: / 'AEDAT:', INDX-AEDAT,
    / 'USERA:', INDX-USERA,
    / 'PGMID:', INDX-PGMID.
    SKIP.
    WRITE 'JTAB:'.
    LOOP AT JTAB FROM 1 TO 5.
    WRITE: / JTAB-COL1, JTAB-COL2.
    ENDLOOP.
    Regards,
    Neha
    Edited by: Neha Shukla on Mar 12, 2009 1:35 PM

  • Problem in Loading data for clob column using sql ldr

    Hi,
    I am having problem in loading data for tables having clob column.
    Could anyone help me in correcting the below script for ctrl file inorder to load the data which is in mentioned format.
    Any help really appreciated.
    Table Script
    Create table samp
    no number,
    col1 clob,
    col2 clob
    Ctrl File
    options (skip =1)
    load data
    infile 'c:\1.csv'
    Replace into table samp
    fields terminated by ","
    trailing nullcols
    no,
    col1 Char(100000000) ,
    col2 Char(100000000) enclosed by '"' and '"'
    Data File(1.csv)
    1,asdf,"assasadsdsdsd""sfasdfadf""sdsdsa,ssfsf"
    2,sfjass,"dksadk,kd,ss""dfdfjkdjfdk""sasfjaslaljs"
    Error Encountered
    ORA-01461: can bind a LONG value only for insert into a LONG column
    Table sampThanks in advance

    I can't reproduce it on my 10.2.0.4.0. CTL file:
    load data
    INFILE *
    Replace into table samp
    fields terminated by ","
    trailing nullcols
    no,
    col1 Char(100000000) ,
    col2 Char(100000000) enclosed by '"' and '"'
    BEGINDATA
    1,asdf,"assasadsdsdsd""sfasdfadf""sdsdsa,ssfsf"
    2,sfjass,"dksadk,kd,ss""dfdfjkdjfdk""sasfjaslaljs"Loading:
    SQL> Create table samp
      2  (
      3  no number,
      4  col1 clob,
      5  col2 clob
      6  );
    Table created.
    SQL> host sqlldr scott/tiger control=c:\temp\samp.ctl log=c:\temp\samp.log
    SQL> select * from samp
      2  /
            NO
    COL1
    COL2
             1
    asdf
    assasadsdsdsd"sfasdfadf"sdsdsa,ssfsf
             2
    sfjass
    dksadk,kd,ss"dfdfjkdjfdk"sasfjaslaljs
            NO
    COL1
    COL2
    SQL> SY.

  • Error: can't fetch data for this host - too few bytes supplied by RPC

    Hi,
    In our internal Lab we have:
    One Admin, Media,Client Server (we can make backups for himself) - Solaris 10 with DDS4 tape drive (lab)
    One Windows Client (we can make backups) - Windows XP
    One Linux Client - CentOS 5.1
    When we add the linux client with the command:
    mkhost -a ob --inservice -r client -k 1024 linux
    We receive this message in the linux (host) /usr/tmp/observiced.log
    Error: can't fetch data for this host - too few bytes supplied by RPC partner (OB cached object manager)
    And in the obtool we receive (forever looping)
    Info: waiting for host to update certification status...
    Can you help us with this linux client error ? (iptables and selinux disabled!!)
    Thanks in Advance
    Serpins

    [SOLVED]
    Selinux not well removed....
    Thanks in Advance
    Serpins

  • Complete data for tcode DB02

    let me know the name of table that stores the complete data for tcode DB02

    Hello Arun,
    Please check tables DBCHK and TBATG.
    Thank you,
    Shyam

  • How to fetch data for sales order costing

    Hi All,
    How to fetch data for VA03 --> Extras --> Costing having cost element details.
    Thanks
    Gaurav

    Hi Gaurao ,
    There is no such function module  to extract data  in one column   , you have to  Convert all the columns data    in one column
    for period   .
    regards
    Deepak.

  • Problem in displaying data for G/L Account in Tcode FAGLB03

    Hi,
    I am a abaper but my client is facing a strange problem in Tcode FAGLB03 that when it runs the tcode the data displayed for a purticular finanacial year then there are few months which remains blank in the display but the Carry Forward Balance is accurate.
    In the similar way when we execute tcode for previous financial year it is displaying the data accurately and filling all the months columns in it.
    Is there any way to present the missing data for that puritcular finanacial year?
    Edited by: nav009 on Jan 3, 2010 10:04 AM

    Hi,
    Please check the same with your netweaver administrator(basis consultant). He would have the user name and pwd for the SAP support portal. You can view notes in SAP support portal.
    SAP clearly says in the note that it is because of program error and you need to implement the correction notes.
    Do involve your FI consultant and Basis consultant to resolve this issue.
    Thanks
    Aravind

  • Problem in uploading data for the Tcode CA02

    Hi,
    I am trying to upload the data for the Tcode ca02  and i am facing a problem i.e. the uploading for the for the 18th  inspection characterstic is not able to being uploaded. I had checked the code of it  and the logic is there.
    It was previously uploading the data for it,but iit is not doing now. I had cheked the program of the screen also the fields are also present..

    would u plz send code.so i can check

  • Facing  problem in fetching data

    hello everyone ,
    can anyone help me out  frm the problem , i need to fetch  data in alv  report (  likp-vbeln  ,lips-vgbel , likp-kunnr , vbpa-lifnr , vbrp-vgbel,vbuk-fkstk,vbrk-kunrg, vbrk-fkart and lfa1-name1 )  using  input parameter lips-vbeln or likp-vbeln .every time  i stuck in  select querries  for  fetching fieds  of   vbpa vbrk  vbrp vbuk and lfa1 .
    i am new to this forum excuse for  any mistake  regarding the rules and restriction .
    ranjan

    Moderator message - Welcome to SCN.
    Please read Please read "The Forum Rules of Engagement" before posting!  HOT NEWS!! and How to post code in SCN, and some things NOT to do... and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again.
    Thread locked.
    Rob

  • Uploading data for Tcode IW21

    Hi,
    I want to upload data for the Tcode IW21,I tried to make BDC but i was giving only 1 problem that it is not able to capture the screen for Long Text as it is used as script handling.i am able to find a BAPI but i dont know how to use it,i tried to do work through LSMW but there is no information. Pleas provide me guidelines how to solve this problem.. I am providing the link to the code which i had developed(BDC) for the tcode IW21 .
    Here's the code:-
    http://docs.google.com/View?id=dfxswwff_3gtn9qsdp
    Edited by: ricx .s on Jun 24, 2009 6:24 AM

    hi,
    Thanks for your help. Can i use BAPI to upload data for IW21 and how to trace the fields of a BAPI to upload the data .
    Here's the code which i searched on net bu there is no information regarding the fields tobe traced and should i include it in my code which i had provided above ?
    data: i_bapi2080_nothdri type standard table of bapi2080_nothdri with header line.
    data: i_bapiret2 type standard table of bapiret2 with header line.
    data: i_bapi2080_nothdre type standard table of bapi2080_nothdre with header line.
    data: i_bapi2080_notfulltxti type standard table of bapi2080_notfulltxti with header line.
    * create header data
    i_bapi2080_nothdri-refobjectkey = 'PJAREF'.
    i_bapi2080_nothdri-equipment    = '10000030'.
    i_bapi2080_nothdri-reportedby   = 'PJAREP'.
    i_bapi2080_nothdri-short_text   = 'PJA Short Test from BAPI'.
    i_bapi2080_nothdri-priority     = '1'.
    * create header long text
    i_bapi2080_notfulltxti-objtype    = 'QMEL'.
    i_bapi2080_notfulltxti-FORMAT_COL = 'U1'.
    i_bapi2080_notfulltxti-text_line  = 'Long text 1'.
    append i_bapi2080_notfulltxti.
    i_bapi2080_notfulltxti-objtype    = 'QMEL'.
    i_bapi2080_notfulltxti-FORMAT_COL = 'U1'.
    i_bapi2080_notfulltxti-text_line  = 'Long text 2'.
    append i_bapi2080_notfulltxti.
    call function 'BAPI_ALM_NOTIF_CREATE'
      exporting
    *   EXTERNAL_NUMBER          =
        notif_type               = 'M1'
        notifheader              = i_bapi2080_nothdri
    *   TASK_DETERMINATION       = ' '
    *   SENDER                   =
    *   ORDERID                  =
    importing
        notifheader_export       = i_bapi2080_nothdre
    tables
    *   NOTITEM                  =
    *   NOTIFCAUS                =
    *   NOTIFACTV                =
    *   NOTIFTASK                =
    *   NOTIFPARTNR              =
        longtexts                = i_bapi2080_notfulltxti
    *   KEY_RELATIONSHIPS        =
        return                   = i_bapiret2.
    call function 'BAPI_ALM_NOTIF_SAVE'
      exporting
        number            = i_bapi2080_nothdre-notif_no
    * IMPORTING
    *   NOTIFHEADER       =
    * TABLES
    *   RETURN            =
    call function 'BAPI_TRANSACTION_COMMIT'
    * EXPORTING
    *   WAIT          =
    * IMPORTING
    *   RETURN        =
    Please provide me guidelines for it.Is there any way to upload  the data for this Tcode IW21 through LSMW?
    Edited by: ricx .s on Jun 24, 2009 10:20 AM

  • Problem in uploading data for multiple company code in FB60

    Hi Experts,
    I am uploading data to tcode FB60 using bdc. If I have say 2 records in my file with same company code,
    It;s successfully posting the invoices.
    But if there are records with different company code, it's posting only the first one.
    Please suggest me some solution.
    Thanks.
    Krishan

    Hi,
    This is a njoy tcode....U have to do some settings before using the tcode....
    Go to tcode FB60 and give the company code ( if it is ur first login to the tcode then only it wil ask) .then u will get the screen to enter the document number and other stuffs....
    In that screen go to EDIT OPTIONS BUTTON on application tool bar on the right hand upper corner...
    U will get another screen in that check the check box which says NO COMPANY CODE PROPOSAL..and click on save .....
    After use this tcode for the bdc program and no error will come.
    Please let me know if u have any problems...
    Regards,
    Rohan.
    Edited by: Rohan on Feb 2, 2009 12:29 PM

  • Hyperion IR : Getting out of memory error while fetching data for whole year through web client (wrokspace)

    Hi,
    While fetching data though IR wen client from workspace for a year(all 12 months) I am getting error as ("Out of Memory .Advice : Close other applications or windows and try again").
    If I am trying same through IR studio it does not give any output and show me same repoting front page.
    If i am selecting periods till 8 months it is giving the required data in both IR web client and IR studio.
    Could you please suggest how can we resolve this issue.
    Thanks,
    D.N.Rana

    Issue Cause :
    Sometimes this is due to excessive data which brings the size of the BQY file up around one gigabyte uncompressed in size (for processing may take twice as actual RAM, plus the memory space space for the plugin, and the typical memory limit on a 32-bit system is 2 gigabytes).
    Solution :
    To avoid excessive BQY size exceeding memory availability:
    Ensure that your computer has at least 2Gb of free RAM before he runs IR Studio.
    Put a limit to the number of rows that can be pulled down: Right click on Request label of Query section and put a value in Return First xxx Rows (and check the check box).
    Do not pull down more than 750 MB of data (remember it may be duplicated while processing).
    Place limits or aggregations in Query section (as opposed to Result section) to limit data entering the BQY.

  • How to fetch data for the Change Request in PROCESS_EVENT

    Hi All,
    I need to write some custom logic on Save/Submit button. For this I am planning to enhance the PROCESS_EVENT method of class CL_USMD_CR_MASTER. Within this method I need to access runtime data of the change request currently being processed.
    I am going to create a post-method exit for this PROCESS_EVENT method. Is this correct?
    I have heard we have APIs in MDG which can be used to fetch data, however I do not know how to use the same.
    Can someone please help me with sample code how to fetch the runtime data of the Change Request
    Thanks in advance.
    Regards,
    Vanessa

    What MDG domain are you working on? What you are trying to do is called "reuse mode" enhancement and you do NOT want to tinker with the FPM feeder classes in this case. SCN document Configuration and Enhancement of SAP Master Data Governance contains many examples on how to achieve this.
    This is a how-to document for MDG-M reuse mode enhancement: Extend MDG-M Data Model by a New Entity Type (Reuse Option)
    This is a how-to document for MDG-C/S reuse mode enhancement: SAP How-To Guide: Extend the MDG Business Partner - Node Extension (Reuse Option)
    Keep in mind, these examples are mainly for additional "master data" fields. If you need additional fields that are not master data but are more related to the Change Request itself, you should use this how-to document: Enhancement of the User Interface Building Block for Change Requests
    Again, all of these documents can be found on the first document I referenced above. I suggest that you bookmark it.

Maybe you are looking for