Contains ONly

Hi Gurus,
In the selection screen I am having a select-option for document type.
I will give 4 types of data types in the selection screen.
In the program I have to move data to different internal tables according to document types.
Here the code goes like this
S_doc_type is document type contains RE, KR, and KG.
IF NOT s_doc_ty IS INITIAL.
      LOOP AT gi_bkpf.
        IF gi_bkpf-blart EQ gc_re AND
           s_doc_ty CO gc_re.
          APPEND gi_bkpf TO gi_bkpf_re.
        ENDIF.
        IF gi_bkpf-blart EQ gc_kr AND
           s_doc_ty CO gc_kr.
          APPEND gi_bkpf TO gi_bkpf_kr.
        ENDIF.
        IF gi_bkpf-blart EQ gc_kg AND
           s_doc_ty CO gc_kg.
          APPEND gi_bkpf TO gi_bkpf_kg.
        ENDIF.
      ENDLOOP.
endif.
My question is I will give only RE doc type in selection screen so that only this type should be appended and rest should be omitted for differnt document types.
Please let me can i use this kind of code to seperate.
Mac

Hi Mac,
With some little modification to your code,you can safely use your own code to get the results as follows -
IF NOT s_doc_ty IS INITIAL.
  LOOP AT gi_bkpf WHERE ( ( BLART EQ GC_RE ) OR
                          ( BLART EQ GC_KR ) OR
                          ( BLART EQ GC_KG ) ).
    IF gi_bkpf-blart EQ gc_re AND
    s_doc_ty-LOW EQ gc_re.
      APPEND gi_bkpf TO gi_bkpf_re.
    ENDIF.
    IF gi_bkpf-blart EQ gc_kr AND
    s_doc_ty-LOW EQ gc_kr.
      APPEND gi_bkpf TO gi_bkpf_kr.
    ENDIF.
    IF gi_bkpf-blart EQ gc_kg AND
    s_doc_ty-LOW EQ gc_kg.
      APPEND gi_bkpf TO gi_bkpf_kg.
    ENDIF.
  ENDLOOP.
endif.
Hope this sort out your issue.
PS Plz close the thread by rewarding each reply.
Regards
Sapna Modi

Similar Messages

  • A more efficient way to assure that a string value contains only numbers?

    Hi ,
    I'm using Oracle 9.2.0.6.
    I was curious to know if there was any way I could write a more efficient query to determine if a string value contains only numbers.
    Here's my current query. This SQL is from a sub query in a Join clause.
    select distinct cta.CUSTOMER_TRX_ID, to_number(cta.SALES_ORDER) SALES_ORDER
                from ra_customer_trx_lines_all cta
                where length(cta.SALES_ORDER) = 6
                and cta.SALES_ORDER is not null
                and substr(cta.SALES_ORDER,1,1) in('1','2','3','4','5','6','7','8','9','0')
                and substr(cta.SALES_ORDER,2,1) in('1','2','3','4','5','6','7','8','9','0')
                and substr(cta.SALES_ORDER,3,1) in('1','2','3','4','5','6','7','8','9','0')
                and substr(cta.SALES_ORDER,4,1) in('1','2','3','4','5','6','7','8','9','0')
                and substr(cta.SALES_ORDER,5,1) in('1','2','3','4','5','6','7','8','9','0')
                and substr(cta.SALES_ORDER,6,1) in('1','2','3','4','5','6','7','8','9','0')This is a string where I'm finding A-Z-a-z characters and '/' and '-' characters in all 6 positions, plus there are values that are longer than 6 characters. That's what the length(cta.SALES_ORDER) = 6 is for. Also, of course. some cells are NULL.
    So the question is, is there a more efficient way to screen out only the values in this field that are 6 character numbers or is what I have the best I can do?
    Thanks,

    I appreciate all of your very helpfull workarounds. The cost is a little better in all cases than my original where clause.
    To address the discussion that's popped up about design from this question, I can say a few things that should clear , at least, my situation up.
    First of all this custom quoting , purchase order , and sales order entry system WAS written by a bunch a of 'bad' coders who didn't document their work and then left. We don't even have an ER diagram
    The whole project that I'm only a small part of is literally trying to put Humpty Dumpty together again and then move it from a bad custom solution into Oracle Applications.
    We're rebuilding, documenting, and doing ETL. This is one of your prototypical projects from hell.
    It's a huge database project so we're taking small bites as a time. Hopefully, somewhere right before Armageddon hits, this thing will be complete.
    But until then,..., well,..., you know the drill.
    Thanks Again.

  • Is FileVault necessary if disk contains only the OS?

    I have two disks on my MacBook.
    The first one is an SSD that contains only OS X. The second one is a regular HD which contains my home folder.
    This second HD is an encrypted partition, so it can't be opened without a password — and if you plug it into another computer, it won't be readable without that password.
    My question is: should I use FileVault in the SSD, even if my home folder is already encrypted?
    If someone steals my MacBook, they won't be able to open any of my personal files (since they're in the encrypted home folder).
    Would they be able to get anything useful and harmful from just the SSD that contains OS X?

    Try to change the value from General Settings – Resource Throttling from central administration.
    Here are the steps below to change.
    http://sharepointlk.wordpress.com/2012/04/09/the-query-cannot-be-completed-because-the-number-of-lookup-columns-it-contains-exceeds-the-lookup-column-threshold/
    Bala

  • SO_NEW_DOCUMENT_ATT_SEND_API1 - attachment contains only first character

    Hi,
    we use the FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send a report as txt attachment. The problem is that the attachment in the email contains only the first character of the origin text. But the atttachment in the transaction SOST has definitely more content (although not all as it should be... but this is another problem)
    Has anybody an idea what's wrong? We use ECC6. Before ECC6 we doesn't have that problem.
    Thanks and regards, Susanne
    Here is the content:
    DATA: begin of contents_bin occurs 0, "before ECC6
               line(132) type c,               
          end of contents_bin.
          t_contents_bin_soliti1 TYPE TABLE OF solisti1 WITH HEADER LINE. "with ECC6
        CLEAR t_pack.
        REFRESH t_pack.
    * Receiver:
        TRANSLATE p_output TO UPPER CASE.
        SELECT SINGLE * FROM ypruser INTO w_user
                        WHERE rusid = p_output.
        t_receiver-rec_id = w_user-rusid.
        t_receiver-receiver = w_user-email.
        t_receiver-rec_type = 'U'.
        APPEND t_receiver.
    * Document content:
    * Attachment content:
        CLEAR: wa_len, length, h_len.
        DESCRIBE TABLE contents_bin LINES lineno2.
        READ TABLE contents_bin INDEX lineno2 INTO wa_len.
        length = STRLEN( wa_len ).
        obj_descr = w_filename.
        t_pack-transf_bin = 'X'.
        t_pack-head_start = 1.
        t_pack-head_num = 1.
        t_pack-body_start = 1.
        t_pack-body_num = lineno2.
        t_pack-doc_size = ( ( lineno2 - 1 ) * 255 ) + length.
        t_pack-doc_type = 'TXT'.
        t_pack-obj_name = 'Attachment'.
        t_pack-obj_descr = obj_descr.
        t_pack-obj_langu = 'E'.
        APPEND t_pack.
    * Header data (fill table object_header):
        object_header = 'WP01_List.txt'.
        APPEND object_header.
        t_contents_bin_soliti1[] = contents_bin[]. "with ECC6
        w_commit_work = 'X'.
        CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
             EXPORTING
                  document_data              = document_data
                  put_in_outbox              = ' '
                  commit_work                = w_commit_work
             TABLES
                  packing_list               = t_pack
                  object_header              = object_header
                  contents_bin               = t_contents_bin_soliti1
                  contents_txt               = t_content
                  receivers                  = t_receiver
             EXCEPTIONS

    Thanks for your very helpful hint. So I saw that I could use the BCS cause we have ECC 6. This is much more easier. The txt attachment was then ok but the format of data was wrong. Finally I used these code line http://wiki.sdn.sap.com/wiki/display/Snippets/SendMailhavingMultipleFilesasAttachmentusingobjectorientedtechnique to solve it.

  • I can't export my video which contains only photos, sound tracks nor play it in fullscreen iMovie it shuts down. And now my whole file won't open at all it'll open with nothing inside ??

    I can't export my video which contains only photos, sound tracks nor play it in fullscreen iMovie it shuts down. And now my whole file won't open at all it'll open with nothing inside ??

    I also have Jolly's problem. I found the iMovie 9.0.9 folder and tried to launch the older version of iMove. It would not launch. I removed all of the iMovie preferences from the Preferences folder, removed iMove 10 from the applications folder, and restarted my Mac. iMove 9.0.9 still won't launch and I can't access my videos created with the older version of iMovie. Is there a way to uninstall iMovie 10 and reinstall iMovie 9.0.9?
    I am running Yosemitie on a  iMac.
    Paul

  • Validation Rule - Should contain only alphabets and can be upto 4 characters long

    Hi, I am using MDS 2012 and want to create a business rule for data validation which says,
    "Should contain only alphabets and can be up to 4 characters long". How can I create such a rule in MDS? Also the Code and Name attributes are 250 characters by default. How to restrict them to 4 characters if business need them to be 4 or
    less character?
    Any help appreciated.
    Thanks, Ashish Singh

    When creating a business rule, under Actions there is "Must be maximum length of" and "must contain patern".
    See:
    http://technet.microsoft.com/en-us/library/ff487015.aspx

  • Infocube to contain only last 7 requests

    Hi ,
    Please help me with this issue . . . .for BW 7.0
    I am having a infocube which is having a daily load. the previous load is deleted everyday.
    Now i want to archive this infocubes data to another infocube and this archive cube should contain only previous 7 days data.
    i.e the rolling last 7 requests only.
    So i need to write a process chain which will load data from daily cube to archive cube, and delete 8th day's data everyday.
    Can you please suggest me how to do this. I tried using "Delete overlapping request from infocube" but that is not any help.
    1) Are there any functionality in process chians which will delete 8th day;s data everytime
    2) or can we apply a filter in DTP's
    Please give in your suggestions
    regards
    Parikshit

    jack22 wrote:
    creates header line:
    To: [email protected]; [email protected]; [email protected]
    You use a comma (,) to separate email addresses in the TO: header field, not a semi colon (;).
    I believe this happens only if the sender is a web-/java based business application. But our debugging identifies a correct To: line from that application (started tcpdump, initiated on the messaging server). The format of the "TO:" header line isn't correct. If this is the same "web-/java based business application" you mentioned in http://forums.sun.com/thread.jspa?threadID=5391646 then I suggest going back to the vendor to get this fixed.
    Regards,
    Shane.

  • Deployment  of Web application containing only Servlets

    I want to deploy my web application on Weblogic which contains only servlets
              and html files.
              All I know is that I have to write the DTD file. Once i am done with the DTD
              file i do not how the further steps to deploy my web application.
              can somebody point out the steps or some site where i can get any help. Is
              this documented anywhere?
              thanks in advance,
              Nitin
              

    Hi
              You don't write DTD file. It's in weblogic installation.
              You must write a web.xml file and weblogic.xml file. See how to do this in
              the documento "Write Web Applications" of WebLogic 5.1
              nitin <[email protected]> escribió en el mensaje de noticias
              [email protected]..
              > I want to deploy my web application on Weblogic which contains only
              servlets
              > and html files.
              >
              > All I know is that I have to write the DTD file. Once i am done with the
              DTD
              > file i do not how the further steps to deploy my web application.
              >
              > can somebody point out the steps or some site where i can get any help. Is
              > this documented anywhere?
              >
              > thanks in advance,
              > Nitin
              >
              >
              

  • How to check postal code contains only 0 to 9

    Hi all,
    How to check postal code contains only 0 to 9
    thank you

    Hi
    Check the below link.It may help you out.
    http://help.sap.com/saphelp_47x200/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm
    Cheers,
    Hakim
    mark all useful answers

  • Flash image expands out of container only on Safari browser

    I have this test page where flash image expands out of the container only on Safari browser, everything else works fine (I.E,Chrome,Mozilla,Opera) http://itmjobs.ro/lidl/eu.html . I have tried to insert flash image into a table, the same thing happent. I have tried to change iframe size to very small 10/10 just for test, I don't know how but only Safari it brings full size whatever I do.
    Can anyone help to fix this problem ? Thank you
    alfateam

    You may not like my answer but don't use Flash.  Most web designers gave up on it long ago because the world's most popular web devices (iPhone, iPad, iTouch, Android, etc..) don't support Flash and never will.
    If you want to reach a wider audience with fewer problems, use an image map and jQuery maphighlight script. 
    http://alt-web.com/DEMOS/jQuery-maphighlight.shtml
    Nancy O.

  • How to judge whether the chars contain only number and letter

    how to judge whether the chars contain only number and letter, for example :
    'AEs4386' is valid , but '‘´‘¼ew78' is not
    thanks for your help !

    Hi,
    try the following:
    data: l_test(36) type c.
    concatenate sy-abcde '0123456789' into l_test.
    l_test contains all letters all numbers now
    translate YourVariable to upper case.
    YourVariable contains only upper case letters
    check YourVariable co l_test. " or use if instead of check
    YourVariable contains only letters or numbers
    regards
    Siggi

  • HTTP 400 Bad Request Invalid URL error when URL contain only percent "%" without any Hexadecimal

    Hi All, I'm trying to redirect a custom error page when URL contain percent "%" symbol. But when I use percent "%" symbol in URL (https://mctest.aspial.com.sg/%), its saying below error. I don't want to show this error message. I want
    to redirect users to custom error page.  I already added custom error page in IIS & Web.config file for status code 400. But It's now working. It's still showing the same error.
    Bad Request - Invalid URL
    HTTP Error 400. The request URL is invalid
    Is there any way to redirect custom error page when URL contain only "%" symbol? Anyone please help me on this. Thanks advance.
    Below are my server details:
    IIS version 7.5
    .Net Framework 4.0

    I see, so the issue isn't with the % in the query string but rather the URL path itself.  In that case I don't believe this is anything related to your app but rather the web server.  When you provide a URL the web server has to map that to an
    application.  Depending upon where the character falls determines who gets to handle it.  Since the % is next to the domain name it is most likely not being mapped by the web server so you get the general 400 error.  Since this isn't an app
    issue but a server level issue you'd have to redirect at the server level (in IIS: Server\Error Pages). If the % is inside an application's virtual directory then it becomes an issue for the application (in IIS: Site\Error Pages).
    But things can get more complicated.  The web server generally has filters so it won't support requests for certain things (like web.config in ASP.NET apps).  Filtering can be done anywhere between the server and the application.  Complicating
    this is virtual path providers (like MVC). 
    To be honest I don't think you should be worrying about this scenario.  An invalid % in a URL is a bad request so you shouldn't try to treat it differently than a regular 400 error.  In fact I'd say that it could be a security hole (depending
    upon what you're doing).  So you can customize 400 errors at the server or app level if you want but I wouldn't bother trying to distinguish bad URLs from bad requests.
    I recommend you post this question in the ASP.NET forums (http://forums.asp.net ) to see if anyone has a better answer.
    Michael Taylor
    http://blogs.msmvps.com/p3net

  • Dynamically call VI containing only a user prompt

    Is it an acceptable practice to call a vi dynamically that contains only a user prompt, for the purpose of prompting the user without suspending the main vi? 
    Thanks,
    Greg
    v7.1

    I have a prettt simple program that monitors an input voltage, and switches a relay (to turn on a pump) and sounds an alarm when the input voltage reaches a threshold level.  The whole time, the readings from the ai and the state of the pump are displayed on a chart.  The pump, once triggered ON, has to manually be turned off.  I would like there to be a prompt that says "Are you sure you want to turn the pump off?" when the user presses "Turn pump off" button, but in the meantime I would like the chart to still be updating in the background.  More generally, there are lots of times when I want to add confirmation input after button presses, and I am trying to prevent them from always suspending the main program.
    I have a sneaking suspicion, based on the responses so far, that there is still something fundamentally wrong with the way I design my programs.  I am just learning to use queued message handling, state machines, producer/consumer designs.  I realize their potential to tremendously improve my programs, but I need help implementing them.  I am still searching for good text on the basics of these architectures.  Can you suggest any, preferably one that skip over the basics?
    Thanks!
    Greg
    v7.1

  • Domain's "$DOMAIN-diagnostic.log" file contains only incident reports

    Domain's "$DOMAIN-diagnostic.log" file contains only incident reports
    In OSB 11.1.1.4.0, the domain's $DOMAIN-diagnostic.log file contains ONLY lines like:
    [2011-04-18T11:40:55.362+10:00] [CWSOATS2_OSB1] [NOTIFICATION] [DFW-40104] [oracle.dfw.incident] [tid: [ACTIVE].ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <WLS Kernel>] [ecid: a9082073e3c17b68:4cae68eb:12f662ee536:-8000-0000000000000634,0] [errid: 16] [detailLoc: e:\wldom\cwsoats2\servers\cwsoats2_osb1\adr\diag\ofm\cwsoats2\cwsoats2_osb1\incident\incdir_16] [probKey: BEA-337 [WebLogicServer]] incident 16 created with problem key "BEA-337 [WebLogicServer]"
    Previously, this file would contain a record of the activity of my JCA DBAdapter polling adapters.
    I have seen this on all instances of OSB 11.1.1.4.0 to which I have access (all on Windows: desktop Win7 and server 2003R2).
    Googling hasn't explained this to me: what this really means; why it occurs and what actions (if any) are needed to rectify this situation.
    Can some kind member of this forum clarify things, please?

    Hi,
    Do you mean that when you remove the user’s workstation computer accout from AD then re-add it, the user still can use these "elevated" privileges to access other user directories? 
    Please check the permssions of the user directory network share on the user’s workstation to see if the permissions are the same with other worksatations. If you enable the offline files on the user’s workstation, please also disable the offline files to check
    the results. 
    Best Regards,
    Mandy 
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • What is the best way is to create a web app item collection which will contain only the listings where addressstate="ABC".

    What is the best way is to create a web app item collection which will contain only the listings where addressstate="ABC".

    How many systems have you used Robert?
    This is the only system you can not have all item data at least in JSON format and all of it. Big commerce has a lower limit and as I have said in every post related to a limit - I understand the function, but you can still make the requests as just one example (front and back)
    Same with API Robert.
    Firstly - the SOAP API request on say products gets you ALL the products, if you do something through a REST API request you can  make the requests to get all the items to complete your process of what your doing - You have to otherwise the API is pointless.
    Ok if the normal modules can not iterate through if there is a module_data solution, and web apps will get there hopefully sooner then later and you do have the sql query (where) for your filter which is great BUT, if you want to implement a solution across everything you cant do that with the liquid implementation.
    This also flows through to the JSON everywhere in concept which is fundamentally flawed for the same reason... And again referring other like services where a hard API has a limit but the JSON request returns everything.
    How those work varies from the method of request, some will only update every day, xxx time (Depending on cost of the plan) so its a cached version of data, to the ones that limit that request to x number of times per set time/day.
    That is how the actual rest of the world works, varied solutions but they are solutions. BC know they have a few limitations, there clearly is the need for things, there are a varied set of options... It is just a matter of engaging in it and offering up a solution for it, silence just creates frustration.

  • Need reg_exp for checking the string contains only alphanumeric or not

    Dear All,
    I need to check the given string in if condtion contains only the alphanumeric or not pls help me..
    like
    if reg_exp then
    end if;
    thanks,
    Oracle

    Hi,
    REGEXP_LIKE ( str
                , '[^[:alnum:]]'
                )returns TRUE if the string str contains any character other than an alphanumeric.
    You can use this wherever conditions are allowed, such as a WHERE clause or a CASE expression. For example:
    SELECT     str
    .     CASE
             WHEN  REGEXP_LIKE ( str
                         , '[^[:alnum:]]'
             THEN  'Contains speace, punctuation or special symbol'
             ELSE  'Okay'
         END               AS is_alnum
    FROM     table_x
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using.
    Edited by: Frank Kulash on Dec 30, 2011 4:37 AM

Maybe you are looking for

  • XML parsing in Oracle 11g

    Hello all, I'm using the below database. Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production PL/SQL Release 11.2.0.3.0 - Production CORE 11.2.0.3.0 Production TNS for Linux: Version 11.2.0.3.0 - Production NLSRTL Version 11.2

  • Video doesn't play while audio does during playback

    I use FCE 1.0.1 and since I upgraded to Leopard I have had a little problem. When I put the video setting in Fire-Wire, it plays fine with audio playing through my camcorder. But when I put the video setting in Real Time to play the audio through my

  • Blogger / Flash audio widget spacing problem

    This is a multi-part message in MIME format. ------=_NextPart_000_0157_01C8E5D5.30A1E450 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Please excuse me re-posting this question, but I have new info and = n

  • HELP..accidently replaced full file with old one of same name.

    I think i really screwed up! Last night I was organizing my computer files and folders for work. I transferred many files over from my old powerbook and had many duplicate files. I was moving pretty fast dragging and dropping, cut and pasting, creati

  • Converting protected aac to purchased aac without itunes match

    hi everyone. i want to convert a bunch of protected aac's to purchased aac's without signing up for itunes match. i'm willing to pay the 30 cents per song. i can't figure out how to do this though. previous discussions have included a link, but when