Unable to debug/correct the CMOD code for a variable used in a query

unable to debug/correct the CMOD code for a variable used in a query
i am using the data in a DSO in a query and using a custom coding variable in that query , but this data not coming in that query ..
can anyone suggest how to debug that cmod code for the variable?
code is written in CMOD tocde for the variable.

belowis the code that i have written for a custom coding for a variable
*******Start***
IF i_step = 2.
  CASE i_vnam.
    WHEN 'IC_COMPCD'.
     TYPES:       BEGIN OF gt_itab_DyAuthTable,
                       username  TYPE /bic/afiop_o1200-/BIC/IC_USER,
                       companycode TYPE /bic/afiop_o1200-COMP_CODE,
                  END OF gt_itab_DyAuthTable,
                  BEGIN OF gt_itab_Cocd_all,
                        companycode TYPE /BI0/MCOMP_CODE-COMP_CODE,
                  END OF gt_itab_Cocd_all.
      DATA: gi_itab_DyAuthTable TYPE STANDARD TABLE OF gt_itab_DyAuthTable,
            wa_itab_DyAuthTable TYPE gt_itab_DyAuthTable.
       DATA: gi_itab_Cocd_all TYPE STANDARD TABLE OF gt_itab_Cocd_all,
            wa_itab_Cocd_all TYPE gt_itab_Cocd_all.
      SELECT /BIC/IC_USER
             COMP_CODE FROM /bic/afiop_o1200
        INTO CORRESPONDING FIELDS OF TABLE gi_itab_DyAuthTable
        WHERE /bic/ic_user = sy-uname.
      LOOP AT gi_itab_DyAuthTable INTO wa_itab_DyAuthTable.
        IF wa_itab_DyAuthTable-companycode EQ '*'
          OR
          wa_itab_DyAuthTable-companycode EQ ' '.
          SELECT COMP_CODE FROM /BI0/MCOMP_CODE
              INTO CORRESPONDING FIELDS OF TABLE gi_itab_Cocd_all.
          LOOP AT gi_itab_Cocd_all INTO wa_itab_Cocd_all.
            l_s_range-low    = wa_itab_Cocd_all-companycode.
            l_s_range-sign   = 'I'.
            l_s_range-opt    = 'EQ'.
            APPEND l_s_range TO e_t_range.
          ENDLOOP.
      to exit the loop if any one value is */space/all for a user's compcode values
        EXIT.
        ENDIF.
      ENDLOOP.
       if control is here means, the comp codes values didnt have */space
          LOOP AT gi_itab_DyAuthTable INTO wa_itab_DyAuthTable.
            l_s_range-low    = wa_itab_DyAuthTable-companycode.
            l_s_range-sign   = 'I'.
            l_s_range-opt    = 'EQ'.
            APPEND l_s_range TO e_t_range.
          ENDLOOP.
  Endcase.
Endif.

Similar Messages

  • Hello, I bought my iphone in japan. And now I'm in Brazil and I use it here, I need the unlock code for me to use here. please

    Hello, I bought my iphone in japan. And now I'm in Brazil and I use it here, I need the unlock code for me to use here. please

    williamjapa wrote:
    Hello, I bought my iphone in japan. And now I'm in Brazil and I use it here, I need the unlock code for me to use here. please
    Only the carrier to which the phone is locked can authorize an unlock. None of the Japanese carriers will do that. Sell the phone and buy one that works in Brazil.

  • Supressing the JAXB code for Extended Schemas using JWSDP

    Hi,
    Im trying to generate the JAXB code for the XML Schema using JWSDP using ANT build tool.
    Q : My schema(eg., Schema01.xsd) extends other two schemas(Schema02.xsd, Schema03.xsd).Here using JWSDP package using ANT Build tool, i want to Generate the JAXB java classes only for Schema01.xsd not for other two schemas.
    Can somebody help in this regard.
    Note : By default using JWSDP, Ant build tool, in "Build.xml" it expects schema name(eg. Schema01.xsd"). when i generate the java code, it generates code for the Schema and as well as its all exetended schemas.
    Q : how can supress generating the java code for the extended schemas.
    Regards
    Madhu

    Hi, no I didn't notice this, tried it now and got
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><metadata xmlns="http://musicbrainz.org/ns/mmd-1.0#"><artist-list offset="0" count="1"><artist type="Group" id="ccd4879c-5e88-4385-b131-bf65296bf245" ext:score="100" xmlns:ext="http://musicbrainz.org/ns/ext#"><name>Echo & The Bunnymen</name><sort-name>Echo & The Bunnymen</sort-name><life-span begin="1978"/></artist></artist-list></metadata>is this right, its different to what I was originally trying to get

  • How to find the lowest grade for each student using a Select query?

    Hey I'm having a bit of trouble here
    I have this table
    Student - Grade
    John - 8
    Richard - 9
    Louis - 9
    Francis - 5
    John - 13
    Richard - 10
    Peter - 12
    Grades can range from 0 to 20.
    Name - varchar(50)
    Grade - integer
    I am trying to generate a SQL search to find each lowest grade for each student.
    So far I have done:
    select s.name,s.grade
    from student s
    where s.grade = (select min(grade) from student)
    The result of that search returns me only the lowest grade of all the grades posted above, which is Francis - 5.
    I want to find the lowest grade, but not only for Francis but also for every other student in the table.
    How do I do that?
    Thank you in advanced.

    ok,
    Now we are moving into Analytic SQL:
    with student as (select 'John' name, 8 grade, 'fail' result from dual union all
                     select 'John' name, 13 grade, 'pass' result from dual union all
                     select 'Francis',     5 grade,  'fail' from dual union all
                     select 'Peter', 12, 'pass' from dual)
    -- End of your test data
    SELECT   name,
             MAX (result) KEEP (DENSE_RANK FIRST ORDER BY grade) result,
             MIN (grade) min_grade
    FROM     student
    GROUP BY namePlease note that I passed ;)
    Regards
    Peter
    To read more:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions056.htm#SQLRF00641

  • Unable to locate the Printer Code for Desktjet 3070A, please help?

    Unable to locate the Printer Code for Desktjet 3070A, please help?

    You can follow this link for steps on getting started with ePrint on the Deskjet 3070A: http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02728147&cc=us&dlc=en&lc=en&product=5068754&too...=
    I am an HP employee

  • [svn:fx-trunk] 11073: Updating LuminosityMaskFilter. pbj to correct the PixelBender code to account for the fact that the mask artwork is in premultiplied alpha form .

    Revision: 11073
    Author:   [email protected]
    Date:     2009-10-21 18:29:07 -0700 (Wed, 21 Oct 2009)
    Log Message:
    Updating LuminosityMaskFilter.pbj to correct the PixelBender code to account for the fact that the mask artwork is in premultiplied alpha form.
    QE notes: N/A
    Doc notes: N/A
    Bugs: N/A
    Reviewer: Dan
    Tests run: Dan's luminosity test case.
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/shaders/LuminosityMaskFilte r.pbj

  • How to use same CMOD code for 2 Diff. variableS?

    Experts,
    I have written some code under CMOD. Now, i have another query which i could use the same CODE, but diff. variable
    ( In the CMOD code, i am passing one User input variable ). For the 2nd query i have to pass different User Input variable.
    How OR what should i wright to tell CMOD, that IF its Query # 1 then use ABC variable and if Query # 2 then use XYZ .
    thanx

    Dear Hon Bon,
    Let us have a small example on ur scenario.
    Lets take the requirement as to calculate Month from Date. (In both the queries).
    Query 1: Input variable for Date is say  'ZDATE1'.
    Query 2: Input variable for Date is say  'ZDATE2'.
    Now let the CMOD variable be ZVAR_CALMONTH.
    when 'ZVAR_CALMONTH'.
        clear: lwa_var_rng,
               lwa_range.
        loop at i_t_var_range into lwa_var_rng where vnam = 'ZDATE1' or vnam = 'ZDATE2'.
          concatenate lwa_var_rng-low+0(4)
                      lwa_var_rng-low+4(2)
                 into lwa_range-low.
          lwa_range-sign = 'I'.
          lwa_range-opt  = 'EQ'.
          append lwa_range to e_t_range.
          clear lwa_range.
        endloop.
    Now when you execute the Query1,  the above code will work for 'ZDATE1' variable,
    if you execute the Query2,  the above code will work for 'ZDATE2' variable.
    So, the key point is,
    1. You need not worry about which query is getting executed. Whatever the query, the particular user entry variable of that query will be taken care.
    2. This method works only if the cmod variable (ZVAR_CALMONTH) is used in both the queries (Ofcourse its ur requirement).
    3. If queries have both the user entry variables then the cmod will work differently(it ll get data from both the user variables).
    You shall try ur code in the above example by replacing the code and the variable names and try playing around it.
    Hope this helps.
    Regards,
    Guru

  • Where can I get the source code for sun classes?

    Hello,
    When ever you download sun's j2sdk, the archive always contains the source code for the entire sdk in a zip file called src.zip except the sun.xxx classes like sun.awt.print.PrintDialog or sun.awt.font.FontResolver.
    For debugging purposes I need, if availabe, the source code of these classes which are not present in the src.zip.
    Please can someone tell me if theses classes are available as source and can point me where I can find it cause I am searching for it but can't find it on the net.
    Thank you
    Carolin

    Hey ChuckBing
    And your way is the only way, right? No.What on earth is eating you? Highly sensitive today?
    Where is the problem? There are two solutions of the question.
    The one link I posted points directly to the sun source download link. The "readme" explains, yippie, the sun sources are contained. Easy, isn't it?
    With the other one, you have to navigate at least through two other pages before you might find the link and only if you recognize that "Download JDK 5.0 source via SCSL/JRL" means the sun source code and not the sources contained in the JDK download. This is what I thought as I've seen this link the first time. Unfortunately there is no "readme".
    I prefer the easy way, I dont want to earn a doctorate. Ok, you can say dont "play the woman", but I'm a woman and a blonde too;-)
    But, let us stop the idle discussion here, please!
    Nevertheless, thanks to you and [email protected] for answering.

  • Getting the ascii code for null

    i want to get the ascii code for null and append it for n number of times as string and return it.

    check whether it is correct
    public static String createNULL(int number){
              String     nullValue = new String(new char[number]);
              System.out.println(" String nullValue"+nullValue);
              System.out.println("length :"+nullValue.length());
              return nullValue;
    output i am getting is
    String
    nullValue.......................................
    ength: 35It's correct.

  • When importing a spreadsheet with redeem codes into apple configurator, it says it's not the right codes for the app.  But it is the right codes. I used one of the codes to purchase the app in itunes.

    I have a cart of 25 ipads with a macbook air.  I have logged into my VPP account and purchased the needed number of copies.  I downloaded the spreadsheet.  I took the first code from the spreadsheet, and logged into itunes using a regular account (not my VPP account), and used the code to download the app.  I put the app into configurator and then tried to add the spreadsheet with the codes in it.  It comes up and tells me that it is not the correct spreadsheet for that app. But it is the correct spreadsheet!!  I tried re-downloading the spreadsheet again and even tried re-downloading the app.  So I've now used two of my redeem codes and still can't get it to accept it into apple configurator.  I removed the app from apple configurator and re-added it.  The error message says it's not the right codes for the app "Grammar Games by Tap To Learn" and to please get the codes for "Grammar Games by Tap To Learn."  It's the same one!

    It won't let me edit my post, so I'm typing this reply to add...
    I tried taking the version number out of the title. It looked like there were two spaces in the title "Grammar Games  by Tap to Learn". So I even made sure that matched. I still can't import my codes. Any other things to try would be really appreciated.

  • The updater has been unable to communicate with the update server for at least 1h.

    Hi All,
    there is a warning message on one of my IronPort C300V
    Version: 8.0.1-023
    The error message is mention below
    "The updater has been unable to communicate with the update server for at least 1h."
    please suggest the issue and steps to resolve the problem or suggest that it is very critical so can i open the cisco tac call.
    Thanks ,
    Madhuraj

    If you continue to receive this error please check that the virtual appliance is configured to use the dynamichost for updating:
    myesa_2.local> updateconfig
    Service (images): Update URL:
    <ommitted for brevity>
    []> dynamichost
    Enter new manifest hostname : port
    [update-manifests.sco.cisco.com:443]>
    Once 'dynamichost' is entered, the current dynamic host in use will be displayed in the prompt [ ]>, as seen above. 
    You will need to verify that the appliance - escpecially if a virtual (VESA) - is using the correct host.
    Steve
    Cisco Content Security - Email Security

  • Does anybody have the source code for playing video..?

    Hi i am new to J2ME. Does any body have the source code for playing video?

    The WTK includes a video player example. I would start by looking there. In addtion SE and Nokia (if I remember correctly) both have video examples on their developer web sites.
    The developer sites are
    http://forum.nokia.com
    http://developer.sonyericsson.com
    For some of my midlets I use a utility class. You can view the source here:
    http://hostj2me.cliqcafe.com/www/forumtopicview.html?fid=46&categoryId=36&fpn=0
    Works for my needs;

  • Does anyone have the HTML code for the Buffy Font

    Does anyone have the HTML code for the Buffy Font?

    1) download one of the Buffy fonts @ font space, just as Hans-Günter wrote.
    2) go to FontSquirrel, and use the web font generator: http://www.fontsquirrel.com/tools/webfont-generator
    3) load up your buffy font, and generate the web font.
    4) download the zip package, and check out the included demo file
    Copy all the font files (all four of them) to your web folder. Then copy the code that looks like this to the top of your css:
    @font-face { font-family: 'FontName'; src: url('FileName.eot'); src: url('FileName.eot?#iefix') format('embedded-opentype'), url('FileName.woff') format('woff'), url('FileName.ttf') format('truetype'), url('FileName.svg#FontName') format('svg'); font-style: normal; font-weight: normal; }
    Check that all file references are set up correct, and use the font name  in your css rules.
    h1 {
    font-family: 'FontName';
    Done!

  • What is the the pass code for iOS 7.1.1

    What is the the pass code for iOS 7.1.1?

    tyronefromla wrote:
    Usually for the iOS updates u use ur apple user &amp; password. In this case the pass code for this iOS update is the same one used to start ur phone.
    That's correct.

  • Does the lock code for my iPad covered by my warranty?

    Does the lock code for my iPad covered by my warranty?

    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

Maybe you are looking for