Question reg. range

Hi,
I am attaching my sample code below. itab_var, r_var1 and r_var2 are all of bsis-hkont type. Even though itab_var has value '0000121000' and not in the ranges r_var1 and r_var2 and not equal to '0000720000', it is still succeeding the IF condition and going inside when I see in debugging mode. How is it possible? Can you please tell me where is the error?
Thank you very much.
RANGES: r_var1 FOR bsis-hkont,
        r_var2 FOR bsis-hkont.
itab_var = '0000121000'.
          r_var1-sign = 'I'.
          r_var1-option = 'BT'.
          r_var1-low = '0000700000'.
          r_var1-high = '0000719999'.
          r_var2-sign = 'I'.
          r_var2-option = 'BT'.
          r_var2-low = '0000740000'.
          r_var2-high = '0000749999'.
          IF itab_var IN r_var1
       OR itab_var IN r_var2
       OR itab_var EQ '0000720000' .
         ENDIF.

Hi,
You are missing append statement.
RANGES: r_var1 FOR bsis-hkont,
r_var2 FOR bsis-hkont.
itab_var = '0000121000'.
r_var1-sign = 'I'.
r_var1-option = 'BT'.
r_var1-low = '0000700000'.
r_var1-high = '0000719999'.
<b>append r_var1.</b>
r_var2-sign = 'I'.
r_var2-option = 'BT'.
r_var2-low = '0000740000'.
r_var2-high = '0000749999'.
<b>append r_var2.</b>
IF itab_var IN r_var1
OR itab_var IN r_var2
OR itab_var EQ '0000720000' .
ENDIF.
Regards,
Ferry Lianto

Similar Messages

  • Basic question reg. distributed installatio

    Hi everybody,
              i have a very basic question, for which i wasn`t able to find a simple
              answer/solution.
              I am planning to set up Bea in a distributed environment. the idea is
              to have a physical machine for the presentation, meaning
              webserver/jsp/servlets in the dmz1 and a machine with the application
              server holding ejbs in a different dmz.
              This results in an architecture where the presentation layer only can
              be contacted via http/https by the users and the logic layer
              communicates with the pres. layer via RMI/T3.
              Is there any documentation on such a setup ? any hints ?
              Thanks in advance, i'll keep on searching the dox.
              Berthold Krumeich
              

    [att1.html]
              

  • Question reg Forecast funtions in Oracle

    Hello Everybody,
    Is there a function(s) in Oracle that's equivalent of FORECAST function in MS Excel ?

    This is the forum for Oracle's SQL Developer tool, not for general SQL and PL/SQL questions.
    Questions like this will get a better response in the PL/SQL forum.

  • Question reg. sapscript. please help

    I am modifying a standard medruck sapscript form for the customer needs. Now on the printout, if i want the text under 'item_text' text element to come after the text under'ITEM_SCHEDULE' text element, where should I change the code? in main program ? or in form itself? Please give me an idea reg. this.
    /E           ITEM_TEXT
    IC           ,,&TTXIT-TDTEXT&
    /:           INCLUDE &T166P-TXNAM& OBJECT &T166P-TDOBJECT& ID &T166P-TDID& LANGUAGE &
    /E           ITEM_SCHEDULE
    IM           ,,,,,,&RM06P-PRMG1&,,&T006A-MSEHT&,,&RM06P-PRITX& &RM06P-LFDAT&,,,,
    =           &RM06P-PHTXT(27)&
    Thanks a lot,
    Krishen

    Yes it will, and yes you will have to copy a couple of things,  first you will need to copy the driver, program SAPFM06P into custom program SAPFZM06P.  Then copy function group MEDRUCK into ZMEDRUCK with all the function modules,  then go to the SAPFZM06P program and copy the include program  FM06PE02 into ZFM06PE02 and include this in the main program SAPFZM06P,  inside the  ZFM06PE02, change the call in the  ENTRY_NEU form to call the "Z" version of your function module in the ZMEDRUCK function group.
    form entry_neu using ent_retco ent_screen.
      data: l_druvo like t166k-druvo,
            l_nast  like nast,
            l_from_memory,
            l_doc   type meein_purchase_doc_print.
      clear ent_retco.
      if nast-aende eq space.
        l_druvo = '1'.
      else.
        l_druvo = '2'.
      endif.
      call function 'ME_READ_PO_FOR_PRINTING'
           exporting
                ix_nast        = nast
                ix_screen      = ent_screen
           importing
                ex_retco       = ent_retco
                ex_nast        = l_nast
                doc            = l_doc
           changing
                cx_druvo       = l_druvo
                cx_from_memory = l_from_memory.
      check ent_retco eq 0.
      <b>call function 'ZME_PRINT_PO'</b>
           exporting
                ix_nast        = l_nast
                ix_druvo       = l_druvo
                doc            = l_doc
                ix_screen      = ent_screen
                ix_from_memory = l_from_memory
                ix_toa_dara    = toa_dara
                ix_arc_params  = arc_params
                ix_fonam       = tnapr-fonam          "HW 214570
           importing
                ex_retco       = ent_retco.
    endform.
    You must then change your configuration for the purchase order to tell the system to use the "Z" versions of the print program SAPFZM06P
    Regards,
    Rich Heilman

  • Question about range . . .

    I might buy Airport Express for my Macbook. I've never had wireless internet before. My house is about 1500 square feet, basically one floor. Do you think I'll have issues if if the router is on one end of the house and my macbook is on another?
    I certainly would rather only buy one router instead of two.
    Also, while I'm sure express is good, i've read that the cheaper third part ones (Linkseys?) are just as good. Any advantage of one over the other?
    Thanks!!!
    Lindsay

    The advertised range of pretty much all of the 802.11b/g devices is 150 feet. That is 150 feet without obstruction and other sources of RF interference. It is virtually impossible to tell you what kind of range you will get in your house without a detailed description of floor plan, building materials, decorations, etc. You can get an idea of some of the factors in KB 58543, AirPort: Potential sources of interference.
    I have a 2 story brick house and have no problems with wireless reception anywhere that I have tried. I have used several different wireless base stations from several manufacturers and had the same experience.

  • Question reg sample init files??

    I was looking for sample init files
    I found the following files in Windows
    initsmpl.ora under C:\Oracle10g\product\10.2.0\admin\sample\pfile
    initdw.ora under C:\Oracle10g\product\10.2.0\dbs
    and in UNIX AIX
    -rw-r----- 1 oracle dba 8385 Sep 11 1998 init.ora
    -rw-r--r-- 1 oracle dba 12920 May 03 2001 initdw.ora
    under /oracle/OraHome2/dbs
    I can see initdw.ora for datawarehouse databases
    I have following questions
    1.Are these are the only files I have mentioned are there or are there any more
    sample files i have missed?
    2. initsmpl.ora or init.ora are for which kind of databases ?General purpose or OLTP or?
    Thanx
    Gagan

    Hi,
    1 Those are the same files
    2 There are no special files are created for OLTP or DatawareHouse DataBases.
    These files are unique for different type of database you may choose. Only the parameters values will be
    adjusted based on the Environment upon which we create the database. It's parameters changes during the
    Course of Tuning of your database.
    - Pavan Kumar N

  • Simpel question reg. Windows 8

    Hello World !
    Simpel question: can I install and run all programmes in the CS5 (not the CS5.5) on a Windows 8 without any problems and/or limitations?
    Where can I find the simpel answer to this simpel question on Adobe's websites ??
    // Magnus

    You can't find a simple answer because it doesn't exist. Too many specifics involved liek Win 8 using a different graphics driver model, different CoDecs, a different print engine and what have you. You will find out when you try, but not before.
    Mylenium

  • RE : BI APO Question Reg Data feeding from cube to Planning area.

    Hi BW Experts,
    iam working in an Implementation project for SCM in BW prcisely working with APO Bw..
    For that I have taken historical data as a flat file and loaded it in to the external BW Infocube and its fine...
    Second step I have created generate export datasource on topr of BW infocube and replicated in to Bw and used this export datasource as datasource for APO BW Infocube which is inbulit BW System from External Bw..
    also I have created tranformations and data is loaded in the BW cube in APO system.Also Included Version charecterstics..
    When I try to fed the APO Cube data to planning area Iam gettinga the following  warning itsnot an error:
    1.Key figure copy: InfoCube - planning area (DP) 01.01.2010 to 31.12.2010-- Successful
    *2.No data exists for the selection made (see long text*
      Diagnosis:Data could not be loaded from the Cube for the selection you made. Check whether the Cube actually contains data that is relevant for your selection.
    For the second point I have time charecterstics filled in the infocube which Iam feding to a Planning area like 0CALMONTH,0CALWEEK,FiscVarnt,0CALMONTH
    3.Characteristic assignment: No data copied --- Message
    Can you please help me with your thoughts so that i wll try to corner the issue I will be highly obliged

    Hi,
    As I understood, you have loaded data from external BW cube to APO BW cube and now loading planning area from APO BW cube.
    I hope your settings in /SAPAPO/TSCUBE transaction code would be correct and you have selected the correct planning version with correct cube.
    Check if Data in APO BW cube is available for reporting or not and data is avilable for given selction (if any but I guess you are not giving any).
    Thanks,
    S

  • Question reg. modifying latest record in internal table

    Can you tell me if it is possible to modify the last appended record to the internal table?
    I just want to modify the record in the internal table which is appended at the latest. Please tell me the logic for this.
    Thanks a lot,
    Krishen

    Hi try with this:
    DATA line TYPE I.
    DATA wa_itab TYPE LINE OF it_itab.
    DESCRIBE TABLE IT_TABLE LINE line.
    READ TABLE IT_TABLE INTO wa_itab INDEX line.
    WA_TABLE-FIELD = 'new value'.
    MODIFY TABLE IT_TABLE FROM wa_itab
           TRANSPORTING field.
    Best regards.

  • Question reg. selection screen

    I am writing a report. On selection screen, I have a field for Sales order (vbeln) from a custom table zsales.  Now when the user selects this field on selection screen and press F4, he/she should be able to select the salesorders from the table zsales.
    I wrote:
    SELECT-OPTIONS: s_vbeln FOR zsales-vbeln.
    But on the output, when I press F4, I am still not getting any input help. What change can you suggest?
    Appreciate your input.
    Thanks,
    Krishen

    Try something like this.
    report zrich_0001 .
    tables: zsales
    data: begin of izsales occurs 0,
           vbeln type vbak-vbeln,
          end of izsales.
    select-options s_vbeln for zsales-vbeln.
    initialization.
      select vbeln into table izsales from zsales.
      sort izsales ascending by vbeln.
      delete adjacent duplicates from izsales comparing vbeln.
    at selection-screen on value-request for s_vbeln-low.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
           exporting
                retfield    = 'VBELN'
                dynprofield = 'S_VBELN'
                dynpprog    = sy-cprog
                dynpnr      = sy-dynnr
                value_org   = 'S'
           tables
                value_tab   = izsales.
    start-of-selection.
    Regards,
    Rich Heilman

  • Question reg. how to get a field from a table

    What is EIN? (I think it is employer identification number). My functional consultant told me to get this value from company code. Can you tell me from which table and field I can get this value?
    Thanks,
    Krishen

    i think these tables are helpfull
    /SAPPCE/TDPC01
    /BEV1/RBVBAK
    /BEV1/RBVBAP
    VSVBAK_CN
    VSVBAp_CN
    VBAK and VBAP.
    Regards,
    Pradhan.

  • Question reg. WinClone on resizing a partition

    I successfully cloned the hard drive with all the Windows data in it from the MacOS side. But when I need to restore the image after merging the two partitions and creating a new one, WinClone asks for a "destination" and I'm not sure where the destination is supposed to be. Any help?

    I just went through this and read all I could find on the net. Not a lot of clear answers, but eventually found what worked for me. I wanted to resize the boot camp/windows partition as it was too small. Here is what I did:
    All of this is from Mac os.
    1. Download Winclone.
    2. Clone the windows partition and save it on the Mac desktop. Be sure you choose the right disk to clone, you can check that in disk utility.
    3. Open Boot Camp Assistant and restore single Mac OS partition. Close BCA.
    4. Start Boot Camp assisitant again and partition Windows disk to size needed, for me, 32 GB.
    5. Start Windows installation and install Windows disk. Do not enter registration keys or anything, just get to the choise of where to install Windows.
    6. At the choice of disk, click disk options, or advanced options I believe it is, and click format disk, just like it says in Boot Camp instructions. Click the ok in the next window and the partition will be formatted.
    7. Close out the windows installation at this point.
    8. Close BCA.
    9. Start Winclone, choose restore, drag the winclone image from the desktop to the source insert, choose the destination the disk you just formatted, and proceed.
    10. The restore will take place, restart the computer and hold down options while restarting to get to Windows. Windows may do a disk check and you will restart again.
    11. Voila, start Mac or Windows as normal.
    This is for Vista, so do not know about XP. The important thing to know for resizing is that Winclone will not resize to the FAT32 partition, it must be formatted as NTFS. That is the reason for using the Windows installation disk. I have just managed this, as I said. so good luck.

  • Question Reg. Queue Process

    Hi All,
            I configured queue process in my ECC5.0 system. Once i sent idoc from WE19 transaction for outbound process, it went to queue(T.code weoutqueue). I checked T.code SMQ1, there i can see some queue's name also. If idouble click that queue name i have seen details like user, queue name, Fm etc.I want to know how to change that FM.It always shows like IDOC_INBOUND_IN_QUEUE . I want to process with some other Function modules. Could you help me out.
    Thanks
    Krishnan.

    Hi
    Every additional work process will consume a small amount of memory (~ 10mb). You can estimate it in transaction RZ10 (choose your instance profile) -> Basic Maintenance -> Change
    Here you can increase the number of processes, and you will see the memory requirement.
    Regards Michael

  • Question reg. Types

    hi,
    when I am creatating type as under:
    create or replace type sop_record_journal_file as object
    service_request_id sop_service_request.service_request_id%TYPE
    It gives me:
    SQL> show err
    Errors for TYPE SOP_RECORD_JOURNAL_FILE:
    LINE/COL ERROR
    0/0 PL/SQL: Compilation unit analysis terminated
    8/24 PLS-00201: identifier 'SOP_SERVICE_REQUEST.SERVICE_REQUEST_ID'
    must be declared
    How can i create type to be like the one above so that whenever i change datatype of service_request_id column in sop_service_request table, My type takes it transparently and hence i dont have to go and change it in type..
    Btw, my oracle version is :
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    PL/SQL Release 9.2.0.6.0 - Production
    CORE 9.2.0.6.0 Production
    TNS for Linux: Version 9.2.0.6.0 - Production
    NLSRTL Version 9.2.0.6.0 - Production
    thx

    >Object Type OR Table are static things that cannot change during their life.
    Understand what you are trying to say, but the above statement is incorrect.
    Object types and tables are not dynamic. Nor should one be tempted to hack this and try and treat these "definitions" as dynamic.
    However, they can be modified using the ALTER TYPE and ALTER TABLE commands. For example, the ALTER TYPE can be used to add a new property to the type and this can automatically be applied also to any tables based on that type definition.

  • Question reg. output type

    I copied and modified sapscript MEDRUCK for three forms RFQ, Scheduling agreement and Contract (all are MM module). Now I am trying to set up output type for these forms in NACE transaction. Can you tell me what applications and output types to chose from there?
    (I know for RFQ, it is application EA and output type NEU, what about for the other two?)
    I appreciate your input.
    Thanks in advance.

    Thanks Anurag. I too think it is EV. What about the output type?
    The forms I modified for Scheduling Agreement and Contract are almost the same. I think just by assigning to a different output type, the data flow can be different for these two forms? Please correct me if I am wrong.
    Thanks a lot.

Maybe you are looking for

  • SAMBA configuration in unix- to install heterogeneous system

    HI all, i have sap 4.7 central instance(hp-ux,oracle 9.2.0.6) server.  i want to add one more dialog instance which is loaded on Windows. for this i need to configure samba ( to avoid unix case sensitive problem, and user authentication problem ). I

  • Mac OS X Lion does not Appear in the Purchased Apps list

    Hi everyone, I bought my MacBook Pro 15-inch late in July and got the free upgrade promotion for Mac OS X Lion from Apple. Now I went to Mac App Store and verified the purchased items and I don't see Lion listed there. Any idea? Thanks, Abdullah

  • Help....My Ipod is messed up

    I downloaded the newest Itunes from apple. When I downloaded the Ipod updater at 10 PM, i left it to update my ipod overnight. My roomates was done in 15 Minutes. Then next morning, the "Do not diconnect" Cross thing wasnt flashing but just sitting t

  • Ordering data type varchar

    I keep forgetting on how to order a column with datatype varchar One of my column for pricing has these values: 5,12,15,18,21,23,31 etc when I cfoutput my query result I got the list showing as: 12,15,18,21,23,31,5 It should be from less price to hig

  • Online high score list

    Hi guys, I was wondering how I could implement a high score list into a java applet game i wrote. The logic isnt what im worried about, its writing to a file that is on a server that i dont own. It's my school's webspace...do i have access to do this