Not able to find the Error in code !

please help me to find the error in my code. When I Added x1~kondm its not giving anything i.e
*join t178t as x1
*on   p1kondm = x1kondm
in the SQL part !
REPORT YINTERACTIVEPROGRAM01.
TABLES:VBAP,
       VBPA,
       VBRP,
       VBRK,
       KNA1,
       ADRC,
       TPAR,
       TVKGG,
       TVM1T,
       TVM2T,
       TVM3T,
       TVM4T,
       VBKD,
       SZA1_D0100,
       T178T.
TYPES:BEGIN OF TY_TAB,
         VBELN LIKE VBAK-VBELN,
         VKORG LIKE VBAK-VKORG,
         ERDAT LIKE VBAK-ERDAT,
         AUGRU LIKE VBAK-AUGRU,
         BSTDK LIKE VBKD-BSTDK,
         BSTDK_E LIKE VBKD-BSTDK_E,
         spart like vbap-spart,
         kondm like vbap-kondm,
         waerk like vbap-waerk,
         netwr like vbap-netwr,
         kwmeng like vbap-kwmeng,
         vkaus like vbap-vkaus,
         land1 like vbpa-land1,
         nrart like tpar-nrart,
       vtext like tpar-vtext,
         parvw like tpar-parvw,
         name1 like adrc-name1,
         name2 like adrc-name2,
         name3 like adrc-name3,
         name4 like adrc-name4,
         ort01 like kna1-ort01,
         pstlz like kna1-pstlz,
         vtext like t178t-vtext,
      END  OF TY_TAB.
DATA: ITAB TYPE STANDARD TABLE OF TY_TAB WITH HEADER LINE.
parameters:salesno like itab-vbeln.
select s1~vbeln
       s1~vkorg
       s1~erdat
       s1~augru
       k1~BSTDK
       k1~BSTDK_E
       p1~spart
       p1~kondm
       p1~waerk
       p1~netwr
       p1~kwmeng
       p1~vkaus
       r1~land1
       t1~nrart
      t1~vtext
       t1~parvw
       n1~name1
       n1~name2
       n1~name3
       n1~name4
       c1~ort01
       c1~pstlz
       x1~vtext
into corresponding fields of table itab
from  vbak as s1
join  VBKD as k1
on   s1vbeln = k1VBELN
join vbap as p1
on   k1vbeln = p1vbeln
*join t178t as x1
*on   p1kondm = x1kondm
join vbpa as r1
on   p1vbeln = r1vbeln
join tpar as t1
on   r1parvw = t1parvw
join ADRC as n1
on   r1adrnr = n1addrnumber
join kna1 as c1
on   r1land1 = c1land1
where k1vbeln = salesno and  s1vbeln = salesno and p1~vbeln = salesno
and  r1~vbeln = salesno.
loop AT ITAB.
  WRITE : /(30)'VBELN: ',  ITAB-VBELN,
          /(30)'VKORG: ',  ITAB-VKORG,
          /(30)'ERDAT: ',  ITAB-ERDAT,
          /(30)'AUGRU: ',  ITAB-AUGRU,
          /(30)'BSTDK: ',  ITAB-BSTDK,
          /(30)'BSTDK_E:', ITAB-BSTDK_E,
          /(30)'SPART: ',  itab-spart,
          /(30)'KONDM: ',  itab-kondm,
          /(30)'WAERK: ',  itab-waerk,
          /(18)'NETWR: ' , itab-netwr,
          /(18)'KWMENG: ', itab-kwmeng,
          /(10)'VKAUS:',   itab-vkaus,
          /(30)'LAND1:',   itab-land1,
          /(30)'NRART:',   itab-nrart,
          /(30)'PARVW:',   itab-parvw,
          /(30)'ADDR1:',   itab-name1,
          /(30)'ADDR2:',   itab-name2,
          /(30)'ADDR3:',   itab-name3,
          /(30)'ADDR4:',   itab-name4,
          /(30)'PSTLZ:',   itab-pstlz,
          /(30)'ORT01:',   itab-ort01,
          /(30)'Compiler desc:',   itab-vtext.
           uline.
ENDLOOP.
            if sy-subrc <> 0.
            write : / 'No data found'.
            endif.

hi,
  u failed to check relationship between tables and as well as mandatory fields need to be checked, i noticed following
from vbak as s1
join VBKD as k1
on s1vbeln = k1VBELN
join vbap as p1
on k1vbeln = p1vbeln and k1posnr = p1posnr
*join t178t as x1
*on p1kondm = x1kondm
join vbpa as r1
on p1vbeln = r1vbeln   <b>and p1posnt = r1posnr </b> join tpar as t1
on r1parvw = t1parvw
join ADRC as n1
on r1adrnr = n1addrnumber     <b> * No relation between these two tables/b]     
join kna1 as c1
on r1land1 = c1land1 <b>and r1kunnr = c1kunnr</b> <i>'here u need to check mandatory fields also</i>
where k1vbeln = salesno and s1vbeln = salesno and p1~vbeln = salesno
and r1~vbeln = salesno.
anyway, in performance point of view, writeing code with this much joins is not acceptable.
comeback if you need any further help
regards,
pavan
Message was edited by:
        pavan kumar pisipati

Similar Messages

  • Hi, i'am not able to find the redemption code that is required to renew subscription for my creative cloud account. Please advice.

    Hi, i'am not able to find the redemption code that is required to renew subscription for my creative cloud account. Please advice.

    Redemption Code Help
    Mylenium

  • FindClass() not able to find the class in the same path

    Hi,
    I have a c prototype which calls a java function which push a message in JMS. i'm using jdk1.6. i have set JavaVMInitArgs vm_args.version = JNI_VERSION_1_6 when i compile the c code as gcc -g -lgcj -I $JAVA_HOME/include -I $JAVA_HOME/include/linux CallJMS.c the JNI_CreateJavaVM(&jvm, (void*)&env, &vm_args)* returns JNI_ERR. After changing version to 1.4 JavaVMInitArgs vm_args.version = JNI_VERSION_1_4 finally it gives me an executable which calls the java function (how ever the required functionality is not got)
    To get the required functionality i had to use jdk1.6 so i changed the version property to JNI_VERSION_1_6 and the compiling command as gcc -g CallJMS.c -I $JAVA_HOME/include -I $JAVA_HOME/include/linux -L $JAVA_HOME/jre/lib/i386/server -ljvm .This gave me an executable, but when i execute it is not able to find the java class file. I have kept both the java and c file in the same path and also set the CLASSPATH. Please help.

    Hi jschell,
    I got solution to this problem. As you said it is due to wrong CLASSPATH set .
    Before:
    JavaVMInitArgs vm_args;
    JavaVMOption options[3];
    options[0].optionString = "-Djava.class.path=.:/home/programs/JbossMetro/jboss-5.1.0.GA/server/default/deploy/JMSforCNew.war/WEB-INF/classes";
    options[1].optionString="-Djava.library.path=.:/home/program/jdk1.6.0_23/jre/lib/i386/server";
    options[2].optionString="-verbose:jni";
    vm_args.version = JNI_VERSION_1_6; //JDK version. This indicates version 1.6
    vm_args.nOptions = 3;
    vm_args.options = options;
    vm_args.ignoreUnrecognized = 0;
    int ret = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
    if(ret < 0)
    printf("\nUnable to Launch JVM\n");
    else
    printf("\nLaunched JVM\n");
    I was setting the CLASSPATH to the Path where my java class files were kept. When the JVM instance is created only this path (where my java class is residing) is identified and the JMS and other paths which was already set in the CLASSPATH environment variable is lost. Thus when i call the java class from the c program it is not able to find the dependent class files and it was aborting.
    After:
    Before setting the path where my class files are residing to CLASSPATH, get the path's in the CLASSPATH to a variable, append the path where my class files are kept to this variable and then set the CLASSPATH . Similarly do for the LD_LIBRARY_PATH. This works fine.
    char cpathBuff[100000];
    char ldpathBuff[4096];
    JNIEnv *env;
    JavaVMInitArgs vm_args;
    JavaVMOption options[3];
    cpath = (char*) getenv("CLASSPATH");
    sprintf(cpathBuff,"%s%s:%s","-Djava.class.path=",cpath,"/home/programs/JbossMetro/jboss-5.1.0.GA/server/default/deploy/JMSforCNew.war/WEB-INF/classes");
    options[0].optionString = cpathBuff;
    ldpath = (char *)getenv("LD_LIBRARY_PATH");
    sprintf(ldpathBuff,"%s%s:%s","-Djava.library.path=",ldpath,"/home/program/jdk1.6.0_23/jre/lib/i386/server");
    options[1].optionString = ldpathBuff;
    vm_args.version = JNI_VERSION_1_6; //JDK version. This indicates version 1.6
    vm_args.nOptions = 2;
    vm_args.options = options;
    vm_args.ignoreUnrecognized = 0;
    int ret = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
    if(ret < 0)
    printf("\nUnable to Launch JVM\n");
    else
    printf("\nLaunched JVM\n");
    Thanks for your support Peter and JSchell.
    Edited by: 844094 on Mar 15, 2011 2:37 AM

  • Not able to find the field xmwst in the idoc type fidccp02

    Hi all,
       I am developing abap program which uploads values from a flat file and creating an idoc.
    the basic idoc type is fidccp02, in this idoc i am not able to find the fiels xmwst - automatic tax calculation , if anyone give alternative soluations it will be appreciated.
    thanks in advance
    a.fahrudeen

    I guess if standard IDOC doesnt have that field, then you need to extend the IDOC. YOu need to find user exit in that IDOC and write the code.
    --Archana

  • If I do not select F11 ( full screen ) a big part of the screen "falls" of the right hand side of my monitor and is not readable, I am not able to find the neccesary adjustments.

    Question
    If I do not select F11 ( full screen ) a big part of the screen "falls" of the right hand side of my monitor and is not readable, I am not able to find the neccesary adjustments.
    Screen 2/3 blanco on the left side
    With F11 all OK.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • I have inadvertently infringe copyright on facebook and they have subsequently barred me from uploading any more videos. The question I need answered is ( and not able to find the answer on any of you help pages).....  Do the following have free copyright

    I have inadvertently infringe copyright on facebook and they have subsequently barred me from uploading any more videos.
    The question I need answered is ( and not able to find the answer on any of you help pages).....
    Do the following have free copyright to publish on facebook and U Tube?
    1.Garage band sounds?
    2.Slide show...Sample music and Theme music?
    3.iMovie...iMovie sounds and iLife sounds ie.Medal Ceremony and Memorial etc?
    I note one can publish to shared net places directly from iMovie so one assumes these are copyright free for non-profit making and non-comercial use.
    It is impossible to contact apple direct.No email address.We put our selves at risk without this knowledge and like applemac, facebook will not communicate direct.Will applemac please take responsibility for copyright/the above that they are all too willing to sell to us but not support us with that knowledge.
    I have Mac OS X Snow Leopard version 10.6.2 (2009 bought in 2010)

    Thank you Klaus1.The large font, I copied and pasted from my mail box.I'm visually impaired...not to a huge degree but it helps to use the large font.I believe you are right about the copyright on the imac stuff but if facebook decide otherwise, you have to reply electronically to their challenge.If you can't provide a reference directly from the copyright owner then they remove the video.I believe this is a programmed response and no human is involved which now makes it impossible for me to get my video uploading restored.They detect added soundtrack automatically and then challenge.There are many others in the same boat and facebook will not communicate.They have various discussion sites on which I have left messages including Mark Zuckerbergs own facebook but I don't think anyone from facebook ever reads them.I intend to start a second facebook which I can use purely to get my videos uploaded as a lot of my friends enjoy them BUT don't want fall foul of their programming again.If only iMac would put something on the net to this effect.I think it is so unfair that with modern technology it is impossible to contact these large conglomerates personally and receive an email response.I tried emailing [email protected] but I got a failure notice.If you have any ideas on how to get verification from apple direct, I would be very grateful.Thank You.

  • Not able to find the created BI System

    Hi,
    I have configured the BI System as in the document.
    http://help.sap.com/saphelp_nwce10/helpdata/en/7e/6dbcea3700452195e3bddaa47c5906/frameset.htm
    I am having few doubts.
    1. Whether we need to choose only SAP system with load balancing template.
    2. Whether we can set
               BI Directory Provider: No
               BI Master System: No
    And also one more thing, I am using UIDPWD logon method. Whether there will any problem with this
    I need clarifications on these.
    Also after doing all these things i am not able to find the created BI System in VC.
    When i test the same in Portal, it is saying the connection is successful..
    Anyother step needs to be done, after this in configuration. Please let me know.
    Please help me to resolve this issue.
    Regards,
    Palani
    Edited by: Palani Appan on Sep 12, 2008 1:41 PM

    Hi Inna,
    Thanks for the reply.
    But in Portal I have done the User Mapping between Portal Server and BI System.
    I am using BI 3.5 System, Whether there will be any problem?
    The BI Kit is already installed and i am able to view the components.
    Still i am not able to get the System that i have created in portal into VC 7.1.
    I am only getting Web Services created in that system and Service Registry and Visual Composer Models in Search Tab.
    Whether we need to create a RFC destination also for this BI system?
    Please help me to solve this issue.
    Regards,
    Palani
    Edited by: Palani Appan on Sep 15, 2008 4:44 PM
    Edited by: Palani Appan on Sep 16, 2008 9:42 AM

  • Not able to find the required upgrade patch for 10.2.0.2

    Hi all,
    I am trying to upgrade my database from 10.2.0.1 to 11.2.0.2, for which first i need to upgrade it to 10.2.0.2. But am not able to find the same in the support.oracle.com , please advice.
    Platform details :
    [ora10g@www ~]$ uname -a
    Linux www.benefits.com 2.6.18-164.el5 #1 SMP Thu Sep 3 02:16:47 EDT 2009 i686 i686 i386 GNU/Linux
    Database details :
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Thanks and Regards,
    Littlefoot

    The 10.2.0.2 patch is 4547817 - see this MOS Doc
    Quick Reference to Patchset Patch Numbers [ID 753736.1]
    HTH
    Srini

  • Hi, I recently updated my iPhone 4 with the new OS 5. However, mid way now the laptop is not able to find the drivers for the iPhone. Please help

    Hi, I recently updated my iPhone 4 with the new OS 5. However, mid way now the laptop is not able to find the drivers for the iPhone. Please help

    Please search the forums. This has been covered here extensively.

  • I am not  able to find the Subsription/manage part. It is not available for me in the "view apple id" screen

    i am not  able to find the Subscription / manage part. It is not available for me in the "view apple id" screen

    ok . i am I try to managed  cycleops app for tablet
    https://www.cycleops.com/virtualtraining/apps-pricing

  • User is not able to find the receipt to correct it from Iprocurement.

    User is not able to find the receipt for PO to correct it. User logged into iProcurement and queried for this PO but system says no data exists.
    I checked there is a receipt for this PO and the same can be queried in Correction window through core APPS.
    Could you please help why its not available in iProcurement for correction.
    Thanks in Advance,
    AVN

    Are you logging into right organization (OU) to check the receipts?
    Check your ship to location in PO and then based on that change your organization (through responsibility or change organization) then query yur receits, it should come.
    BTW for receipts to be seen, the PO lines should not be in "CLOSED" status!
    Jithendra

  • Not able to find the HR Integrator Function in the Function

    Dear All,
    I am not able to find out the HR Integrator function in the Functions. Kindly do i need to do any setups or any other things to get this in place.
    We are using Version R 12.0.6
    Thanks and Regards,
    Joshna.

    Hi Duncan,
    Sorry for the late response.
    Please find the issue below.
    - we wanted to create an HR Integrator for the Requisition and vacancy. For this we find the steps in the metalink. Please find the steps below.
    When we are doing 5 th step we are not able to find the "HR Integrator" in the list of values. So we went and check the Menu there we find that HR Integrator function is not attached to the Menu. We tried to call that function but we are not finding that Function.
    1.Check your IE and Excel/Word Settings.
    2.Select the ‘Desktop Integration’ Responsibility
    3.Click ‘Create Document’ function
    4.Uncheck the Reporting Checkbox as this integrator is for uploading. Select the Viewer as Excel
    5.Select the ‘HR Integrator Setup’ as the Integrator.Click "Next"
    6.Select Content as "None" as we need to create the blank document for upload and Click "Next"
    7.Click on "Create Document "
    8.Once the spreadsheet is created, enter the following details and upload it back into the system.
    Metadata Type : DOWNLOAD – to create download integrators
    UPDATE – to create download / upload integrators
    Application Short Name : PER
    Integrator User Name : <User Defined Name for Integrator>
    View Name : <User Defined View>
    Form Name : Name of the Form to which the integrator is to be associated
    API Package Name : API Package Name used to Upload Data (Only for UPDATE Integrators)
    API Procedure Name : API Package Procedure (Only for UPDATE Integrators)
    API Type : PROCEDURE / FUNCTION
    Click on Oracle -> Upload to create the integrator
    9.Define a Function using System Administrator -> Application -> Function. This function will be used to restrict the Responsibilities for which a particular integrator is available.
    Function = Internal Function Name
    User Function Name = User Defined Function Name
    10.Create the Form Function Association Document using Web ADI Menu –Desktop Integration -> Create Document
    Select Integrator as "HR Maintain Integrator Form Function Associations" and repeat step 4
    11.Select the application in which the integrator is defined and the Integrator User Name for the Form Function Association has to be done. Click Next to continue.
    12.Click on "Create Document" and Attach the Form Function created in step 9 i.e.Internal Function Name to the Integrator in the document created in the above step and upload the same.
    13.Define the Layout for the Integrator created in above steps using
    Desktop Integration -> Define Layout
    14.Select the integrator for which the Layout has to be defined and click Go to continue.
    15.Select the columns that will be displayed and click Apply
    16. Navigate to the Form which you have attached in step 8 and Click on Export Icon.
    You will be able to view the Integrator.

  • Not able to find the New ods created in Query Designer.

    Hi,
    I am trying to create a new query on an ODS(new) in Query Designer but not able to find the ODS . The ODS is present in the system however when we check . Please advice whats going wrong.

    Hello Prakash,
    I know the solution
    Go to RRMX -> Queries -> Select New Query -> and then click on InfoArea -> Select ur new ODS -> and Click OK
    U will be able to see characteristics and keyfigures..
    Drag and drop and click on execute....
    Reward if its helpful.....
    Thanks,
    Sonu

  • Not able to find the infosource and transfer rules in the infosource tab

    Hi everyone,
    Not able to find the infosource and transfer rules in the infosource tab in Modelling. I was able to see that the infosource is available under nodesnot connected in the transport connection tab. But i cannot see the same in infosource tab. Please advise.

    I have searched with technical name, I am not able to find it, but when i double click on the datasource .....the transfer rules pop up. Because I have not transported the application component, I am not able to find it. But even though it should be available on the nodesnotconnected, I still cannot see it. Is there a work around this ?
    I have also tried rsa1old, it still could not find.
    Thanks for your quick response

  • I am not able to find the agree button in the terms and conditions agreement in my new iphone 5

    i am not able to find the agree button in the terms and conditions agreement in my new iphone 5

    Hi
    I managed to resolve this. See my solution for this other poster:
    https://discussions.apple.com/message/23058902#23058902

Maybe you are looking for

  • Error: in email task

    Hi, I am facing an issue with the Workflow in the last step (sending email). The workflow was working fine in 4.6C version but now i have upgraded to ECC6.0 and its throwing an error. I have rechecked the bindling betw. workflow & task and task & met

  • Iphone 4 Used as iPod.

    I am currently using my old iphone 4 as an ipod - how do I keep the phone lit when it is playing? My Nano ipod used to always stay lit throught the duration of play and I used to like seeing the artwork. 

  • Navigation iView source

    Hi all, I know the position of SDN and this kind of question shouldn't exist. But with the time pressure, we need to implement something pretty the same as Navigation iView but with some extra functionalities, for example display html files stored in

  • What are icons in the Project Library?

    Anyone know what the meaning of icon which looks like a series of 4 boxes, small to large? In my project gallery, each movie project has these, with some highlighted, and 2 movies have a yellow box with exclamation point above, sort of over a volume

  • Read Cell Comments in binding using Office.js

    Hi All, I am building an Excel Visualizations App. I would like to create an option of adding comments into the visualization. How can I read comment in Cells using the Office.js. Regards BZ