Date differences if one of the field not presenting

Hi All,
I have two attributes start date and end. I have created formula replacement variable.
some  times one of the field coming as blank, in such acase system writing some garbage value but i need blank.
How to resolve this issue.
Reagrds,
J B

Hi,
You can create a new formula in query designer with a condition such that date difference doesn't fall in the invalid value. If it that invalid value put the result as '0'.
http://help.sap.com/saphelp_nw04/helpdata/en/23/17f13a2f160f28e10000000a114084/frameset.htm
If the output is showing as '0' for the invalid values then in the query properties select the Display zeroes as Do Not Display Zeroes.
http://help.sap.com/saphelp_nw04/helpdata/en/1e/99ea3bd7896f58e10000000a11402f/frameset.htm
Hope this helps.........
Rgs,
Ravikanth.

Similar Messages

  • Filter data on any one of the field in Hirarchical ALV?

    Hi,
    Can any one tell me if I am using Hirarchical ALV for outputting the data, and I have to filter out the output  data on any one of the column in the Hirarchical ALV, Is it possible ?
    Can we filter out the data on the basis of field which is not the key field in the Hirarchical ALV?
    Mrunal

    Try using IT_FILTER...SLIS_T_FILTER_ALV...I guess...
    santhosh

  • One of the field is disabled(input not possible) after upgrade in FPE1

    Hi ABAP Gurus,
      I am working on FPE1 Transaction Code and i just find out that after upgrade one of the field  on screen is not input possible but before upgrade we have that field as input/output  possible .
    so now we want same functionality what we have before . so which path do i need to follow because its standard screen .
    any suggestion is appreciated .
    Thanks,
    Jack
    Edited by: jack troy on Jun 24, 2009 7:36 PM

    Hi Ajay,
    Thanks for your reply . My question is can we enable field for input using transaction variant .because if i go to screen layout for FPE1 ,  i can see that this field is only output possible .
    Thanks,
    Jack

  • Checkbox as one of the field in the internal table in the list

    Hi,
    I have a requirement of processing the certain records of the internal table for which checkboxes are selected in the list.
    The selected records need to be updated in the custom table and the unselected records need to be ignored.
    I have created the PF status and the application tool bar and a button on the tool bar.
    Then when the report is executed the list is displayed with the records with one of the field as a checkbox.
    At user-command.
    Then in the at user-command handling the button click event.
    I want to know which records are been selected and which are not.
    If some one knows please let me know.
    Thanks
    S Patel

    This is exactly what you need to do:-
    PBO
    CREATE OBJECT g_custom_container
             EXPORTING container_name = g_container.
      CREATE OBJECT g_grid
             EXPORTING i_parent = g_custom_container.
    Select data from your table
      PERFORM select_data CHANGING pt_outtab[].
    Build fieldcat
      PERFORM build_fieldcat CHANGING pt_fieldcat.
    Exclude standard buttons from the Toolbar
      PERFORM exclude_tb_functions CHANGING lt_exclude.
    Display output in ALV grid
      CALL METHOD g_grid->set_table_for_first_display
        EXPORTING
          it_toolbar_excluding = lt_exclude
        CHANGING
          it_fieldcatalog      = pt_fieldcat
          it_outtab            = pt_outtab[].
    PAI
    Get modified data
      CALL METHOD gv_grid->check_changed_data.
      LOOP AT gt_output INTO wa_output WHERE zzchkbox EQ c_x.
        MOVE-CORRESPONDING wa_output TO wa_selblk.
        APPEND wa_selblk TO lt_selblk.
      ENDLOOP.
    This method will give you all the records which are selected in the list output. Collect them and modify your custom table.
    Edited by: Rudresh Chand on Feb 28, 2010 8:26 AM

  • To replace values of one of the field in the database table

    How to replace values of one of the field in the database table with a new values? Pls help to solve

    Hi
    You can use the UPDATE command to update one of the field value in a table
    see the UPDATE syntax and use it
    but in real time you should not do like this
    Regards
    Anji

  • How to add dynamic data type as one of the terminals of a Custom VI

    Hello,
    Can anybody tell me if it's possible and how to add a dynamic data type as one of the terminals of a sub-VI? I would like to have a terminal that I can connect signal from DAQmx to my sub-VI.  Thanks.

    Here is one of the coolest things about LV, and one of its major advantages over languages like VB - it has automatic memory management and it compiles whenever you make a change. This allows you to be very free in the way you handle data and change your code. In this case, you should note the small gray dot that appears when you wire the dynamic data into the Array of Waveforms input. This gray dot means that LV coerces the source data type (DDT, in this case) to the target data type (Array of waveforms). If it wouldn't match, you would get a broken wire, the VI couldn't run, and if you hover over the wire or press the broken run button you would get an exact description of the error. Cool, eh?
    This can also be seen in other things. For example, you can change an array's data type or number of dimensions by simply doing it. This will automatically be reflected anywhere the array is called in the program, and if anything won't match, the VI will be broken. If you change the # of dimensions of an array, any array function which that array is wired to will adapt. This allows you to be very safe in the way you write code, because you have LV watching all that annoying stuff for you. You don't have to worry about misspelling a variable here (for the most part).
    One important point about coercion - it does take processor power. This will usually only be evident in large arrays or loops, but it is an important point. Another thing is that coercing numeric types can cause you to lose data - coercing a DBL to a U16, for example, will cause you to lose all the fractional data.
    To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
    Try to take over the world!

  • How to get the Output File Name as One of the Field Value From Payload

    Hi All,
    I want to get the Output file name as one of the Field value from payload.
    Example:
    Source XML
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_TEST xmlns:ns0="http://sample.com">
    - <Header>
      <NAME>Bopanna</NAME>
      </Header>
      </ns0:MT_TEST>
    I want to get the Output file name as " Bopanna.xml"
    Please suggest me on this.
    Regards
    Bopanna

    Hi,
    There are couple of links already available for this. Just for info see the below details,
    The Output file name could be used from the field value of payload. For this you need to use the UDF DynamicFile name with below code,
    //       Description: Function to create dynamic Filename
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
    conf.put(key,a);
    return "";
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
    conf.put(key,a);
    return "";
    With this udf map it with the MessageType as
    (File Name field from Payload) > DynamicFileConfiguration>MTReceiver
    Thanks
    Swarup

  • Additional validation for one of the fields in down payment request

    Hi All ,
      I have a requirement for doing some additional validation for one of the fields in down payment request
    (F-47) .
    I need to validate a field u2018Assignmentu2019 in the down payment request .
    Here, assignment field is mandatory and user has to enter a valid contract number. Then we have to  validate the contract number entered against the tracking number field (BEDNR) in EKPO table corresponding to the vendor.
    If the contract number entered is incorrect, then system displays a message with the valid contract number. The user can modify the assignment field with this contract number. Once the field is modified, system once again validates whether the contract number entered is valid.
    Can you please provide me your valuable inputs how to achieve this.
    Regards,
    Tripti.

    Hi Vishal ,
      Thanks for your reply. I tried searching for  them but couldn't find any.
    Regards,
    Tripti.

  • I wish to modify the name of one of the field name in the sales order.

    HELLO GURRRUS,
                 i wish to modify teh name of one of the field name in the sales ordder.
    what is the procdure,path and steps involved in that.it would be of great help of me if u take some  time and suggest me.
    bye take care hav a happy and peaceful life

    Hi Sameer,
    If you want to change the name or description of the field in the Sales order,
    you have to use the userexit MV45AFZZ and use the Form USEREXIT_FIELD_MODIFICATION.
    Get the help of the ABAPer and decide where do you want to make the change in the Header or the Line items.  Accordingly give the requirements to the ABAPer.
    He will do it.
    Thanks
    Augustine Ponraj

  • With Firefox open an update window came up; I clicked on Restart Later. When I later clicked on Firefox icon, a message brefly appeared "Firefox is damaged and cannot be opened" and the icon changed to a generic one with the "Do Not" slash across it.

    With Firefox open an update window came up; I clicked on Restart Later. When I later clicked on Firefox icon, a message briefly appeared "Firefox is damaged and cannot be opened" and the icon changed to a generic one with the "Do Not" slash across it.

    Many Thanks, Kurt.
    I knew I'd seen the solution you've provided somewhere - either in MacWorld or MacFormat - but couldn't remember the Gatekeeper bit!
    I shall save it somewhere VERY safe now in case this happens again …
    You have made an old man very happy and saved me from worrying that senile decay had suddenly set in. (I was 70 last week so you might understand the situation from that.)
    Best wishes
    OllyanDinah

  • In KSB1 one of the field is showing up in DEV but not in QA or PRD

    Hello,
    One of the standard field which is showing up in DEV but not in QA or PRD. After excuting a transaction KSB1, One can change the layout and add or hide a field from a given options. We can see that field in DEV, but not in QA and PRD.  This is a standard report and  we checked in table v_tkalv, it is same in DEV and QA
    Thanks for your help
    Rick

    I don't have access to a 6.0 system at the minute, but I'm pretty sure order isn't a standard field in KSB1.  It would be in KOB1, of course, but the K*B1 transactions are for displaying actual line items recorded on various kinds of cost objects.
    In the reporting scenario, how's the order factor in?  Did it receive statistical postings, or something?

  • How to import data usin Import manager if one of the field is of type LOOKUP[FLAT].

    Consider a scenario:
    Where I created a Main table named STUDENT and it has 4 fields,
    a) Among which 2 fields are OF DATA TYPE TEXT[50] and
    b) Remaining two are of DATA TYPE LOOKUP[FLAT] and corresponding look up table also created in the repository.
    When I tried to create a file with certain input records and tried to import the values into the Main table using MDM IMPORT Manager, I am getting error at the IMPORT STATUS tab with the action item message: MAP 'FILED NAME OF LOOKUP[FLAT] TABLE' FIELD VALUE(S).
    Do I need to do any special action to import record if the field is of data type LOOKUP[FLAT].
    Please advice.

    Hi,
    Since you need to import value into a field which is referred by a flat look table, you need to map the values of that field to the values maintain in flat look up table.
    You can do the mapping from "Map Fields/Values" Tab.
    You have probably Mapped Source fields with destination fields, but in case of importing values in lookup fields you need to map Source Value with destination value.
    Keep the cursor on the required lookup field in Source field section, below that section you will be able to see Source Value section perform the mapping in that section too and it will resolve your issue.
    Regards,

  • Field not present in the Field Catalog also getting displayed in the ALV

    Hi Experts,
    I am trying to display some to an ALV grid. But since i don't need all the fields from the internal table, i have deleted those fields from the field catalog. But in-spite of doing this the field heading is still getting displayed. I am not able to figure out the reason for this. Also note that the i have not deleted that field from my internal table which contains the actual data.
    Regards,
    Kush

    Hi,
    If your giving your internal table to the below field then ALV try to disply those many coloumn.
    wa_fcat-tabname    = 'IT_OUTPUT'.
    You can add for that field name.
    wa_fcat--NO_OUT = 'X'.
    Please check the field name on the output will be same as before column name .

  • Field not present in the datasource

    Hi All,
    I want to bring the data for fields SCMNG of 0ART_SALES_ATTR into BW. When I check the datasource in RSA6(Double click on 0ART_SALES_ATTR) I am unable to find the field. But when I see the extract structure(BIW_MVKE_S) I can find the field in there. I checked the table  ROOSFIELD and found that the this particular field is set to 'A'(Field in OLTP and BW Hidden by SAP). How can I make this field available to extract the data?
    Please someone reply me soon..It is ver urgent!!!
    Thanks,
    RPK.

    Hi Manfred,
    I have edited it and set it to ' '(No Selection Pssible, Visibility set) and also saved it. But when I go back to rsa6 and double click on the datasource to check if the field has come there it is showing me a log with an error message saying "Units field MEINS for field SCMNG of DataSource 0ART_SALES_ATTR is hidden". What does this mean? Am I missing something or do I need to do any setting? I have checked for MEINS in the extract structure but it is not there in the structure at all.
    Regarding the code,if I want to use this, where should I write this?
    Thanks a lot,
    RPK.

  • Problem in one of the field in xk02

    Dear MM guruz,
    i have a problem. The problem is :
    i am trying to change a vendor details in xk02.
    now while maintaining the edit /change in xk02 system ask for general, purc org data and company code data.
    I selected purchasing data from purc org data.
    so i went intothe respective screen, There in the header i went to extras and clicked on "add purchasing data".
    there we get two things :
    1. plant assignment
    2.possible data maintainence  levels.
    my problem is in one client i am having the field plant assignment but when i am trying it in other clien the field is absent.
    i checked the field settings but could nt get any help.
    Any suggestions on how to bring that field.?
    programe name:SAPMF02K
    screen field:LFA1-WERKS
    Edited by: BOSE_Krishna on Nov 3, 2011 6:06 PM
    Edited by: BOSE_Krishna on Nov 3, 2011 6:07 PM

    execute OMFK,
    select the purchasing org where you dont see the field (if you jsut have * purchasing group then choose this one)  and go into the detail.
    select the field status purchasing by double click
    then select the addition data and set the plant to optional

Maybe you are looking for