Sequence is not getting created properly while importing

Hi,
I have problem with sequence
1 ) I Did an export and it was successful without any errors.
2) I created a blank database with the necessary tables spaces
3) I did the import, there was no major errors.
After importing I noticed my sequence numbers are not in order.
For an example in purchase_order sequence the next value is 3655, where as in the purchase order table the last purchase order number is 3690. So when I try to insert any new purchase order I get the error object already exist.
I droped all the sequence, did a import with the following command.
imp system/pwd file=imp.dmp log=seq.log fromuser=application touser=application rows=n grants=n indexes=n constraints=n
Still I don’t get the proper sequence, How can i make sure my sequnce get recreated properly.
How can I resolve this. I am running on oracle 10.2.0.3.
Thank you

Anand,
evidently you didn't read my link above... and your suggestion might be very dangerous...
With the scenario posted by OP, data are inconsistent, and there could be other (and worse) problems if importing in that way.
The only way to avoid inconsistencies while exporting is using CONSISTENT=Y option, unless you are absolutely sure that nobody is using your DB in the meanwhile.

Similar Messages

  • Mapping Issue: Target IDoc structure not getting created properly

    Hi Experts,
    I am stuck with a strange problem in my mapping. It is a M:N scenario mapping where we have multiple IDocs in source as well as in target.
    For example, in source Queue-1 I am getting values as [SUPPRESS, true, true, true, true] and in the in source Queue-2 I am getting the values as [1,2,3,4,5]. I used MapWithDefault function to match the number of values in both the queues but in the target IDoc the node (say TMPN) is created only 4 times because of the condition put at the target node. So, the target node should have values as [1,2,3,4] but it gets values as [2,3,4,5] because the first target TMPN node is not created in the first target IDoc. I can provide you with the skeleton of the map. Hope this will give you a fair idea. Let me know if you require more details.
    1. Target Structure:
        IDoc - No TMPN Node
        IDoc - 1 TMPN Node
        IDoc - 2 TMPN nodes
        IDoc - 1 TMPN node
    Condition put on target TMPN_Node ---> (created only 4 times due to condition)
    2. Mapping Skeleton:
    Values coming from Q1 (SUPPRESS, true, true, true, true) --->
                                                                                    \===>FORMATBYEXAMPLE+SPLITBYVALUE==> TMPN-F0 [2]
                                                                                    /                                                                              TMPN-F0 [3]
    Values coming from Q2 (1,2,3,4,5) -
    >                                                                               TMPN-F0 [4]
                                                                                    TMPN-F0 [5]
    Where F0 is  the field which is created when TMPN Node is created. So, if TMPN gets created 6 times, the F0 gets created 6 times.
    Please let me know if there is an alternative to this problem. How can I have values as [1,2,3,4] in field F0 instead of [2,3,4,5]

    hi,
    i got the email.
    as i can see your mapping seams to be rigth, but there is sometrhing i dont get. in a previuos post you said:
    I am stuck with a strange problem in my mapping. It is a M:N scenario mapping where we have multiple IDocs in source as well as in target.
    For example, in source Queue-1 I am getting values as SUPPRESS, true, true, true, true and in the in source Queue-2 I am getting the values as 1,2,3,4,5. I used MapWithDefault function to match the number of values in both the queues but in the target IDoc the node (say TMPN) is created only 4 times because of the condition put at the target node. So, the target node should have values as 1,2,3,4 but it gets values as 2,3,4,5 because the first target TMPN node is not created in the first target IDoc. I can provide you with the skeleton of the map. Hope this will give you a fair idea. Let me know if you require more details.
    1. Target Structure:
    IDoc - No TMPN Node
    IDoc - 1 TMPN Node
    IDoc - 2 TMPN nodes
    IDoc - 1 TMPN node
    lets asume you define as default value "1"
    now, the result of the formatByExample taking the example you sent to me is:
    1,T1,T2,T3,T4 without context change. and the result of the function splitByValue should be what you are specting.
    but its something that is not clear still,
    could you post the result of the mapWithDefault? i think your problem is there.
    Rgds
    RP-.

  • BP not getting created while creating employee

    Hi,
    When I Hire an employee a BP should be created for it. It used to happen earlier in the system but after we moved to another system this is not working.  Can someone please let me know the necessary config for this?
    I've the following settings:
    HRALX   ONUMB  = 2
    HRALX   OSUBG = MD
    The MD number range is from 90000000 to 9999999999. Should this number range be internal or external?
    When I use the HR_SYNC_PERSON report for an employee I get the error as
    "Determination of connections to object 'BP' of 'CP' '50000201' failed"
    "Object of type 'US' with ID '1122' does not exist or is inconsistent"
    "Determination of connections to object 'BP' of 'O' '50000101' failed" etc
    Also I need to upload the employee master data using LSMW and BP does not get created with LSMW also? Is there some specific config while using LSMW?
    Please help.

    Whenever you are uploading employees using LSMW, you need to run program HR_SYNC_PERSON.
    Pls refer to the following thread for further info:
    Assignment: Business partner for person '50000029' is not unique
    Regards,
    Dilek

  • I am creating  input   tax code in FTXP,BUT i am not getting tax code  whil

    Dear EXpert,
    I am creating  input   tax code in FTXP,BUT i am not getting tax code  while doing PO? what is the reason?
    thanks& Regards,
    saran.

    Hi Saravana
    Please make sure you have done all the following settings in SPRO.
    SPRO>Basic Settings->Taxes->
    1)Define Tax determination rule
    2)define regional codes
    3)Assign Delivering Plants For Tax Determination
    4)Define Tax Relevancy Of Master Records
    5)Maintain Sales Tax Identification Number Determination
    regards
    Yogesh

  • HT2534 i am not getting "none" option while creating an apple id without using credit card.

    i am not getting "none" option while creating an apple id without using credit card.

    To get the none option, sign out of anything apple you're signed into. Go to the app store and try to download a free app, any free app. Instead of signing in, take the option to to make a new apple ID. Then go through the steps to make the ID and you'll see the 'none' option.

  • Catalog id is not getting displayed properly in Foreign Language (French)

    Hi All,
    I have created a web service id for the external catalog and I have assigned the same to one of the user. The name of the web service id is getting displayed properly in the shopping cart creation screen when the language is English. But when we are changing the user language to Foreign language (French), the name is not getting displayed properly.
    Could you please advise me if there any settings needs to be done in the parameters of the specific web service id. Thanks in advance for your help.

    Hi,
    Go to External Web Services and the select the web service ID. Then click on GOTO >Translation and select the language and enter the description of the web service as to be disaplyed while users log in French against the language.
    Thanks,
    Anshu

  • Transfer Requirement not getting created

    Hi All,
    My query as below;
    Production order is created using KANBAN (Control Cycle/Supply Area is defined) using classic KANBAN.
    WM is in place and all the setting related to TR/TO creation for WM movement type 103 is in place.
    When i am trying to receive this Production after completion it is not creating the TR/TO, while as material document is getting generated and shows the stock directly in interim storage type 901 without creating TR and TO.
    Further i checked there is indicator in Production order i.e "Kanban indicator" that gets checked automatically when Production order is created using KANBAN Processs and if i remove that indicator forcefully, TR and TO is getting created normally.
    Please provide some inputs where can be the problem and how TR and TO can be created normally eventhough KANBAN indicator is checked in Production order and where i can found the setting related to "KANBAN INDICATOR".
    Appreciate your help.

    Hi Maddy
    Thanks very much for your response.
    1. When you use KANBAN, you define separate KANBAN storage location, which is different from WM-managed replenishment storage locations, and separate KANBAN interim storage area with storage bin.
    Yes different storage location is defined which is not WM-managed in supply area.
    As you said Control Cycle is defined, see if the interface is properly defined for both of these Sloc.
    Where i can check whether interface is properly defined or not.
    2. See if you have defined the KANBAN replenishment strategy with Control type Transfer Requirements from a Storage Location which is being controlled by WM in the Customizing for Production under KANBAN > Replenishment Strategies > Define Stock Transfer Strategies
    Actually for a material two strategies are defined like;
    1) In-house Production strategies-0003-
    supply area is defined with storage location which is IM managed.
    And when this order is completed and i am trying to receive this in WM SLOC (usally whatever SLOC we have defined in supply area it proposes that SLOC at the time of receipt but i am changing this manually to WM managed SLOC) using transaction MIGO, it is directly taking the stock to 901 interim storage type and in total the stock increases but the problem is when TR is not getting created i am not able to take this to the storage bin as per strategies defined.
    2) Stock Transfer Strategies-This is working fine and in that TR/TO is working fine.
    3. For TO to get created automatically by the system from the transfer requirement, see if an indicator Automatic TO creation in the replenishment strategy is set or not. Yes this is set for stock transfer strategies but i didn't find option to check the TO creation automatically for in-house production strategy
    4. Also, check that you have set up a suitable replenishment movement type for KANBAN in the Customizing for Warehouse Management under Activities > Transfers > Define Movement Types (i.e.standard is 350 for KANBAN replenishment)-Yes this is also defined correctly.
    Appreciate your more inputs on this.

  • Infotype not getting created using FM HR_INFOTYPE_OPERATION

    I am trying to create infotype 210 from user exit ZXPADU02 using below code.
    DATA :  v_return TYPE bapireturn1,
               v_return1 TYPE bapireturn1,
               v_return2 TYPE bapireturn1,
               v_key TYPE bapipakey,
               v_return3 TYPE bapireturn1.
      p0207 = gt_p0207.
      MOVE-CORRESPONDING p0207 TO p0210.
      p0210-infty = '0210'.
      p0210-begda = p0207-begda.
      p0210-taurt = 'PR'.
      p0210-txsta = '01'.
      p0210-amtex = '0'.
      CLEAR : p0210-aedtm.
      CLEAR : p0210-uname.
      CLEAR: v_return,v_return1,v_key.
      CALL FUNCTION 'BAPI_EMPLOYEET_ENQUEUE'
        EXPORTING
          number        = p0210-pernr
          validitybegin = p0210-begda
        IMPORTING
          return        = v_return.
      IF v_return IS INITIAL.
        CALL FUNCTION 'HR_INFOTYPE_OPERATION'
          EXPORTING
            infty         = '0210'
            number        = P0210-PERNR
            subtype       =  'PR'
           objectid      = p0210-objps
           lockindicator = p0210-sprps
            validityend   = P0210-ENDDA
            validitybegin = P0210-BEGDA
           recordnumber  = p0210-seqnr
            record        = P0210
            operation     = 'INS'
          IMPORTING
            return        = v_return1.
      ENDIF.
      CALL FUNCTION 'BAPI_EMPLOYEET_DEQUEUE'
        EXPORTING
          number        = p0210-pernr
          validitybegin = p0210-begda
        IMPORTING
          return        = v_return.
    But infotype 210 is not getting created.
    When i check it from PA30, i get error
    "No data stored for Residence Tax Area in the selected period"
    Can anyone tell me what is the problem here.
    Full points will be rewarded.

    HI,
    check the value coming on the screens are properly.Use DIALOG_MODE as foreground and check whether all fields getting populated.
    Check any default values need to be populated.
    Regards,
    Manoj.

  • Task activities not getting generated properly in BPEL

    I am using the Jdev 11g TP3 (from OTN). Installation went through fine. However I observed a interesting issue with HumanTask/BPEL and I was wondering if someone faced similar such problems before, if so, how to rectify the issue. Here is the description of the issue:
    1. Created a Empty SOA composite project
    2. Dragged and dropped BPEL Process in the component palette. Designed a Asynchronous process.
    3. Dragged and dropped a HumanTask. Did not expose as an composite. Designed a single approver workflow. In the project schema, choose the schema from BPEL input.
    4. Wired BPEL to HumanTAsk
    5. In the BPEL flow, I dragged the HumanTask to the flow. Everything appears to be correct. I clicked on "Ok" after associating with BPEL variable.
    Now when I examine the BPEL flow, a scope before the BPEL switch is empty. There are no BPEL activities generated. This is a very simple case of BPEL and HumanTask and I am not sure as to why the tasks not getting generated properly in BPEL flow.
    Has anyone experienced this issue or any ideas as to why this could happen?

    After going through the exercise several times, I finally found out the reason as to why the BPEL activities are not getting generated. In the Human task form for the title, since it is a fixed string in my case I put something like the one given below:
    Title : "APPROVE ORDER"
    When you have fixed string within double quotes it does not generate BPEL activities correctly. You can try and u will see the problem.
    My real question is should not throw proper error message when you try to drag and drop the HumanTask to BPEL flow.

  • File not getting created in a different server

    My requirement.
    I have written a code in the BI system and now need to write an empty file (say a.done)in a directory /interfaces of PI system.
    I wrote using open data set and close data set however the file (a.done) is not getting created in the PI system even though the directory /interfaces exist.
    When I give any directory of that of BI system ,the file(a.done) is getting created i.e the file is getting created on the same server and not on the different server.
    Is there any function module or any other way for the file to get generated in the PI system.
    Please explain with an example.
    Regards,
    Vish

    Try to use  search FTP in se37 or checkout the below FM
    CALL FUNCTION 'EPS_FTP_MPUT'
      EXPORTING
        RFC_DESTINATION            =
    *   FILE_MASK                  = ' '
    *   LOCAL_DIRECTORY            = ' '
    *   REMOTE_DIRECTORY           = ' '
    *   OVERWRITE_MODE             = ' '
    *   TEXT_MODE                  = ' '
    *   TRANSMISSION_MONITOR       = 'X'
    *   RECORDS_PER_TRANSFER       = 10
    *   MONITOR_TITLE              =
    *   MONITOR_TEXT1              =
    *   MONITOR_TEXT2              =
    *   PROGRESS_TEXT              =
    * IMPORTING
    *   LOCAL_DIRECTORY            =
    *   REMOTE_DIRECTORY           =
    *   LOCAL_SYSTEM_INFO          =
    *   REMOTE_SYSTEM_INFO         =
    * TABLES
    *   FILE_LIST                  =
    * EXCEPTIONS
    *   CONNECTION_FAILED          = 1
    *   INVALID_VERSION            = 2
    *   INVALID_ARGUMENTS          = 3
    *   GET_DIR_LIST_FAILED        = 4
    *   FILE_TRANSFER_FAILED       = 5
    *   STOPPED_BY_USER            = 6
    *   OTHERS                     = 7
    IF SY-SUBRC <> 0.
    * Implement suitable error handling here
    ENDIF.

  • AUC Asset not getting created when Internal Order is created

    Dear Experts,
    While Creating the internal order ( Object Class - Investment Measure)
    AuC (Asset Under Construction) not getting created automaticall . Note Investment profile is already there in the order.
    Following steps below are configured -
    1. Define the AuC Asset Class (with investment measure) - OAOA
    2. Define the Asset Class u2013 for Main Asset - OAOA
    3. Define Investment Profile - OITA
    a. Assign the AuC Asset Class (Step-1) in the investment profile
    4. Assign Investment Profile to Model Order - OITA
    5. Define Order Type (Investment) - KOT2
    a. Settlement Profile - OKO7
    b. Maintain Allocation Structures - OKO6
    Thanks
    Sanjai

    Hi Sreekanth,
    What is the setting needed to create AUC Automatically when an Internal order is created ?
    I have done all the setting, but still when I save Internal order neither AUC asset is getting created.
    So I went to extras selected create AUC and it went to AS01, but when I came back (F3) from AS01 to Internal Order and save , Auc Asset is not getting captured in the settlement rule. I even tried to give manually the AUC Asset in the settlement rule, for which sys is not allowing in the settlement rule.
    Any thoughts are highly appreciated
    Advance Thanks
    Sanjai

  • Accounting doucment not get created for Credit Memo

    Hi
        When creating a cancellation doucment(vf11) for credit memo accounting document not get created.While I go for analysis then it is determining the G/L account.But not getting created the accounting doucment.
    When i select "Release to accounting" then it is giving a message like this:
    "Automatic clearing of billing document 951
    and canc. doc. 90000572 not poss."  as informatiion first
    and then later it is throwing an error message that "maintain correct number range"
    While for the same material or earlier cancellation happened and accounting doucment get created.
    Please help me out;How would i get this solved?
    Thanks in advance

    Hi,
    You may also check for Number Range - Maintainance & Assignment.
    T. Code: SNRO
    Table/ View: RV_BELEG
    Here, Mantain Number Range.
    To Assign,
    T. Code: SM30
    T.Code: Bill_Num (or select if different in your case)
    Assign No. range to your combination of Sales OrgDist.ChannelBill Type i.e. for Cancelled Billing Doc. Type
    To Maintain Number Range for Accounting Documents,
    T. Code: FBN1
    Best Regards,
    Amit

  • Attachment not getting created in PI from CRM

    Hi Everyone,
    I am trying to create attachments in PI from CRM but it is not getting created there. I am executing the following steps:
    By default I am getting the attachment data in Binary format so I am using this function module to convert it into XSTRING format.
              CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
                              EXPORTING
                         input_length = lv_input_length
                         first_line   = lv_first_line
                         last_line    = lv_last_line
                       IMPORTING
                         buffer       = lv_xbuffer
                       TABLES
                         binary_tab   = file_content_binary.
       2. Then I am getting the server context and the protocol.
                           obj_server_context = cl_proxy_access=>get_server_context( ).
                           obj_attch_protocol ?= obj_server_context->get_protocol( if_wsprotocol=>attachments ).
    * Assign File naame to STRING Variable
                           lv_name =  lv_filename.
    * Attach file to the service response.
                           obj_attachment = obj_attch_protocol->get_attachment_from_binary(
                                      data = lv_xbuffer
                                      type = if_ai_attachment=>c_mimetype_pdf
                                      name = lv_name ).
                           APPEND obj_attachment TO t_prx_attach.
                           obj_attch_protocol->set_attachments( t_prx_attach ).
       3. Then I am using a proxy class which has Input and Output structures for sending data to PI and getting the response respectively. And then in the end I am calling the proxy and passing the structures.
         With this I am unable to see the attachmenmts in sxmb_moni transaction. Please help.

    Hi Gurus,
    Can you please help with some pointers on this.
    I have used below links as reference for coding.
    Link 1 :
    http://help.sap.com/saphelp_nw04/helpdata/en/a7/3b2a2d45a34a23b75e3b18745c63bc/content.htm
    Link 2:
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/10/19/abap-proxy-protocols-use-cases-and-examples
    After setting attachment(Method SET_ATTACHMENTS) i am not getting any exceptions,but still i am not able to see any attachment created in SXMB_MONI.
    Thanks in Advance,
    Manil.

  • Spool not getting created in batch job

    Hello experts,
    We have a requirement of printing BA00, BA01 and LD00 from different application.
    We have done same code for all BA00, BA01, and LD00.
    Normally the code is working fine except in few cases, when batch job is created but spool is not created.
    DATA: job_name TYPE tbtcjob-jobname,
                  number   TYPE tbtcjob-jobcount,
                  print_parameters TYPE pri_params,
                  wv_pripar    TYPE pri_params,
                  wv_arcpar    TYPE arc_params,
                  wv_val       TYPE c VALUE 'X',
                  wv_false     TYPE c VALUE 'X',
                  gv_mandt     TYPE tsp01-rqclient,
                  gv_user      TYPE tsp01-rqowner.
              CLEAR: gv_mandt, gv_user, number.
              gv_mandt = sy-mandt.
              gv_user  = sy-uname.
              job_name = 'DELIVERY_PRINTING'.
              CLEAR: range1.
              range1-sign = 'I'.
              range1-option = 'EQ'.
              range1-low = 'LD00'.
              CLEAR: range1-high.
              APPEND range1 TO range.
              CALL FUNCTION 'JOB_OPEN'
                EXPORTING
                  jobname          = job_name
                IMPORTING
                  jobcount         = number
                EXCEPTIONS
                  cant_create_job  = 1
                  invalid_job_data = 2
                  jobname_missing  = 3
                  OTHERS           = 4.
              IF sy-subrc = 0.
                SUBMIT sd70av2a WITH  rg_kschl IN range
                                WITH  rg_vbeln IN deli_tab
                                TO SAP-SPOOL
                              SPOOL PARAMETERS print_parameters
                              WITHOUT SPOOL DYNPRO
                              VIA JOB job_name NUMBER number
                              AND RETURN.
                IF sy-subrc = 0.
                  CALL FUNCTION 'JOB_CLOSE'
                    EXPORTING
                      jobcount             = number
                      jobname              = job_name
                      strtimmed            = 'X'
                    EXCEPTIONS
                      cant_start_immediate = 1
                      invalid_startdate    = 2
                      jobname_missing      = 3
                      job_close_failed     = 4
                      job_nosteps          = 5
                      job_notex            = 6
                      lock_failed          = 7
                      OTHERS               = 8.
                  IF sy-subrc <> 0.
                  ENDIF.
                ENDIF.
                WAIT UP TO 10 SECONDS.
    ** to give the data to the printer***
    *            CLEAR gv_rqident.
                SELECT SINGLE listident INTO gv_listident FROM tbtcp
                              WHERE jobname = job_name
                               AND  jobcount = number.
              IF sy-subrc = 0.
                MOVE gv_listident to gv_rqident.
                CALL FUNCTION 'RSPO_OUTPUT_SPOOL_REQUEST'
                  EXPORTING
                    spool_request_id = gv_rqident.
              ENDIF.
    The same code is for all the output BA00, BA01 and LD00.
    The issue is that for few batch jobs (which is created in the above code) , spool is not getting created.
    Thanks and Regards,
    Paritosh Pandey

    Hi,
    The code starting from WAIT UP TO 10 SECONDS. - not only does it look attrocious, is error prone (if no free process for executing batch job is available for 10 seconds, or if the job runs for more than 10 seconds, what will happen...?), but seems utterly unnecessary... Is there any reason immediate spool output can not be handled by simply setting PRINT_PARAMETERS-PRIMM = 'X'?
    cheers,
    Janis
    Edit in:
    Ok, i just read Document in spool but not printed... Do not use an output device relying on frontend access methods to do printing from background processing. Frontend is not available during background processing, period. To my knowledge there is no easy, clean solution to this problem other than defining and assigning, per user, output devices not relying on frontend printing. What if the dialog user has logged off by the time batch job finishes..? May the spool remain unprinted?
    Has the SAP Basis refused to define output devices (I have hard time believing this...)? Well, tell them one time to stop being silly and if they do not cooperate, tell the owner of the requirement that it can not be implemented due to uncooperative Basis then... and that the users will have to keep going to SP01 and manualy start the output!
    Message was edited by: Jānis B

  • ChaRM transport not getting created

    Hi Experts,
    I am in SP20 EHP1. I am configuring ChRm flow. I have made the copy of SDHF to ZSHF. I have completed all the configurations.  I have made the copy of all the actions & statuses.
    I am having two actions in ZSHF while creating the transport requests as below.
    Option 1: Click the standard action "Set in Development". (copy of standard action). At that time the transport is getting created successfully.
    Option 2: Click the action "Create New Transport request" (Copy of standard action). At that time the transport is NOT getting created. Why i couldn't able create the transport using this copied action? In the transaction data tab ---> Actions tab, the details says that action "Processing HF_EXECUTE_ACTION Is Started" & @5C\QError@     Action could not be successfully executed
    Note:
    But if i use the standard transaction type SDHF, at that time using both standard actions, i could able to create transports.
    Need your valuable input

    Hi,
    Please check for the configurational table for which you are facing problem, its delivery class should be "C" under delivery & maintenance.
    You can get it checked by your ABAP team.
    hope this will help.
    Regards,
    AK

Maybe you are looking for

  • Running first Form from Form Builder 10g

    Hi. I've upgraded my first 6i form to 10g. In Form Builder 10g (for Windows) I execute the form and it opens it in my Internet Explorer (IE) window instead of the traditional Oracle Run-time window. This is fine, except IE has a large header area tha

  • Maintain spaces in variables

    Hi, How can I maintain spaces in a variable? For example, in a variable VAR1 we need to have this value - 'ABC  ' (after ABC there are two spaces). Any help would be appreciated. Thanks, Prasanna

  • What has MS Visual C++ got do do with it????

    Hi All I have just upgraded my jre to the latest version (1.4.2_02) through automatic update. (Win 2000) After this, Web Start does not work any more. Instead, it gives this unusual error dialog titled "Microsoft Visual C++ Runtime Library" It says:-

  • Kernel_task high cpu usage, high fan speed, and low cpu tempterature

    Hi, I've noticed that a lot of people have been having trouble with the kernel_task process, but I couldn't quite find a situation similar to mine (most seem temperature related). Here is the situation (15' MBP, mid-2010): - on boot (while the apple

  • Is there an option to control whether a refiner is expanded / collapsed?

    Is there an option to control whether a refiner is expanded  / collapsed in the refinement web part? keren tsur