Query does not retrieves the correct values

Hi,
pls look into the code.
clear: wf_etenr,
         vbep.
To get the Scheduled Loading date and Scheduled Arrival Date.
    SELECT MAX( etenr ) FROM  vbep INTO wf_etenr
                        WHERE vbeln = tvbdpl-vgbel
                        AND   posnr = wl_posnr.
    IF sy-subrc EQ 0.
      clear vbep.
      SELECT SINGLE * FROM vbep         "R02
             WHERE vbeln = tvbdpl-vgbel "R02
              AND posnr = tvbdpl-vgpos  "R02
              AND etenr = wf_etenr.
      IF sy-subrc EQ 0.
when i see the values at dictionary level using the same wher conditions are mismatching with the query excution result in the program.
here in the second query ( SELECT SINGLE * ) it giving the wrong results .
if i compare the results at table level ,some of the field values are missing after excuting the above second query.
pls can any one give me ur suggestion on this !
rgds
sanjay reddy

Hi,
are these the same?
wl_posnr and tvbdpl-vgpos
try
SELECT SINGLE * FROM vbep
WHERE vbeln = tvbdpl-vgbel
AND posnr = wl_posnr
AND etenr = wf_etenr.
IF sy-subrc EQ 0.
to make somewhat consistent querys.
regards
Message was edited by: Zlatko
        Zlatko Stracenski

Similar Messages

  • Alerts not retrieving the correct number of records

    Hi,
    I have created alerts to run plans. These plans are getting records from DB and populating the ADC. The alerts are getting executed but are not retrieving the correct number of records.
    I have created 5 alerts to run 5 plans all in the same time. The error at the "Data Flow service status" window is :
    CACHED RESULT
         REQUEST ID: {4EB6B955-96B3-4AF2-B836-6C9F417D47A6}
         EXECPLAN ID: {11372B4D-9ACE-4CFB-831F-11028FF996D5}
         EXECPLAN NAME: xxxx
         FIX COUNT: 0
         START TIME: 6/8/2006 12:00:01 PM
         EXECUTION TIME: 0:00:00
         Sink Records Blocks Disk Blocks Fix Count Hit Count Execution Status
         0: 0 0 0 0 0
    Complete - ERROR Error while processing the data for the step 'SQL Query'
    This error is seen for 2-3 plans .......
    But if i execute the plan manually from design studio there is no error.
    So
    1. Do i need to change anything in the config files to increase the MAx memory block?
    2. Is there any way, the plans can be run one at a time i.e. configure alerts in such a way that if one plan finishes the other one starts automatically? Currently i have scheduled the plans to run at the same time using Alerts..
    Please help...
    Thanks

    Here is one 'culprit' you can verify. Open DesignStudio. You should "--not--" see any grids or icons on (near) the botton status row. If you see them - right click and delete them. These are plans with same_names put in 'locked' state. After you do this. close your design studio.
    Note- if you ever open a plan in designstudio, always "save" it and close it (exit). Donot click on window [x] mark to close the appl.
    After above verifrication -- restart EnterpriseLink and restart PlanMonitor, verify if everything runs fine.
    --sanjeev                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • COPA Derivation Rules are not assigning the correct values

    COPA Derivation Rules are not assigning the correct values when we process billing documents in batch.  We currently have derivation rules defined to take the ship to country and refer to custom tables were we identify custom geographic groups (INT/DOM and EAM, AP, etc.).  The derivation rules work accurately when the billing documents are created individually, and more than 75% of them are accurate when generated in batch, but in some circumstances, it populates the derived values with the wrong field and we can not identify where or why that's happening.  It looks like it may have something to do when the ship to customer number account group is different, but that's not consistent..  Does anyone know how or where these values get populated, or have any ideas why incorrect values are appearing sporadically throughout the billing run?  Thanks!!!

    Leigh,
    Apparently the function module is changing the values for some billing docs. Check one of the following user exits, if it gets triggered and the values are changed:
    COPA0001  Enhancement for derivation in Profitability Analysis (CO-PA)
    Function Module: EXIT_SAPLKEDRCOPA_001
    COPA0002  Enhancement for valuation in Profitability Analysis (CO-PA)
    Function Module: EXIT_SAPLKEAB_001
    COPA0003  Enhancement for assignment to profitability segment (CO-PA)
    Function Module: EXIT_SAPLKEAK_001
    COPA0005  Enhancement for actual data update (CO-PA)
    Function Module: EXIT_SAPLKEII_001
    Function Module: EXIT_SAPLKEII_002
    Award suitable points if the above helps. You can also reach me at [email protected]
    Thanks
    Ajay

  • TS1702 The Calendar app that came on my i4S Phone does not sync the correct time for items posted on my Yahoo Calendar.  Actually, they post exactly 4 hours earlier than the correct time on my Yahoo Calendar.  Does anyone have a "fix" to correct the "time

    The Calendar app that came on my i4S Phone does not sync the correct time for items posted on my Yahoo Calendar. Actually, items post exactly 4 hours earlier than the correct time on my Yahoo Calendar.   My i4S is in the correct New York time zone.  Help?

    I posted this question a while ago and didn't receive any responses but there are a lot of people who have viewed it and 10 have said they have the same question so I thought I would update you that I added my nanny to my exchange server account (created an email for her) and I send all invites to that email address and they work.  So sending invites from an exchange server account to a non-exchange server account apparently is a bug so to solve it, get on an exchange server I guess.

  • Batch Split in OBD & billed for the entire Quantity .RG1  register does not update the excise values

    Hi All,
    I am new here . We have batch split in Delivery and 601 happens for the individual batches and billing we bill for the entire quantity . Hence the RG1 does not update the excise values for the batches and it is showing as zero (upon extraction in J2I6). Upon research through the program the latest note which i presume is patched
    The latest note is N158234 which does not show in the program but seems have been patched considering we are using the Latest version of SAP .
    As you see above in the billing we have billed for the whole quantity but RG1 does not update for the since the batches are zero .
    My programmer says because of some note related to cancellation where it says about values H & J in vbfa table and due to which program does not go through the Note for the batch split .
    Now i have checked few other projects in my company and they all seems to be following the program . So i am wondering whether my process or some customization is missing .
    Sales order (no batch determination)  , in delivery the batches are picked through wm to and batch split happens in the delivery . Then billling for the whole quantity . We have automatic excise invoice creation enabled so no J1IIN .
    Can somebody help me .
    Thank you

    My programmer says because of some note related to cancellation where it says about values H & J in vbfa table and due to which program does not go through the Note for the batch split
    Which field (H & J) they were referring in VBFA ?
    i have checked few other projects in my company and they all seems to be following the program
    How about the other projects' values in VBFA where your techinical team is guessing some issue.  Have you compared this?
    Since you have already the note 158234 implemented in your system, ideally, you should not face any issue.
    G. Lakshmipathi

  • Certificate does not contain the correct site name

    Hello,
    I have to make a midlet that connect to a tomcat 5.5.9 server with ssl.
    I import the certificate whit tomcat alias in the wireless toolkit but when i run the midlet this error appear: Certificate does not contain the correct site name
    import java.io.*;
    import javax.microedition.midlet.*;
    import javax.microedition.io.*;
    import javax.microedition.lcdui.*;
    public class HelloNet extends MIDlet implements CommandListener , Runnable{
    // User interface command to exit the current
    // application.
    private Command exitCommand = new Command("Exit",
    Command.EXIT, 2);
    // User interface command to issue an HTTP GET
    // request.
    private Command getCommand = new Command("Get",
    Command.SCREEN, 1);
    /// The current display object.
    private Display display;
    // The url to GET from the 'net.
    private String url;
    * Initialize the MIDlet with a handle to the
    * current display.
    public HelloNet() {
    url = "https://127.0.0.1:8443/Hello.txt";
         display = Display.getDisplay(this);
    * This lifecycle method should return immediately
    * to keep the dispatcher
    * from hanging.
    public void startApp() {
         showPrompt();
    * Display the main screen.
    void showPrompt() {
    String s = "Press Get to fetch " + url;
    TextBox t = new TextBox("Http Result", s,
    s.length(), 0);
    t.addCommand(exitCommand);
    t.addCommand(getCommand);
    t.setCommandListener(this);
         display.setCurrent(t);
    * pauseApp signals the thread to stop by clearing
    * the thread field.
    * If stopped incorrectly, it will be restarted from
    * scratch later.
    public void pauseApp() {
    * destroyApp must cleanup everything. The thread
    * is signaled
    * to stop and no result is produced.
    * @param unconditional is a flag to indicate that
    * forced shutdown
    * is requested
    public void destroyApp(boolean unconditional) {
    * commandAction responds to commands
    * @param c command to perform
    * @param s Screen displayable object
    public void commandAction(Command c, Displayable s) {
         if (c == exitCommand) {
         destroyApp(false);
         notifyDestroyed();
         } else if (c == getCommand) {
              Thread th= new Thread (this);
              th.start();
    * Read the content of the page.
    public void run() {
    TextBox t = null;
    StringBuffer b = new StringBuffer();
    HttpsConnection c = null;
    InputStream is = null;
         try {
         int len = 0;
         int ch = 0;
         System.out.println("Cerco di leggere");
    c = (HttpsConnection)Connector.open(url);
    c.setRequestMethod(HttpsConnection.GET);
         is = c.openInputStream();
    // length of content to be read.
    len = (int) c.getLength();
    if (len != -1) {
    // Read exactly Content-Length bytes
    for(int i=0; i<len; i++) {
    if((ch = is.read()) != -1) {
    b.append((char) ch);
    } else {
    // Read until connection is closed.
    while((ch = is.read()) != -1) {
    len = is.available();
    b.append((char) ch);
    t = new TextBox("Https Result", b.toString(),
    b.length(), 0);
         } catch (Exception e) {
    e.printStackTrace();
    String s = e.toString();
    if(s != null) {
    t = new TextBox("Https Error", s, s.length(),
    0);
    } finally {
    if (is != null) {
         try {
              is.close();
         } catch (Exception ce) { }
    if (c != null) {
         try {
              c.close();
         } catch (Exception ce) { }
    display.setCurrent(t);
    }

    re: code tags, please see http://forum.java.sun.com/help.jspa?sec=formatting.
    As for the rest:
    See, we now know that you used keytool to generate you certificate. You need a new certificate. This time, when keytool asks you for a first and last name, type 127.0.0.1.

  • Oam does not show the correct configuration information

    Oracle apps,
    An issue with the oam.
    There are 2 nodes in our system. In 12
    One is for db and cm
    The other is for forms and apache.
    The system is running fine.
    But from the OAM, where it does not show the correct configuration info.
    From the OAM, all the services are (including db, cm, forms, apache) on one node.
    The issue might be caused by the fact that the web tier was cloned from the cm tier as a workaround for some patch errors in web tier.
    I even used the EXEC FND_CONC_CLONE.SETUP_CLEAN; to clean the system tables and ran
    Autocfg on all tiers. But it didn’t solve this issue.
    How can I fix this OAM problem to make it show the correct information?
    Thanks,
    Lily

    Thanks for reply.
    Yes, I did commit it.
    The hostname information is correct.
    On oam, this web node is there but all the service actually running on this node is
    showing under the cm node .
    <TIER_DB oa_var="s_isDB">NO</TIER_DB>
    <TIER_ADMIN oa_var="s_isAdmin">YES</TIER_ADMIN>
    <TIER_WEB oa_var="s_isWeb">YES</TIER_WEB>
    <TIER_FORMS oa_var="s_isForms">YES</TIER_FORMS>
    <TIER_NODE oa_var="s_isConc">YES</TIER_NODE>
    <TIER_FORMSDEV oa_var="s_isFormsDev">YES</TIER_FORMSDEV>
    <TIER_NODEDEV oa_var="s_isConcDev">YES</TIER_NODEDEV>
    <TIER_WEBDEV oa_var="s_isWebDev">YES</TIER_WEBDEV>

  • Adobe Acrobat 8 Professional does not accept the correct serial number after reinstallation

    Adobe Acrobat 8 Professional does not accept the correct serial number after reinstallation, what to do?

    Thank you Bill. You could help me with the answer and the one in the other forum:
    "Acrobat has a separate installation process and needs to be activated with your Adobe ID I think. The question on CC is really one for the folks in the CC forum (Adobe Creative Cloud), not the Acrobat forum".
    I could resolve things with Adobe CC. I don´t need my old Acrobat 8, but I could finally install Acrobat XI Pro - and this time it seems to work, without permanently crashing down.
    Thank you.

  • Adobe Acrobat 8 Professionals does not accept the correct serial number after reinstallation

    Adobe Acrobat 8 Professionals does not accept the correct serial number after reinstallation, what to do?

    Moved to Acrobat Installation & Update Issues

  • N81 does not retain the correct date...

    My N81 got a very strange problem: it does not retain the correct date....
    Usually it's wrong by two days ago....!
    The S.O. Ver. is: 10.0.32 
    Thanks you and sorry for my english...! :-)

    hi there, have you checked that there is a firmware update for your model? v10 sounds like the original firmware for the N81. i would suggest checking on your PC via Nokia Software Updater for any firmware updates. the latest firmware version for the N81, unbranded or not, is v21.  
    If you found this or someone's comments helpful or like what that person has to say, please give some Kudos to their post!

  • Mini Calendar does not show the correct date

    Hi there ,
    in iCal on the bottom left side of the window is the mini Calendar, when I switch between months in this mini Cal,it does not show the correct month anymore and even the button "Today" can not revert the day back ( for example we are now in September, when I open iCal it shows it correctly but after going to next or previous months using the triangles on this mini Cal, the problem comes up ! )

    Maybe it wasn't receiving the correct info from your carrier. You're supposed to turn your phone off once in a while so the carrier can update stuff. I had originally heard that you should do it once a day but I never did that.

  • Transport certificate does not have the correct issuer or is expired

    Hi all,
    I hope this is not a duplicate question.
    We are assisting a partner company set up the Flash Access ecosystem.  They have asked us to help packaged some content for them using certificates issued to them.  I've been trying to package content that works fine when using our certificates but I keep getting this error : Transport certificate does not have the correct issuer or is expire when I try to package with their certificates.
    The certificate has not expired.  That was the first thing I checked.
    Has anyone run into this error?  I am using the reference implementation for packaging if that helps.
    Thanks.
    Pedro.

    Hi Katherine,
    Thanks for responding. 
    Indeed I do have the adobe-flashaccess-certs.jar in my path.  I was able to package with a certificate issued to our own company.  Our Certificates were Trial Certificates.  The ones I am having problems with are test PKI certificates that our partner sent to us so that we can help them out. 
    Please let me know if you need any more info.  I am definitely down with helping someone trying to help me!
    Thanks.
    Pedro.

  • Build does not contain the correct beta entitlement???

    Hello everyone,
    Should I be concern about this warning message?  Thanks.
    "Build 32.0.1.17.99204 does not contain the correct beta entitlement"

    Hi i have the same issue, I created a new provisioning file but still i have the same issue.
    I have created new certificate, p12, provisioning file, using openssl,windows os, flashbuilder 4.6 but nothing happened.
    I suspect i should also create new AppID(i have used my existing appid).
    Please help me in solving the issue. 

  • ITC - Build 1.x.x does not contain the correct beta entitlement.

    Hi,
    I have a major problem when uploading Builds via the Application Loader (2.9.1) to iTC.
    - I use Flash CC 2014 to create my iOS Apps.
    - I recreated my certificates, p12 and mobile provisioning profiles.
    - I can Upload my Builds via Application Loader without any error messages. Everything is fine here!
    - Then in iTC it takes several minutes (5-45) until the Apps Appear.
    - I am able to "Add a Build" in the first "Versions" Menu!
    BUT in "Prerelease" it looks like this:
    ... all Builds are marked as "Invalid Binary"
    Message: "Build 1.2.2 does not contain the correct beta entitlement. For more information, see the iTunes Connect Developer Guide."
    Even though all Builds are marked as "Invalid" they can be selected and I can submit them for review.
    ... the sad thing is - another App with the same Status "Invalid Binary" is waiting for review for almost 2 weeks now and nothing happens.
    Can anyone please tell me what I have to do? It seems Apple does not review Apps with this Status . Normally I get an email from iTUnes connect saying something like:
    "Dear developer,
    We have discovered one or more issues with your recent delivery for "XYZ". To process your delivery, the following issues must be corrected:
    ... but this time - NOTHING! :-(
    Please help!
    Thanks
    Jan

    You are likely to get better replies by asking in the developer forums (this forum is for questions about using/buying from the store) : https://devforums.apple.com/index.jspa

  • Data field FUNCTIONAL_YN does not support the default value (Message 14120)

    L.S.,
    When defining a data type of category NC, I would like to use data fields of type checkbox. At NC logging data entry the checkbox should be "checked" by default.
    When looking for the proper value to indicate that the ccheckbox is selected, I have tried values like: 0, 1, TRUE, FALSE, T, t, X, x ... etc. But always I got the same error message:
           "Data field FUNCTIONAL_YN does not support the default value (Message 14120)"
    What should be the right value?
    Kind regards, Hans

    Hans,
    It looks as if by means of GUI you cannot specify default state of being selected for Checkbox field. The default state is unselected.
    It is easier to invert the statement in the label of the field so that an operator could use unselected state as default.
    Regards,
    Sergiy

Maybe you are looking for

  • Como faço para configurar o firefox para que ele sempre perguntar se eu quero baixar ou visualizar um aruquivo antes de baixa-lo?

    Estou usando um mac e sempre que eu clicava no link de download de um arquivo de texto (pdf, word ... etc) aparecia uma tela de dialogo perguntado se eu queria visualizar ou baixar o arquivo. Nessa tela havia um selectbox com a opção de "memorizar es

  • Condition colum in VA01 is in invisible mode, ie. gray color

    Hi expert, When I create VA01, I would like to change my price. But I am getting condition tab in gray color. If it white color only we can change the price and update any manual condition records. But I am getting only under condition tab in VA01 in

  • Changing default directory locations

    I have Vista RC1 installed on a boot partition of my PC, I have changed the default location of "Documents" to my F: drive. Now I want to be able to change the defult location of "Public" folders, so that the dat ais stored on my G: drive. I have tri

  • Printing 11x17 on the Mac

    I've spent the past week looking for a solution to printing 11x17 newsletters. There are no templates available for Pages in this dimension. Today I found an archived article on the Mac Discussion Board that solved the problem beautifully... and I di

  • Saving a Frame

    How do I save a particular frame (there are a couple of seconds worth that are OK) from an online video? I tried Control plus Click several times directly on the video and next to it. I am able to print the frame, but cannot save it. Onetime a Save c