How i can set date in a tabla sap?

Hi all,
     I'm working in a proyect where i like do a Sales order with a aplication web, in Sap Netweaver developer studio, and i use the bapi: "BAPI_SALESORDER_CREATEFROMDAT2".
First i have:
JCO.Structure Tb = function.getImportParameterList().getStructure("ORDER_HEADER_IN");
               Tb.setValue("ZNAC","DOC_TYPE");
               Tb.setValue("1000","SALES_ORG");
               Tb.setValue("10","DIVISION");
               Tb.setValue("10","DISTR_CHAN");
               JCO.Table Tab = function.getTableParameterList().getTable("ORDER_ITEMS_IN");
               nfilas=Tab.getNumRows();
               for(int i=0; i<nfilas;i++){
                    Tab.setRow(i);
                    Tab.setValue("000010","ITM_NUMBER");
                    Tab.setValue("201311630P05000032","MATERIAL");
                    Tab.setValue("10","TRAGET_QTY");
               JCO.Table Tab2 = function.getTableParameterList().getTable("ORDER_PARTNERS");
               nfilas=Tab2.getNumRows();
               for(int i=0;i<nfilas;i++){
                    Tab2.setRow(i);
                    Tab2.setValue("AG","PARTN_ROLE");
                    Tab2.setValue("100003","PARTN_NUMB");
Second execute the function:
mConnection.execute(function);
But the result isn't not equal that the result that i get if i have it in SAP with same value. In the table "Return" that it's where is the result isn't equal.
Any idea?
Thank's
PD: Excuse me for my english

Hi,
The only change which I can suggest by looking at code is to modify the line below
   Tab2.setValue("100003","PARTN_NUMB");
to
   Tab2.setValue("0000100003","PARTN_NUMB");
As the Partner Number Length is "10" in the table ORDER_PARTNERS, it may help if u pad it with zeros.
Regards,
Naresh

Similar Messages

  • How i can set break point in standard sap modulepool

    how i can set breakpoint in standard sap modulepool

    If you know the program name, it is no different from normal setting of break point.
    It will have a break point button in the abap editor.
    Place the cursor on the line and set the break point.
    Then run the transaction in another session.
    Or type /h from the transaction itsefl to start the debugging.
    see the wiki faqs section for debuging
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/abap+debugger&
    Regards,
    Ravi

  • SAP CRM ISA for B2B B2C How I can set customize error page in SAP J2EE 6.40

    Hi,
    I am trying to change default error mesaage which is comming from SAP J2EE engine in SAP CRM ISA B2B and B2C application.
    I want to set different customize error(400, 401,403,500 etc..) pages designed in HTML in B2B and B2C of SAP CRM ISA application.
    If any one has any idea how to do it pl. let me know.
    Thanks.
    Ashish Patel.

    Hi,
    Except for the application error pages you should also keep in mind that some error pages are generated by SAP Webdispatcher - presuming you are using one in front of your J2EE-Engine 
    You find some information about this type of error pages under  <a href="http://help.sap.com/saphelp_webas630/helpdata/en/f6/3c0b0389cea34ba66f10d62b718a1a/frameset.htm">help.sap.com</a>
    Best regards,
    Frank

  • How do I set date and time on apple tv?

    How do I set date and time on apple tv?

    Fixed the same problem, STEPS
    1. Reset your apple TV
    2.It will again stuck on that setting, ignore it by press menu
    3. Unplug ethernet wire
    4. Try to connect with wifi, it should be work with wifi connection as mine.
    5. Then you can switch back Ethernet wire after get fixed.
    Thanks. Lemme know dude if it's work.

  • How i can set the selected item of a dropDown component from java code

    Hi
    Thank you for reading my post
    How i can set the slected item of a DropDown component from backing beans java code ?
    it is binded with a database , so one field determine its display and one other field determine its value , I want to set the selected item of this combobox
    In back code i have both value and display values to use them .
    can some one give me some help ?
    Thanks ,

    See code sample 3 at http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/helloweb.html
    See also, the selection components row in the table under http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/helloweb.html
    It says
    One way to preselect items is to call setSelectedValue(Object[]) or setSelectedValue(Object) from the prerender() method. You pass in the return values of the items that you want preselected. Be sure to verify that getSelected() returns null before setting the default options, or you will overwrite the user's selections on a post-back.

  • How to validate the dates in the table control ?

    How to validate the dates in the table control ?
    Can I write like this ?
    LOOP AT it_tab .
    CHAIN.
    FIELD : it_tab-strtdat,it_tab-enddat.
    module date_validation.
    ENDCHAIN.
    ENDLOOP.
    Module Date_validation.
    ranges : vdat type sy-datum.
    vdat-sign = 'I'.
    VDAT-LOW = it_tab-STRTDAT.
    VDAT-HIGH = it_tab-ENDDAT.
    VDAT-OPTION = 'BT'.
    APPEND VDAT.
    WHAT CODE I have to write here to validate ?
    and If I write like this How can we know which is the current row being add ?
    It loops total internal table ..?
    Bye,
    Muttu.

    Hi,
    I think there is no need to put chain endchain.
    To do validation you have to write module in PAI which does required validations.
    Thanks
    DARSHAN PATEL

  • How to delete the data from partition table

    Hi all,
    Am very new to partition concepts in oracle..
    here my question is how to delete the data from partition table.
    is the below query will work ?
    delete from table1 partition (P_2008_1212)
    we have define range partition ...
    or help me how to delete the data from partition table.
    Thanks
    Sree

    874823 wrote:
    delete from table1 partition (P_2008_1212)This approach is wrong - as Andre pointed, this is not how partition tables should be used.
    Oracle supports different structures for data and indexes. A table can be a hash table or index organised table. It can have B+tree index. It can have bitmap indexes. It can be partitioned. Etc.
    How the table implements its structure is a physical design consideration.
    Application code should only deal with the logical data structure. How that data structure is physically implemented has no bearing on application. Does your application need to know what the indexes are and the names of the indexes,in order to use a table? Obviously not. So why then does your application need to know that the table is partitioned?
    When your application code starts referring directly to physical partitions, it needs to know HOW the table is partitioned. It needs to know WHAT partitions to use. It needs to know the names of the partitions. Etc.
    And why? All this means is increased complexity in application code as this code now needs to know and understand the physical data structure. This app code is now more complex, has more moving parts, will have more bugs, and will be more complex to maintain.
    Oracle can take an app SQL and it can determine (based on the predicates of the SQL), which partitions to use and not use for executing that SQL. All done totally transparently. The app does not need to know that the table is even partitioned.
    This is a crucial concept to understand and get right.

  • How to hide the data in particular table in oracle 10g

    How to hide the data in particular table in oracle 10g
    i want steps

    If its on Report u can  always hide the column - Keyfigure or Selection - Display - Hide......y do u want to have it on the report if it is to be hided in the first place?

  • How to update the data in sqlserver table using procedure in biztalkserver

    Hi,
    Please can any one answer this below question
    how to update the data in sqlserver table using procedure in biztalkserver
    while am using executescalar,typedprocedure getting some warning
    Warning:The adapter failed to transmit message going to send port "SendtoSql1" with URL "mssql://nal126//MU_Stage2?". It will be retransmitted after the retry interval specified for this Send Port. Details
    Please send me asap....
    Thanks...

    Hi Messip,
    A detailed error would have helped us to answer you more appropriately but
    You can follow the post which has step by step instructions, to understand how to use Stored Procedure:
    http://tech-findings.blogspot.in/2013/07/insert-records-in-sql-server-using-wcf.html
    Maheshkumar
    S Tiwari|User
    Page|Blog|BizTalk
    2013: Inserting RawXML (Whole Incoming XML Message) in SQL database

  • How to delete some date in target table at a mapping?

    How to delete some date in target table at a mapping?
    I extract date from source tabel into target table,
    but before extract date I want to delete some date from target?
    how to do?

    Just to change a bit of terminology in the reply, within the mapping, click on operator properties and choose TRUNCATE/INSERT.
    Note that truncate is dependent on constraints, so you probably must disable those before doing this. You can of course do DELETE/INSERT...
    Jean-Pierre

  • How to export some data from the tables of an owner with integrity?

    Hi to all,
    How to export some data from the tables of an owner with integrity?
    I want to bring some data from all tables in a single owner of the production database for development environment.
    My initial requirements are: seeking information on company code (emp), contract status (status) and / or effective date of contract settlement (dt_liq_efetiva) - a small amount of data to developers.
    These three fields are present in the main system table (the table of contracts). Then I thought about ...
    - create a temporary table from the query results table to contract;
    - and then use this temporary table as a reference to fetch the data in other tables of the owner while maintaining integrity. But how? I have not found the answer, because: what to do when not there is the possibility of a join between the contract and any other table?
    I am considering the possibility of consulting the names of tables, foreign keys and columns above, and create dynamic SQL. Conceptually, something like:
    select r.constraint_name "FK name",
    r.table_name "FK table",
    r.column_name "FK column",
    up.constraint_name "Referencing name",
    up.table_name "Referencing table",
    up.column_name "Referencing column"
    from all_cons_columns up
    join all_cons_columns r
    using (owner, position), (select r.owner,
    r.constraint_name fk,
    r.table_name table_fk,
    r.r_constraint_name r,
    up.table_name table_r
    from all_constraints up, all_constraints r
    where r.r_owner = up.owner
    and r.r_constraint_name = up.constraint_name
    and up.constraint_type in ('P', 'U')
    and r.constraint_type = 'R'
    and r.owner = 'OWNERNAME') aux
    where r.constraint_name = aux.fk
    and r.table_name = aux.table_fk
    and up.constraint_name = aux.r
    and up.table_name = aux.table_r;
    -- + Dynamic SQL
    If anyone has any suggestions and / or reuse code to me thank you very much!
    After resolving this standoff intend to mount the inserts in utl_file by a table and create another program to read and play in the development environment.
    Thinking...
    Let's Share!
    My thanks in advance,
    Philips

    Thanks, Peter.
    Well, I am working with release 9.2.0.8.0. But the planning is migrate to 10g this year. So my questions are:
    With Data Pump can export data just from tables owned for me (SCHEMAS = MYOWNER) parameterizing the volume of data (SAMPLE) and filters to table (QUERY), right? But parameterizing a contract table QUERY = "WHERE status NOT IN (2,6) ORDER BY contract ":
    1º- the Data Pump automatically searches for related data in other tables in the owner? ex. parcel table has X records related (fk) with Y contracts not in (2,6): X * SAMPLE records will be randomly exported?
    2º- for the tables without relation (fk) and which are within the owner (MYOWNER) the data is exported only based on the parameter SAMPLE?
    Once again, thank you,
    Philips
    Reading Oracle Docs...

  • How do you set data limits on a device?

    How do you set data limits on a device?

    My phone in settings has data management and you can set data alerts and data limits. Also search app Stores which will have free and paid apps for most anything

  • How to import legacy data into apex tables

    Hi All,
    Please tell me How to import legacy data into apex tables.
    Thanks&Regards,
    Raghu

    SQL WorkshopUtilitiesData Workshop...
    you can import the data from already exported as (text/csv/xml) data
    Note: the table name and column name should be equal if the table already Existing table.

  • Goto: How to export some data from the tables of an owner with integrity?

    Hi to all,
    Help please: How to export some data from the tables of an owner with integrity?
    My thanks in advance,
    Philips

    Thanks, Peter.
    Well, I am working with release 9.2.0.8.0. But the planning is migrate to 10g this year. So my questions are:
    With Data Pump can export data just from tables owned for me (SCHEMAS = MYOWNER) parameterizing the volume of data (SAMPLE) and filters to table (QUERY), right? But parameterizing a contract table QUERY = "WHERE status NOT IN (2,6) ORDER BY contract ":
    1º- the Data Pump automatically searches for related data in other tables in the owner? ex. parcel table has X records related (fk) with Y contracts not in (2,6): X * SAMPLE records will be randomly exported?
    2º- for the tables without relation (fk) and which are within the owner (MYOWNER) the data is exported only based on the parameter SAMPLE?
    Once again, thank you,
    Philips
    Reading Oracle Docs...

  • How to update the data  the transparent table CKMLMV013 ?

    How to update the data  the transparent table CKMLMV013 ?
    can you please replay asap.
    thanks,
    samba

    Hi,
    if you do a "where used" search of the table CKMLMV013 you will see that it is updated in several places:
    e.g. fm CKML_ORDER_CONNECTION_UPDATE
    Have a look at those places where the table is updated.
    Best regards.

Maybe you are looking for

  • PO Query report

    Hi Guys I wanted to created my own Purchase order report (EKPO, EKBE) with vendor, how do I link it to the vendor? Pls advise.

  • Exporting data to XML

    hi this is naveen... i had newly started programming in it.. there are some controls on my designer form and i want to submit those filled data to new XML file...                                                             please describe me in detai

  • Formatting an external USB HD

    I have an external USB 20 GBHD that is MAC/PC compatible. Initially I had to connected to my PC. I could read them on the Mac, I just couldn't write to it from the Mac. After some research I found that I have to format the drive to FAT32 instead of N

  • Paying double each month for Internet Security Suite?

    I noticed that we are paying twice each month for Internet Security Suite: once as a billed item ($6.99); and again as part of the Backup and Security Bundle ($11.00). It seems this has been going on since about Aug 2013. Hence, I dropped the standal

  • Invalid serial # message/Unable to reinstall

    I don't know what caused this, but I attempted to open Audition last night and it didn't happen. I got the odd prompt that the serial number was invalid. (I bought this program many months ago, and it is installed on this and another computer.) I the