Incorrect Logical Expression for Include Program

Hi All
thank you very much for all the support...
I managed to get through that error - however, now I m coming up with a different error:
Incorrect logical expression: Comparison / SELECT-OPTION can only be
followed by "AND", "OR" or ")".
Where should I add the ''and" "or" on the below code?
IF sy-subrc NE 0.
    MESSAGE e002(zsqts_sqts)
       INTO l_dummy
       WITH lv_host.
    PERFORM msg_add USING probclass_very_high.
  ENDIF.
Zu der gewunschten FTP Ordner navigieren
  REFRESH result.
  IF lv_path IS NOT INITIAL.
    CONCATENATE 'cd' lv_path INTO lv_path SEPARATED BY space.
    CALL FUNCTION 'FTP_COMMAND'
      EXPORTING
        handle        = lv_handle
        command       = lv_path
      TABLES
        data          = result
      EXCEPTIONS
        tcpip_error   = 1
        command_error = 2
        data_error    = 3.
Thank you very much
Rukshana
Moderator message: please try solving this yourself first, do not post each single error message to the forum. SCN forums cannot replace proper training.
locked by: Thomas Zloch on Oct 6, 2010 1:04 PM

On 3/20/2015 3:48 PM, leosucksatc wrote:
if(Grade ='A'||'a')
= is assignment. == is equality comparison. You had that right in your previous post.
Also, the || operator doesn't work the way you think it does. Make it
if (Grade == 'A' || Grade == 'a')
Igor Tandetnik

Similar Messages

  • Incorrect logical expression: Comparison / SELECT-OPTION can only be follow

    Hi,
    I'm new to ABAP, please help me with the below code. When i check the code i get the message "E:Incorrect logical expression: Comparison / SELECT-OPTION can only be followed by "AND", "OR" or ")".
    data: pphd(7) type p decimals 2,
              ppha(7) type p decimals 2,
              abs_pphd(7) type p decimals 2.
        if pphd >= 0.
          if pphd < 1.
            ppha = 0.
          elseif 1 <= pphd <= 4.
            ppha = '0.16'.
          elseif 4.01 <= pphd <= 8.
            ppha = '0.32'.
          elseif 8.01 <= pphd <= 12.
            ppha = '0.50'.
          elseif 12.01 <= pphd <= 16.
            ppha = '0.66'.
          elseif 16.01 <= pphd <= 20.
            ppha = '0.83'.
          elseif 20.01 <= pphd <= 24.
            ppha = '1.00'.
          elseif 24.01 <= pphd <= 28.
            ppha = '1.16'.
          elseif 28.01 <= pphd <= 32.
            ppha = '1.32'.
          elseif pphd >= 32.
            ppha = '1.50'.
          endif.
        else.
          abs_pphd = abs( pphd ).
          if abs_pphd < 1.
            abs_ppha = 0.
          elseif 1 <= abs_pphd <= 4.
            ppha = '-0.16'.
          elseif 4.01 <= abs_pphd <= 8.
            ppha = '-0.32'.
          elseif 8.01 <= abs_pphd <= 12.
            ppha = '-0.50'.
          elseif 12.01 <= abs_pphd <= 16.
            ppha = '-0.66'.
          elseif 16.01 <= abs_pphd <= 20.
            ppha = '-0.83'.
          elseif 20.01 <= abs_pphd <= 24.
            ppha = '-1.00'.
          elseif 24.01 <= abs_pphd <= 28.
            ppha = '-1.16'.
          elseif 28.01 <= abs_pphd <= 32.
            ppha = '-1.32'.
          elseif abs_pphd >= 32.
            ppha = '-1.50'.
          endif.
        endif.
    Thanks,
    AM

    Hi Raj,
    Thanks a lot for the reply. i modified the code as you suggested but i get the error "E:Incorrect logical expression: Only "... BETWEEN  AND ..." is expected."  Below is the modified code.
    data: pphd(7) type p decimals 2,
          ppha(7) type p decimals 2,
          abs_pphd(7) type p decimals 2.
    if pphd >= 0.
      if pphd < 1.
        ppha = 0.
      elseif pphd between 1 and 4.
      ppha = '0.16'.
      elseif pphd between 4.01 and 8.
        ppha = '0.32'.
      elseif pphd between 8.01 and 12.
        ppha = '0.50'.
      elseif pphd between 12.01 and 16.
        ppha = '0.66'.
      elseif pphd between 16.01 and 20.
        ppha = '0.83'.
      elseif pphd between 20.01 and 24.
        ppha = '1.00'.
      elseif pphd between 24.01 and 28.
        ppha = '1.16'.
      elseif pphd between 28.01 and 32.
        ppha = '1.32'.
      elseif pphd >= 32.
        ppha = '1.50'.
      endif.
    else.
      abs_pphd = abs( pphd ).
    if abs_pphd < 1.
        ppha = 0.
      elseif abs_pphd between 1 and 4.
        ppha = '-0.16'.
      elseif abs_pphd between 4.01 and 8.
        ppha = '-0.32'.
      elseif abs_pphd between 8.01 and 12.
        ppha = '-0.50'.
      elseif abs_pphd between 12.01 and 16.
        ppha = '-0.66'.
      elseif abs_pphd between 16.01 and 20.
        ppha = '-0.83'.
      elseif abs_pphd between 20.01 and 24.
        ppha = '-1.00'.
      elseif abs_pphd between 24.01 and 28.
        ppha = '-1.16'.
      elseif abs_pphd between 28.01 and 32.
        ppha = '-1.32'.
      elseif abs_pphd >= 32.
        ppha = '-1.50'.
      endif.
    endif.

  • Sountrack or Logic/Logic Express for voice over recording?

    Hello,
    I am wondering which software is best for voice over work? Sountrack or Logic/Logic Express?
    Any input would be great. I would add the standard effects/filters to certain voice overs and add sound effects and music.
    I have a midi/guitar and garage band is enough for me. I would not want to use Garageband as my software of choice for voice over work. I want markers and other more advanced tools?
    Thanks,
    Erik

    Thanks for the answer.
    I was looking at the Dialogue Tools in Sountrack and they appear to be perfect.
    My main questrion is can record into Sountrack with a mic right? I have an m-audio saphire with a m-audio preamp.
    I saw a demo of Soundtrack at NAB and all the effects looked perfect for voice over. I think Logic Studio is overkill but Sountrack and Logic Express( for my guitar) might be a perfect 1-2 punch. I will get Sountrack with The Final Cut Studio as I need video tools as well.
    Thanks,
    Erik

  • Logic Express for news recording and editing?

    Based on the recommendation of many friends who work in public radio I bought a Digidesign M-Box 2 Mini and got ProTools to use for doing audio editing on news and spoken word projects. The thing has been a real pain in the butt causing me hundreds of system crashes and endless problems with my MacBook Pro (Late 2008). Digidesign has admitted that their M-Box driver is defective but they can't fix the current drivers 'cause they are soooo busy working on support for Snow Leopard (Which they may deliver sometime in Spring 2010). ProTools also requires that you have the M-Box connected to your system in order to launch the program.
    I'm fed up with being forced to connect a defective interface to my laptop every time I want to use ProTools and ready to try something else. Are the audio editing tools in the new Logic Express 9 good enough to use for this kind of work?
    I could almost get away with using Garage Band but it's a bit limited with support for only 16-bit audio (most news sources are pretty quiet and need boosting) and the GB interface makes me crazy.

    I think Logic is overkill for what you need - you'll never use 95% of it for recording/editing spoken word audio files.
    Although I'm not familiar with manipulating audio for news use, I'd think that something like Amadeus Pro would do the job.
    http://www.hairersoft.com/AmadeusPro/AmadeusPro.html
    with an interface such as an AudioFire like this:
    http://www.echoaudio.com/Products/FireWire/AudioFire4/index.php
    which is very good quality, reliable, and not expensive.
    BTW, recent versions of GarageBand do support 24-bit recording.
    http://support.apple.com/kb/HT1016

  • Logical Expression for alternative in smart forms

    Hi gurus ,
    i want to add logical expression in alternative of smart forms
    my condtion is like as below
    if ( ekko-bstyp = 'F' and  ( ekko-bsart  = 'zc9d' or ekko-bsart = 'zc91' or ekko-bsart = 'zc9u' ) )
    if i use the or button it is taking as ekko-bstyp = f or any of the other conditons actually it should be
    bstyp = f and any one of the condtions
    when i tried to write condition it is not showing syntax chekc but it is giving dump
    how to write the expression
    regards
    afzal

    Hi ,
    In the alternative node conditions   use like this 
    IF ( WA_EKKO-BSTYP EQ 'F'
       AND WA_EKKO-BSART EQ 'ZSTO'
       OR WA_EKKO-BSART EQ 'ZIMP'
       OR WA_EKKO-BSART EQ 'ZSER'
       OR WA_EKKO-BSART EQ '    ' ).
    For this    in the alternative node conditions 
    WA_EKKO-BSTYP  =  'F'
    WA_EKKO-BSART  = 'ZSTO'
    OR  (By clicking the insert  OR in the icons in the top )
    WA_EKKO-BSART EQ 'ZIMP'
    OR
    WA_EKKO-BSART EQ 'ZSER'
    OR
    WA_EKKO-BSART EQ '    '
    Let me know if any concerns.......
    Regards,
    Lokesh .

  • Table for Include Programs.

    Hi,
    Can anyone tell me which table stores the include program names of a Module Pool.??
    regards,
    Ramakanth

    Thanks for your Reply..
    My exact requirement is to identify the main program for all the include programs. REPOSRC gives the include program name but i think it doesnt give the main program name from where include is fetched.
    So I need table which stores the main program / Module Pool and its includes.

  • Sountrack or Logic/Logic Express for Voice Over work?

    Hello,
    I am wondering which software is best for voice over work? Sountrack or Logic/Logic Express?
    Any input would be great. I would add the standard effects/filters to certain voice overs and add sound effects and music.
    I have a midi/guitar and garage band is enough for me. I would not want to use Garageband as my software of choice for voice over work. I want markers and other more advanced tools?
    Thanks,
    Erik

    Hi Erik,
    I haven't used Logic or Logic Express, but I recently switched from Pro Tools to Soundtrack Pro 2. (I'm an independent producer/host for 2 weekly shows on Connecticut Public Radio.)
    All I can say is this-- Soundtrack Pro has shaved hours off my Pro Tools workflow, is much more intuitive, and is (obviously) Mac-friendly, so I've been singing its praises ever since I made the switch.
    In fact, I think Apple should be marketing it directly to radio stations!
    Hope this helps,
    Bruce
    www,barberproductions.com
    www.rlsguide.com

  • Logic Express for podcasting?

    Hi all,
    I'm really new to the podcasting thing and am trying to research podcasting software for my workplace. They're getting a Mac Pro and obviously it'll have Garageband but they want another step up. How is Express for podcast editing? My workplace will mostly be creating interview podcasts, possibly some videopodcasts down the line and maybe some audio slide shows.
    Does anyone know if it enables users to create the XML feed, RSS feeds easily? I'm also looking into Adobe Soundbooth and would do iPodcast Producer but it is PC-only.
    Any suggestions are welcomed.

    I'm new to logic Express but Garageband is pretty good for podcast and easy enough for anyone to use. You may want to give it a look first.

  • Logic express for windows

    Hi,
    I wanted to know if there is any chance that logic express 8 will work in windows?
    Daniel

    no way as it is a native application designed for a mac. Apple have bought emagic just for reason of having its own music production software to sell its own hardware to professionals. And unix code are diff than bios code so it is not possible for logic to work on windows.

  • How to write a if else logic expression for this condition

    Hai All
    I have written some if else logic for for my condition
    If the time is betweeb 0145 and 0630 and timeout is a column in a table is null than update sysdate-1
    then if time is bet0645 and 0900 then timein is null then insert into timein in table called dail_att
    and time bet 1130 and 1300 then if barcode null then insert timein else update timeout
    and bet 1645 and1730 then if barcode null and timein null then insert timein or update time out
    this is my condition for generating attendance. Ive tried some logic and pls tell case executed faster than ifelse logic
    and give me a soluton
    This is my coding
    if :bartime between 0145 and 0630 and :barcode is not null then
    update dail_att
    set timeout = :bartime
    where barcode= :barcode
    and timein is not null
    and ATTEND_DATE = :BARDATE-1;
    else if :bartime between 0645 and 0900 and :barcode is null then
    insert into dail_att(barcode,timein,attend_date)
    values(:barcode,:bartime,:bardate);
    else if     :bartime between 1145 and 1300 and :barcode is null then
         insert into dail_att(barcode,timein,attend_date)
    values(:barcode,:bartime,:bardate);
    else
         update dail_att
    set timeout = :bartime
    where barcode= :barcode
    and ATTEND_DATE = :BARDATE ;
    end if;
    else if :bartime between 1645 and 1730 and :barcode is null then
              insert into dail_att(barcode,timein,attend_date)
    values(:barcode,:bartime,:bardate);
    else
         update dail_att
    set timeout = :bartime
    where barcode= :barcode
    and ATTEND_DATE = :BARDATE ;
    end if;
    else :bartime > 1730 and :barcode is null then
         update dail_att
    set timeout = :bartime
    where barcode= :barcode
    and ATTEND_DATE = :BARDATE ;
    end if ;
    EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE' OR :BARCODE IS NULL;
    NEXT_RECORD;
    forms_ddl('commit');
    end loop;
    Regards
    Srikkanth.M

    Hai Sir
    I am storing time in 24hrs format and its datatype is varchar.Pls tell me we can write an if else with in a elseif
    Regards
    Srikkanth.M

  • Use Logic Express for quadrophonic sound project??

    Hi,
    I'm very happy with LE9 so far, but now I may have to do a quadrophonic project... anyone ever done that with LE9?? I can imagine that I could achieve something by using 4 busses, and mixing using 4 sends on each track... or are there better tricks??
    At least I have 8 outs on my firewire interface, so I suppose that will do the job.
    Thanks in advance,
    Jaap

    Hi,
    problem solved Now I know more details about mixing quadrophonic audio, and about this specific project, I decided to go for Logic Pro...
    Regards,
    Jaap

  • Should i use Logic Express for Mixing and Mastering?

    recording an LP with GarageBand. are express and pro very close in what they offer ? express good enough for mixing and matering an LP? would like to keeps costs down. thanks SJM

    It can be done, but you will need to do a lot of reading and make many mixes to get it down. Mastering is not something you can learn overnight. It'll take you many hours of trial and error just to get something that is OK. A pro mastering engineer has years of experience and thousands of dollars worth of high quality gear. With a lot of practice, you can get something fairly decent, but it won't be like a real pro job would be.
    As Hangtime suggested in the GB forum, do a google search and you'll get a lot of sites with articles on the subject of mixing and mastering.

  • For include program..

    from list of standard include who can we come to know tht which include is modified..of which function group...any short cut...from se37 and after going into deep way i knw but it consume time much...so if anybody knows shortcut then reply me...
    thx
    reguards...
    naiensh...
    Edited by: nainesh patadia on Jan 18, 2008 4:46 PM

    Hi,
    This is strange that you are not able to access SE09.
    Go once again on Transaction SE09 and there on that screen check on the WorkBench Request and check both the Checkboxes Released as well as Modifiable.
    You will get all the TRs.
    If you know the user name then put the user name in the User tab.
    This way you would be able to get the list.
    Give it a try. This would be helpful.
    Regards,
    Lalit Kabra

  • Dynamic Logical Expressions in ABAP: IF (lt_cond)...

    is it possible to have a dynamically constructured logical expression?
    I have a condition I need to use in an IF, but I want to avoid hard-coding, so I dynamicallybuild it.
    for a simple example:
    CONCATENATE ITAB-f1
               'EQ'
               varValue
               INTO lt_cond SEPARATED BY SPACE.
    IF (lt_cond).
      WRITE:/ 'Success'.
    ENDIF.
    Is it possible to do this?
    NL

    I am trying to use the macro to check an IF (cond).
    cond is a dynamically constructed condition.
    The bold part of my code way below is my problem area.
    I'm having no trouble getting COND constructed. But I am having trouble between my macro and the processing as my error always tells me I'm calling my macro without 2 actual parameters. Or when I DEFINE my macro with &1 instead of &1 &2, I get 'incorrect logical expression'.
    I've read all the documentation I can find on this, but i still cannot figure out why my macro is not processing.
    Code is lengthy, but if you can, please help.
    I'm anticipating the output to be 'FAILURE' at this point. I just want the condition COND to be processed.
    data: tabfield(20) type c,
          orcheck type I,
          cond type string.
    DATA: BEGIN OF ITAB_NOTIDX OCCURS 0,
          FIELD LIKE ZDOLTARC02-SEARCHFLD,
          VALUE LIKE ZDOLTARC03-VALUE,
          STRUCTURE LIKE ZDOLTARC02-STRUCTURE,
          AOBJ LIKE ZDOLTARC02-A_OBJ,
          END OF ITAB_NOTIDX.
    DATA: BEGIN OF ITAB_AOBJ OCCURS 0,
          AOBJ LIKE ZDOLTARC02-A_OBJ,
          END OF ITAB_AOBJ.
    DATA: ITAB_AOBJF LIKE ITAB_AOBJ.
    DATA: ITAB_NOTIDXF LIKE ITAB_NOTIDX.
    DATA: varAOBJ LIKE ZDOLTARC02-A_OBJ.
    ITAB_NOTIDXF-FIELD = 'LIFNR'.
    ITAB_NOTIDXF-VALUE = '123'.
    ITAB_NOTIDXF-STRUCTURE = 'BKPF'.
    ITAB_NOTIDXF-AOBJ = 'FI_DOCUMNT'.
    APPEND ITAB_NOTIDXF TO ITAB_NOTIDX.
    ITAB_NOTIDXF-FIELD = 'LIFNR'.
    ITAB_NOTIDXF-VALUE = 'ABC'.
    ITAB_NOTIDXF-STRUCTURE = 'BKPF'.
    ITAB_NOTIDXF-AOBJ = 'FI_DOCUMNT'.
    APPEND ITAB_NOTIDXF TO ITAB_NOTIDX.
    ITAB_NOTIDXF-FIELD = 'LIFNR'.
    ITAB_NOTIDXF-VALUE = '001'.
    ITAB_NOTIDXF-STRUCTURE = 'BKPF'.
    ITAB_NOTIDXF-AOBJ = 'FI_DOCUMNT'.
    APPEND ITAB_NOTIDXF TO ITAB_NOTIDX.
    ITAB_NOTIDXF-FIELD = 'SAKNR'.
    ITAB_NOTIDXF-VALUE = '111'.
    ITAB_NOTIDXF-STRUCTURE = 'BSEG'.
    ITAB_NOTIDXF-AOBJ = 'FI_DOCUMNT'.
    APPEND ITAB_NOTIDXF TO ITAB_NOTIDX.
    ITAB_NOTIDXF-FIELD = 'SAKNR'.
    ITAB_NOTIDXF-VALUE = '222'.
    ITAB_NOTIDXF-STRUCTURE = 'BSEG'.
    ITAB_NOTIDXF-AOBJ = 'FI_DOCUMNT'.
    APPEND ITAB_NOTIDXF TO ITAB_NOTIDX.
    ITAB_NOTIDXF-FIELD = 'KUNNR'.
    ITAB_NOTIDXF-VALUE = 'CCC'.
    ITAB_NOTIDXF-STRUCTURE = 'BSEG'.
    ITAB_NOTIDXF-AOBJ = 'FI_DOCUMNT'.
    APPEND ITAB_NOTIDXF TO ITAB_NOTIDX.
    ITAB_NOTIDXF-FIELD = 'KUNNR'.
    ITAB_NOTIDXF-VALUE = 'DDD'.
    ITAB_NOTIDXF-STRUCTURE = 'BSEG'.
    ITAB_NOTIDXF-AOBJ = 'FI_DOCUMNT'.
    APPEND ITAB_NOTIDXF TO ITAB_NOTIDX.
    LOOP AT ITAB_NOTIDX.
      WRITE:/ ITAB_NOTIDX-FIELD, ITAB_NOTIDX-VALUE, ITAB_NOTIDX-STRUCTURE, ITAB_NOTIDX-AOBJ.
    ENDLOOP.
    DATA: VARFIELDNAME LIKE ZDOLTARC02-FIELD.
    CONCATENATE cond
               INTO Cond.
    SORT ITAB_NOTIDX BY AOBJ FIELD.
    varFieldName = Itab_NOTIDX-FIELD.
    ORCHECK = 0.
    ITAB_AOBJF = 'FI_DOCUMNT'.
    APPEND ITAB_AOBJF TO ITAB_AOBJ.
    LOOP AT ITAB_AOBJ.
       MOVE ITAB_AOBJ-AOBJ TO varAOBJ.
       WRITE:/ varAOBJ.
       LOOP AT ITAB_NOTIDX WHERE AOBJ EQ varAOBJ.
               WRITE:/ 'LOOP TEST'.
            IF ITAB_NOTIDX-FIELD EQ varFieldName.
                 WRITE:/ VARFIELDNAME.
                 IF ORCHECK <> 0.
                 CONCATENATE cond
                                'OR'
                                INTO cond SEPARATED BY SPACE.
                 ENDIF.
                 CONCATENATE ITAB_NOTIDX-STRUCTURE
                        ITAB_NOTIDX-FIELD
                        INTO tabfield.
                 CONCATENATE cond
                        tabfield
                        'EQ'
                        '''' ITAB_NOTIDX-value ''''
                        INTO cond SEPARATED BY SPACE.
                 ORCHECK = ORCHECK + 1.
            ELSE.
                MOVE ITAB_NOTIDX-FIELD TO varFieldName.
              WRITE:/ '2', VARFIELDNAME.
                CLEAR TABFIELD.
              ORCHECK = 0.
              CONCATENATE ITAB_NOTIDX-STRUCTURE
                    varFieldName
                    INTO TABFIELD.
                 CONCATENATE cond
                        'AND'
                        TABFIELD
                    'EQ'
                    '''' ITAB_NOTIDX-VALUE ''''
                        INTO cond SEPARATED BY SPACE.
                    ORCHECK = ORCHECK + 1.
            ENDIF.
       ENDLOOP.
    ENDLOOP.
    CONCATENATE COND
                INTO COND.
    write:/ COND. "constructed properly
    <b>DEFINE my_dynamic_check.
    if &1, &2.
      write:/ 'Success'.
    else.
      write:/ 'Failed'.
    endif.
    END-OF-DEFINITION.
    my_dynamic_check (cond).</b>

  • Which is better Function modules or Include programs?

    Hi,
    I am working on an enhancement and it has lot of screens with a tree structure on the left. Now we are planning to have each screen to have its PAI/PBO and the processing logic to be in seperate include programs.
    However in our team we have debate as to go in for include programs or for Function modules. The opinion here is that the program should not take long time to load if its going to be include programs.
    Please suggest what approach is better, is it Function modules or include programs.
    Any other suggestion is also welcome.
    Thank You,
    SAC.

    Thank You all.
    In this enhancement I have about 13 screens and has business logic in each. So if I go with each screens and business logic coding in seperate Function modules than includes under 1 function group is adviceable?
    Using object oriented approach is really the best thing here, but however most of my team members are not welversed in OO concepts. The deadlines are very tight for grooming my team members as well.
    My only concern is that with so much screens and business logic in 1 transaction should not bring down this programs performance when its executed.
    Any other suggestions to keep in mind for this is appreciated.
    Thank You.
    SAC

Maybe you are looking for

  • Oracle 9i installation problem on Gentoo Linux

    Hi! After setting up the useraccount for the required installation step I face on the bash console a problem with this message: ./runInstaller bash-2.05b$ Initializing Java Virtual Machine from /tmp/OraInstall2005-04-06_09-57-12PM/jre/bin/java. Pleas

  • Remote access to another user

    Is it possible to use Apple's Remote Access to go into another logged in user on the same machine? Lets say on 1 computer you are logged into the "main" account and then log in with another user account.  Can you the open Apple Remote Desktop and acc

  • ABAP Class reference in persistent container

    Hi all, Has anyone ever tried to read an abap class reference from a rule container in the rule's function module? This doesn't seem to work, unless I am doing something wrong... Here is the scenario: I have an abap class ZCL_CLASS instantiated in my

  • How To Create Link in Image in Email

    I have an eMail campaign that a client wants to send out. Essentially, it is a jpeg ad (that they would like to embed into the email) and there is a spot in the ad where their web address is listed. They want to make the web address a live clickable

  • Firewire, kernal, Maxtor External Drive

    I know this discussion happend a while ago, and is closed, this is the link: http://discussions.apple.com/thread.jspa?messageID=3453370&#3453370 The problem is it didn't resolve anything for me, I didn't understand the "chip" answers. I wrote down wh