Which function can insert product in opportunity?

Hi Expert,
I got requirement to auto insert product which user requires and the product have to be determined from field "Opportunity Group" of transaction Opportunity. I think, I would use BADI "order_save" to trigger but I don't know how to insert product in tab "Products". Would you suggest any BADI or functions for me?
Ps. I work on CRM Module.
Best Regards,
Potchanart P.

Hi,
That's all in the SQL language manual:
http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/sql_elements004.htm#sthref396
It sounds like you'd be interested in "Table 2-15 Datetime Format Elements" in particular.
If you don't supply parts of the DATE, they will be assigned default values.
The day of the month and all shorter time divisions will default to the earliest possible values. For example, the day of the month defaults to 1; the hour defaults to 12 AM.
The month and all longer time divisions will default to whatever they are in SYSDATE. For example, if you omit the month, it will default to July (assuming the expression is evaluated in July).

Similar Messages

  • READ_TEXT can read text form sap .Which function can update this text?

    Which function can update/edit the text that readed by function READ_TEXT ?

    Hi,
    Check SAP help on SAVE_TEXT
    http://help.sap.com/saphelp_40b/helpdata/en/d6/0db8ef494511d182b70000e829fbfe/content.htm
    OR
    http://www.geocities.com/rmtiwari/main.html?http://www.geocities.com/rmtiwari/Resources/MySolutions/Dev/Codes/Report/Z_TASK_LIST_LTEXT_UPLOAD.html
    Cheers
    VJ

  • I am residing in India and have purchased Ipad 3 from US, I have lost my invoice and also the small pin which helps in inserting sim card, Can anyone help me how can I get a copy of duplicate invoice from India and a PIN for my Ipad 3

    Dear Friends,
    I have purchased Ipad 3 from the US but unfortunately while returning back to India I have lost in transit the copy of Invoice and a tiny PIN which helps in inserting 3G card.
    Can anyone help me how can I get the duplicate copy of my invoice and an extra PIN from India and whether any Apple Store in India can issue me the duplicate copy of Invoice for the product purchased from US and also are the require to issue me an extra PIN on request.
    Thanking you all in anticipation....
    Regards,
    Bankim Mehta

    You can use a paper clip instead of the PIn that came with the iPad.
    http://support.verizonwireless.com/clc/devices/knowledge_base.html?id=54813
     Cheers, Tom

  • A function to insert SQL which creates insert SQL

    I realise this is a bit recursive, but my users are a demanding lot! We want to store in a table the instruction to check if AUDIT_SYS_OPERATIONS is TRUE and to store the result of that check in some sort of an audit table.
    In other words, the basic SQL you'd run directly might be:
    select case when value='TRUE' then 1 else 0 end as passfail
    from v$parameter where upper(name)='AUDIT_SYS_OPERATIONS';But we want to convert this into something which will generate an INSERT statement and which itself can be inserted into a table full of these sorts of audit checks:
    insert into myaudit_checks values ('select ''insert into myaudit_table values (''||case when value=''TRUE'' then 1 else 0 end ||'');'' as passfail
    from v$parameter where upper(name)=''AUDIT_SYS_OPERATIONS'';');I find the rules for doing this to be quite easy:
    1. Add 'insert into myaudit_test values ('|| before the original CASE keyword
    2. Add ||');' before the original 'AS PASSFAIL' keywords
    3. Wrap the whole lot in single quotes
    4. Double up any quotes inside those new ones
    5. Wrap the new statement inside a standard INSERT statement.
    My users don't think that's easy, though. So I thought I'd write them a function which would return the double-quoted insert statement when fed the non-quoted basic select. It works OK, on the whole, except that calling it involves... doubling up the quotes. That is:
    select create_insert_stmt('select case when value=''TRUE'' then 1 else 0 end as passfail
    from v$parameter where upper(name)=''AUDIT_SYS_OPERATIONS'';') from dual;...works OK, but the parameter being passed to the CREATE_INSERT function requires the 'TRUE' and 'AUDIT_SYS_OPERATIONS' strings to be double-single-quoted up-front, which defeats the purpose a bit. I want them to be able to feed the completely original select statement, with single-quoted strings, into the function... but, syntactically, this looks impossible.
    Anyone got any ideas on how to spit out the final 'select 'insert...'' given the original, single-quoted select statement, without requiring too much from my users by way of thought or effort?
    The only thing I thought of was to have them store the original select in a text file and read it via UTL_FILE... but if anyone's got any better ideas, I'd be pleased to hear them.

    >
    Anyone got any ideas on how to spit out the final 'select 'insert...'' given the original, single-quoted select statement, without requiring too much from my users by way of thought or effort?
    >
    For anything that might include quotes use alternative quoting. See Text Literals in the SQL Language doc
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/sql_elements003.htm
    >
    In the bottom branch of the syntax:
    •Q or q indicates that the alternative quoting mechanism will be used. This mechanism allows a wide range of delimiters for the text string.
    •The outermost ' ' are two single quotation marks that precede and follow, respectively, the opening and closing quote_delimiter.
    •c is any member of the user's character set. You can include quotation marks (") in the text literal made up of c characters. You can also include the quote_delimiter, as long as it is not immediately followed by a single quotation mark.
    •quote_delimiter is any single- or multibyte character except space, tab, and return. The quote_delimiter can be a single quotation mark. However, if the quote_delimiter appears in the text literal itself, ensure that it is not immediately followed by a single quotation mark.
    If the opening quote_delimiter is one of [, {, <, or (, then the closing quote_delimiter must be the corresponding ], }, >, or ). In all other cases, the opening and closing quote_delimiter must be the same character.
    Here are some valid text literals:
    'Hello'
    'ORACLE.dbs'
    'Jackie''s raincoat'
    '09-MAR-98'
    N'nchar literal'
    Here are some valid text literals using the alternative quoting mechanism:
    q'!name LIKE '%DBMS_%%'!'
    q'<'So,' she said, 'It's finished.'>'
    q'{SELECT * FROM employees WHERE last_name = 'Smith';}'
    nq'ï Ÿ1234 ï'
    q'"name like '['"'
    {quote}

  • In KA02 screen how can I get different functional area like (Production, Sales, Adminstration etc)

    In KA02 screen how can I get different functional area like (Production, Sales, Adminstration etc)

    Hi,
    Please check below configuration for defining functional areas for cost elements
    SPRO> FI > FI Global settings> company code> cost of sales accounting>Functional area > enter functional area
    Regards,
    Jyoti

  • Any Spatial Method which can Insert Polygon Geometry in Table

    Hi All,
    Is there any Method of Oracle Spatial which can insert a polygon plotted with polygon tool on the map directly into any database table or do we have to resort to get each of the co-ordinates from the map and create a procedure to insert the ordinates value into mdsys.sdo_ordinates as we do for varrays.

    Hi,
    On one way you can create unique number by selecting the maximum employee number before creation of a record and then increment one to assign to the new record.
    The other way you can create a number range in tcode SNRO and use FM NUMBER_GET_NEXT to get the next number from the number range.
    Search SDN with NUMBER_GET_NEXT, you will get example codes.
    Regards
    Karthik D

  • HT1212 My iPad locked after 1 incorrect passcode entry and I tried what a senior advisor told my to do, but it could not download the info unless I entered the correct pass code, which I can not do since it does not give me the opportunity.

    My iPad locked after 1 incorrect passcode entry and I tried what a senior advisor told my to do, but it could not download the info unless I entered the correct pass code, which I can not do since it does not give me the opportunity.  How do I get the window to enter my pass code?

    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school enviroment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • Which Function Module can find all direct and indirect subordinate.

    Hi,
        I have a employee number(Chief of a organizational unit A). Do you know which function module can get all the direct and indirect subordinate of this chief? Indirect subordinate means that this chief can also view the Organizational unit(for example, Org. unit B) that under Org. Unit A. Further more, this chief can also view all the employees in other org unit that under Org. Unit B. If there is no such function module, do anyone of you have the example coding to get it? Your help is greatly appreciated. Thanks.

    use RH_STRUC_GET
    ~Suresh

  • Instead of using *mval and *newcol function which functions we can use

    Hi,
        I am new to BPC Instead of of using *mval function which function we can use and same for *newcol which function we can use in transformation file ?
    thanks in advance

    please post in a BO forum

  • Which functional modules we can use to update the costs in WBS?

    Hello friends,
         I need to update the costs assigned to WBS elements at cost element level using TCode CJR2. Which function modules are available to do this?
    Can you show me sample implementation for the same?
    Thanks in advance,
    Amol C.

    You can't.
    A UIImage object is a high-level way to display image data. You can create images from files, from Quartz image objects, or from raw image data you receive. The UIImage class also offers several options for drawing images to the current graphics context using different blend modes and opacity values.
    Image objects are immutable, so you cannot change their properties after creation.

  • Which function module can used to schedule bathjob?

    Hi,
    i have an urgent problem, see below:
    i use FM job_open, job_summit to create batchjob, but now i want to schedule by time accroding to user's prefer, not release it by default setting. i don't know which FM can meet this requirement, can anybody do me a favor.
    thanks in advance
    Regards
    Eileen

    Hi,
    Use transaction SM36 to schedule a job.
    give job name and class as C and click step button at the top.
    there u give ur prgm name and variant.and save.
    then click START condition at the top and click date and time button. there u give date and time.
    and then check periodc job check box.
    or u can try with
    Job_schdule
    Plz mark useful answers
    Regards,
    Naveen

  • How do I transfer a project from someone else's FCPX, version 10.0.9, which I can no longer open, to my FCPX, version 10.1.4?

    How do I transfer a project from someone else's FCPX, version 10.0.9, which I can no longer open, to my FCPX, version 10.1.4?

    You need all the project and event folders associated with the production. They need to be in explicit locations or they will not be seen my the application.
    Start reading here
    http://www.fcpxbook.com/updates/101/
    You use the Upgrade Project and Events function in the File menu when you have the correct folders in the correct location to update the volume you want.

  • Which API can use to save PDF document with Adobe Reader 9?

    Hello,
        which API can use to save PDF document with Adobe Reader 9? It is said that "CosDocSaveWithParams" can't be used.
    thanks!
    jimmy

    Unless the PDF file is "READER ENABLED for SAVE" (see the adobe product pages on LiveCycle Reader extensions server)
    You are not able to call a Save at all, if the document is reader enabled then you need to use the JavaScript call to save the document,
    As you appear to be wanting to do this in a plug-in you would need to call the script from a plug-in, this can be done using the AFExecuteThisScript () function call.
    Please note that this does will fail if the document is not reader enabled for save and you need to include the Forms HFT in your plug-in,
    This plug-in would also have to be approved by Adobe to be used with the reader and as you are implementing a function that is available in the full Acrobat product this may not be a straight forward approval.
    HTH
    Malky

  • Function Module for Production order configuration

    Hi,
    I have variant configuration scenario.
    I have to run the transaction CO01 in the background.
    Is there any Function module, by which i can configure the production order in the back ground.
    As of now, when i am doing it manually but not able to find any BAPI for that.
    any help will be highly appreciated !!
    Thnx in Advance
    Ashish

    Hi,
    try BDC
    Pls refer below link
    http://www.sap-img.com/bdc.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/309cb157-738d-2910-7691-b74c4ddba3c7
    Regards,
    Sankaran

  • Function to insert special characters

    I want procedure or function which can insert set of huge values say1000.. with special characters existing in spreasheet to a table.
    for example:
    L&T Infotech
    Ana's parlour
    Procter & Gamble
    ETSA Transmission Corporation T/As Electranet SA

    And the problem is where?
    You don't know how to work with spreadsheets (assuming excel) or Oracle?
    OK here is an example
    Table is as follows:
    SQL> create table mytable (col1 varchar2(100), col2 varchar2(100));
    Table created.Excel cell contains following value
    Latvia's men & women
    You need it to insert in the table
    The formula for insert creation is (one example of thousands of course ;)
    =CONCATENATE("INSERT INTO mytable (col1, col2) values ('";SUBSTITUTE(C16;"'";"''");"', 'aaa');")As a result you need in sqlplus do following
    SET SCAN OFF
    and then just call script with your calculated excel column values and for particular above mentioned column and table it would be:
    SQL> set scan off
    SQL> INSERT INTO mytable (col1, col2) values ('Latvia''s men & women', 'aaa');
    1 row created.Gints Plivna
    http://www.gplivna.eu

Maybe you are looking for

  • Please provide the sql query on mentioned requirement in attached image.

    Please provide query for this requirement 1.This is my main table  data. FACTID DATE_DMN_KEY WQTY ROWID AVG_7_AMT 1 100    1000 1 NULL 1 200 2000 2 NULL 1 300 3000 3 NULL 1 400 4000 4 NULL 1 500 5000 5 NULL 1 600 6000 6 NULL 1 700 7000 7 NULL 1 800 8

  • Report output to spool...

    i am running a report in background and the report is having some write statements which automatically comes into the spool. now the question is when this write statements come into the spool as a output, the page display is not coming as it usually

  • Adobe form link in all line items

    Hi, I have a tipical requirement in WDA Adobe forms. In a list of material line items, when ever click on any one of the items it should have link to the another adobe form depends on material type. In this case we have 3 types of material types.So,

  • Having problem with extra DDR2 for P45 Neo2

    Having problem with adding more DDR2 to my P45 Neo2. I currently have 2x hyperx 2gb ram installed, but I would like to take it up to 8gb. I had purchased another set, installed and pc wouldn't load. I installed these into another pc and they worked f

  • ORA-20100: ODE-00002: Error in loading Common Language Runtime

    Hi! I try to execute .NET stored Procedure (ODE version 11.1.0.6.20) But error rmessag appear: SQL> select getstring() from dual; select getstring() from dual ERROR at line 1: ORA-20100: ODE-00002: Error in loading Common Language Runtime ORA-06512: