Save text in a PO during creation

Hi All,
I need to save text in PO during PO creation. I am using the BADI ME_PROCESS_PO_CUST method:PROCESS_ITEM. My EBELN is blank here. I do have other required fields like text id, text name to use in SAVE_TEXT.
Text needs to be saved before the PO is saved.. User can edit the text. So BADI during PO save is not an option.
How do i save the text in my PO header during creation and during the line item is entered?
Do have any other procedure to add the text in the text editor?
This is my code:
Please suggest, if we have any alternate procedure to show the text in PO.
METHOD if_ex_me_process_po_cust~process_item.
   DATA :  ls_mepoitem TYPE mepoitem,
            ls_mepoaccount TYPE purchase_order_accountings,
            ls_mepoacc TYPE purchase_order_accounting,
            ls_mepoaccountdata TYPE mepoaccounting,
            ls_mepoheader TYPE REF TO if_purchase_order_mm,
            ls_mepoheaderdata TYPE mepoheader.
    DATA: gt_lines TYPE STANDARD TABLE OF tline,
          gwa_line TYPE tline,
          g_tdname TYPE thead-tdname,
          g_poname TYPE thead-tdname.
    DATA: header TYPE STANDARD TABLE OF thead,
          wa_header TYPE thead.
    DATA: lines TYPE STANDARD TABLE OF tline.
    CONSTANTS : gc_z056(4) TYPE c VALUE 'Z056',
                gc_f06(4) TYPE c VALUE 'F06',
                gc_ekko(4) TYPE c VALUE 'EKKO'.
    ls_mepoheader = im_item->get_header( ).
    ls_mepoheaderdata = ls_mepoheader->get_data( ).
    ls_mepoitem = im_item->get_data( ).  "Table
    ls_mepoaccount =  im_item->get_accountings( ).   "Table
    LOOP AT ls_mepoaccount INTO ls_mepoacc.
      CLEAR ls_mepoaccountdata.
* Get the newly updated PO item data
      CALL METHOD ls_mepoacc-accounting->get_data
        RECEIVING
          re_data = ls_mepoaccountdata.
    ENDLOOP.
    IF ls_mepoheaderdata-bstyp = 'F' AND ls_mepoitem-knttp = 'M'
    AND ls_mepoitem-matnr <> ' ' AND
    ( ( ls_mepoheaderdata-bsart = 'UB' OR ls_mepoheaderdata-bsart = 'NB' ) AND ls_mepoheaderdata-lifnr <> ' ' ).
      REFRESH gt_lines.
      g_tdname = ls_mepoaccountdata-vbeln.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          id                      = gc_z056
          language                = sy-langu
          name                    = g_tdname
          object                  = 'VBBK'
        TABLES
          lines                   = gt_lines
        EXCEPTIONS
          id                      = 1
          language                = 2
          name                    = 3
          not_found               = 4
          object                  = 5
          reference_check         = 6
          wrong_access_to_archive = 7
          OTHERS                  = 8.
      IF sy-subrc IS INITIAL.
        DELETE gt_lines WHERE tdline = space.
      ENDIF.
*      g_poname = ls_mepoitem-ebeln.   *"ls_mepoitem-ebeln is blank here*
      wa_header-tdobject = gc_ekko.
      wa_header-tdname   = g_poname.
      wa_header-tdid     = gc_f06.
      APPEND wa_header TO header.
      CALL FUNCTION 'SAVE_TEXT'
        EXPORTING
          client                = sy-mandt
          header                = header
          insert                = 'X'
          savemode_direct       = 'X'
        TABLES
          lines                 = gt_lines
       EXCEPTIONS
         id                    = 1
         language              = 2
         name                  = 3
         object                = 4
         OTHERS                = 5
      IF sy-subrc <> 0.
** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
**         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*      ENDIF.
    ENDIF.
  ENDIF.
Thanks,
Senthil.
Edited by: senthil kumar on Jun 11, 2009 3:02 PM

I haven't used this method myself, but when I look at method PROCESS_ITEM, the import parameter IM_ITEM  is of type (REF TO) IF_PURCHASE_ORDER_ITEM_MM. This has interface method IF_LONGTEXTS_MM~SET_TEXT (description: set long text per text id). This sounds like a good method to use.

Similar Messages

  • Save text in a PO during creation  from APO

    Hi All,
    I need to save SO text in PO during PO creation from APO.
    I am using the BADI ME_PROCESS_PO_CUST method:PROCESS_ITEM.
    This works perfectly when PO created from ECC - ME21N. However when a PO is created from APO (by converting PR) this BADI did not trigger or works.
    Then I have tried using Purchase order CIF user exit CIFPUR02 ->EXIT_SAPLCPUR_001->ZXCIFU06
    It didnot brings in the purchase order number to be created. Hence I could not able to copy the sales order text to purchase order.
    Kindly let me know the user exit or BADI triggers during PO creation from APO to copy sales order text to purchase order.
    Thanks,
    Senthil Kumar

    Hi,
    Use this.
    ME_PURCHDOC_POSTED
    Regards,
    Shamma

  • Read header text before saving delivery during creation

    Dear All,
    Could you please suggest, how to read the header text before saving the delivery during creation.
    Regards,

    I dont think you can do it before saving the delivery but you can after saving the delivery.
    Check out the program MV50AFZ1 - There are two user exits "userexit_save_document" and "userexit_save_document_prepare" .
    To read the text (as far as i know), you will need the document number (user READ_TEXT function module).
    Document number is not available in user exit  "userexit_save_document_prepare" but it is available in "userexit_save_document" .
    I dont know what is your requirement but you can choose from the above options. You can read the text from save_document user exit but the delivery was already saved.
    good luck

  • Error occured during creation of oracle snapshot

    Dear All,
    I am getting error messange in my SAP Inbox in t.code SBWP.
    In SBWP, the nessage text is as follow.
    =============================
    Error occured during creation of oracle snapshot (Creation aborted)
    (Log see also transaction SLG1, Object ORASNAP, Subobject ORASNAPCR)
    Oracle snapshot creation program aborted
    Error while copying from oracle view to SAP table
    Oracle view SAP$KCBFWAIT
    SAP table ORA_SAPKCBFWAIT
    Return code (ORA-....) 942
    You tried to work with the name of a table or view that does not exist in the database
    The table does not exist on the database. A table name or view name was used that does not exist on                           the database.
    ===============================
    I also check in T.Code SLG1, but i am not getting the reason for this error.
    Regards,
    Nisit

    Hi,
    Check each of the following :
    the spelling of the table or view name.
    that a view is not specified where a table is required.
    that an existing table or view name exists.
    Contact the database administrator if the table needs to be created or if user or application privileges are required to access the table.
    Also, if attempting to access a table or view in another schema, make certain the correct schema is referenced and that access to the object is granted.
    Regards
    Krishna

  • Error during creation of application entity for the plug-in.

    Hi Experts,
    As part of creating Content Database source for SES....
    We,
    1 Activated the Oracle Internet Directory identity plug-in for the Oracle Content
    Database instance.
    2) However after activating Identity plug-in for Oracle Internet Directory.... ......... we used the csPlugin.ldif file to create an application entity for the plug-in by running the following command "$ORACLE_HOME/bin/ldapmodify -h oidHost -p OIDPortNumber -D "cn=oracle" -w password -f csPlugin.ldif" ....but in the process executing the above command.... getting the following error(we gave correct login details):
    SASL/DIGEST-MD5 authentication started
    ldap_sasl_interactive_bind_s: Invalid credentials (49)
    How can i resolve this.
    I have another query...in the command "$ORACLE_HOME/bin/ldapmodify -h oidHost -p OIDPortNumber -D "cn=oracle" -w password -f csPlugin.ldif" which user name should i specify..... is it "cn=oracle" or "cn=orcladmin"
    Thanks
    peter.

    Hi Raford,
    Thanks for your reply.
    We tried to create Content Database Source with the details we have...
    However in this process getting an exception....
    11:20:20:778 INFO     main          
    11:20:20:784 INFO     main          Oracle Secure Enterprise Search, Crawler: Release 10.1.8.2
    11:20:20:785 INFO     main          Copyright © 2006, 2007, Oracle. All rights reserved.
    11:20:20:785 INFO     main          
    11:20:20:785 INFO     main          ================== Crawling settings ==================
    11:20:20:785 INFO     main          Reading configuration file from /mnt/u08/SOADEVIL/seshome/search/data/config/crawler.dat
    11:20:20:785 INFO     main          Agent = Oracle Secure Enterprise Search
    11:20:20:807 INFO     main          User = EQ_TEST
    11:20:20:807 INFO     main          Database connect string = jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=devilrays.appsassociates.com)(PORT=1525))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=Devilses.devilrays.appsassociates.com)))
    11:20:20:807 INFO     main          Source type is User-defined
    11:20:20:807 INFO     main          Source is "BJ_Cont"
    11:20:20:807 INFO     main          Document access control policy is user-defined
    11:20:20:808 INFO     main          Number of crawling threads = 5
    11:20:20:808 INFO     main          Queue table = I1S8
    11:20:20:808 INFO     main          URL table = EQ$URL
    11:20:20:808 INFO     main          Maximum documents to crawl = no limit
    11:20:20:808 INFO     main          Maximum depth to crawl = 2
    11:20:20:808 INFO     main          Document size limit = 10M
    11:20:20:808 INFO     main          Locale of the crawler message is "en_US"
    11:20:20:808 INFO     main          URL exclusion rule = (?i:(?:\.gif)|(?:\.jpg)|(?:\.jar)|(?:\.tif)|(?:\.bmp)|(?:\.war)|(?:\.ear)|(?:\.mpg)|(?:\.wmv)|(?:\.mpeg)|(?:\.scm)|(?:\.iso)|(?:\.dmp)|(?:\.dll)|(?:\.cab)|(?:\.so)|(?:\.avi)|(?:\.wav)|(?:\.mp3)|(?:\.wma)|(?:\.bin)|(?:\.exe)|(?:\.iso)|(?:\.tar)|(?:\.png))$
    11:20:20:808 INFO     main          URL exclusion rule = \?.*(.*\+)\1{3}
    11:20:20:812 INFO     main          Document read timeout threshold = 30 second(s)
    11:20:20:812 INFO     main          Crawler default character set is "8859_1"
    11:20:20:812 INFO     main          Crawler default language is "en"
    11:20:20:813 INFO     main          Auto language detection is on
    11:20:20:813 INFO     main          Auto character set detection is off
    11:20:20:813 INFO     main          Document service pipeline is "Default pipeline"
    11:20:20:813 INFO     main          Verbose mode is on
    11:20:20:935 INFO     main          Caching on: directory = /mnt/u08/SOADEVIL/sesdata/Devilses/cache/I1DS8/, max size = 250, action = SES_TASK
    11:20:20:935 INFO     main          Filtering on: filter path = /mnt/u08/SOADEVIL/seshome/ctx/bin/ctxhx, number of filters = 2
    11:20:20:935 INFO     main          MIME inclusions = text/html text/plain application/pdf application/x-msexcel application/vnd.ms-excel application/ms-excel application/x-mspowerpoint application/vnd.ms-powerpoint application/msword
    11:20:20:935 INFO     main          URL table attributes = url, depth, signature, last_modified, status, url_id, access_url, enqueue_status, TITLE, DESCRIPTION, AUTHOR, CRAWLED_DATE, CONTENT_LENGTH, CONTENT_TYPE, LANG, CACHE_FILE_PATH, DS_ID
    11:20:20:936 INFO     main          SQL callback statement is "begin eq_crw.crawler_callback(?,?,?,?); exception when eq_def.search_error then eq_err.raise; when others then eq_err.raise; end;"
    11:20:20:936 INFO     main          Cookie support is enabled
    11:20:20:937 INFO     main          Maximum number of cookies = 300
    11:20:20:939 INFO     main          Maximum number of cookies per host = 20
    11:20:20:939 INFO     main          Maximum size of cookie = 4096 bytes
    11:20:20:940 INFO     main          Cache file deletion is disabled
    11:20:20:940 INFO     main          Crawler plug-in manager class is "oracle.search.plugin.ocs.cservices.OCSCSPluginMgr"
    11:20:20:940 INFO     main          SQL hook ID is "8"
    11:20:20:940 INFO     main          SQL command hook statement is "begin ? := eq_crw.crawler_get_command(?,?,?,?); end;"
    11:20:20:940 INFO     main          SQL response hook statement is "begin ? := eq_crw.crawler_send_response (?,?,?,?,?,?,?,?,?,?,?,?,?); end;"
    11:20:20:940 INFO     main          Crawler launched by schedule "BJ_Cont"
    11:20:20:940 INFO     main          
    11:20:20:940 INFO     main          =================== Crawling status ===================
    11:20:20:941 INFO     main          Crawling started at 9/18/07 11:20 AM
    11:20:21:912 INFO     main          URL manager connecting to Oracle...
    11:20:21:974 INFO     main          connected
    11:20:22:586 INFO     main          Queue manager connecting to Oracle...
    11:20:22:631 INFO     main          connected
    11:20:23:497 INFO     main          Invoking "oracle.search.plugin.ocs.cservices.OCSCSPluginMgr"
    11:20:23:501 INFO     main          URL manager connecting to Oracle...
    11:20:23:529 INFO     main          connected
    11:20:23:531 INFO     main          Initializing crawler plug-in manager "oracle.search.plugin.ocs.cservices.OCSCSPluginMgr"
    11:20:23:531 ERROR     main          SES keystore location: null
    11:20:23:532 ERROR     main     null oracle.search.sdk.crawler.PluginException     oracle.search.plugin.ocs.cservices.OCSCSPluginMgr:getParamValue:351     oracle.search.plugin.ocs.cservices.OCSCSPluginMgr:init:479     oracle.search.crawler.WebCrawler:begin:1076     ImtCrawler:run:1831     ImtCrawler:main:480
    11:20:23:532 ERROR     main     null oracle.search.sdk.crawler.PluginException     oracle.search.plugin.ocs.cservices.OCSCSPluginMgr:getParamValue:351     oracle.search.plugin.ocs.cservices.OCSCSPluginMgr:init:479     oracle.search.crawler.WebCrawler:begin:1076     ImtCrawler:run:1831     ImtCrawler:main:480
    11:20:23:676 INFO     Thread-1          Remote command "reportstatistics" received, argument = "quit"
    11:20:23:676 INFO     Thread-1          Executing remote command "reportstatistics"
    11:20:23:697 INFO     Thread-1          Send back remote command execution result
    11:20:25:944 INFO     main          Shutting down all crawling threads...
    11:20:25:948 INFO     main          
    11:20:25:949 INFO     main          =================== Crawling results ===================
    11:20:25:949 INFO     main          Crawling started at 9/18/07 11:20 AM
    11:20:25:949 INFO     main          Crawling stopped at 9/18/07 11:20 AM
    11:20:25:949 INFO     main          Total crawling time = 0:0:5
    11:20:25:949 INFO     main          
    11:20:25:954 INFO     main          Total number of documents fetched = 0
    11:20:25:954 INFO     main          Document fetch failures = 0
    11:20:25:954 INFO     main          Document conversion failures = 0
    11:20:25:954 INFO     main          Total number of unique documents indexed = 0
    11:20:25:954 INFO     main          Total data collected = 0 bytes
    11:20:25:954 INFO     main          Total number of non-indexable documents = 0
    11:20:25:955 INFO     main          
    11:20:25:955 INFO     main          Number of times disk cache is full = 0
    We have followed the installation details provided in "SESAdmiistratorGuide".
    In that guide.... during creation of Content Database source he did not mention any entry for "SES keystore location", and the exception which we are getting is related to "SES keystore location: null" (please look into the exception stack).
    could you please guide us.
    Thanks
    peter.

  • Change Production version during creation of Process Order COR1

    Hi,
    Scenario:
    Based on the entered Material, Plant and Order type system need to trigger a popup asking the user to select the Production Version. This should happen before clicking on SAVE button, so that all the values will be populated correctly based on the changed VERID.
    I did not find a user exit that enables to change the Production Version (VERID) value. So I thought of displaying the popup in the user exit EXIT_SAPLCOZF_003 which will be triggered before initial screen appears, export the selected value and pass it to a User Exit or BADI where VERID can be changed. But cannot find a user exit to do it.
    Please help me find a User Exit or BADI to change the Production Version during creation of Process Order using COR1 transaction before clicking on SAVE button.
    Thanks,
    Manoj.

    Hi Manoj,
    So - almost four years later - I saw your post and I saw myself in the very same situation as you did...
    I found a solution for those who wants to change the production version of the production order from the sales order creation: create an enhancement in the function module 'MD_VERSION_SELECTION' and you are good to go.

  • Conditions Types during creation of Quotation

    Dear All ,
              I want to know from where the condition types are fetched during creation of quotation in ME47 . These condition types are not fetched from vendor schema thats for sure . I want to know which pricing procedure is responsible for quotation creation .
              My requirement is I have to create a quotation comparision sheet for my vendor and I want to know from which table I should take the values of condition types to achieve my target .
    Regards
    Abhijit Das

    Hi Sachin ,
    I am trying to create a Quotation in ME47 .The condition types I can find init to maintain are
    P000 : Gross Price
    R000 : Discount On gross
    R001 : Discount Of quantity
    R002 : Absolute Discount
    R003 : Discount % on net
    But my client requires more condition types like Packing & Forwarding ,Excise , CESS , VAT /CST , FREIGHT .
    I want to know how I will enter these condition types in Quotation . After maintaining these entries only I want to compare the quotations through ME49 .
    But system is not allowing me to enter these conditions
    HI Sachin
    I am Kalyan,
    To Maintain these conditions in Quotation, use Transaction ME47, Go to Maintain Quotation Overview Screen
    Now select the Line item for which u like to add the conditions as u mentioned, choose the Item conditons Icons (Shift + F6),
    Now, Select / Choose the Validity period will proceed to another screen, where we can edit the changes.
    Here u can add additional Price like freight, discount etc. here. And SAVE it.
    Thanks and Regards
    Kalyan,

  • Dump during creation of service entry sheet (ML81N)

    Dump during creation of service entry sheet (ML81N)
    Hi,
    ML81N>Select PO>Enter>goto entry sheet create (empty page)>service entry sheet displayed with internal no. assigned >click tab "service selection">Input PO No.--> enter (here we get Dump ABAP RUNTIME ERROR "TABLE_INVALID_INDEX").
    This is happening only for some POs. What can be the problem?. Is this has something to do with SAP database ???
    - rahul

    Hi,
    it could have the cause that the note 1113220 was missing from your system or that data are inconsistent in your PO.
    If you implemented 1113220 and you still get the dump, please check in transaction ST22 the run time error long text to the dump:
    Parts:
    - How to correct the error?
    - Information on where terminated
    - Source Code Extract -> if you set a breakpoint before the line where the error occured, you could debug the process.
    - Active Calls/Events: if you have an own program displayed here, please check first your program wether it has caused the issue.
    If these do not help to find out the problem cause, please open a SAP ticket and include all of the relevant information regarding the dump.
    Regards,
    Edit

  • I want to be able to save texts to a file or folder seperate from the rest of my texts.  This is so I can forward them onto someone else at a later date.

    Hi
    I want to be able to save texts to a file or folder seperate from the rest of my texts.  This is so I can foward them onto someone else at a later time.
    I have always had this facility on my previous phones e.g. blackberry but can't seem to find a way with my Iphone.

    No such option is available with the iPhone.
    A text can be forwarded, but texts are saved in conversation format by contact/phone number.
    Texts are included with your iPhone's backup, which is updated by iTunes as the first step during the iTunes sync process. There are a number of 3rd party utilities that provide for extracting select data from your iPhone's backup for access on your computer - viewing/archiving/printing, etc.
    Here is one.
    http://www.mobilesyncbrowser.com/

  • BADI/EXIT/Enhancement spot in during creation of PO to edit Vendor partner

    Hello,
    I am looking for BADI/EXIT/Enh. spot to edit the vendor partner during creation of a PO.
    Due to some business requirement we maintained multiple vendor partner( for same role like goods supplier) in the vendor master and for such cases during creation of PO it throws a pop-up to choose one of the partners. However, in some cases, I have to select a particular vendor partner based on some other field value, and suppress the pop-up.  So to choose the right vendor partner I need a suitable location where I can put my program logic.
    Looking forward to your replies...
    Thanks in advance.
    Best Regards,
    Amarjit Singh

    By now I am unable to test this BADI to see which data is retrieved and the moment that this happens. But the popup that you mentioned is a Z routine ?? If yes couldn't  you put your logic there?
    Regards,
    Felipe

  • Setting default values to CUSTOMERH field during creation of ORDER?

    Hi guys,
    Does anyone know of any BAdI that is called once during the ORDER creation?
    I have a CUSTOMERH field that needs to be set to 'X' during creation, and the user can de-select them anything. Anyone know how this can be achieved??
    Many thanks in advance, points to be awarded for any helpful ideas.

    Hi Joshua,
    have a look to the interface IF_EX_ORDER_SAVE.
    this give you the Methods CHANGE_BEFORE_UPDATE and PREPARE.
    I hope you can use this.
    kind regards an happy x-mas
    Torsten

  • MARA-GEWEI is not overtaken during creation of material from cdesk

    Hi, we work in ENV SAP R3 4.71 and create material in background out from
    cdesk.
    Therefore we defined in the customizing of CAD Desktop that in case of
    creation of material MARA-GEWEI determination type = constant and
    determination parameter is "ST" for "piece"
    Every other parameter works fine during creation of material ==> as soon as
    we fill a weight into the corresponding fields SAP tells us a message
    "ENTER the unit of weight for the net weight" ==> if you press "continue action then" SAP ends creation of material an nothing happens....
    ANY ideas?
    (will enter this message for sure as well into the oss....)

    Hi  Gerhard,
    have u put
    EXP_MARA-BRGEW           Gross weight
    EXP_MARA-NTGEW            Net weight
    from Inv side in config...
    Also check in cdesk_cus under create material
    <b>Base Unit of Measure               Constant     ST
    Net Weight               File Attribute     Physical_Properties_MassValue</b>
    hope this helps

  • Issue during creation of control cycle

    Dear Gurus,
    During creation of control cycle (LPK1), the fields for source information is not appearing in my system.
    I compared control cycle in a different ECC system where source information is appearing.
    How can make the screen appear in my ECC system.
    Please find the screenshot.
    Any pointers will be highly appreciated.
    This thread is further to the thread in Production Planning Forum
    http://scn.sap.com/thread/3609441
    With Regards,
    Malay

    Manish,
    I do not understand how this going to solve the issue because why we need both KANBAN and WM control cycles for one material withdrawal for production?
    Br
    KK

  • RC-00118: Error occurred during creation of database

    adcrdb.sh started at Mon Nov 14 16:16:13 EAT 2011
    The environment settings are as follows ...
    ORACLE_HOME : /u04/d01/tech_st/11.2.0
    ORACLE_SID : JCLONE
    TWO_TASK :
    PATH : /usr/bin:/u04/d01/tech_st/11.2.0/bin:/usr/bin:/usr/sbin:/u0 4/d01/tech_st/11.2.0/jdk/bin:/usr/ccs/bin:/bin:/usr/bin/X11:/usr/local/bin:/u04/ d01/tech_st/11.2.0/appsutil/clone/bin/../jre/jre/bin:/usr/lib/qt-3.3/bin:/usr/ke rberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbi n:/usr/bin:/usr/X11R6/bin:/root/bin:.
    LD_LIBRARY_PATH : /u04/d01/tech_st/11.2.0/lib:/usr/X11R6/lib:/usr/openwin/lib :/u04/d01/tech_st/11.2.0/ctx/lib
    Executable : /u04/d01/tech_st/11.2.0/bin/sqlplus
    The log information will be written to
    /u04/d01/tech_st/11.2.0/appsutil/log/JCLONE_oracle/adcrdb_JCLONE.txt
    Creating the control file for JCLONE_oracle database ...
    SQL*Plus: Release 11.2.0.2.0 Production on Mon Nov 14 16:16:13 2011
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Connected to an idle instance.
    ORACLE instance shut down.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 1071333376 bytes
    Fixed Size 1348968 bytes
    Variable Size 427821720 bytes
    Database Buffers 629145600 bytes
    Redo Buffers 13017088 bytes
    CREATE CONTROLFILE REUSE SET DATABASE "JCLONE"
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01159: file is not from same database as previous files - wrong database id
    ORA-01110: data file 1: '/u04/d01/apps_st/data/system01.dbf'
    alter database open resetlogs
    ERROR at line 1:
    ORA-01507: database not mounted
    alter tablespace TEMP add tempfile '/u04/d01/apps_st/data/temp01.dbf' REUSE
    ERROR at line 1:
    ORA-01109: database not open
    ALTER DATABASE RENAME GLOBAL_NAME TO "JCLONE.jtl.co.ke"
    ERROR at line 1:
    ORA-01109: database not open
    ORA-01507: database not mounted
    ORACLE instance shut down.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 1071333376 bytes
    Fixed Size 1348968 bytes
    Variable Size 427821720 bytes
    Database Buffers 629145600 bytes
    Redo Buffers 13017088 bytes
    Database mounted.
    BEGIN dbms_backup_restore.zeroDbid(0); END;
    ERROR at line 1:
    ORA-01119: error in creating database file
    '/u04/d01/tech_st/11.2.0/dbs/MISSING00015'
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 4754
    ORA-06512: at line 1
    ORACLE instance shut down.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 1071333376 bytes
    Fixed Size 1348968 bytes
    Variable Size 427821720 bytes
    Database Buffers 629145600 bytes
    Redo Buffers 13017088 bytes
    CREATE CONTROLFILE REUSE SET DATABASE "JCLONE"
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01159: file is not from same database as previous files - wrong database id
    ORA-01110: data file 1: '/u04/d01/apps_st/data/system01.dbf'
    alter database open resetlogs
    ERROR at line 1:
    ORA-01507: database not mounted
    alter tablespace TEMP add tempfile '/u04/d01/apps_st/data/temp01.dbf' REUSE
    ERROR at line 1:
    ORA-01109: database not open
    ALTER DATABASE RENAME GLOBAL_NAME TO "JCLONE.jtl.co.ke"
    ERROR at line 1:
    ORA-01109: database not open
    Error Running create/replace library with adupdlib.sql
    ORA-01109: database not open
    PL/SQL procedure successfully completed.
    File created.
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Pr oduction
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    exit_code=0
    Checking for errors ...
    The database has not been successfully created. Shutting down the instance ...
    SQL*Plus: Release 11.2.0.2.0 Production on Mon Nov 14 16:16:32 2011
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Connected.
    ORACLE instance shut down.
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Pr oduction
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    .end std out.
    .end err out.
    ADX Database Utility
    getConnectionUsingAppsJDBCConnector() -->
    APPS_JDBC_URL='null'
    Trying to get connection using SID based connect descriptor
    getConnection() -->
    sDbHost : oracle
    sDbDomain : jtl.co.ke
    sDbPort : 1524
    sDbSid : JCLONE
    sDbUser : apps
    Trying to connect using SID...
    getConnectionUsingSID() -->
    JDBC URL: jdbc:oracle:thin:@oracle.jtl.co.ke:1524:JCLONE
    Exception occurred: java.sql.SQLException: IO Error: The Network Adapter cou ld not establish the connection
    Trying to connect using SID as ServiceName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle .jtl.co.ke)(PORT=1524))(CONNECT_DATA=(SERVICE_NAME=JCLONE)))
    Exception occurred: java.sql.SQLException: IO Error: The Network Adapter cou ld not establish the connection
    Trying to connect using SID as ServiceName.DomainName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle .jtl.co.ke)(PORT=1524))(CONNECT_DATA=(SERVICE_NAME=JCLONE.jtl.co.ke)))
    Exception occurred: java.sql.SQLException: IO Error: The Network Adapter cou ld not establish the connection
    Connection could not be obtained; returning null
    -------------------ADX Database Utility Finished---------------
    RC-00118: Error occurred during creation of database
    Raised by oracle.apps.ad.clone.ApplyDatabase
    StackTrace:
    java.lang.Exception: Control file creation failed
    at oracle.apps.ad.clone.ApplyDatabase.<init>(ApplyDatabase.java:661)
    at oracle.apps.ad.clone.ApplyDatabase.<init>(ApplyDatabase.java:328)
    at oracle.apps.ad.clone.ApplyDatabase.<init>(ApplyDatabase.java:304)
    at oracle.apps.ad.clone.ApplyDBTier.<init>(ApplyDBTier.java:154)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC onstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:501)
    at oracle.apps.ad.clone.util.CloneProcessor.run(CloneProcessor.java:68)
    at java.lang.Thread.run(Thread.java:595)
    Current database Version is 11.2.0.2
    Apps Version is 11.5.10.2
    RUP version is 6
    Forms Patchset version is 19
    Please advise how to resolve this error ?
    Regards
    Mohammed.

    Please refer to these docs/links.
    Troubleshooting RapidClone issues with Oracle Applications 11i [ID 364565.1]
    Adcfgclone.pl DBTier is failing with error for dbms_backup_restore.zeroDbid(0) [ID 361157.1]
    https://forums.oracle.com/forums/search.jspa?threadID=&q=ORA-01503+AND+ORA-01159+AND+ORA-01110&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How to update line items if it exceeds 17 during creation of SO in va01.

    Hi,
    I have implemented one logic in mv45afzz for updating IO (internal order) with respect to line items during creation of SO through VA01.
    It is working fine.
    My problem is: For first 17th line items it is working fine , but those line items which come after 17th not working.
    Please suggest.
    Thanks,
    Sakti

    Hi,
    Pls find the below code for your reference.
    LOOP AT xvbap INTO wa_xvbap.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
          EXPORTING
            input  = wa_xvbap-matnr
          IMPORTING
            output = wa_xvbap-matnr.
        IF ( wa_xvbap-matnr = c_matno_1 OR
           wa_xvbap-matnr = c_matno_2 ) AND
           wa_xvbap-updkz <> 'D'.
    *Before changing container number first check first check the IO attached to
    *this container number fully settled or not.
          IF NOT yvbap[] IS INITIAL.
            SORT yvbap[] BY vbeln posnr.
            READ TABLE yvbap INTO wa_yvbap WITH KEY vbeln = xvbak-vbeln
                                                    posnr = wa_xvbap-posnr
                                                    BINARY SEARCH.
            IF sy-subrc = 0 AND
              ( wa_yvbap-arktx <> wa_xvbap-arktx OR
               wa_yvbap-z_container_no <> wa_xvbap-z_container_no.
              CALL FUNCTION 'CONVERSION_EXIT_OBART_INPUT'
                EXPORTING
                  input  = c_sdi
                IMPORTING
                  output = l_output1.
              CONCATENATE 'ORX'
                          wa_yvbap-z_container_no
                          INTO g_objnr1.
              SELECT SINGLE *
                          INTO wa_cobrb_sdi
                          FROM cobrb
                          WHERE objnr = g_objnr1 AND
                                konty = l_output1.
              IF sy-subrc <> 0.
                CONCATENATE 'ORY'
                              wa_yvbap-z_container_no
                              INTO g_objnr1.
                SELECT SINGLE *
                            INTO wa_cobrb_sdi
                            FROM cobrb
                            WHERE objnr = g_objnr1 AND
                                  konty = l_output1.
              ENDIF.
            ENDIF.
          ENDIF.
    *If the Io is fully settled, then can not change container number.
          IF wa_cobrb_sdi-ersja IS NOT INITIAL.
            MESSAGE s303(me) WITH 'Container can not be changed as IO already settled for' wa_yvbap-posnr.
            CLEAR:wa_yvbap,
                  wa_cobrb_sdi,
                  g_objnr1.
            PERFORM folge_gleichsetzen(saplv00f).
            fcode = 'ENT1'.
            SET SCREEN syst-dynnr.
            LEAVE SCREEN.
          ELSE.
    *Check container number is initial or not
            IF wa_xvbap-z_container_no IS NOT INITIAL AND tcode = c_va01.
              CONDENSE wa_xvbap-z_container_no.
    *Add 'X' to container number and serch for IO exist or not
              CONCATENATE c_x
                          wa_xvbap-z_container_no
                          INTO l_aufnr.
              SELECT SINGLE aufnr objnr
                         FROM aufk
                         INTO (g_aufnr,g_objnr)
                         WHERE aufnr = l_aufnr.
              IF sy-subrc = 0.  " AND wa_xvbap-arktx = l_aufnr.
                l_flag = 'X'.
              ELSE.
    *Add 'Y' to container number and search for IO
                CONCATENATE c_y
                            wa_xvbap-z_container_no
                            INTO l_aufnr.
                SELECT SINGLE aufnr objnr
                          FROM aufk
                          INTO (g_aufnr,g_objnr)
                          WHERE aufnr = l_aufnr.
                IF sy-subrc = 0.  " AND wa_xvbap-arktx = l_aufnr.
                  l_flag = 'X'.
                ELSE.
    *Display error message if Io was not found or forgot to enter IO in description field
                  MESSAGE s083(me) WITH 'IO was not found for' wa_xvbap-posnr.
                  PERFORM folge_gleichsetzen(saplv00f).
                  fcode = 'ENT1'.
                  SET SCREEN syst-dynnr.
                  LEAVE SCREEN.
                ENDIF.
              ENDIF.
           ELSE.
            ELSEIF tcode = c_va01.
    *Display error message if user forget to enter container number
              MESSAGE s083(me) WITH 'container number for' wa_xvbap-posnr.
              PERFORM folge_gleichsetzen(saplv00f).
              fcode = 'ENT1'.
              SET SCREEN syst-dynnr.
              LEAVE SCREEN.
            ENDIF.
            IF l_flag EQ 'X'.
              CALL FUNCTION 'CONVERSION_EXIT_OBART_INPUT'
                EXPORTING
                  input  = c_sdi
                IMPORTING
                  output = l_output.
              CALL FUNCTION 'CONVERSION_EXIT_PERBZ_INPUT'
                EXPORTING
                  input  = c_ful
                IMPORTING
                  output = l_ful.
    *Fetch 1st line of settlement rule
              CALL FUNCTION 'CONVERSION_EXIT_OBART_INPUT'
                EXPORTING
                  input  = c_gl
                IMPORTING
                  output = l_gl.
              SELECT SINGLE *
                    INTO wa_cobrb_gl
                    FROM cobrb
                    WHERE objnr = g_objnr AND
                          konty = l_gl.
              IF sy-subrc EQ 0.
    *Populate values for second line settlement
                wa_cobrb-objnr = g_objnr.            "OBJNR
                wa_cobrb-lfdnr = '003'.
                wa_cobrb-konty = l_output.           "Category
                wa_cobrb-kdauf = xvbak-vbeln.        "Order No
                wa_cobrb-kdpos = wa_xvbap-posnr.     "Item No
                wa_cobrb-prozs = c_percent.          "Percentage
                wa_cobrb-perbz = l_ful.              "Settlement
                wa_cobrb-extnr = c_no.               "No
                wa_cobrb-gabpe = wa_xvbap-erdat+4(2).      "From period
                wa_cobrb-gabja = wa_xvbap-erdat+0(4).      "From Fiscal
                APPEND wa_cobrb TO gt_cobrb.
              ELSE.
    *Populate values for second line settlement
                wa_cobrb-objnr = g_objnr.            "OBJNR
                wa_cobrb-lfdnr = '003'.
                wa_cobrb-konty = l_output.           "Category
                wa_cobrb-kdauf = xvbak-vbeln.        "Order No
                wa_cobrb-kdpos = wa_xvbap-posnr.     "Item No
                wa_cobrb-prozs = c_percent.          "Percentage
                wa_cobrb-perbz = l_ful.              "Settlement
                wa_cobrb-extnr = c_no_1.               "No
                wa_cobrb-gabpe = wa_xvbap-erdat+4(2).      "From period
                wa_cobrb-gabja = wa_xvbap-erdat+0(4).      "From Fiscal
                APPEND wa_cobrb TO gt_cobrb.
              ENDIF.
              IF wa_cobrb_gl IS NOT INITIAL.
                wa_cobrb_gl-gbisp = wa_cobrb-gabpe - 1.
                wa_cobrb_gl-gbisj = wa_cobrb-gabja.
                APPEND wa_cobrb_gl TO gt_cobrb_gl.
              ENDIF.
         ELSEIF wa_cobrb-ersja IS NOT INITIAL.
           MESSAGE 'Container number can not be reassign' TYPE 'E'.
            ENDIF.
          ENDIF.
        ENDIF.
        CLEAR:wa_cobrb,
              g_objnr,
             wa_aufk,
              wa_cobrb_gl,
              wa_cobrb_sdi.
      ENDLOOP.
      IF l_flag EQ 'X'.
    *Create 2nd line for settlement rule.
        SORT gt_cobrb[].
        DELETE ADJACENT DUPLICATES FROM gt_cobrb[].
        IF NOT xvbak-vbeln IS INITIAL AND tcode = c_va01.
          IF NOT gt_cobrb[] IS INITIAL.
            CALL FUNCTION 'K_SRULE_SAVE_UTASK'   "IN UPDATE TASK
              TABLES
                t_cobrb_insert    = gt_cobrb[]
              EXCEPTIONS
                srule_utask_error = 1
                OTHERS            = 2.
    Thanks,
    Sakti

Maybe you are looking for

  • Inconsistency in the Dictionary for the structure "VXO2APPL"

    Hi gurus, I started with SP stack upgrade to 10(Install  SAP EHP1 for SAP NetWeaver 7.0  Stack 10 with Kernel 7.20). --First i did kernel upgrade from 701 patch 111 to 720 patch 105 which was successfull. --Now when i tried to upgrade the stack it gi

  • Curve 8520 set-up newbie help please - have wifi but no browser, no internet, no email

    I have just acquired this near-new pre-owned Curve.  It appeared to have been correctly data-cleared by the previous owner.  I've run the set-up wizard and everything worked fine.  It's connected to my wifi with a strong signal. But 1. the browser sa

  • Migrating MS SQL Server 7.0 TO Oracle 8.1.5

    Hello, We are currently using Win NT 4.0, MS SQL Server with a PVCS Tracker 6.0 from Merant and will be upgrading to PVCS Dimension 6.0 from Merant. The Dimension 6.0 product runs on Win NT 4.0, uses Oracle Server 8.1.5 with Oracle 8 ODBC Driver 2.5.

  • "Templates" ? or Signature ?

    Hi, I am a newbie as far as this is concerned. Currently on Mail 2.0.7 and have imported older mail and mailboxes. One of these is called "Templates" and seems to be from an earlier incarnation of Mail. I want to be able to create a stock reply that

  • Picture Album Options

    I have the iPhone 4. My Aunt showed me how her phone had the "FACES" option under the pictures App. She told me once I updated my phone I would get it, but I didn't. ( I don't know if she didn't know how she got it, or I need to download something) I