Copy of Account Assignment Data from PR to PO in ECC 5.0

Hi,
In our ECC 5 instance, Account assignment data from PR to PO is not getting copied when we create a Purchase Order in ME21N transaction. Where as the same is being copied when PO is being created with ME21 transaction.
Ex: PR created with Acc Assignment Q, when we create PO with reference to PR in ME21N transaction, this account assignment data is not getting copied to PO. Where as this is no so, when we create PO in ME21 transaction.
Can you please specify any pointers for this copy control problem.
Thank you,
Regards,
Ramakrishna Mangena

hi,
please check for the following points:
1. check in ME21N, are referncing properly or not...
You have to reference it via using the document overview ON or directly entering the PR as source document for the PO...
2. check whether is getting properly saved in the table EBAN/EBKN...check it in SE16...you can check as per the document number...
3. If nothing is helping you from the above two points check with the ABAP and BASIS consultant...
Regards
Priyanka.P

Similar Messages

  • Access Account assignment data inside custom search help

    Hi Experts,
    I have faced with a challenge and I am stuck. Need some expert advise.  I am developing a custom search help for GL account. Inside the search help exit I have to know what is the account assignment category of the accounting line i am currently accessing in WEB UI. for example i have one item in SC and there is a cost distribution between cost center and WBS element. Now i want to access GL account search help from second line in the account assignment ( ie from line having WBS as Acc Assignment).
    one approach that i can think of is Enhance Accounting WD component and capture the details in a static attribute of a custom class and access them inside the search help exit. I know this will work. But i am looking for more clean approach.
    I saw below code in WD comp method GET_BO_INFO of component controller.
    lo_task_container = /sapsrm/cl_ch_wd_taskcont_fact=>get_task_container_instance( ).
       CHECK lo_task_container IS BOUND.
    * Get the BO type
       ev_bo_type = lo_task_container->get_bo_type( ).
    * Get the BO mapper, BO GUID, and item GUID of the lead selection
       CASE ev_bo_type.
         WHEN /sapsrm/if_pdo_obj_types_c=>gc_pdo_shop.
           lo_bom_sc ?= lo_task_container->get_bom_sc( ).
           ev_hdr_guid = lo_bom_sc->/sapsrm/if_cll_bo_mapper~get_bo_guid( ).
           ev_item_guid = lo_bom_sc->/sapsrm/if_cll_bo_mapper~items_get_lead_selection( ).
    I am not sure if this works. But even if this works I can not get the exact accounting line that the user is currently processing. Any ideas????
    thanks
    sankar.

    Hi,
    Any Ideas?

  • Couldn't copy large amount of data from enterprise DB to Oracle 10g

    Hi,
    I am using i-batis to copy data from enterprise DB to oracle and viceversa.
    The datatype of a field on EDB is 'text' and the datatype on oracle is 'SYS.XMLTYPE'
    i am binding these to a java string property in a POJO to bind values.
    I could successfully copy limited amount of data from EDB to oracle but if there is more data, i am getting the following exceptions with different oracle drivers ( but i could read large amount of data from EDB):
    --- Cause: java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
    at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeUpdate(MappedStatement.java:107)
    at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.update(SqlMapExecutorDelegate.java:457)
    at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.update(SqlMapSessionImpl.java:90)
    at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.update(SqlMapClientImpl.java:66)
    at com.aqa.pojos.OstBtlData.updateOracleFromEdbBtlWebservice(OstBtlData.java:282)
    at com.aqa.pojos.OstBtlData.searchEdbAndUpdateOracleBtlWebservice(OstBtlData.java:258)
    com.ibatis.common.jdbc.exception.NestedSQLException:
    --- The error occurred in com/aqa/sqlmaps/SQLMaps_OSTBTL_Oracle.xml.
    --- The error occurred while applying a parameter map.
    --- Check the updateOracleFromEDB-InlineParameterMap.
    --- Check the parameter mapping for the 'btlxml' property.
    --- Cause: java.sql.SQLException: setString can only process strings of less than 32766 chararacters
    at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeUpdate(MappedStatement.java:107)
    at com.iba
    I have latest oracle 10g jdbc drivers.
    remember, i could copy any amount of data from oracle to EDB but not otherway around.
    PLease let me know if you have come across this issue, any recommendation is very much appreciated.
    Thanks,
    CK.

    Hi,
    I finally remembered how I solved this issue previously.
    The jdbc driver isn't able to directly call the insert with a column xml_type. The solution I was using was to build a wrapper function in plSQL.
    Here it is (for insert but I suppose tha update will be the same)
    create or replace procedure insertXML(file_no_in in number, program_no_in in varchar2, ost_XML_in in clob, btl_XML_in in clob) is
    begin
    insert into AQAOST_FILES (file_no,program_no,ost_xml,btl_xml) values(file_no_in, program_no_in, xmltype(ost_XML_in), xmltype(btl_XML_in));
    end insertXML;
    here is the sqlmap file I used
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE sqlMap
    PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN"
    "http://ibatis.apache.org/dtd/sql-map-2.dtd">
    <sqlMap>
         <typeAlias alias="AqAost" type="com.sg2net.jdbc.AqAost" />
         <insert id="insert" parameterClass="AqAost">
              begin
                   insertxml(#fileNo#,#programNo#,#ostXML:CLOB#,#bltXML:CLOB#);
              end;
         </insert>
    </sqlMap>
    an here is a simple program
    package com.sg2net.jdbc;
    import java.io.IOException;
    import java.io.Reader;
    import java.io.StringWriter;
    import java.sql.Connection;
    import oracle.jdbc.pool.OracleDataSource;
    import com.ibatis.common.resources.Resources;
    import com.ibatis.sqlmap.client.SqlMapClient;
    import com.ibatis.sqlmap.client.SqlMapClientBuilder;
    public class TestInsertXMLType {
         * @param args
         public static void main(String[] args) throws Exception {
              // TODO Auto-generated method stub
              String resource="sql-map-config-xmlt.xml";
              Reader reader= Resources.getResourceAsReader(resource);
              SqlMapClient sqlMap = SqlMapClientBuilder.buildSqlMapClient(reader);
              OracleDataSource dataSource= new OracleDataSource();
              dataSource.setUser("test");
              dataSource.setPassword("test");
              dataSource.setURL("jdbc:oracle:thin:@localhost:1521:orcl");
              Connection connection=dataSource.getConnection();
              sqlMap.setUserConnection(connection);
              AqAost aqAost= new AqAost();
              aqAost.setFileNo(3);
              aqAost.setProgramNo("prg");
              Reader ostXMLReader= Resources.getResourceAsReader("ostXML.xml");
              Reader bltXMLReader= Resources.getResourceAsReader("bstXML.xml");
              aqAost.setOstXML(readerToString(ostXMLReader));
              aqAost.setBltXML(readerToString(bltXMLReader));
              sqlMap.insert("insert", aqAost);
              connection.commit();
         public static String readerToString(Reader reader) {
              StringWriter writer = new StringWriter();
              char[] buffer = new char[2048];
              int charsRead = 0;
              try {
                   while ((charsRead = reader.read(buffer)) > 0) {
                        writer.write(buffer, 0, charsRead);
              } catch (IOException ioe) {
                   throw new RuntimeException("error while converting reader to String", ioe);
              return writer.toString();
    package com.sg2net.jdbc;
    public class AqAost {
         private long fileNo;
         private String programNo;
         private String ostXML;
         private String bltXML;
         public long getFileNo() {
              return fileNo;
         public void setFileNo(long fileNo) {
              this.fileNo = fileNo;
         public String getProgramNo() {
              return programNo;
         public void setProgramNo(String programNo) {
              this.programNo = programNo;
         public String getOstXML() {
              return ostXML;
         public void setOstXML(String ostXML) {
              this.ostXML = ostXML;
         public String getBltXML() {
              return bltXML;
         public void setBltXML(String bltXML) {
              this.bltXML = bltXML;
    I tested the insert and it works correctly
    ciao,
    Giovanni

  • Reporting on Operation Level costing / Operational Account assignment data

    Hi folks,
    Please can anyone here with experience in dealing with extracting Operation Level costing (OLC) / Operational Account assignment (OAA) data for Maintenance Orders share their experience.
    We have done some basic checking around this and Account assignment at activity level has been enabled.  Been trying to use 0PM_OM_OPA_2 extractor to get this Operational Account assignment data but no luck.
    Perhaps PM Consultants familiar with OLC/OAA solution can help answer this. What are the tables to look at for getting to this Operational Account assignment data?
    Any clues will be appreciated.Thanks for your help!

    Ravi,
    transactions IW40N and IW49N.
    Adilson

  • System is not checking Account assignment data in shopping cart

    Dear Experts,
    We are implementing SRM7 with SP06. We are using extened classic scenario. Recently we have noticed that system is not validating account assignment data at shopping cart level and creating purchase order in SRM, however at the time of PO transmission to backend system it is failing.
    Does any one has faced this issue?If yes help me how to resolve this issue.
    Thanks in advance.
    Umakanth

    Hello Umakanth,
    Could you check if in your settings for Define backend system customizing ( BBP_BACKEND_DEST table), option "realtime backend validation of FI data" is set or not ?
    Regards.
    Laurent.

  • Does my devices that are on my apple account use data from apple phone

    Will all devices on my apple account use data from my apple phone Grimm at&t.  Snapchat or face time

    Are you referring to cellular data? Is your iPad wifi + cellular? Your iPad cellular is separate from your iPhone cellular account.
    Facetime on an iPad only works on wifi.
    Can you explain your concern?
     Cheers, Tom

  • Push data from sap business one to ECC with XI

    Hi,gurus:
    Have you ever configured the scenario?We wanna push data from sap business one to ECC with XI,and vice versa.
    We know that b1i have this funtion,but in our scenario,we need to create some addon table both in b1 and ecc,so does it mean that I can't use b1i in my special scenario?
    We wanna utilize XI to solve our issue,then the scenario may be abapproxy to soap,or soap to abapproxy.But the problem is, how to program in the b1 side both in sender and receiver.Do you have any information about that?

    Xinjiang,
    The method to connect SAP Business One and ECC 6 using XI would be B1iSN2007.  You could of course develop something your self using ABAP, IDoc and the Business One SDK, but B1i does this today and has 6 built in Business Scenarios.  You can of course customize the existing scenarios and/or create your own much easier and faster than creating the whole thing from scratch.
    If you are specifically interested in not using B1i ... you would want to post your question in the XI forum here on SDN.
    Hope that helps,
    Eddy

  • How to copy documents for InfoProvider data from one cube to another cube

    Hello Everyone,
    We are using standard document feature to store document/comment about the data shown in the report/planning query. Relevant characteristics have the property 'characteristics is document attrib' turned on/selected for this purpose.
    Looks like the documents created gets tagged to a particular InfoProvider along with characteristic value assignment.
    Is there a way to move or copy documents from one InfoProvider to another InfoProvider.
    As per the design requirement, we need to move data from a real time InfoProvider (transaction cube) to a basic reporting cube. The data in the first/source cube stays for a period of approx 3 months before moved to other cube. We want the documents associated with InfoProvider data also to be moved, so that users can continue to see the document/comments what they  had created earlier.  
    I looked at the Documents tab in DataWarehouse workbench. No options seem to be available to copy or move documents.
    Any help will be highly appreciated and points will be rewarded accordingly!
    Best regards,
    Sanjeeb

    Hi
    Have you got any answer to this? I would also be interested in a copy function but more from one query ID to another.
    Kind regards,
    Daniel Müller

  • Copying large amount of data from one table to another getting slower

    I have a process that copies data from one table (big_tbl) into a very big archive table (vb_archive_tbl - 30 mil recs - partitioned table). If there are less than 1 million records in the big_tbl the copy to the vb_archive_table is fast (-10 min), but more importantly - it's consistant. However, if the number of records is greater than 1 million records in the big_tbl copying the data into the vb_archive_tbl is very slow (+30 min - 4 hours), and very inconsistant. Every few days the time it takes to copy the same amount of data grows signicantly.
    Here's an example of the code I'm using, which uses BULK COLLECT and FORALL INSERST to copy the data.
    I occasionally change 'LIMIT 5000' to see performance differences.
    DECLARE
    TYPE t_rec_type IS RECORD (fact_id NUMBER(12,0),
    store_id VARCHAR2(10),
    product_id VARCHAR2(20));
    TYPE CFF_TYPE IS TABLE OF t_rec_type
    INDEX BY BINARY_INTEGER;
    T_CFF CFF_TYPE;
    CURSOR c_cff IS SELECT *
    FROM big_tbl;
    BEGIN
    OPEN c_cff;
    LOOP
    FETCH c_cff BULK COLLECT INTO T_CFF LIMIT 5000;
    FORALL i IN T_CFF.first..T_CFF.last
    INSERT INTO vb_archive_tbl
    VALUES T_CFF(i);
    COMMIT;
    EXIT WHEN c_cff%NOTFOUND;
    END LOOP;
    CLOSE c_cff;
    END;
    Thanks you very much for any advice
    Edited by: reid on Sep 11, 2008 5:23 PM

    Assuming that there is nothing else in the code that forces you to use PL/SQL for processing, I'll second Tubby's comment that this would be better done in SQL. Depending on the logic and partitioning approach for the archive table, you may be better off doing a direct-path load into a staging table and then doing a partition exchange to load the staging table into the partitioned table. Ideally, you could just move big_tbl into the vb_archive_tbl with a single partition exchange operation.
    That said, if there is a need for PL/SQL, have you traced the session to see what is causing the slowness? Is the query plan different? If the number of rows in the table is really a trigger, I would tend to suspect that the number of rows is causing the optimizer to choose a different plan (with your sample code, the plan is obvious, but perhaps you omitted some where clauses to simplify things down) which may be rather poor.
    Justin

  • How to remove a PO with account assignment K from MD04

    Hi guys
    I have create a Purchase Order in ME21N with account assignment K and removed the Goods receipt mark in delivery tab.
    Will this PO be removed from MD04 and when?

    Hi
    My requirement is the following: My company have some suppliers which holds inventory for us. My company controlled that with contracts in SAP.
    Som parts of this inventory must be scrapped if demand changes. Therefore we need to create a PO, where my compagny buy the materiels. We will never use these materials so the supplier can just scappe them at his site and there we unmark the Goods receipt mark and use account asignment K.
    But the buyer will see the PO in MD04 and this create confusion, so I would like to be able to remove this from MD04.
    Thanks!
    Sune

  • Copying database objects and data from one server database to another server database in AG group

    Hi,
    I am still trying to wrap my head around sql clusters and AGs and I have a project that requires I take a vendor's database and restore it weekly so its available on the production server which is clustered.
    The vendor's database on the cluster is in an AG group and encrypted.
    Right now, I plan to restore the database on a sql staging server and use the SSIS Transfer SQL Server Objects Task to copy the table structure and data from Stage to the Production database of same name and I would first drop the objects in production
    database using the same task.
    I am concerned that this might cause issues with the passive cluster due to "logging" from active to passive. The database is about 260 MBs and I am not sure how many tables.
    Has anyone run into this type of scenario before or have a better solution?
    Thanks
    Sue

    IF I understand anything about clustered sql and logging, the sql server should take the log file and recreate the same scenario on the passive side of the cluster.
    Is that correct?
    Hi Sue,
    Yes, for AlwaysOn Availability Group, the transaction log is basically replayed from the primary to all of the secondary's.
    Besides, from my point of view, as we cannot directly restore a database that is part of an Availability Group, it is a good way using SSIS task to drop and recreate all tables then transfer data from the restored database to the primary replica. Schema changes
    and data changes will also happen on the secondary  replica.
    There are some similar links for your reference.
    http://dba.stackexchange.com/questions/21404/do-schema-changes-break-sql-server-2012-alwayson-or-are-they-handled-transpare
    http://blogs.msdn.com/b/sqlgardner/archive/2012/08/28/sql-2012-alwayson-and-backups-part-3-restore.aspx
    Thanks,
    Lydia Zhang
    If you have any feedback on our support, please click
    here.
    Lydia Zhang
    TechNet Community Support

  • Copying large amount of data from one table to another

    We have a requirement to copy data from a staging area (consists of several tables) to the actual tables. The copy operation needs to
    1) delete the old values from the actual tables
    2) copy data from staging area to actual tables
    3) commit only after all rows in the staging area are copied successfully. Otherwise, it should rollback.
    Is it possible to complete all these steps in one transaction without causing problems with the rollback segments, etc.? What are the things that I need to consider in order to make sure that we will not run into production problems?
    Also, what other best practices/alternative methods are available to accomplish what is described above.
    Thanks,
    Eser

    It's certainly possible to do this in a single transaction. In fact, that would be the best practice.
    Of course, the larger your transactions are, the more rollback you need. You need to allocate sufficient rollback (undo in 9i) to handle the transaction size you're expecting.
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com

  • Account Assignment data in Shopping Cart not visible after upgrade of  R/3

    Hello,
    We are currently working with SRM 5.0 and R/3 4.6 Backend system.
    We are now upgrading our R/3 system from version 4.6C to ECC 6.0.
    When we try to create a shopping cart, the account assignment Tab is not visible.
    We checked the RFC (SRM-R/3 and R/3-SRM) and they our working fine.
    Now we think the problem is caused by a configuration setting in which one defines the Backend System. In this configuration, the system category is still set to 4.6C (for the logical System of the Backend System)
    We want to change this but in our list of system categories, the ECC 6.0 option is not present!
    Questions:
    1. Is this configuration setting the cause for our account assignment tab problem?
    2. How can one add the System Category ECC 6.0 so it will appear in the configuration setting "Specify Backend System" ?
    Anyone had experience with this? Please give us a clue.
    Thanks in advance.
    Aart

    Hello Aart,
    You can choose the ERP_2.0 option. It contains the correct structures for the new ECC 6.0 system.                                             
    You can change it and retest.
    Kind regards,
    Ricardo

  • BADI-ME52N - Getting Account Assignment Data

    Experts
        I'm Implementing BADI , ME_PROCESS_REQ_CUST~Process_Account
    Method ME_PROCESS_REQ_CUST~Process_Account
    CALL METHOD im_account_ref->get_persistent_data
        RECEIVING
          re_persistent_data = re_persistent_data1.
      CALL METHOD im_account_ref->get_data
        RECEIVING
          re_data = re_data1.
      CALL METHOD im_account_ref->get_previous_data
        RECEIVING
          re_previous_data = re_previous_data1.
    EndMethod.
    All These Data will Fetch Information About Account Assignment and some Header ITemFields.
    But Oly After Trigeering The Account Assignment Tab only it's Fetching
    I want the values to be fetched immdly after giving the transaction ME52N
    After Giving Transaction Me52N , these data shows Values are as 0. Just giving any small changes or triggering the Account Assignment tab the values are fetching.
    Any ways to solve this
    Thanks.

    METHOD if_ex_me_process_req_cust~open.
      GET PARAMETER ID 'PRO' FIELD lv_wbs."getting the WBS ELEMENT
    ENDMETHOD.
    getting the Parameter id in the
    initialize method of the badi will solve the issue

  • Account Assignment Tab From Backend

    Hi All,
    We have a process in which we get a PR generated they start from MD03 (Single MRP). After this we open the Purchase Requisition thru MD04. While the PR is opening i wrote the code in BADI 'ME_PROCESS_REQ_CUST~OPEN' and defaulted the 'Account Assignment Cat' for the item to 'C'  (this part works just fine). But the 'Account Assignment Tab' is not showing up.
    When i am adding another item in the same screen with 'Account Assignment Cat' for the item to 'C' the tab shows up. But it is not showing when i am setting the 'Account Assignment Cat' in background.
    Does any one has any idea what needs to be done? Any help is greatly appreciated.
    Thanks in advance,
    Karuna.

    Hi All,
    This has to be done on config side. Found the config solution for this. I am closing the post.
    Thanks,
    karuna.

Maybe you are looking for

  • Problem with NT4 and 120 Gb. raid partition

    Hi, My motherboard is a 694D Pro AR (MS-6321, rev 1) This has onboard Firewire (IEEE 1394) and onboard RAID (via the Promise Fastrak100 RAID controller built on the board). The Operating system is in an IBM 45 GB. disk. attach to IDE 100 controller 1

  • How can I remove an OVS extension from a context attribute?

    In our Web Dynpro application we provide a generic search mask to the user. The information about the search fields like labels, length etc. is retrieved from the backend during runtime. Also, the information if there should be a value help available

  • How to create stepper motor signal (myRIO)?

    Hi there, I'm fairly new to LabVIEW, and I'm trying to run a small stepper motor with ULN2003 based driver board (one of these) with a myRIO. I have gone through a few examples in the project guide to get a feel for things, but I can't figure out how

  • IPod Classic Issues

    I have the 160GB iPod classic, when listening to music it freezes or will skip songs.. Or play only a limited amount of the song before changing to another.. What can I do?

  • Sql user login permission

    Hi all, i have one database i want to implement secure login for sql having some right.. 1.user can not update data in object explorer.(like on table -> edit 200 rows option. 2.But he can update data using query. for achevie this what role and right