How to set Date in RFC call.

Hi,
I am trying to set date in structure when calling RFC.
ICall = function.getImportParameterList();
ICall.getStructure("IORDER").setValue(eDate,"EDATE");
EDATE is date field in Structure in RFC with data type "D" and it is taking date in "dd.mm.yyyy"; formate.
I am setting date  "dd.mm.yyyy"; in string format with eDate variable and it is throwing error.
Can any one tell me How I can set date for "EDATE" field in proper format.
Can I do JCO.TYPE_DATE date1 = new java.util.Date();
And How I can convert date in acceptable format "dd.mm.yyyy"; for RFC.
Thanks for your help
Ashish

Hi Sateesh,
Thanks for your Answer.
I used java.util.date and it works fine.
Icall.getStructure("IOrder").setValue(new java.util.date(), "EDATE")
I came to know that java date variabel can be passed without any extra conversion to ABAP type D variable .
Is it OK? As I am setting  java date variable directly to ABAP type d variable in RFC.
I have awarded you points for very helpful answer.
Thanks.
Ashish.

Similar Messages

  • How to set data in rtf document?

    Hi friends,
    I have a rtf document can anyone suggest how to set data in cells of an rtf document?Is there any way?
    Thanks in advance..
    Regards ,
    Soumyanil

    Convert the resultSet from the db to a Object[][], let's call it result.
    Then create a JTable (jTable1).
    On the JTable you need to define the headers, and the data itself.
    You can get the headers from ResultSetMetaData. Convert these to an array again (headers).
    Now use these methods to create a model and set the model of the JTable.
    Model model =  new DefaultTableModel(result, headers);
    jTable1.setModel(model);That's about the basics.
    If you need more info, use at the tutorial at sun's homepage.
    How to use Tables:
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

  • How to set date according to hjrah calender : nls_calender='English Hijrah

    Hello frnds
    how to set dates according to "English Hijrah".
    I have set my database nls_calender='English Hijrah' ,
    as many people aware that Hijrah dates are depend on moon ,
    so I want to know how to set the calender for next month date in the database according to "English Hijrah"
    I have set my database calender like this :
    Example 3-17 NLS_CALENDAR='English Hijrah'
    Set NLS_CALENDAR to English Hijrah.
    SQL> ALTER SESSION SET NLS_CALENDAR='English Hijrah';
    SELECT SYSDATE FROM DUAL;
    You should see output similar to the following:
    SYSDATE
    24 Ramadan 1430
    now I want to set the next month calender ...
    I think my question is litte bit confusing

    my db version 10.2.0.3
    and above metalink id 121061.1 , I have tried from this document , but the change is not effected ,
    the steps what I have down ;
    1) shutdown the database
    2)$oracle_home/nls/lxecal.nlt
    i have created new file , and the contents is: syntax or algorithm
    DEFINE calendar
    calendar_name="English Hijrah"
    DEFINE calendar_deviation
    deviation_data= {
              <"MAY-30-2009 ad">:11
    ENDDEFINE calendar_deviation
    ENDDEFINE calendar
    note: i have to subract 1 day from current month
    3) run the file
    $ lxegen
    4) sql>startup
    5) sql>ALTER SESSION SET NLS_CALENDAR='English Hijrah';
    6) sql>select sysdate+2 from dual;
    SYSDATE+2
    30 Jamada El Oula 1430
    but my expected output should be like this
    SYSDATE+2
    01 Jamada El Thaniah 1430
    note: that is after 2 days from today I need 1 st of next month , but its showing 30 th of present month , bcoz according to arabic month , present month is for 29 days only...

  • How to set date and time on apple tv

    how to set date and time on apple tv

    Assuming this is not the first time you have used your Apple TV
        1.    You might try restarting the Apple TV by removing ALL the cables for 30 seconds.
        2.    Also try restarting the router.
        3.    If the problem persists, try a restore, you may want to try the previous procedures several times before doing this.
    If this is a new Apple TV, it may also be that your network router is not allowing access to the timeserver, check that your router allows access over port 123.

  • HT5661 how to set pic display while calling to contact ?

    how to set pic display on calling to contact person ?

    Hello HaD,
    The image control is installed with either the Vision Development Module or the NI-IMAQ driver, and is not a standard component found in LabVIEW.  If you have questions about the image display control or vision functions it would be better to post in the Machine Vision forum:
    http://forums.ni.com/ni/board?board.id=200
    In regards to your question, this menu is not available as a runtime property, and therefore the user of program will not be able to set it directly through the control.  Instead, you will need to allow the user to set it programmatically in LabVIEW by use of a property node. 
    To create this property node, right-click on the image display icon on your program's block diagram, and select:
    Create » Property Node » Palette » Palette Type.
    You will then be able to change the value of this property by right-clicking on the property node icon and selecting "Change All To Write".  To create a control on the front panel that the user change at runtime, right-click on the “Palette Type” input, select:
    Create » Control
    If you have any questions about the application architecture required to implement this design, please continue to post in the LabVIEW forum.
    I hope this helps.
    Best regards,
    Jasper

  • SAP adapter giving the merged result set (First RFC call data + Second RFC call data) for second RFC call

    I have a WCF Adapter service to call a SAP RFC. When I call the RFC first time, it gives me correct no of result set but when I call this RFC second time immediately after first call, it gives me merged result set (First Result set + Second Result Set).
    e.g. We have a RFC which receives vendor number and blank object of result set as parameter and gives back the list of purchase orders as Response in object of result set for that vendor.
    Suppose, we have a vendor "a" and vendor "b". For vendor "a" there are 5 purchase orders and for vendor "b", we have 4 purchase orders in SAP. When I call the WCF adapter service for this RFC for vendor "a",
    it gives me 5 purchase orders. Immediately after first call, when I call WCF service for vendor "b", it gives me 9 (5+4) purchase order records which is wrong.
    In brief, one RFC call is affected by its previous call.
    For each new WCF request, a new object of result set is created, connection is opened, rfc is executed and connection is closed.
    Can anybody have any idea on this?
    Thanks.
    Thanks, Nishant Gupta

    Hi,
    Please refer to the document
    http://seroter.wordpress.com/biztalk-and-wcf-part-vii-about-the-biztalk-adapter-pack/

  • How to transfer data of RFC into Internal Table inside a WD4A program?

    Hi Experts,
    I have created WD4A program. This program calls RFC. The output of RFC has to populate  a UI table. THe different cells of the table should have different color based on data.
    I have gone through following link:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/707fb792-c181-2d10-61bd-ce15d58b5cf1
    The above link fetches data from directly from table. Then it passes the data into internal table.
    If I am using RFC, then how I can insert data of RFC into a internal table in WD4A program (se80 In drop down Web Dynpro Comp / Intf)
    My motto is to have table ouput whose different cells should have different color based on data.
    Please help.
    Regards,
    Gary
    Edited by: Jason Lax on Dec 28, 2011 2:52 PM (Fixed broken link)

    Hi Experts,
    I have resolved the issue. I have created WD4A program. This WD4A program calls the RFC.
    The RFC has a structure as export parameters called 'RESULT_FINAL'. I have altered the associated type of this table export parameter. I added Component 'Color' of component type 'WDUI_TABLE_CELL_DESIGN'.
    In the RFC I have added some code. The code is as below:
    loop  at it_t1.
          select pernr from pa0000 into table it_t2 where  pernr = it_t1-pernr  and stat2 ='3'
          and begda <= sy-datum AND endda >= sy-datum.
          if sy-subrc = 0.
            result_final-org_unit = result_objec-objid.
            result_final-pernr = it_t1-pernr.
            result_final-name = it_t1-name.
            result_final-color = '02'.       append result_final.
          endif.
        endloop.
    The line   result_final-color = '02'.   
    code returns Color.
    In the WD4A program, I have changed the Cell Design property of selected table coloumn to Color.
    This resolved the issue.
    Thanks every one for the reply.
    I have added above information for other SDN users.
    I am closing this thread,
    Regards,
    Gary

  • How to set up a RFC - HTTP Post scenario?

    Hi all,
    I've seen a scenario using a HTTP -> RFC but i didn`t found the other way, an RFC -> HTTP scenario.
    I have a scenario that consists of a RFC that will pass the parameters to XI and then, i've to map the parameters of this RFC into a XML message, zip this xml message, convert it to BASE 64 string, post this "binary" message thru HTTP POST and finally, send the XML HTTP response back to my RFC .
    My questions are:
    - How to map the RESPONSE of the http request to my RFC?
    - How to deal with the transformations of the data, from xml to zip and from zip to a base64 string.
    - How to set the URL of the HTTP POST dynamically?
    Thanks in advance!

    > Hi all,
    >
    > I've seen a scenario using a HTTP -> RFC but i didn`t
    > found the other way, an RFC -> HTTP scenario.
    >
    > I have a scenario that consists of a RFC that will
    > pass the parameters to XI and then, i've to map the
    > parameters of this RFC into a XML message, zip this
    > xml message, convert it to BASE 64 string, post this
    > "binary" message thru HTTP POST and finally, send the
    > XML HTTP response back to my RFC .
    >
    > My questions are:
    >
    > - How to map the RESPONSE of the http request to my
    > RFC?
    hmmm.. Maybe a Java Mapping?
    > - How to deal with the transformations of the data,
    > from xml to zip and from zip to a base64 string.
    Either Java Mapping or a Java Proxy.
    > - How to set the URL of the HTTP POST dynamically?
    >
    Use Adapter Specicif Identifiers and set it in the mapping dynamically.
    Regards
    Bhavesh

  • How to set Data Subsetting Parameters in MOBILE SERVER

    Hello.
    How can I set data subsetting parameters in Mobile Server with patch 5.0.2.10.0 NLS.
    From Mobile Server "Control Center" -> "Applications" it's not appears at left screen the following field:
    * Data Subsetting
    * Registry
    * Access
    * Files
    The browser appears this error message:
    "http://120.0.0.1:2000/webtogo/admin/console/apppropinfo?applicationvp=%2FMyApp"
    Have you any idea for this problem?
    Thanks All.

    Thanks Oliver,
    I have to go in control center in "applications tab" then i have the list of application and i edit one of them, on the left clic Data Subsetting it's not appears.
    The following it not appears:
    * Data Subsetting
    * Registry
    * Access
    * Files
    The browser (internet explorer) appears (at buttom on the left browser) this error message:
    "error http://127.0.0.1:2000/webtogo/admin/console/apppropinfo?applicationvp=%2FMyApp missing link".
    Whereas (Oliver's solution) in Mobile Server "Control Center" -> "Users Tabs"
    i have the list of users go and i edit one of them, on the left clic Data Subsetting then clic on the right pan platform and then i see but not parameter are definited.
    Help me please.

  • Error during loading of transaction data: An RFC call-up triggered the ...

    Dear Sirs,
    during loading of master data from a 4.6C SAP system to BI 7.0 SP9 I get the following error during processing (data packet).
    <i>"An RFC call-up triggered the exception (ID: RSAR NO: 503) "</i>
    The strange thing with this error is that it emerged today, after successfully loading master data and a subset of transaction data yesterday from same source system.
    Has anyone else come across this error, and can tell us where we should look for a possible solution? (or a better error explaination).
    The RFC connections works fine when testing in SM59, and was functioning yesterday. No relevant dumps in either system.

    Hi folks,
    I am also interested in this error.
    Thanks.

  • How to send data to RFC Destination(RFC SENDER Adapter)

    Hi ,
    Scenario:  R/3 Backendà RFC Sender Adapterà XIàsome other system.
    I have configured the RFC destination (of the type TCP/IP) at R/3 System and have registered the Program ID (specified in the RFC destination) in the XI server and using it in the configuration parameters of the RFC Sender Adapter.
    Problem: I do not know how I can send data to the RFC destination. (Should I use a report program/ ABAP Function Module?) Can anybody provide me with a sample code of Report Program/Function module (whichever is required), how to send data to the RFC Destination, so that it may be picked up by my RFC Sender Adapter.
    Thanks and Regards,
    Siva Maranani

    I have one query for you that
    I am trying to develop a scenario in SAP XI
    SAP R/3 ( RFC function module) sends a synchronous request to the XI and SAP XI will send this request to a third party web application using HTTP receiver adapter.
    I am able to send the data/message and it is successfully received at the third party web application.
    But I am facing one issue that I am unable to receive any message/data in my RFC module back.i have seen in sxmb_moni that the two messages are displayed in successfuly processed but in SAP R/3 side nothing get happedned
    Can you tell me how to use some waiting mechanism in function module to wait for the response from SAP XI.
    Regards
    Gopesh

  • How to set date formate dd/mm/yyyy from portal.

    Dear Experts,
    We are implementing ESS/MSS, my query is under ESS applications, date format is showing mm/dd/yyyy, then iam trying to change  user language is English (United Kingdom), from portal end, then its showing dd/mm/yyyy.
    My query is that is there any other way to change date format and how to set user language is English( united Kingdom) for mass users.
    Thanks in advance,
    Regards,
    Mahee.

    Hi,
    Iam trying to upload below format..for mass users....
    [User]
    UID=<employeeid>
    Password=init@123
    FIRST_NAME=xxx
    LAST_NAME=xxx
    group=xxxx
    Language=en_GB
    [User]
    by changing launguage = English (United Kingdom),Now I can able see the require format...dd/mm/yyyy.
    Thanks and Regards,
    Mahee.

  • How to set  Date in input field by hard coding in application

    Hi all,
    1.I have to make a date(its my choice to set the date) to appear in input field which is date type.
    2.How to compare two numbers of type decimal. for example greatest of two numbers
    urgent requirement

    Hi
    Check the http://java.sun.com/j2se/1.4.2/docs/api/java/sql/Date.html
    http://java.sun.com/j2se/1.4.2/docs/api/java/util/Calendar.html
    Sample Code
    Date now = new Date();
          DateFormat df = DateFormat.getDateInstance();
          String s = df.format(now);
          System.out.println("Today is " + s);
    java.sql.Date descends from java.util.Date, but uses only the year, month and day values. There are two methods to create a Date object. The first uses a Calendar object, setting the year, month and day portions to the desired values. The hour, minute, second and millisecond values must be set to zero. At that point, Calendar.getTime().getTime() is invoked to get the java.util.Date milliseconds. That value is then passed to a java.sql.Date constructor:
        Calendar cal = Calendar.getInstance();
        // set Date portion to January 1, 1970
        cal.set( cal.YEAR, 1970 );
        cal.set( cal.MONTH, cal.JANUARY );
        cal.set( cal.DATE, 1 );
        cal.set( cal.HOUR_OF_DAY, 0 );
        cal.set( cal.MINUTE, 0 );
        cal.set( cal.SECOND, 0 );
        cal.set( cal.MILLISECOND, 0 );
        java.sql.Date jsqlD =
           new java.sql.Date( cal.getTime().getTime() );
    The second method is java.sql.Date's valueOf method. valueOf() accepts a String, which must be the date in JDBC time escape format - "yyyy-mm-dd". For example,
        java.sql.Date jsqlD = java.sql.Date.valueOf( "2010-01-31" );
    creates a Date object representing January 31, 2010. To use this method with a Calendar object, use:
        java.sql.Date jsqlD = java.sql.Date.valueOf(
                cal.get(cal.YEAR) + ":" +
                cal.get(cal.MONTH) + ":" +
                cal.get(cal.DATE) );
    which produces a Date object with the same value as the first example.
    Regards
    Ayyapparaj

  • How to get data from the called program using SUBMIT in a background job?

    Hi Experts,
    I've a program which creates a background job using JOB_OPEN and JOB_CLOSE function modules.
    Between the above function modules I need to call a program using SUBMIT VIA JOB statement.
    My problem is, How do I fetch some data in an internal table in the called program to the calling program after the SUBMIT statement?
    I tried to EXPORT and IMPORT the data, but they are giving a failed sy-subrc when using this background job.
    Kindly let me know your inputs and valuable suggestions.

    Kumar,
    When we execute a program as a background job then the output will be sent to Spool which needs to be fetched again.I guess we need to use Submit via spool as mentioned by Rajat.
    Check these threads to get some idea
    submit report to spool & import spool id
    Re: Generate Spool for a report
    K.Kiran.

  • How to set a checkbox to call javascript for calling package procedure?

    Hi folks,
    I have a report where each row includes a dynamically created checkbox:
    Step 1: define report in APEX based on this test query
    select object_id,
           txt,
           htmldb_item.checkbox
              1,
              data.object_id,
              'onclick=alert('||data.object_id||');'
           ) cb
    from
      select 1 object_id, 'AAAA' txt from dual union
      select 2 object_id, 'BBBB' txt from dual union
      select 3 object_id, 'CCCC' txt from dual
    )  data Step 2: create a log table
    create table tk_test_log
       log_val  varchar2(100)
    );Step 3: Then I have a package stored in db called: tk_test
    create or replace package tk_test is
      procedure add(p_num number);
      procedure remove(p_num number);
    end tk_test;
    create or replace package body tk_test is
      procedure add(p_num number) is
      begin
        insert into tk_test_log values ('TK_TEST.ADD: '||p_num||'   '||to_char(sysdate,'DD/MM/YYYY HH24:MI:SS'));
      end;
      procedure remove(p_num number) is
      begin
        insert into tk_test_log values ('TK_TEST.REMOVE: '||p_num||'   '||to_char(sysdate,'DD/MM/YYYY HH24:MI:SS'));
      end;
    end tk_test;Is it possible to call "tk_test.add" procedure everytime when user checks any of checkboxes and to call "tk_test.remove" when user un-check any checkbox?
    How should I modify a javascript in step 1 (currently = alert('||data.object_id||') ) to obtain similar solution?
    Please help,
    Tomas

    Hi Earl,
    Thanks for your reply.
    Well this is exactly what I'm planning to use within my package :). Above example was just a really into into problem.
    In reallity:
    "add" prcedure will add a record into collection (plsql table - stored as a type)
    and
    "remove" procedure will remove it from it
    But my problemis how to call it from javascript.
    You're probably suggesting to use/maintain this collection within APEX and not within database?
    Here is how I've defined my collection:
    create or replace type ap_choice_temp_object_type is object
        ( person_id number,
          choice_id number,
          added     date
    create or replace type ap_choice_temp_tab_type is table of ap_choice_temp_object_type;       And then in package I have procedures:
      procedure clear_ap_choice_temp_tab is
      begin
         l_choice_temp_tab := ap_choice_temp_tab_type();
      end;
      procedure add_ap_choice_temp_row (p_person_id number,
                                        p_choice_id   number
                                        ) is
      begin
        if l_choice_temp_tab.exists = false then
           clear_ap_choice_temp_tab;
        end if;
        l_choice_temp_tab.extend;
        l_choice_temp_tab(l_choice_temp_tab.last) := ap_choice_temp_object_type(person_id => p_person_id,
                                                                                choice_id => p_choice_id,
                                                                                added => sysdate
      end;
      procedure remove_ap_choice_temp_row (p_person_id number,
                                           p_choice_id   number
                                           ) is
      i integer;
      begin
        -- this should be more optimalised -- this version is just 1-st try !
        print_ap_choice_temp_tab;
        i := l_choice_temp_tab.first;
        loop
           if l_choice_temp_tab(i).person_id = p_person_id and l_choice_temp_tab(i).choice_id = p_choice_id then
             l_choice_temp_tab.delete(i);
           end if; 
           i:= l_choice_temp_tab.next(i);
           exit when i is null;
        end loop;
        print_ap_choice_temp_tab;                                                                              
      end;
      procedure print_ap_choice_temp_tab is
       i integer;
      begin
         dbms_output.put_line('Start');
         i := l_choice_temp_tab.first;
         loop
            dbms_output.put_line(l_choice_temp_tab(i).person_id||' | '||l_choice_temp_tab(i).choice_id||' | '||l_choice_temp_tab(i).added);
            i:= l_choice_temp_tab.next(i);
            exit when i is null;
          end loop;    
         dbms_output.put_line('End');
      end;Testing code
    begin
      tk_test.clear_ap_choice_temp_tab;
      tk_test.add_ap_choice_temp_row(123,321);
      tk_test.add_ap_choice_temp_row(777,555);
      tk_test.add_ap_choice_temp_row(9999,4445);
      tk_test.remove_ap_choice_temp_row(777,555);
      --tk_test.print_ap_choice_temp_tab;
    end;     Do you have any nice example how to use what you're suggesting in APEX? I mean "create some collection at page display time, let the user update the collection (through checkboxes) while they're scrolling through things."
    I think this example would be usefull for many developers :)
    Thanks,
    Tomas

Maybe you are looking for

  • Convert text string file to object array without outputting to file first?

    I have a log file that is just a text string file which is appended to with Out-File.  If the log file does not exist I pipe headers to it so that I can import the data as CSV.  For example: DATA.LOG DATE,TIME,RESPONSE_TIME 05-28-2014, 14:47, 132 05-

  • Pictures do not appear in webpages.

    I have many webpages containig picture links. They are linked by <img src="URL/*.JPG"> I did not have any troubles with this for many many years. This morning while I was editing one of the pages, all of a sudden the pictuers stopped appearing. The t

  • Comparing OS X Leopard to Windows Vista...

    I saw Windows Vista for the first time this weekend and while the first thing I noticed was that many of the features were taken straight from Mac (ex: Expose or the Apple+Tab feature) there was one thing that I noticed Vista had, that Mac did not -

  • Hitting Max Limit on Share Photo Streams - Bug or Feature?

    I am using the Aperture to create Shared Photo Streams.  Everything has been working well except that as I cannot seem to share more than 1390 photos.  I am doing so across 20 or so Photo Streams. When I try and share, say, 100 photos to a new Photo

  • Transports from Development to Testing

    Hi All, I am working on BI7 , I need to transport all the objects from Bw dev To testing Box(from scrath), I would like to know the Sequence Of creating the Transport requests, I already Collected All the InfoObjects With the grouping options as Only