No result if one field is blank

Hi all,
in my module pool screen i have 4 input fields (no selection or ranges, its like parameters). To get the value based on that i am using this query.
  SELECT *
          FROM LTAK
          INTO TABLE GT_LTAK
          WHERE LGNUM = GV_LGNUM
          AND   KQUIT NE 'X'
          AND   BNAME = LV_BNAME
          AND   BWLVS = LV_BWLVS
          AND   BENUM = LV_BENUM.
If i fill all these 4 values i am getting the output. If i leave a field blank i dont get the result.
Can anyone please help me.
Regards,
Nik

Hi,
Create the ranges and pass to the where condintion to the select instead of the parameters.
If you pass the blank in the parameters then the select will check with blank values in the table instead if you use the ranges then blank values will not be considered in the selection.
RANGES : R_BNAME FOR LTAK-BNAME,
                 R_BWLVS FOR LTAK-BWLVS,
                 R_BENUM FOR LTAK-BENUM.
IF NOT LV_BENUM IS INTIAL.
R_BENUM-SIGN = u2018Iu2019.
R_BENUM-OPTION = u2018EQu2019.
R_BENUM-LOW = LV_BENUM.
APPEND R_BENUM. CLEAR R_BENUM.
ENDIF.
IF NOT LV_BENUM IS INTIAL.
R_BENUM-SIGN = u2018Iu2019.
R_BENUM-OPTION = u2018EQu2019.
R_BENUM-LOW = LV_BENUM.
APPEND R_BENUM. CLEAR R_BENUM.
ENDIF.
IF NOT LV_BENUM IS INTIAL.
R_BENUM-SIGN = u2018Iu2019.
R_BENUM-OPTION = u2018EQu2019.
R_BENUM-LOW = LV_BENUM.
APPEND R_BENUM. CLEAR R_BENUM.
ENDIF.
SELECT *
FROM LTAK
INTO TABLE GT_LTAK
WHERE LGNUM = GV_LGNUM
AND KQUIT NE 'X'
AND BNAME = R_BNAME
AND BWLVS = R_BWLVS
AND BENUM = R_BENUM.

Similar Messages

  • SQL Query -How2bring multiple results into one field using Formatted Search

    Hi Everyone
    i am trying to bring in the results of the field dbo.Lot_ITEM.LOT using a formatted search into a row level using the following query:
    SELECT     dbo.LOT_ITEM.LOT
    FROM       dbo.DLN1 INNER JOIN dbo.LOT_ITEM ON dbo.DLN1.ItemCode = dbo.LOT_ITEM.ITEM
    WHERE     dbo.LOT_ITEM.ITEM=$[DLN1.ItemCode]
    however the result of the dbo.Lot_ITEM.LOT field could be more then one value depending on how many lots are assigned for that item
    (for example this query would be similar to assigning batch/serial numbers to an item being despatched - as you can choose multiple batches/serials depending on the quantities available and required and then move from the left to the right side of the selection window) if that makes sense!
    is it possible to bring in the multiple results into one field? and how can i amend the above query to include this?
    Thankyou in advance :o)
    Edited by: Asma Bi on Apr 23, 2008 7:22 PM
    Edited by: Asma Bi on Apr 23, 2008 7:24 PM

    Hi Suda
    Thanks for replying :o) but im not sure about the query?
    just to simplify it (as the query im working with is to do with 3rd party addons) i have used the serial/batchs field instead and used standard demo database fields from SBO 2005 sp01:
    SELECT     dbo.ixvSerialNoFact.SRI1_IntrSerial
    FROM       dbo.DLN1 INNER JOIN
                    dbo.ixvSerialNoFact ON dbo.DLN1.DocEntry = dbo.ixvSerialNoFact.SRI1_BaseEntry
    WHERE     dbo.ixvSerialNoFact.ItemCode='g1000' and dbo.ixvSerialNoFact.SRI1_BaseEntry = '193'
    The above brings me the relevant results but when i change it to be used in a formatted search:
    SELECT     dbo.ixvSerialNoFact.SRI1_IntrSerial
    FROM       dbo.DLN1 INNER JOIN
                    dbo.ixvSerialNoFact ON dbo.DLN1.DocEntry = dbo.ixvSerialNoFact.SRI1_BaseEntry
    WHERE     dbo.ixvSerialNoFact.ItemCode=$[dln1.itemcode] and dbo.ixvSerialNoFact.SRI1_BaseEntry = $[dln1.DocEntry]
    i cant seem to get it to work - now this may be because the serial number is not allocated until teh record is added to the system, however when this happens i am unable to go back in and manually trigger the query as the delivery note rows cannot be selected!
    i  think as what im originally wanting an answer for is same as this example, im wanting to know if this is even possible?
    Thanks
    Edited by: Asma Bi on Apr 24, 2008 3:53 PM
    Edited by: Asma Bi on Apr 24, 2008 3:55 PM

  • Finder search bug? No results if 'Search' field is blank.

    I can't determine if this is a bug or is simply a change in Finder search behavior (for the worse, IMO) in 10.8.
    In the Finder, when I select 'File>>Find' (or hit ⌘-F) and then select the current folder from the top of the search parameters, no files appear in the search results if the 'Search' (for filename) field at the top of the window is blank even though the only other search parameter is 'Kind is Any'.
    If I enter text in the 'Search' field, matching results start to appear.
    In 10.7, I saw different behavior. In the absence of text in the Search field, the Finder would simply return results matching the other parameters and ignore the Search field.
    With the new behavior, there doesn't seem to be any way to construct a saved search based solely on other parameters (kind, date, file label, etc) without specifying some filename parameter as well. Of course, I can work around the problem by using something like 'NOT xxx!@#$%' in the Search field, but this approach is klugy at best.
    Anyone else see this? Bug? Deliberate change in Finder behavior?

    Yes the report ESH_TEST_SEARCH returns no material.
    So should I suspend the indexing and reschedule with with real time indexing ? I am not sure whether we choose real time indexing in the first time.
    What about the authorizations, I see USER_AUTHORITY object is activealready.
    Thanks

  • Filled fields become blank in DSO change log

    Hi experts,
    I find an unusual behavior in DSO activation.
    For some records for which I find in PSA, new data table (and in debug also!!!) correct data, when the request is activated I find in change log table all characteristic fields empty; the key fields and key figure fields are ok and correct in all tables.
    It happen randomly for some orders and for a few requests.
    It happen when I have one storno record, for example:
    PSA (order, item, customer, material, storno, quantity)
    10000, 10, AAA, YYY, , 25
    10000, 10, AAA, YYY, X, -25
    DEBUG (order, item, customer, material, storno, quantity)
    10000, 10, AAA, YYY, , 25
    10000, 10, AAA, YYY, X, -25
    CHANGE LOG (order, item, customer, material, storno, quantity)
    10000, 10, AAA, YYY, , 25
    10000, 10, , , X, -25
    ACTIVE DATA (order, item, customer, material, storno, quantity)
    10000, 10, AAA, YYY, 25
    In some other cases:
    ACTIVE DATA (order, item, customer, material, storno, quantity)
    10000, 10, , , -25
    Have you some ideas? It is very strange.
    We are on a 7.0 BW system, but with 3.5 data flow (update rule).
    Thanks in advance.

    Vito,
    This happens some times...
    1. Did you transport any change to this DSO where characteristics were added and are these the ones that are blank...
    When this happens - see if you can clear the change log ( if this is an option ) and then reactivate the cube.
    Also there is a program to regenerate the activation program, I am not able to locate this - but then usually reactivating the ODS will usually clear this issue because it regenerates the activation program.

  • ODS Key Fields allows blank values in Transformation

    Dear Experts,
    I have two layers:
    1. Datawarehouse layer (purpose is to represent exactly data at the backend)
    2. Consolidation Layer
    Scenario 1:
    In Datawarehouse layer, the fiscal variant is a key field in ODS and I have two other key fields i.e. combine to form a composite key.
    When I load the data from PSA to this ODS, I have a record which contains blank value for the fiscal variant. It successfully loads into the Datawarehouse ODS.
    Sceanrio 2:
    In the consolidation layer, i have 4 key fields out of which fiscal variant is one of them. Now when I load the data from the datawarehouse ods to consolidated ods, it throws an error saying:
    Diagnosis
         An exception fiscvarnt_missing was raised while executin
         module RST_TOBJ_TO_DERIVED_TOBJ .
    System Response
         Processing the corresponding record has been terminated.
    The transformation mapping for the fiscal varaint in both sceanarios is 1:1 mapping with the rule type 'Time Characteristic'.
    My questions is:
    1. Why different behaviour during scenario 1 and sceanario 2
    2. Solution to the above issue
    Thanks
    Jain

    Thanks J.S.
    Yes the format selected in the field for the datasource is 'Internal'.
    When loading the data from R3>PSA>ODSX(Datawarehouse Layer), I have no problems even when the field is blank.
    When loading from ODSX-->ODSY(Consolidated Layer) the empty (blank) field for that records throws error.
    Any ideas?
    Jain

  • Copy value from one field in subform, to another field in a different subform

    Hi all.  I have been back and forth with enterprise support, and they are telling me what I want to do is impossible.  I find that hard to agree with, so hoping I can get some help here.  I have a document that I am creating, based off an XML.  The page consists of a header subform, a flowing table of variable name, and then a footer.  My problem comes in, that when the table flows to mutliple pages, my header subform will not repeat, even though I have it set as the overflow header.  According to Enterprise Support, this is by design.  The header will repeat on the footer page, if that is on a separate page, just not when the table flows to another page.  So, I came up with a solution to create an additional Header in my table, merge all the cells into one column, and copy my subform into that new header.  I would set that header to appear only on subsequent pages.  So, when I preview my document, it shows the static text fine, as I would expect, however the text fields are blank.  I need a way of copying the values from the original header subform, into the newly created table header subform.  The values will be different based on teh XML input, meaning that the first 3 pages will have one set of values, and the next 3 another, etc..  See sample below...
    <NameValueList>
         <NameValue>
              <NameValueName>Name1<NameValueName>
              <NameValueDesc>Desc1<NameValueDesc>
               <TableValueList>
                   <TableValue>
                        Blah
                   </TableValue>
                   <TableValue>
                        Blah 2
                   </TableValue>
              </TableValueList>
         </NameValue>
         <NameValue>
              <NameValueName>Name2</NameValueName>
              <NameValueDesc>Desc2<NameValueDesc>
              <TableValueList>
                   <TableValue>
                        Blah 5
                   </TableValue>
                   <TableValue>
                        Blah 6
                   </TableValue>
              </TableValueList>
         </NameValue>
    </NameValueList>
    So, if I bind my original header to NameValueName, it will show on the first page which has my header, and the third page that has my footer.  But my 2nd page, that has the table flowed to it, has a blank value.  I tried to put code in the Initialize event of both text boxes, to copy from MainHeader.NameValueName to TableHeader.NameValueName, but that didn't work properly. 
    Any ideas on how to do this?

    Thank you very much for the reply.  I tried putting the copy statement in both the MainHeader and TableHeader initialize events.  There was different behavior, depending on the place I put the copy statement, however neither was correct.  If I put it in the initialize of the TableHeader, the NameValueName that appears on other page is Name1.  Even though the header shows Name2 when it hits the next nodes.  If I put it in the initialize of MainHeader, nothing is copied on the proper table header pages.
    I initially had Master pages, however that really didn't work.  The master pages traversed the NameValueName nodes on it's own loop.  So, Each page displayed the next value in it's own loop, when the main subform loop is still showing data from the previous value.  I know this might be hard to understand, but I'm doing my best to explain.  THanks again for your reply, and I hope that there is another idea out there to fix this...

  • Is there a way of hiding the ? symbol if a record's image field is blank?

    If that makes sense....
    Basically I've set up a details page on a site that allows the site owner to display up to three images. However, sometimes they'll only upload one or two images.
    Which currently looks like this :
    http://www.travel7107.com/destinationDetails.php?destinationID=57
    Is there some way to get rid of the little ? icons where the image field is empty?
    I tried uploading a small white image, and setting the fields to blank.gif as the default, but the file upload script seems to overwrite those with an empty field if no image is selected to upload.
    So at the moment I've given them that small image to use if they don't have images, but it would be good to know if there was a way of avoiding that step?

    Thanks for that. Not sure I'm getting the syntax quite right though.
    The original lines look like this :
    <img border="0" src="/destinationdetailpic.php?file=images/destinationpics/<?php echo $row_WADAdestinations["image_2"]; ?>">
    So I thought it should be :
    <img src="/destinationdetailpic.php?file=images/destinationpics/<?php echo $row_WADAdestinations["image_2"] = true ? $row_WADAdestinations["image_2"] : ''; ?>" alt="">
    But that's not right :
    http://www.travel7107.com/destinationDetails2.php?destinationID=57

  • Text Field is Blank in Transaction F-28

    Hi Experts,
    There is a requirement to add to the current layout the text field in F-28 transaction code. However, when I add them as an administrator, The text field is blank. We already maintained the text field in both Accounting Document Line item and in the Invoice but still the text field is blank. Where can we find the value of text field in the documents shown in F-28. Are there any configuration to do this?

    Ok. Currently they had this problem on tagging which Invoices to be considered for payment clearance in tcode F-28. Their current process is every Ship-To-Party, they also equate it as one project code with the location of the project information,etc. They are using this ever since the first implementation. So in their process, they go to FBL5N to check those invoices created before going to F-28. In FBL5N, I incorporated the text field there (filled by user-exit display) which also came from the accounting document. But it's not correct since they are using the ship-to-party value in F-28.
    So we tested by manual input directly the Ship-To-Party Code to Acc Doc Line Item Text Field. It went to FBL5N, as showing the value there but in F-28 it is not showing.
    Do you have any solution for this? Since during payment in F-28, I think these entries are already Acc Doc Entries and Ship-To-Party is not reflected here but Payer only (coming from the invoice).

  • How to fill more values in one field (JSP / HTMLX)

    When I want to fill one value in a field on a JSP page, I enter:
    value="<%=someClass.getSomeValue() %>"
    How should I enter more values (e.g. street, city, postal code, country) in one field?
    I tried to put those fields together, so I do one getAddress() call, but the output is (initial screen - supposed to be empty) null null null null
    When I enter a customer, the field works ok (no null values).
    TIA,
    Mylene

    JSP:
    <hbj:inputField     
    id="CustomerAddressInputField"     
    type="STRING"     
    maxlength="10"     
    value="<%=quotationHeader.getCustomer().getAddress().getAddress() %>"
    design="STANDARD"
    ... %>"
    getAddress():
    @return String (complete address / positioning
    pCode unsure!)
    public final String getAddress()
    return (street + " " + pCode + " " + city + " " + cCode);
    This is what returns null null null null
    What I want (if possible) is to change the getAddress() in the JSP in subsequent getStreet() - add space - getPCode() - add space - getCity() - add space - getCCode()
    That will not result in null values - I hope.
    But just putting those calls in the string between the
    value ="<%= and the %>" tags doesn't seem to work!
    TIA,
    Mylene

  • Query: How can I combine several fields to one field

    I have this Query:
    SELECT T0.[Cardname], T1.[Street], T1.[ZipCode], T1.[City], T1.[Country] FROM OCRD T0  INNER JOIN CRD1 T1 ON T0.CardCode = T1.CardCode WHERE T0.[CardName] Like '%[%0]%'
    I have two questions on it:
    1)   Now I get two lines with the same results because each BusinessPartner has a billing-address and a shipment-address. How can I get one result with only the shipment-address fields.
    2)   When I run this query as a Formatted Search on an addressfield I only get the first field (= CardName) in the Addressfield. How can I get Cardname, Street, Zipcode, City and Country in ONE field (ic Address2)?

    Answer -1
    T1.AdresType = 'S' for ship to address
    T1.AdresType = 'B' for bill to address
    SELECT T0.Cardname, T1.Street, T1.ZipCode, T1.City, T1.Country FROM OCRD T0 INNER JOIN CRD1 T1 ON T0.CardCode = T1.CardCode WHERE T0.CardName Like '%%[%0]%' AND T1.AdresType = 'S'
    Answer-2
    Modify this query
    Select T1.Address + Char(12) + T1.ZipCode + Char(12) + T1.Street + Char(12) + T1.Block +Char(12) + T1.City + Char(12) + T1.County + Char(12) + T1.ZipCode
    FROM CRD1 T1 INNER JOIN OCRD T0 ON T0.CardCode = T1.CardCode
    Where T1.AdresType='S'
    Hope this solves problem.
    Edited by: Jeyakanthan A on May 28, 2009 1:45 PM

  • Comparison of two structures excluding one field

    Hi,
    I need to make comparisons of two complete data structures, excluding from the comparison one field that should not be compared or considered to obtain a result of equality of both structures.
    Somebody know a sentence or practical way to make this comparison (with one field less)?
    Example:
    DATA: im_data_new TYPE mereq_item,
                im_data_old TYPE mereq_item.
    Both structures has 146 fields, and I need to exclude from the comparison the 64th field.
    Thanks in advance and greetings,
    Mayra.

    clear that field value in old and new before comparing the structures.
    Thomas

  • Addition of one field in cube!

    Hi,
    i have to add one field in cube.
    scenario is----
    i have one report which would give the information about the developer activities over a period of time. in this report we can see the information like which developer has worked on which requests and how much time he has worked on and so on.
    now this report does not have any closing date for a request. it has the status of a request against the developer .my requirement now is to get that additinal field which would calculates the closing date of request.
    if request status is closed then the last checked date for that request would be the closing date of request.
    my question is
    can i directly create a characteristic date field and add in infocube, the values for which would be coming from the update routine? (i think it is not neccessary that this field should be present in transfer rules also )
    if yes, can some one help me in the logic of update routine?
    Thanks,
    Ravi

    Yes, you can (but you will not have this additional field filled for all the records already contained in your cube...)
    Create (and then add in your cube) a date KF, then put in the update rule for it:
    IF data_package-requeststatus = 'closed'.
    RESULT = data_package-lastcheckeddate.
    ENDIF.
    I don't know if you already have on the same record this "last checked date" or if you have to apply some logic (in this case, do you have an ODS before the cube ?)
    Hope it helps!
    Bye,
    Roberto

  • Purchasing document field derived blank in FBL3N

    Hi SAP Guru
    Need your help.......
    I posted one accounting document with referance to purchasing document. In entry level purchasing document field is mention but while executing the report T code - FBL3N, purchasing document field appearing blank.
    Awaiting your reply.
    Regards
    Anjan

    Have a look with SE16 in the table BSEG if there is a PO in.
    The field PO is normal filled in from the posting from the PO. When you fill this in manual there is no link to your PO!!. You should use the transaction miro

  • How Do You Change A Numeric Field To Blank When Zero?

    I'm using Adobe Acrobat 6.0 Professional, version 6.0.6.
    Can anyone help me with the code to change a numeric field to blank, when "0.00"?

    "no success" does not provide much to go on.
    With your scripts, I get the concatenation of the sting values, so one has to force JavaScript to convert strings to numbers.
    Make sure your field names are exact including case.
    Make sure the calculation order is correct.
    The following scripts all work:
    var fa = 1 * this.getField("FeeN01").value;
    var fb = 1 * this.getField("FeeN02").value;
    var fc = 1 * this.getField("FeeN03").value;
    event.value = fa + fb + fc;
    if ((event.value == 0)) {
    event.value = ""
    // or
    var fa = this.getField("FeeN01").value / 1;
    var fb = this.getField("FeeN02").value / 1;
    var fc = this.getField("FeeN03").value / 1;
    event.value = fa + fb + fc;
    if ((event.value == 0)) {
    event.value = ""
    // or
    var fa = Number(this.getField("FeeN01").value);
    var fb = Number(this.getField("FeeN02").value);
    var fc = Number(this.getField("FeeN03").value);
    event.value = fa + fb + fc;
    if ((event.value == 0)) {
    event.value = ""
    The "sum of" also works with the "Custom validation script" of:
    if (event.value == 0) event.value = "";

  • HP All-in-One 2100 Prints Blank Pages

    Anyone had this issue where an HP ALL-IN-ONE only prints blank pages, or only parts of the page? It worked great for years, now after a few clean installs, it's junk. Sometimes it works somtimes not. Now seemingly always not.
    Any suggestions?
    Thanks!

    I have had this problem FOREVER. I even paid the $59.95 to HP for "Support time" to fix the problem, which they never could do.
    For the last year or so I've been using GIMP print drivers, which work, but I have even better news.
    Every few months I check the HP site to see if they have released new drivers. This weekend when I checked there was a new driver, version 7.9, as a Universal binary. So I gave it a shot.
    I have an OfficeJet 6110xi, but I bet they updated it for all the All-in-ones. Here's the link to the drivers I am using:
    http://h10025.www1.hp.com/ewfrf/wc/softwareList?lc=en&cc=us&dlc=en&product=79480 &lang=en&os=219
    To my amazement and surprise everything is working again!
    Another great surpise is that scanning multi-page documents under "PDF to Adobe Reader" now actually results in one file with N pages rather than N 1-page files.
    It was a long wait, but thank goodness it's finally over!
    Best of luck,
    Alan

Maybe you are looking for

  • How do I download iTunes to a drive other than C?

    I have 2 hard drives in my computer, the C drive and a F drive. iTunes uses so much space that I ran out of room on my C drive, but have lots of room on my F drive. I have completely uninstalled iTunes and would like to reinstall it on my F drive. Do

  • How do I restore a backup CD of iTunes? The process keeps stalling and quits responding

    iTunes stalls operation and quits responding when I try to import iTunes backup files from a backup CD. 68 files made it before it quit restoring the rest completely. Also, I downloaded and installed the 64 bit version of the program, however it show

  • FireWire Problems Connecting Target MBP to Host MBP

    Hey guys, i am having a problem when i try get into target disk mode. I have 2 MBP's , one of them is working flawlessly while the other wont log on to any accounts. I cant get passed a gray screen, i was told to transfer my files from the unbootable

  • Error during creation of PDF form in Talent Review Meeting

    Hi all, I encountered this error when I tried to create a PDF form in Talent Review Meeting. Error creating PDF Message no. HRTMC_BASIS210 Diagnosis An error occurred while creating the PDF. System Response ADS: com.adobe.ProcessingException: com.ado

  • Stopping Photo in Ken Burns Fade

    I am creating a photo montage in IMovie 10. I like the Ken Burns effect, but want the photo to stop for a second or two before the fade. By the time the effect gets to the closeup, it goes right into the next fade. Help!