Comparing and picking the right value form one of the line item in a doc.

Hi Gurus,
I have requirement such that I have to show the tax jurisdiction code of only one item. That is if there are 5 line items with in a document and each one has diffeerent tax jurisdiction code, then we should be showing only one tax jurisdiction code for a document. Line items are not displayed in report. The condition to pick up tax jurisdiction code is the one which has least ending zeros.
Supppose
Doc1          Item          Tax Jurisdiction code
1800000002       1          CNQC00000000000
1800000002       2          CNQC00000000000
1800000002       3          CN0000000000000
1800000002       4          CNQC00000000000
1800000002       5          TXJOHNCLEBUR000
I have to display  the value of tax jurisdiction code corresponding to item 5  as its has least  zeros in it.
So what I am trying to do is add another custom z object tax jurisdiction code and the value for this is populated using a routine in the update rules, such that comparing all the tax jurisdiction code for all the corresponding items in a document.
Now the question is if I am reading all values of document no. line item and tax jurisdiction code into an internal table form communication structure for a data package. And in the update rule I will be writing a routine comparing the values of tax jurisdiction code from internal table and populating the desired value. Now the big question for me is if there are two line items of a document in one data package and another 3 line items of the corresponding same document in data package 2 then how can we compare the values of Tax jurisdiction code of all the 5 line items of a document.
If this can be achieved using customer exit on the front end let me know and just inputs how the abap code would be or if not do I have to write abap in updates rules. I just want to know how to compare different values of Tax Jurisdiction code and select the one with has least ending zeros. For information the tax jurisdiction code is of type character and length 15.
Any help is really appreciated.
Thanks,
Raj

Yes, it's possible. Just use a regular text item. Create an LOV using the LOV wizard. When you define the query for the LOV's record group, enter a statement that selects from the other database table. Set the return value of the appropriate LOV column to be the text item on the form. Finally, assign the LOV to that text item, so that the LOV pops up when the user presses the LOV key with the cursor in that text item. You can also set the LOV so that it automatically displays when the cursor enters the text item.
Just look up LOV in online help if you need more info.

Similar Messages

  • Which table stores the condition values of a purchase order line item?

    Hi,
    Please let me know the table that stores the condition values of purchase order line items(when we click on conditions tab after selecting an item then we can see the condition types and there is a corresponding condition value for that condition type.
    My requirement is to get the actual price for a purchase order line item(it can be seen in the last line and it is calculated after considering all the condition types) and display this value in a custom report.
    Thanks,
    Ravindra

    Hi Ravindra
    You can find the conditions data for PO in TAble KONV.
    KONV-KSCH is the condition type
    KONV-KWERT is  the cond value
    KONV-KNUMH is the condition doc no. which is there in EKKO field KNUMH.
    So u have to make a link between KONV-KNUMH and EKKO-KNUMH.
    Thanks
    Vijeta

  • Changing the dropdown values for one of the fields in CHECK STATUS query

    Hi,
    We are on SRM 7.1.
    In the CHECK STATUS transaction,in the selection screen(QUERY),there is a field called "ROLE" which has teh dropdown values of "APPROVE BY ME","REJECTED BY ME" and "GOODS/SERVICES DELIVERED TO ME".Is there any way some of these drowpdown values can be removed?
    Please advise.

    hi nmsrm1234
    i have a document for this issue.
    but i don´t find this document in internet. it is called : CUSTOMER-SPECIFIC UI ADJUSTMENTS IN SRM 7.0 WEBDYNRPO ENVIROMENT / META DATA HANDLING CONCEPT.
    if you can find it, you will get an idea to resolve this issue, if you will no have luck, please get me your mail, and i will send you the document.
    regards.

  • Which table has Batch# value as seen on PO line item ?

    Hello friends,
    The Purchase Order line item shows a field for Batch-number.  However, this field is not there in EKPO table.  So can someone tell me which table has the Batch# value (as seen on PO line item) and how it is linked to that line item's record in EKPO table ?  Thanks for your help.
    - Chetan

    Hello,
    I found one field in table EKET. (EKET-CHARG)
    BR
    Csaba

  • I purchased Macbook Pro i5 in March 2011. Now the screen has problem; one vertical blue line is in the screen (at the right side). I noticed this last week when I opened the MacBook, and now I am always seeing it. How to remove it?

    I purchased Macbook Pro i5 in March 2011. Now the screen has problem; one vertical blue line is in the screen (at the right side). I noticed this last week when I opened the macbook and now I am always seening it. I am seeing the blue vertical line always in the screen. However, I am not seeing this line when I open Word, Excel, PowerPoint files (without pictures). But I am seeing this line always when I see movies, pictures, and all the files which have pictures. Please do let me know how can I remove this vertical blue line (blue tint) pernamentally from the screen.
    Regards,
    Ujjal

    Backup your files to a external hard drive and disconnect.
    Call Apple and make a warranty call, then take it to the nearest Apple Store etc.
    You can run these things and it might clear your issue or give further informaiton
    Perform a hardware check
    http://support.apple.com/kb/ht1509
    Then see if resetting the SMC/PRAM resolve your issue
    http://support.apple.com/kb/HT3964
    https://support.apple.com/kb/HT1379

  • Calculate the total value of payments with the procedures and triggers?

    Hello!
    I work for a college project and I have a big problem because professor requires to do it by the examples he gives during the lecture. Here's an example that should be applied to its base, so please help!
    I have three table with that should work:
    Invoice (#number_of_invoices, date, comm, total_payment, number_of_customer, number_of_dispatch)
    where:
    number_of_invoices primary key (number),
    date (date),
    comm (var2),
    total_payment is UDT (din - currency in my country) - in this field should be entered value is calculated
    number_of_customer and number_of_dispatch (number) are foreign keys and they are not relevant for this example
    Invoice_items (#serial_number, #number_of_invoices, quantity, pin)
    serial_number primary key (number),
    number_of_invoices primary key (number),
    quantity (number),
    pin foreign keys (number)
    Item (#pin, name, price, tax, price_plus_tax)
    pin primary key (number),
    name (var2),
    price, tax, UDT (din) not relevant for this example
    price_plus_tax UDT (din)
    These are the triggers and procedures with my calculation should be done:
    trigger1:
    CREATE OR REPLACE TRIGGER  "trg1"
    BEFORE INSERT OR UPDATE OR DELETE ON Invoice_items
    FOR EACH ROW
    BEGIN  
         IF (INSERTING OR UPDATING)
         THEN     
              BEGIN Invoice_items.number_of_invoices := :NEW.number_of_invoices; END;
         ELSE
              BEGIN Invoice_items.number_of_invoices :=: OLD.number_of_invoices; END;  
         END IF;
    END;trigger2:
    CREATE OR REPLACE TRIGGER  "trg2"
    AFTER INSERT OR UPDATE OR DELETE ON Invoice_items
    DECLARE
    doc NUMBER := Invoice_items.number_of_invoices;
    BEGIN  
         entire_payment (doc);
    END;procedure
    CREATE OR REPLACE PROCEDURE  "entire_payment" (code_of_doc IN NUMBER) AS 
    entire NUMBER := 0;
    BEGIN 
         SELECT SUM (a.price_plus_tax * i.quantity) INTO entire
         FROM Item a join Invoice_items i on (a.pin = i.pin) 
         WHERE number_of_invoices = code_of_doc;
         UPDATE Invoice
         SET total_payment = entire
         WHERE number_of_invoices = code_of_doc;
    END;As you can see the procedure is called from the triggers, I have a problem at the first trigger, and I think it will be even higher in procedure because UDT, field "total_payment".

    I was not here a few days because I was trying to get additional information related to this problem. Professor gave me the information that I need to introduce a package and variable to get this thing work. But including that I still have problem. I hope that this time is less of a problem and that someone will be able to help me.
    I also noticed that it was not a smart idea to try to translate the names of tables and attributes. That make trouble for me, especially you who are trying to understand and to help me, and absolutely nothing that will change the attribute and the table name will be. So this time I will set out the problem with the original name again to avoid confusion.
    So, I try to base Implement optimization technique called: Repeating Single Detail with Master (so writes the slides that I received from professor, I hope that will mean something to you)
    These are the lines of code that we get on the slides and should implement in the base, again I remind you that at this time in its original form, without translation.
    - First create the package variable:
    create or replace
    package paket
    AS
    sifra number(10):=0;
    end;This part is ok and it works.
    - Secondly, it is necessary to create the first trigger:
    create or replace
    TRIGGER aktuelna_cena1
    BEFORE INSERT OR UPDATE OR DELETE ON cena_artikla
    FOR EACH ROW
    BEGIN
         IF (INSERTING OR UPDATING)
         THEN      
              BEGIN paket.sifra := :NEW.sifra_artikla; END;
         ELSE
              BEGIN paket.sifra := :OLD.sifra_artikla; END;
        END IF;
    END;This part is ok and working.
    Now the problems begin.
    - It is necessary to create another trigger that will call the procedure:
    create or replace
    TRIGGER aktuelna_cena2
    AFTER INSERT OR UPDATE OR DELETE ON cena_artikla
    DECLARE  
         s NUMBER := paket.sifra;
    BEGIN  
         aktuelnacena (s);
    END;I suppose the trigger have problem because procedure is not ok.
    I will copy error that I get from the compiler:
    Error(7,2): PL/SQL: Statement ignored
    Error(7,2): PLS-00905: object NUMBER6.AKTUELNACENA is invalid
    And finally, it is necessary to create the procedure:
    create or replace
    PROCEDURE  aktuelnacena (SifraPro IN NUMBER) AS 
    aktCena artikal.aktuelna_cena%type;
    BEGIN aktCena:=0;
                    SELECT cena INTO aktCena
                    FROM cena_artikla 
                    WHERE sifra_artikla=SifraPro and datum_od=
                                    (select max(datum_od)
                                    from cena_artikla
                                    where sifra_artikla = SifraPro and datum_od<=sysdate); 
                    UPDATE artikal
                    SET aktuelna_cena = aktCena
                    WHERE sifra_artikla = SifraPro;
    END;I will copy error that I get from the compiler:
    Error(10,57): PLS-00103: Encountered the symbol " " when expecting one of the following: ( begin case declare end exception exit for goto if loop mod null pragma raise return select update while with << continue close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe purge The symbol " " was ignored.
    Tables I work with are:
    Artikal (sifra_artikla, naziv, aktuelna_cena),
    Cena_artikla (sifra_artikla, datum_od, cena)
    You will notice that this differs from the first problem, but my task is to implement the two optimization techniques and my base. Both techniques are quite similar and I hope that I now have enough information to help me. I suppose that when this problem is solved the othet one will too!
    Thank in advance!

  • I don't know if this is the right section but I experience the following issue with Adobe Acrobat Pro XI installed on Windows 8.1. When I start Acrobat the related window opens normally but, after some scroll up and down along the document, it blocks, Acr

    I don't know if this is the right section but I experience the following issue with Adobe Acrobat Pro XI installed on Windows 8.1. When I start Acrobat the related window opens normally but, after some scroll up and down along the document, it blocks, Acrobat doesn't respond to any command I can give and, in place of the pointer arrow, a vertical bar, as the one of the text editor appears. The only way I can stop Acrobat is by means of the task manager. I tried to de-install and the re- install Acrobat but the behaviour is always the same. What can I do??

    Have you opened Acrobat and gone to Help>Updates to get an updated install?

  • To replace values of one of the field in the database table

    How to replace values of one of the field in the database table with a new values? Pls help to solve

    Hi
    You can use the UPDATE command to update one of the field value in a table
    see the UPDATE syntax and use it
    but in real time you should not do like this
    Regards
    Anji

  • In flex, How to set a value to one parameter, the parameter defined in a cffunction in a cfc file

    In flex, How to set a value to one parameter, the parameter
    defined in a cffunction in a cfc file, In the cffunction there are
    much cfargument, I want set a value to one of them, such as the
    cfc:
    <cffunction access="remote" name="myShow" output="false"
    returntype="struct">
    <cfargument name="ID" type="numeric" default=0>
    <cfargument name="GoodsID" type="string" default="">
    <cfargument name="DestTime" type="string" default="">
    <cfargument name="DestCount" type="numeric" default=1>
    How I set a value to only parameter one of them , such as set
    GoodsID when use mx:remoteObject.
    Thanks for your help

    Got maybe a solution for you, I have just tested it.
    So, the idea is to use intermediate variables. Imagine Var1 and Var2 variables that you refresh with your more or less complicated queries. Then what you can do is to refresh your final variable Var3 with a query using your intermediate variables. Here is an example for Oracle:
    select #Var1+#Var2 from dual
    This way you can make a chain of dependent variables: Var3 is using Var2 and Var2 is using Var1.
    Hope it helps.
    Shamil

  • Hii i m frm BGD. I m using iphone 5. My carrier BGD ROBI AXIATA. When it was ios 6 it works better . But i recently upgrade to ios 7 and i facing the little problem. One of the ussd call. Plz help or suggest ir doing better about itz as soon as possible.

    Hii i m frm BGD. I m using iphone 5. My carrier BGD ROBI AXIATA. When it was ios 6 it works better . But i recently upgrade to ios 7 and i facing the little problem. One of the ussd call. Plz help or suggest ir doing better about itz as soon as possible.

    I'm not trying to minimize your issues, but I have an iPhone 5S and find that I have not had these types of problems on AT&T. I'm wonding if something has gotten stuck in a loop that is continually trying to use data. If you make a good backup of your phone, try restoring it as new, and do not add anything to the phone right away. Let the device run like this for a little while and see what kind of usage you have. You report you phone is showing usage of 21GB. Did you rese this setting on the phone to begin at your billing period? The reason I ask this is some people believe this setting resets on its own with your billing period, it does not. This has to be manually reset by the user, so it might not be that accurate depending on the last time that you reset it.
    If the phone seems to not use so much extra data during the period the device does not have extra apps on it, then try restoring from your backup and see what happens. If this increases your data usage quite fast again, then there is probably something corrupt in the backup that is causing this issue.

  • Deploying VIs to the RT causes the value in the Physical Channels of one of the VIs to change to an incorrect value. Why?

    Hi all.  I've been registered to the forum for a couple of years, but this my first post.  I'll try to give as much info as I can.
    NIPXIe-1082 chassis
    slot 1: PXIe-8133 Embedded Controller
    slot 2-3: PXIe-6363 X-Series Multifunction DAQ
    slot 4: TB-4353 32-Ch. Thermocouple
    slot 5: PXI-4496 Analog Inputs 16-ch
    (The second 6363 in slot 3 is a recent addition causing the others to move to higher slot numbers.)
    Windows 7
    LabVIEW 2011
    This code is still being developed to run a test stand, but its based on code from a previous test stand that is being modified for the new one.  There are three VIs that are opened and then deployed to the RT.  On the Front Panel of one of the VIs is a DAQmx Physical Channel control.  The control points to slot 5, but when I deploy the VIs, the control changes to point to slot 3.  None of the three VIs have been run yet.  I can manually "Reinitialize to Default Value" to get the control to point to slot 5 again, but I shouldn't have to.
    I realize that there is a lot I still don't know about NI hardware and LabVIEW.  This just seems like it should be a really simple solution and I'll probably have one of those DUH moments when I get told the answer.  I'll try to answer whatever questions for more information that I can.  Thanks in advance.
    -Psiber_Space

    Yes, it is defaulted to slot 5.  After it changes I can Reinitialize to Default to bring it back.
    Two things that I've tried during the week.  I've deleted the Physical Channel and then recreated it, but it continued to change upon deployment.  Then I simply disconnected the Physical Channel, moved it to an out-of-the-way location on the Block Diagram and then created a new Physical Channel.  The old Physical Channel is still changing upon deployment, but the new one stays intact.  It seems that as long as the old one isn't deleted, this workaround should work.  Except that the problem now seems to be spreading to the other controls on the same VI.
    Just today I upgraded from 2011 to 2011 SP1, but the problem is still there.  After the upgrade, I tried recreating the LabVIEW project from scratch, but that didn't seem to work either.
    I'm going to try contacting NI directly, but if anyone else has any ideas, feel free to continue posting.

  • TS1646 hello  I have problem with regist my visa and I cannot buy from store the message came in the end of form is says the phone number must be a 7-digit number and I have writed but not accepted iam from saudi arabia my mobile is 966504850992 pls answe

    hello 
    I have problem with regist my visa and I cannot buy from store
    the message came in the end of form is says
    the phone number must be a 7-digit number
    and I have writed but not accepted
    iam from saudi arabia
    my mobile is 966504850992
    pls answer
    thanks
    dfr aldossary

    Wow, Karan Taneja, you've just embarrassed yourself on a worldwide support forum.  Not only is your post ridiculous and completely inappropriate for a technical support forum, but it also shows your ignorance as to whom you think the audience is.  Apple is not here.  It's users, like you. 
    If you would have spent half the time actually reading the Terms of Use of this forum that YOU agreed to by signing up to post, as you did composing that usesless, inappropriate post, you (and the rest of us on this forum) would have been much better off.

  • For some reason , when i restore my iphone 4s to factory settings my headphones work when listening to music or youtube videos but when i backup my information onto it , it only comes out of one ear bud and i just got a new one from the apple store.

    for some reason , when i restore my iphone 4s to factory settings my headphones work when listening to music or youtube videos but when i backup my information onto it , it only comes out of one ear bud and i just got a new one from the apple store. my old iphone 4s audio jack was messed up but i just got a new one with my warranty , can anyone help me please.

    It doesn't matter what it is in your backup that's causing the problem because you can not selectively restore things from your backup. It's all or nothing.
    Set you phone up as a new device and start over.

  • I just bought a new desktop and will be taking my old one to the apple store tomorrow to have the data transferred. Does the transfer include the transfer of programs or just data?

    I just bought a new desktop and will be taking my old one to the apple store tomorrow to have the data transferred. Does the transfer include the transfer of programs or just data?

    They will simply use Migration Assistant to transfer your Home folder, third-party applications and support files, and system preferences. This is something you could do yourself. You would need a Firewire cable to connect between your old computer and your new one. Migration Assistant is installed in the Utilities folder of your new computer.
    See Transferring files between two computers using FireWire and How to use Migration Assistant to transfer files from another Mac.

  • IPhoto is appearing as free on MAC store and it is also featured as one of the top 10 free apps, when i downloaded it, my credit card got charged for 790 rupees. I am using the latest OSX Maverick

    iPhoto is appearing as free on MAC store and it is also featured as one of the top 10 free apps, when i downloaded it, my credit card got charged for 790 rupees. I am using the latest OSX Maverick.

    And yet to download the app you clicked on a button that told you that the app would be 790 rupees for you.
    The iLife apps and the iWork apps are only free when you qualify to get them free. And when you get them free the buy button to download them says free. When the buy button has a price on it, that is how much you will pay for the app.

Maybe you are looking for

  • Imac white screen in lion... help

    Hello Yesterday, I switched off My imac when it being in sleep mode. Next morning, when I switch on, my computer stop turning on, on white screen!!! Nothing helps. I unplug everything from it, and it the same history. After couple of hours, I format

  • I can't get waves, Slate Digital or UAD plugins to work/show as 64 bit plugs

    I can't get waves, Slate Digital or UAD plugins to work/show as 64 bit plugs

  • Outbound delivery printout issue.

    Hi all, Onreleasing an outbound delivery, Output form should be sent to Print Queues, without any manual intervention. it will Possible in system? Regards RK

  • CS5 12.0.4 update failure

    I downloaded the new 12.0.4 update. It installed ok on the 32bit version but not on the 64bit version. If I run the 32b and look at About, it says 12.0.4. If I run the 64b and look at About, it says 12.0. I've looked through the install logs for the

  • Strategy to make a mutable class immutable

    Hi, i posted this topic in the wrong forum: http://forum.java.sun.com/thread.jspa?threadID=5129395&messageID=9463016#9463016 Could you help me? (I mentioned it already to the moderator)