To find the date type fields in the row and validate those date fields

TYPES : BEGIN OF TY_MARA,
          MATNR TYPE MARA-MATNR,
          ERSDA TYPE MARA-ERSDA,
          ERNAM TYPE MARA-ERNAM,
          LAEDA TYPE MARA-LAEDA,
          MTART TYPE MARA-MTART,
        END OF TY_MARA.
DATA : it_mara TYPE STANDARD TABLE OF ty_mara,
      it_mara1 TYPE STANDARD TABLE OF ty_mara,
       wa_mara TYPE ty_mara.
loop at it_mara into wa_mara.
  describe field wa_mara-ersda type c_data.
if c_data eq 'D'.
  CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
    EXPORTING
      date                            = wa_mara-ersda
   EXCEPTIONS
     PLAUSIBILITY_CHECK_FAILED       = 1
     OTHERS                          = 2
  IF sy-subrc eq 0.
wa_mara-ersda = '00000000'.
    append wa_mara to it_mara1.
    write :wa_mara-matnr,wa_mara-ersda.
    else.
        wa_mara-ersda = '00000000'.
    append wa_mara to it_mara1.
    write :wa_mara-matnr,wa_mara-ersda.
  ENDIF.
  endif.
  endloop.
This issue regarding how to find the date type fields in the row and validate those date fields.If its not a valid date ,i have to assign initial value to that.
I've tried that for single field using describe field.Please help me do that for all fields.

Hi Sam,
 I believe we had discussed the same issue in the below thread. Can you please refer the below one?
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/d93e16ff-c123-4b36-b60b-60ccd34f6ca7/calculate-time-differences-in-infopath?forum=sharepointcustomizationprevious
If it's not helping you please let us know
Sekar - Our life is short, so help others to grow
Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
you see a reply being an answer to the question of the thread, click "Mark As Answer

Similar Messages

  • Data type size for the view column

    I am creating a view from base table using substr() for some fields. The data type size of the column in the view becomes twice the size of the corresponding column in the base table. Example
    SQL> create table temp_sat(name varchar2(20));
    Table created.
    SQL> create view temp_view as select substr(name,1,10) name from temp_sat;
    View created.
    SQL> desc temp_view
    Name Null? Type
    NAME VARCHAR2(40)
    Can i specify the size of the column while creating view

    satish asnani wrote:
    I am creating a view from base table using substr() for some fields. The data type size of the column in the view becomes twice the size of the corresponding column in the base table. Example
    SQL> create table temp_sat(name varchar2(20));
    Table created.
    SQL> create view temp_view as select substr(name,1,10) name from temp_sat;
    View created.
    SQL> desc temp_view
    Name                                      Null?    Type
    NAME                                               VARCHAR2(40)Can i specify the size of the column while creating viewHi,
    Which platform and Oracel DB version?
    I had try to replicate, but I can't:
    SQL> create table t_v
      2  (id varchar2(20));
    Tabla creada.
    SQL> desc t_v
    Nombre                                                            ┐Nulo?   Tipo
    ID                                                                         VARCHAR2(20)
    SQL> r
      1  create view v_t_v
      2  as
      3  select substr(id,1,10) id
      4* from t_v
    Vista creada.
    SQL> desc v_t_v
    Nombre                                                            ┐Nulo?   Tipo
    ID                                                                         VARCHAR2(10)John

  • The suitable LabVIEW data type correspinding to the array of structure in Visual Basic ActiveX DLL

    Hi!
    I need to call a VB ActiveX DLL from LabVIEW. When I run my LabVIEW code, I always meet an error as:
    Error 1 occurred at Incorrect Function in T06.vi
    Possible reasons:
    LabVIEW: An input parameter is invalid.
    I have read the VB DLL code that defines the data type. It fills data to a structure, then puts this structure to the array, and sends the array of structures to the method.
    VB Code:
    For I = 1 To 31
    Set MyInputData(I) = New EM_nkd_DataPoint
    Next I
    With MyInputData(1)
    .Amplitude = 8.44
    .DataPointType = R_HW
    .DataSource = MEASURED
    .Wav
    elength = 409.56
    End With
    With MyInputData(2)
    .Amplitude = 91.60113
    .DataPointType = T_SUB
    .DataSource = MEASURED
    .Wavelength = 409.56
    End With
    ~~~
    With MyInputData(31)
    .Amplitude = 91.96825
    .DataPointType = T_SUB
    .DataSource = MEASURED
    .Wavelength = 657.43
    End With
    My problem is that I can’t find a suitable kind of data type in LabVIEW which is corresponding to this case
    Attached my LabVIEW code for reference.
    Many thsnks.
    TX
    Attachments:
    T07.vi ‏166 KB

    Hi,
    if you have a complete source code including EM_nkd_DataPoint class module, take a look inside in order to see data types for Amplitude, DataPointType, DataSource and Wavelength (probably for Amplitude and Wavelength is SINGLE). If this code is not available, maybe the author mentioned a type for T_SUB and MEASURED even if they are constants.

  • List of all the process types used in the creation of process chains

    Hi Gurus,
    I am new to process chains creation, can any one give the list of all the process types used in the creation of process chains and there uses also.
    Please search the forum before posting a thread
    Edited by: Pravender on Jan 4, 2011 4:18 PM

    Hi,
    As process chain is to automate the data load step.
    For Ex:- If you are loading data from R/3 to DSO CUBE.
    Here you require Info package to load till PSA.
                                 DTP to load till DSO
                                  Another DTP to load Cube.
    And all other process like psa deletion AND process you can find in RSPC tab.
    Thnaks,
    Saveen Kumar

  • "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information" while attempting to open UNIX/Linux monitor

    We have upgraded our System Center to 2012 R2, and we cannot open any of the UNIX/Linux LogFile monitor property or the UNIX/Linux process monitor property for those monitors created prior to the upgrade.  Error we get is below.  Any assitance
    appreciated.
    Date: 9/30/2014 10:01:46 PM
    Application: Operations Manager
    Application Version: 7.1.10226.0
    Severity: Error
    Message:
    System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
       at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection,
    Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection,
    Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection,
    Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
       at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
       at System.Reflection.Assembly.Load(String assemblyString)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.TypeContainer.get_ContainedType()
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.MomExtensionsCommon.AddTemplatePages(LaunchTemplateUIData launchData, Form form)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.MomExtensionsCommon.Initialize(Object launchData, Form form)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.MomExtensionsCommon.RunPrivate(Object[] userData)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.MomExtensionsCommon.Run(Object[] userData)

    It's possible the upgrade did not update everything properly as it looks like a dll mismatch or a missing file. I'd open a support ticket with MS and have a support engineer look at the upgrade logs. What version of SCOM did you upgrade from?
    Regards,
    -Steve

  • Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

    Hi there,
    I use visual studio community 2013 to develop app for office. When I create app project using template and directly run it, it shows me this error: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
    Can anyone help? Thanks in advance.

    Hi holm0104,
    Did you add custom code into the project? Can you reproduce the issue in a new project without custom code?
    If not, did you have issue when you create a normal web application?
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • SGEN: error: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

    Hi,
    I appollogize if this post is off topic. I have problem wiht publish WebApp MVC.
    I have website (MVC) with one Web reference. Build and run in VS working. But when I tried to publish to disk I get error:
    SGEN: error: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
    I have VS2013 Profesional with all updates and Windows 8.1.
    If I remove web reference then publishing working. Where can be a problem? Thanks.

    @Marek Bober,
    Thanks for sharing the solution back to here.
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • If I have a repeating event in iCal, can I attach different docs, pdfs, etc., do the events. I am entering lessonplans and want each date to have an attachment.

    If I have a repeating event in iCal, can I attach different docs, pdfs, etc., do the events. I am entering lessonplans and want each date to have an attachment.

    Yes. As you edit each one, you will get a dialog asking whether you want to change all or just the current one.

  • Changing the Condition type Text in the Purchase Order

    Hi SAP,
    Hi,
    We have a requirement where by we need to change the Description of the condition type text in the Purchase order.
    The condition type is a entered at item level.
    Normally this description comes from the Condition type Definiton i.e., T685T-VTEXT.
    can any one of you suggest a User exit or a method where by we can change this text at PO.
    Has any one of you came across such situation before. if so please provide me with your inputs.
    Thanks
    Best Regards
    ShitalD
    Edited by: Shital Deshpande on Feb 21, 2010 1:07 PM

    Hi,
    I think it is a config setting..Please check with your functioal consultant regarding the same.. I won't suggest to change the standard SAP table T685T but you can keep it as last option .
    From SPRO you can follow the below path
    Sales and Distribution->Basic Functions -> Pricing > Pricing Control -> Define condition types.
    Regards,
    Nagaraj

  • How do i show the filename.type instead of the entire file path?

    How do i show the filename.type instead of the entire file path?
    I want it to show "ProgramSetup.exe" instead of "C:/Program Files/Oracle/JavaFX/ProgramSetup.exe"
    I have created a JavaFX program with the help of my manager
    below are the code
                   File file = fileChooser.showOpenDialog(Admin.mainStage);
                   if (file != null) {
                        textFiles.setText(file.getAbsolutePath());
                        String absolutePath = file.getAbsolutePath();
                        //String fileName = new File(absolutePath).getName();the reason i put the last line as // because it has error on that line....
    if i remove the last line, it will display but with the full path....
    i search through google and the guide on many forums aren't clear to me.....some said there are 2 ways but i tried and it is not working, atleast for me...maybe i left out something or what....can anyone help me on this?

    You don’t need the absolutePath:
    File file = fileChooser.showOpenDialog(Admin.mainStage);
                   if (file != null) {
                        textFiles.setText(file.getName());
                               }

  • CS6:  'lost' the T Type tool from the left hand tool bar. [was:A question]

    I have CS6 and ghave suddenly 'lost' the T Type tool from the left hand tool bar. How do I get it back please?

    Do you have the Text on a Path tool in it's place, or no tool at all? If you press and hold any tool with samll triangle in the lower right corner, like the text tool, it will expand to show you the other tools available in that spot.

  • PR05: How to configure the expense types depending on the type of expense?

    Hi,
           We are in the process of upgrade from 4.6C to ECC 6.0. The problem is that when we are creating the expense request, after selecting the type of expense (travel expense or non travel expense) we are getting the same expense types for both the travel and non travel expenses.
    Now my question is that, is there any in error in configuring the expense types in transaction FITVFELD.
    How to configure the expense types depending on the type of expense (travel and non travel)?
    Your answer will be highly appreciated.
    Thanks in advance.
    Ramana

    Hi
    I checked with one of the SUBJECT MATTER EXPERT on T&E and it is not possible to have the expense types based on the schema.
    Thanks
    Ashok
    Award points if this is useful

  • Does data type nvarchar in SQL 7.0 have matched DATA TYPE in JAVA

    does data type nvarchar in SQL 7.0 have matched DATA TYPE in JAVA
    I use odbc-jdbc bridge to connect to SQL 7.0
    thanks in advance!

    try String.
    java.sql.Types.VARCHAR would be the sql type.

  • Data type conversion issues between Oracle and SQL Server

    Hi there, I am using Heterogeneous Services to insert into a SQL Server database. I am running into an issue between data types regarding Oracle's VARCHAR2 and trying to insert that into a SQL Server MONEY data type. I tried using the TO_NUMBER() function to convert my VARCHAR2 to a number, but that didn't seem to help.
    Does anyone have any advice on how to work around this??
    Thanks for any help,
    ivalum21

    ORA-02047: cannot join the distributed transaction in progress
    ORA-06512: at "MY_PACKAGE_NAME", line 263
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC]DRV_Execute: DB_ODBC_ENGINE (1645): ;
    [Microsoft][ODBC SQL Server Driver][SQL Server]Disallowed implicit conversion
    from data type varchar to data type money, table 'tableA',
    column 'total_amount'. Use the CONVERT function to run this query. (SQL
    State: 37000; SQL Code: 260)
    ORA-02063: preceding 2 lines from SQLSERVER_LINK
    ORA-06512: at "RCDTPUMP.CAMPUSCALL_DATAPUMP_UNI", line 875
    ORA-06512: at "RCDTPUMP.CAMPUSCALL_DATAPUMP_UNI", line 791
    ORA-06512: at "RCDTPUMP.CAMPUSCALL_DATAPUMP_UNI", line 1156
    ORA-06512: at line 1
    That is what I get when I take out the TO_NUMBER()
    Message was edited by:
    ivalum21

  • Maximum number of rows and columns in data form

    Hi,
    I wanted to know if there is a limitation to the number of rows and columns that can be displayed in a data form, in Hyperion planning 11.1.2.1 ?
    And what would be the most appropriate number of rows and columns to be included for optimum performance.
    Thanks.

    Hi,
    While its a fun fact to determine how much one can stuff into a web form, the reality is: how much can a user reasonably consume in a web form?
    And what would be the most appropriate number of rows and columns to be included for optimum performance
    You will find that the answer to this is by "what design makes a web form most usable?" And no, the users don't really know what they want from a design perspective, they see it in their head, but usually what they ask for is something that would look entirely different (huge).
    The next thing to think about is the use of member selection functions in the page axis. IDescendants(Entity) in a dropdown could cause issues just as easily as too many rows - and again make the drop down unusable for a user.
    If your question is a bit more technical, then consider this (somewhat oversimplified): Web forms are constructed by a process on the server. Objects are created based on the form's definition and used by the process that builds the form. The process uses Cartesian looping (lots of iterations) to construct the form cell by cell, starting at the top left and finishing up in the bottom right. If the form has a million cells on it, then the loop and all the code within it runs a million times. The capability of the server has a lot to do with how well it can handle this request, and how many it can handle at one time.
    The result of this is gobs of HTML and JavaScript. All of this has to be sent over a network to the requesting client. The client starts receiving the web page code and has to render it in the browser and run the JavaScript. The ability to do this is limited by the browser, the OS, and the hardware that the client is running on.
    And that's just rendering the page for use.
    Now it has to be interacted with on the client machine, and changes parsed, packaged, and sent back to the server.
    So the technical answer is, there can be many limitations to how many rows and columns a data form can have - none of which can truly be anticipated by anyone. This is why I put the part about usability first in this post.
    Regards,
    Robb Salzmann

Maybe you are looking for

  • Retiming with same number of frames

    Hi (couldn't find this) - If I want to convert my source video to a new frame rate -- but keep exactly the same number of frames -- what is the best way to do that? Do I just set my desired frame rate in the Encoder tab and then set duration to 100%

  • Compter says it can't communicate with Mini

    This mini has been able to connect and download music. I removed several virus programs and now the computer says that it the software that itunes needs to communicate with the mini is intstalled wrong. I removed itunes, reinstalled...same problem. I

  • How to fax without a Modem

    Is there any way, if one have mac mini without mode, to send faxes via ethernet DSL thank you

  • JEditorPane.setPage(URL url), then I want to clean up HTML, how?

    According to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4695909 the problem with the inconsistent ArrayIndexOutOfBoundsException that I have been getting whenever I would go to a particular URL to put into JEditorPane using setPage() - this m

  • Comment editer un text pour enlever aspect pixels avec Photoshop?

    Bonjour ! Je suis entrain de refaire un "flyer" de l'entreprise dans laquelle je fais mon stage. Mon problème: lors de l'impression, les textes sont pas nette (visibilité des pixels). Les textes sont déjà "lissés", ce qui réduit déjà beaucoup la visi