Passing date field to RFC

Hi there,
I am implementing a mail to RFC scenario and everything seems to work fine except of this: the RFC has a date as incoming parameter, which is not filled (correctly). When I look at the message being sent to the RFC adapter I can clearly see that all values are filled correctly, but when I am debugging the RFC in ECC the date field has 0000000 as a value. I already tried to pass a whole set of formats, but none of them seem to be able to get passed. I already checked the communication channel monitor, but there no errors are shown (and the message still contains all values).
I saw that the field in XI has type date instead of the xsd:date which could be expected. But this is also the case for standard BAPIs, so I suppose this won´t cause a lot of problems. :-s
Anyone who could clarify/solve the issue that I am having? A solution would be to ask the ABAP developer to make it a CHAR field, but at this time I consider that as the last option (because it should be possible to solve it like it is)
Thanks a lot in advance!

Thanks a lot for your replies!
I am aware of the fact that 00000000 is the default value of a date field in ECC. The issue is that it is filled at the XI side, but at the ECC side it appears to be empty.
At the moment I am passing 2008-03-12, because this seems to be the format what a xsd:date field would expect to receive (according to http://help.sap.com/saphelp_nw04s/helpdata/en/fe/26da4105aa3f5de10000000a1550b0/frameset.htm), but this doesn´t seem to get passed. I also tried the the following formats:
20080312 (internal format ECC)
12-03-2008
12.03.2008
12/03/2008

Similar Messages

  • I need to pass value for Actual GI date field in VL01N t code, I am using BAPI_DELIVERYPROCESSING_EXEC. can any one tell me how can i pass vaule ?

    I need to pass value for Actual GI date field in VL01N t code, I am using BAPI_DELIVERYPROCESSING_EXEC. can any one tell me how can i pass vaule ?

    Hi Abdul,
    Sorry for my unprecise answer, but you talk about a tcode, but you're using a BAPI Call. Maybe you want to call the transaction in batch mode?
    http://help.sap.com/saphelp_erp60_sp/helpdata/de/fa/09715a543b11d1898e0000e8322d00/content.htm
    Regards,
    Franz

  • "Schema validation found non-data type errors" error when passing a string value to date field in infopath

    Hi,
    I have an infopath web brower enabled form. In the form i have a date field.
    I am passing the data from the database to that field using the C# code.
    But, as the field from database is coming as string, i am getting an error, and i am not able to assign the value.
    I get the date value from database as "3/25/2011 12:00:00 AM"
    I used the below code:
    [CODE]
    if (objInfopathFormcData.myRecievedDate != null)
      myRoot.SelectSingleNode("/my:myFields/my:field97", NamespaceManager).SetValue(objInfopathFormcData.myRecievedDate);
    [/CODE]
    I am getting the error as "Schema validation found non-data type errors".
    How to set the value for a date field in Infopath.
    Thank you

    HI,
    I fixed it:
    Below code is used to fix:
    [CODE]
    XPathNavigator xfield = null;
    DateTime dtmyRecievedDate;
    dtmyRecievedDate = Convert.ToDateTime(objInfopathFormcData.myRecievedDate);
    if (objFormcData.FcCompletionDate != null)
    xfield = myRoot.SelectSingleNode("/my:myFields/my:field97", NamespaceManager);
    DeleteNil(xfield);
    xfield.SetValue(dtmyRecievedDate.GetDateTimeFormats().GetValue(5).ToString());
    // method to delete xsi:nil
    private void DeleteNil(XPathNavigator nav1)
    if (nav1.MoveToAttribute("nil", "http://www.w3.org/2001/XMLSchema-instance"))
       nav1.DeleteSelf();
    [/CODE]
    Thank you

  • Passing null value to a Date field in OPA

    Hi,
    We are using Determinations server of OPA.
    I have created OPA web service proxy classes and using java client class for calling methods of OPA web service.
    Webcenter calls OPA web service for validating business logic. There is a Date field in OPA which is not mandatory, if web service is called with date value, logic is working fine, else if we pass null value or ignore setting Date value all conclusion of the rule is becoming false.
    for example :
    If agreement exists, pass agreement expiry date.
    Setting Input attributes if date is not null:
    global.setAGREEMENTEXPDATE(new DateAttributeType());
    global.getAGREEMENTEXPDATE().setDateVal(xmlGrogerianCalendar);
    if there is no agreement, pass null for agreement expiry date
    we are not setting Date attribute and sending request to the server
    Is it need to pass Attribute if it is not mandatory and has no value?
    If yes, how to pass null value?
    Please help on this.
    Thanks,
    Sri

    All optional parameters needs to be send to the OPA Determination Server, if value is not known then that attribute should be set to the "Uncertain" value as shown below.
    global.setAGREEMENTNUMBER(new TextAttributeType());
    global.getAGREEMENTNUMBER().setUncertainVal(new UncertainValue());
    Thanks,
    Sri

  • Smartforms- TABLE -Lines,rgrding passing  Quan&DATS fields to smartforms

    Hi All ..
    Iam working on Tables in smartform ,
    These are  queries  to which  i need solution ..
    1)  In (Window) Table- Heading  i have created  3 LINES   in which  my  data  had  to display...( i have  a line   in that TEXT is used to display  a particular fields of the Itab ) .  as i came to know that  in my Zprog iam gettting my  data in the fields  but   wen  in smartform these fields values are not displayed ( when these fields are placed in LINE  )  but  wen  these fields are placed outof LINE that is outof table then iamgetting  value for these fields..  so please   let me know  wat are the changes that ishould do  to  get my  data  in  my table ( LINE )
    2) How  to pass  DATS and QUAN  fields  to the smartforms..
    as iam getting  data to DATS and Quan Fields in my  Zprog   but these  values are not showed in my  smartForm ..  ..
    Thanks in Advance..
    Looking  for  a good  reply ..
    Aslam..

    Hi,
    you have created 3 linetypes for table .
    you have create loop for multiple records display.
    in loop you have to pass table from which you are displaying inti output.
    To internal table we get data from print program and create text for corresponding cells.
    then it will pass those data to table.
    2) create programlines for that.
    in that mention table from which table is containing quantity.
    that is import parameter specified .
    export parameters are your output fields using for calculation.
    AMOUNT = TAB3-NETWR.
    Netamount = Netamount + TAB3-NETWR.
    here input is tab3 table it contains quantity data.
    lamount,netamount are output parameters.
    like that you can display quantity.
    or in global definitions currency/quantity fields tab is available you can pass there also.
    for dat fields write logic for conversion of date and pass that variabl in form output.

  • How to handle empty Dats field received from SAP RFC response

    Hi All,
    I am invoking a SAP RFC which gives me a Dats field in response.
    A valid dats fields is successfully received by my pipelines.
    But when an empty Dats field is received, My pipeline fails and i get error.
    How to handle the empty Dats field from SAP

    Hi Anant,
    This is because the legacy SAP adapter accepted RFC messages with date field empty. In the new version, the same call results in an error. WCF-SAP adapter doesn't allow blank XML nodes.
    You need to use the below custom pipeline component as a workaround.
    Refer:
    Pipeline component for enabling legacy behavior in WCF-SAP adapter.
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • Passing data from a background job to RFC calls in different App server

    The program i am working on can be explained in the following steps:
    Step A- We use a standard program that is executed as a background job and the standard program obtains some data for a particular scenario.
    Step B - The job(standard program) during its execution creates many RFCs executed as dialog work processes on various application servers and processes data.In the RFCs various exits are executed.
    We currently write data to database(Z table) in Step A and retreive data in exits in Step B to access the information written to DB(Z table). We want to eliminate writing to database since it consumes time.
    Is there any solution apart from writing data to database and retreiving the same.
    I am not sure if we can use ABAP memory or SAP memory to access the information in the exits since they are executed on different App servers.

    We have not been able to arrive at a solution to the below, any solutions / inputs will be rewarded.

  • Pass Date from Internal table to Date field of Deadline(in expression tab)

    Hello,
    I need to set deadline in workflow according to dates in Internal table. So please guide how to achieve this.

    Thanks Rick for taking interest in my issue.
    Business scenario:-
    --> when PO is created delivery date is given in PO.
    --> Now all materials in PO can be delivered on same date or on different dates.
    -->Their can be same delivery date or different delivery dates.
    --> So for example:- For a PO their are 4 materials-
            MATERIAL NAME     DELIVERY DATE
              Material1                   10.11.2011
              Material2                   20.11.2011
              Material3                   20.11.2011
              Material4                   10.11.2011
    Now Material2 and Material3 will be delivered on 20.11.2011  and Material1 and Material4 will be delivered on 10.11.2011.
    Now a reminder mail should go to Vendor of that PO before 2 days of delivery date mean on 08.11.2011 and 18.11.2011.
    So to store 2 dates I require internal table.
    Now I am able to trigger reminder mail for 2 dates by using multiline element in miscellaneous tab of activity.
    But as I discussed in previous post that if I add multiline element in Date field of Requested start deadline then it gives error(plz check prev. post to see exact error). So I tried to used internal table(container in workflow) in deadline which is filled from a task in activity, but it is also not working means mail is triggered as soon as worflow is executed.
    So the main problem is deadline is not created based on dates in internal table and other all the things are working perfectly.
    As I am very new to workflow area, I might be going wrong somewhere.
    So please guide how to set deadline for multiple dates(according to my scenario).
    Thanks in advance.
    Regards,
    Mihir

  • Dynamically passing the fields to the data base through bdc

    hi,
         I need to pass the fields dynamically to the database uploading. Can anyone tell me, how we can get the 'datatype and length' of all fields in hr module. Is there any table for it.
        Please give me the answer if anyone know this.
    thanks & regards,
    sekhar.

    hi,
        This is the fm to get the datatype and length of the field. Where as i want to pass my irregular format of my presentation file to the database by sorting the fields as per the structure of database fields.
    bye.

  • How to passing lowercase values to RFC/BAPI using webdynpro for JAVA

    Hi Exerts,
    When we sending values to RFC/BAPI through webdynpro (JAVA), the values are sent in capital (uppercase) letters to ECC.
    So if we fill xxxx, it is send like XXXX. Why? and how to avoid this?
    Thanks in advance,
    Joeri

    Hi,
    There could be two possibility if you are storing this value in ABAP table.
    1. You are entering value in UPPERCASE in your webdynpro application.
    2. The data stored in ABAP table, converts value in small to upper case.
    1.  Can you tell me how you are passing this value, is user entering value in some input field which is binded to some context and this value are you passing to RFC/BAPI...???
    Or else before passing value to RFC/BAPI you can use toLowerCase string function and the npass this value to RFC/BAPI
    e.g String name = wdContext().currentContextelement().getName().toLowercase();
    Now pass this name to RFC/BAPI is should go as lowercase only..
    This is from webdynpro java side..
    2. If you are storing this value in ABAP table, check the domain/type of variable in ABAP table for which you are storing the value. Ask ABAPper, so that this value are stored in small case letter.
    There is one tick in domain which you need to remove so that it stores in lower case. I dont have exact information but you can consult this with ABAPer.
    Hope this information helps guy ..!!!!
    Regards,
    Jigar

  • Check for null value for Date Field

    Hello everyone,
    I have a database that consist of date field and also a bean that will able to access the db.
    here are my example:-
    private int setDate(int date) {
    this.date = date;
    private void getDate {
    return date;
    later, I entered a date value and wanna check whether the date is on the database or not. SO, do you all have any idea?

    Perhaps before passing your date off to a primitive int, you could pass it to an [Integer] object. Then check to see if that object is null;
    Integer d = new Integer(int value);
    if (d == null) {
    }

  • How to pass date parameter from one page to other in BSP application

    Hello gurus,
    In my BSP application i have taken an input field and made its type "date" and its value also of type date and have set showhelp .
    Now once a particular date is given as an input i want to pass its value to next page. And in next page i have to fire a query based on the date entered in previous page...
    Now my prb is that my date value is not getting passed to the next page.
    I have used
    navigation->set_parameter( name = 'BEGDA' value = BEGDA ).
    to pass date parameter.....still parameter is not getting passed.
    plz help me with this.....
    thankx.....

    Hi Eddy,
    By truncation i mean the entire date becomes 10 char including the ' . ' eg(06.12.2006).
    so with begda being 8chars it takes my date as 06.12.200
    as a result my query is not getting executed.
    now i have tried to use a FM  'CONVERT_DATE_TO_INTERN_FORMAT'.
    in my 1st page but still in 2nd page its giving me following error.
    <b>The data that was read could not be written to the specified target field during a SELECT access. Either the conversion is not supported for the type of the target field, or the target field is too short to accept the value, or the data is not in the appropriateformat for the target field.
    </b>
    Regards
    Swati

  • Problem in passing data from one .jsp page to another .jsp page

    i have a problem here
    Actually i have 2 jsp pages. What im trying to do here is actually i want to pass data from the first jsp page to the second for updating
    The first jsp page contains data that user wants to update in the form of table.
    <td><img src = "edit.gif" alt = "edit" border="0" ><td>
    <TD><%= Name %></td>
    <TD><%= rs.getInt("Age") %></td>
    <TD><%= rs.getString("Gender") %></td>
    So this page displays the data that users wants to update plus one image button (edit button). So when user clicks this button, all the data in this page will be brought to the second .jsp page called updatePersonal for updating.
    The problem here is that it is not displaying the existing data in the second .jsp page.
    The second page basically contains forms
    <INPUT TYPE="text" NAME="FirstName" maxlength="30" value = "<%=FirstName%>">
    Can someone please help me. I really dont know what to do..How do i get the data displayed in the text field that is passed from the first .jsp page..thankx in advance

    Please modify below code to:
    td><img src = "edit.gif" alt = "edit" border="0" ><td>
    -----------------modified code
    td><a href="updatePersonal.jsp?FirstName=<%=rs.getString(FirstName")%">&LastName=<%=rs.getString("LastName")%>&Age=<%=rs.getInt("Age")%>&Gender=<%=rs.getString("Gender")%>"><img src = "edit.gif" alt = "edit" border="0" ></a><td>
    I'm sure it works</a>

  • Date field in fm

    hi ,
    i do a FM  and i wont to now  how i do in import tab  field for date  but <b>from</b> .... <b>to</b> ...
    in alv its not problem ,what is the best way?
    Regards

    Hi,
    You can either declare a tables parameter of type RSELOPTION or import parameter with type RSDSSELOPT in your function module.
    Then you can pass date range values to this parameter.
    Regards,
    Ferry Lianto

  • Date Field in Hierarchical ALV

    Hello Friends,
    I have a few fields in my Hierarchical ALV output which are initially hidden.
    When I choose to display these fields by changing the Layout the date fields come out in the form
    MMDDYYYY
    I need those fields as 
    MM/DD/YYYY
    The date fields which are NOT hidden initially  are in the format MM/DD/YYYY. No problem there.
    When I go to settings and choose column width optimize I am then able to see these date fields as MM/DD/YYYY.
    In My code I already set this col width to optimize. It is also working . But for fields which are hidden initially I have to explicitly set the width optimize again .
    This problem is not there in GRID ALV.
    Why is the HIER ALV not putting the date fields in MM/DD/YYYY format.

    Hi,
    Just pass the Edit option of the fieldcatalog for those specific fields...
    fcat-edit = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = sy-cprog
          i_callback_pf_status_set = 'PF_STATUS_SET'
          i_callback_user_command  = 'USER_COMMAND'    "<----  pass this
          i_callback_top_of_page   = 'TOP'
          is_layout                = it_layout
          it_fieldcat              = it_fcat
          i_default                = 'X'
          i_save                   = 'A'
          it_events                = it_event
        TABLES
          t_outtab                 = it_final
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
    *&      Form  USER_COMMAND
    *       text
    *      -->R_UCOMM      text
    *      -->RS_SELFIELD  text
    FORM user_command USING r_ucomm LIKE sy-ucomm
                            rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
        WHEN '&DATA_SAVE'.                "<-------check this
          PERFORM save_data.
      ENDCASE.
    ENDFORM.                    "USER_COMMAND

Maybe you are looking for

  • RFC Sender error - lookup of alternativeServiceIdentifier

    Hi, I am trying to configure an R/3-XI-Java proxy scenario using the RFC adapter as sender. When I execute the RFC on the R/3 system using the RFC destination, I get the exception SYSTEM_FAILURE. In the RFC adapter monitor, the error message  is "com

  • Threads getting stuck in reflection

    Hi, during our nightly performance tests some weblogic instances start responding very slowly. The reason seems to be in many threads getting stuck doing reflection. The top of the stacktrace looks like this: ####<03.06.2013 21:49 Uhr MST> <Error> <W

  • Private and Public Networks with DHCP, DNS, AD-DS

    Hello, I am a student working on creating a server lab at school and am curious if it is possible to set up a unique testing environment. I will describe what I am trying to achieve below. I have roughly 15 servers inside of my school lab and want to

  • Forgotten File Sharing Password in Parallels/Fusion WinXP

    Hi there, I have an irksome problem. I tested both Parallels and Fusion to see which I preferred (both with genuine Windows). I did default file sharing (I think) in the Parallels install. I imported the virtual machine from Parallels to Fusion. All

  • Copying Error -36 and Permissions

    Hello, I recently purchased a new flash drive for myself. I had an old 2GB SanDisk Cruzer (FAT 16) for my PC and Mac; replacing it is a Lacie iamakey 32GB (also FAT16). When I attempt to move files from the SanDisk (not the MacHD) to the Lacie it giv