How to migrate Tax lines in Data Migration for Partial Shipped Qty?

Hi,
We are migrating 11.0.3 Orders to R12 and there are some Sales Orders which are in Partial Shipped status. In this scenario, we are bringing two lines where one line is completely closed and other line is awaiting shipment.
My question is, how to manage the Taxation for this type of lines?
For e.g. If original line is of 10 qty, 4 qty is already shipped. So we are bringing this line as Closed. For 6 qty, we are bringing line in Awaiting Shipment status. How to derive at the correct tax amount for this type of line?
Client is storing Tax amount in 11.0.3 at Header level.
With Regards,
Vishal

>
Through the TopLink code API, you can set an
Expression as the additionalJoinExpresssion for a
descriptor, this "filter" will be applied to all
queries for this class.
i.e.
ExpressionBuilder builder = new ExpressionBuilder();
descriptor.getQueryManager().setAdditionalJoinExpressi
on(builder.get("region").equal("AU"));The problem with this solution is that the parameter ("AU") is hard-coded in the mappings. Hibernate filters can use session-specific parameters. That allows, for instance, session A to filter on region="AU" and session B to filter on region="NZ".
To resolve this problem, I wrote a new expression class that can retrieve a parameter value from a TopLink session property:
class SessionPropertyExpression extends ParameterExpression {
public SessionPropertyExpression(String propertyName, Expression base) {
super(propertyName, base);
public Object getValue(DatabaseRow databaserow,
oracle.toplink.publicinterface.Session session) {
return session.getProperties().get(getField().getName());
The new expression class can be used in the mappings. For instance:
ExpressionBuilder builder = new ExpressionBuilder();
SessionPropertyExpression propertyExpr = new SessionPropertyExpression
("regionCode", builder);
descriptor.getQueryManager().setAdditionalJoinExpression(builder.get("region").equal(propertyExpr );
The application can set the property in the TopLink session associated with a particular request. For instance;
Session A
session.setProperty("regionCode", "AU");
Session B
session.setProperty("regionCode", "NZ");

Similar Messages

  • How can I sort lines of data (alphabetically) in the new pages 5.0?

    How can I sort lines of data (alphabetically) in the new pages 5.0?
    It was very simple to do in the previou version of pages.

    I'm not sure why people are torturing themselves with Pages 5 given the nearly universal outcry on this forum and the incredibly negative reviews elswhere, such as the App Store.
    Pages 4.3 should still be in an iWorks folder within your Applications folder.  Just use that.
    Please remember to tell Apple what we need from them at:
    http://www.apple.com/feedback/pages.html

  • How to avoid a line of data being cut by page jump ?

    Dear Java Experts,
    I have encountered a very troublesom problem!
    The problem is described as follows:
    When the browser (IE or Netscape) contains many HTML character data (especially HTML tables and data from DATABASE), how can I print the data to client's printer
    (i.e. browser's printer) without having a line of data cut by page jump?
    That is how to avoid a line of data cut by page jump, upper part of the data in one page and lower part in next!
    I think the problem should be solved with client's java applet!
    Can any expert give me sample code to solve the problem or indicate me where I can find documents about solving the problem?
    Thank you very much in advance!!
    Best Regards,
    Jackie Su

    HTML is not really meant for device-specific presentation (despite a lot of abuses in this area).
    I don't think you're going to solve this satisfactorily with HTML, no matter what you jury-rig around it.
    If this kind of presentation control is a requirement, you're probably better off with a format that directly supports this--PDF is the most obvious choice.
    There's a sourceforge project that supports PDF generation from Java (http://sourceforge.net/projects/itext/ - I don't have any experience with it) and I think there may be others.
    And I believe there are also commercial products for this.

  • How can I monitor my monthly data usage for all 3 computers in my house? I have an Airport base station and it seems there should be software to monitor it from that point rather than monitoring the usage for each computer and then adding it up.

    How can I monitor my monthly data usage for all 3 computers in my house? I have an Airport base station and it seems there should be software to monitor it from that point rather than monitoring the usage for each computer and then adding it up.

    The following example was one of dozens that showed up on a simple Google search of.....
    monitor Internet data use on a Mac
    Watch your Internet usage with NetUse Monitor | Macworld
    Most service providers have an application for their users as well.

  • How system will automatically populate clearing date field for invoices paid similar to when payments are made to the vendors

    Hi SAP Gurus,
    Could you help me on this, How system will automatically populate clearing date field for invoices paid similar to when payments are made to the vendors.
    Regards
    Mohan

    Hi Ramakrishnappa,
    If you clear the invoice against payment, then the invoice clearing date would be payment document posting date.
    Regards,
    Mukthar

  • How to aggregate a column based date column (for weekly single row)?

    How to aggregate a column based date column (for weekly single row)?

    Hi,
    Consider the below statement for daily bases which is ok
    SELECT ID, DATE, SUM(AMOUNT) FROM TABLE_NAME GROUP BY ID, DATE ORDER BY ID, DATE
    The same like the above statement, I want output on weekly, fortnightly, and monthly bases, How to do this? Need your help...

  • How to avoid the Amount and Date values for VOID Cheques

    Hi All,
    I had created a two window i.e For Amount and Date. If I process the cheque the Amount value and Date should not trigger for VOID CHEQUES.
    Can any one tel me how to avoid the Amount and Date values for VOID Cheques
    Your help will be greatly appreciated.
    Regards
    Yathish

    Hi,
    I dont know which tablel you are referring to, is it PAYR table and the field VOIDR?
    If a cheque is voided, it would have a reason and it is stored in VOIDR field of this PAYR table.
    Check if the field VOIDR is filled, if it is filled, do not print the amount and date.
    Regards
    Subramanian

  • How to Rverse PGI for partial & full qty for a line item

    Hi Guru,
    My requirement is to change the scheduled quantity of schedule lines because goods was not deleivered/partial delivered.
    This is a STO scenario. But PGI has been done in delivering plant for full qty.
    I cant use T code VL09 as it reverse the complete PGI. I want to reverse only one line item, but this PGI document has other line item as well.
    Please help me in finding the way to reverse the PGI for partial & full qty when PGI is having multiple line item.
    Regards
    sapmm

    PGI documents are of the year 2009
    Even SAP cant help you now   Just leave it as it is
    G. Lakshmipathi

  • LSMW , how the same is related to data migration,.

    HI Experts,
    please explain the concept of data migration.
    What is LSMW/ how the same is related to migration,
    what are the other types of data migrationo other than IDOC & BDOC in sap crm.
    IS there any there other tools that helps in data migration,
    if so , what are they.
    Can a functional guy be able to do the data migration in LSMW.
    thanks & regards
    Prajith P

    Hi Prajith,
    I second Venkat, but also you need to know about Data Transfer Workbench in CRM.
    Go into the IMG and follow the path: Customer Relationship Management>> CRM
    Middleware and Related Components>> Exchanging Data With External
    Components>> XIF Adapter Setup>> Inbound Direction>> Settings for the Data
    Transfer Workbench and LSMW>> SAP Data Transfer Workbench.
    Here's the help from SAP for the Data Transfer Workbench:
    http://help.sap.com/saphelp_nw70/helpdata/EN/0d/e211c5543e11d1895d0000e829fbbd/frameset.htm
    That should take you where you need to go. Good luck!
    Satish

  • How can I Read lines of data from a file starting at the end of the file??

    Can anyone help me with how to read lines of data starting from the end of a file instead of the beginning?? I do not want to load the entire file into memory as the files are very rather large. Instead I want to start at the end of the file and read lines backward , until I find the particular data item i am searching for, then stop.
    Can this be done in Java ? I know it can be done in Perl.
    Thanks.

    Thanks for your suggestion about the RandomAccessFile, I did actually thought about that approach , but wasn't sure it would work.
    I do not want to read the file in a sequential forward manner because the files contain large number of lines of data that have already been processed and therefore there is no need to reprocess these lines of data.
    The Unprocessed lines are always at the the end of the file and these are the data lines I am interesting in getting at without having to read the entire file. Therefore, i figure that if I can read the data from the end of the file then this would be much more efficient.

  • How to find tax lines with their respective items

    Hi,
    I'm trying to figure out how to attach each distribution lines type of tax to it's item parent. By scanning ap_invoice_distributions_v, couldn't link out tax lines to any item lines.
    A details scenario is the following:
    - For each invoice, the report shows its associate distributions lines.
    - When a line type is TAX, i'm trying to retrieve its associated item.
    I went through the API referenced by APXINWKB forms and its "Calculate Tax" processes to follow the background logic. But AP_TAX_CONTROL_PKG and AP_TAX_ENGINE_PKG could not be of a great help.
    Logically, a field in ap_invoice_distributions_v should tell for each tax distribution line what its item distribution line is.....
    Any advice is greatly appreciated.
    Lamine

    go to NACE,
    then select SHIPPING and select OUTPUT TYPES button from the application tool bar.
    then select  WABS-GR/GI SLIP from the right side screen and select OUTPUT TYPES FROM THE leftside menu
    now you will able to see the print program name & script name and Smartform name(if it exists)
    Program           RVADWABS        
    FORM routine      ENTRY           
    Form              RV_CONNOTE_SUPPL
    these are the details available at my system
    Regards
    srikanth

  • How to convert from line chart data to CSV format

    Hi ,
    I am using Flex 3 and AS.
    I am getting data from MS SQL and display the data as line
    chart this is ok.
    But i want to convert this line chart data to CSV or .xsl
    format.I find one example in fourms the from data grid to CSV
    For this URL is
    http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/datagriddataexporter.php
    But i want Line chart to CSV.Please help me.

    Line chart is a just a visual representation of some data
    that's sitting in your database. Isn't it? You load this in Flex,
    probably using HTTPService class, and pass it to some chart object.
    Now when use says that she needs it in CSV format, you're
    gonna have to send another request to the server to produce the
    same data, convert into CSV or XLS format and let user download it.
    Of course, if use doesn't want to download, you don't have to
    go to the server, at least for CSV format. You can convert the same
    data that used plot the chart to convert to CSV.
    Am I missing something here?
    ATTA

  • How to bring tax Lines in AP Invoices - R12 ?

    Hi All,
    I have  item and tax lines in the inbound file . I need to bring it .
    Wrokaround  :
       I can generate tax line with tax control amont in header level / populating tax classification code in Item Line . But my requirement is to bring tax line as per the inbond file.
    Appreciate if you can provide sample code /suggestion.
    Thanks,
       Arya

    First of all are you setting up your EBTax as rule based engine or you want it to behave as in 11i i.e you are using the STCC(Standard Tax Classification Code) option.
    If you are setting it up as a rule based engine the tax engine should be able to determine all the applicable taxes and apply the same. So setting up of tax groups should not be necesary.
    For the STCC case not sure...will get back....
    Regards

  • How can I find out my data usage for the past 3 months?

    Greetings all, I have been a long time Verizon customer, and as such I, along with my husband, was grandfathered into the unlimited data plan. When I last spoke to a representative, they informed me that the only way we were going to be able to keep our unlimited data was by paying the full retail price ($600+) to get a new phone. So we were considering upgrading and changing to one of the newer data plans so we could still get the discounted price on the new phone, but I would like to make sure I choose one with enough data, without paying for a bunch of data that I don't use, however MyVerizon only shows me the amount I have used since the start of the billing cycle. Is there a way to find out the data usage for both my husband and myself for the last 3 months so I can choose the right option?
    Thanks in advance for your help!

        Hello sweetpea1221! How exciting that you're considering upgrading with us. mrhelper is helpful, indeed. You can view your data usage for each line under the View Bill option via your My Verizon account. You can also view your 3 month average  data usage with our Account Analysis feature. Here's a link that will be helpful in doing so http://bit.ly/vnLjqO. I'm confident that we have a great plan to match your data needs. Please let us know if you have further questions.
    TanishaS1_VZW
    Follow us on Twitter @VZWSupport

  • Line Items Data Source for General Ledger

    Hello everybody,
    I'm trying to generate a Data Source for Line Items (new General Ledger) in transaction FAGLBW03. When I generated a Total Record-Data Source, everything was done correctly. When I try to generate a Line Item-Data Source, I receive following error message: "Extractors for general ledger documents are not yet supported". I was looking for any SAP notes that would explain this issue, but I couldn't find anything.
    Could you please tell me how can I generate Data Source for Line Items? Add some SP, use some another transaction, ...?
    Thank you for any help
    Janule

    Hi,
    Can u tell me how did u solve that problem.
    i m facing same.
    /sachinkumar.

Maybe you are looking for