Can we create a field for Variance?

Hi Experts,
My client wants to see the following in SAP Business one 2007A PL:08
1 - A variance column that will calculate the difference between the A/P Invoice Price and the PO price. This could be a dolar amount or a %. How do I do this? Can I define an UDF for this?
2 - A flag at AP invoice stage where it will alert saying that the A/P invoice price is different than PO price. How do I create alerts?
3 - Lock certain fields in the header information of Item Master Data, Business Partner Master Data etc. How do Lock a specific field. Users are changing too much of information randomly.
Thanks

Hi Arun,
Try this
SELECT distinct T0.[CardCode], T0.[CardName],
T4.[ItemCode], T4.[Dscription],
T5.[DocNum] [PO#], T4.[Price] [PO Price],
T3.[DocNum] [GRPO#], T2.[Price] [GRPO Price],
T0.[DocNum] [AP Inv#], T1.[Price] [AP Inv Price]
FROM OPCH T0 
INNER JOIN PCH1 T1 ON T0.DocEntry = T1.DocEntry
inner join PDN1 T2 on T2.DocEntry = T1.BaseEntry and T2.LineNum = T1.BaseLine and T1.BaseType = '20'
INNER JOIN OPDN T3 ON T2.DocEntry = T3.DocEntry
inner join POR1 T4 on T4.DocEntry = T2.BaseEntry and T4.LineNum = T2.BaseLine and T2.BaseType = '22'
INNER JOIN OPOR T5 ON T4.DocEntry = T5.DocEntry
For Browse
Regards,
Bala

Similar Messages

  • How Can we create parameter field for BP Group on Crystal Report

    Hi,
    I have something wrong:
    I want to create parameter field on Crystal report to select multiple cardcode group, I use for that :
    @Select * from ocrg
    but when I execute the report the fiel don't give any thing to choice BP Group, it is a null fiel ?
    Any Idea how can I do this otherwis
    Ps: I want to precise group to display it.
    Thanks in advance
    Cdt
    Malika

    Hi Malika.....
    Try this simple query report in Crystal with Parameter as CardGroup....
    Select T0.CardCode, T0.CardName From OCRD T0
    Where T0.GroupCode='{?GroupCode@Select * from OCRG}'
    Take above query in command window.
    GroupCode@Select * from OCRG
    Take above condition in parameter window and then try to run in SAP.
    You can see how CFL gets generated and you get values of CardGroup......
    The above is only example.......
    Regards,
    Rahul

  • How can I create a form for users wherein the text field will expand to accommodate additional text?

    How can I create a form for users wherein the text field will expand to accommodate additional text?

    You need to use LiveCycle (PC Only) to create a dynamic form like that.
    The best you can do with Acrobat to view all of the text in a field is to set the field to multiline, and set the size to "Auto" (If you don't set the size to 'Auto', you can enter as much text as you wish, but the user will need to use the scrollbar to view all of the text.)

  • Can we create serach help for a selection screen field

    Can we create serach help for a selection screen field with out creating searchhelp object.
    I mean is it possible to create serchelp in the program itself with some specific values i want to give.
    E.g say we can define any internal table and fill it with values and using that into selection screen fields
    Regards
    Mave

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR paymeth.
      PERFORM PAYMENT_HELP.
    FORM PAYMENT_HELP.
      DATA: begin of DESCR_TAB occurs 0,
            DESCR LIKE BKPF-BKTXT,
            END OF DESCR_TAB.
      DATA: gd_repid like sy-repid.
      gd_repid = sy-repid.
      DESCR_TAB-DESCR = 'aaaaa'.
      append DESCR_TAB.
      DESCR_TAB-DESCR = 'bbbbb'.
      append DESCR_TAB.
      DESCR_TAB-DESCR = 'ccccc'.
      append DESCR_TAB.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield    = 'DESCR'
                DYNPPROG    = gd_repid
                DYNPNR      = '1000'
                DYNPROFIELD = 'paymeth'
                VALUE_ORG   = 'S'
                DISPLAY     = ' '
           TABLES
                value_tab   = DESCR_TAB.
    endform.
    Svetlin

  • Can we create secondary index for a cluster table

    hi
    can we create secondary index for a cluster table

    Jyothsna,
    There seems to be some kind of misunderstanding here. You <i>cannot</i> create a secondary index on a cluster table. A cluster table does not exist as a separate physical table in the database; it is part of a "physical cluster". In the case of BSEG for instance, the physical cluster is RFBLG. The only fields of the cluster table that also exist as fields of the physical cluster are the leading fields of the primary key. Taking again BSEG as the example, the primary key includes the fields MANDT, BUKRS, BELNR, GJAHR, BUZEI. If you look at the structure of the RFBLG table, you will see that it has primary key fields MANDT, BUKRS, BELNR, GJAHR, PAGENO. The first four fields are those that all cluster tables inside BSEG have in common. The fifth field, PAGENO, is a "technical" field giving the sequence number of the current record in the series of cluster records sharing the same primary key.
    All the "functional" fields of the cluster table (for BSEG this is field BUZEI and everything beyond that) exist only inside a raw binary object. The database does not know about these fields, it only sees the raw object (the field VARDATA of the physical cluster). Since the field does not exist in the database, it is impossible to create a secondary index on it. If you try to create a secondary index on a cluster table in transaction SE11, you will therefore rightly get the error "Index maintenance only possible for transparent tables".
    Theoretically you could get around this by converting the cluster table to a transparent table. You can do this in the SAP dictionary. However, in practice this is almost never a good solution. The table becomes much larger (clusters are compressed) and you lose the advantage that related records are stored close to each other (the main reason for having cluster tables in the first place). Apart from the performance and disk space hit, converting a big cluster table like BSEG to transparent would take extremely long.
    In cases where "indexing" of fields of a cluster table is worthwhile, SAP has constructed "indexing tables" around the cluster. For example, around BSEG there are transparent tables like BSIS, BSAS, etc. Other clusters normally do not have this, but that simply means there is no reason for having it. I have worked with the SAP dictionary for over 12 years and I have never met a single case where it was necessary to convert a cluster to transparent.
    If you try to select on specific values of a non-transparent field in a cluster without also specifying selections for the primary key, then the database will have to do a serial read of the whole physical cluster (and the ABAP DB interface will have to decompress every single record to extract the fields). The performance of that is monstrous -- maybe that was the reason of your question. However, the solution then is (in the case of BSEG) to query via one of the index tables (where you are free to create secondary indexes since those tables are transparent).
    Hope this clarifies things,
    Mark

  • I have multiple devices (imacs, lap tops and ipads) all connected to a NAS server.  Can I create a user for myself and one for my wife, and each have our own apple ID, and Itunes accounts, but all share the same media on NAS drives?

    I have multiple devices (iMacs, Lap tops, Ipads) all connected to a Nas Drive.  Can I create a user for myself and one for my wife and we each have our own apple ID's, Itunes etc, but share the same data on the hard drives?  So when she logs in, and sync's her ipads, they will sync with her stuff and when I do the same under my user account, on the same device, my ipads will sync with my stuff?

    You can share the same Apple ID for purchasng form the iTunes and app stores without any problems, but you should all used separate iCloud accounts with separate Apple IDs.  (You are not required to use the same ID for iCloud and other services as you do for the iTunes store.)  This will prevent you from ending up with merged data.  You should also use separate Apple IDs for iMessage and FaceTime or you will end up getting each other's text messages and FaceTime calls.
    This article may be of interest: http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/, as well as this video: http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l.

  • How can I create a URL for a PWA for MS Project Server 2010 project file that includes the view?

    Hi, this question has been answered for 2013. The answer here suggests that it can be done in  2010.
    See:
    http://social.technet.microsoft.com/Forums/projectserver/en-US/3affdc4f-36bf-4381-8b75-27c73465efd4/action?threadDisplayName=how-can-i-create-a-url-for-a-pwa-for-ms-project-server-2013-project-file-that-includes-the-view
    Who knows how?
    Regards
    Sander

    Hi Sander,
    As far as I tested it, it is not possible either with PS2010. The URL only contains the PDP name and the projUID.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • How can i create a Trash for external USB Drives ?

    Hello,
    how can i create a Trash for external USB Drives or my TimeCapsule ?
    Thanks.

    You do not need to create trash cans for individual drives.  The trash can on the desktop holds deleted files from all mounted drives.
    TimeCapsule manages its own space.  If it fills up it will delete older backps to make space for newer ones.

  • Can we create two POs for the same 3rd party Sales Order?

    Hi MM experts,
    Issue: Can we create two POs for the same 3rd party Sales Order
    In Third party purchase process, first sales order created with a spl. item category  and it creates the PR automatically with the Sales order material and Qty and this PR converted PO.
    They got a pur.req. for sale order on same item for same delevery date. They did not get any warning msg. saying that a PO was prviously placed against this sale order.
    How it is possible that we were able to place another PO? concern is that second PO was palced against SO which was already used & completed. they were able to place 2 POs for the same customer same delevery date. How it is possible?
    If anyone face the same issue, please let me know if you have any answer to this questions.
    Thanks in advance.
    Suresh.

    Suresh,
    It is hard for me to give you a definitive answer since you have created a customized solution.
    How it is possible that we were able to place another PO? concern is that second PO was palced against SO which was already used & completed. they were able to place 2 POs for the same customer same delevery date. How it is possible?
    Normally, the system will not do this.  A third party PR or PO will be 'account assigned' to the Sales order.  SAP standard 3rd party will not create additional purchase reqs unless there has been manual intervention.  Try searching for changes in the Sales order and changes in the original purchase order.  They may give you a clue.
    I believe the normal Item category for third party SO is TAS (I am working from memory here, I am not in front of a system).  I don't know what ZTAG does.  I confess I am not an SD expert.  You might also want to post your question in an SD forum.
    You mention two custom applications, ZMMPLAN and ZSTPMP.  These somehow have functionality that is used to help you convert your PRs to POs.  If I were in your position, I believe I would also look at these applications for clues to how they might be contributing to your problem.  And please don't send me details about these apps.  I will not comment on custom code in this forum.
    Sorry I can't be of more help.
    Rgds,
    DB49

  • Can v create graphical display for the report

    Hi to everyone
    my q is this can v create trend lines for a report ........
    if the ans is yes then pl mention the way of doing it .......

    when you run a bex report on the left top you have a button "graph". If you click this, you get a basic chart representing your output table. when you right-click on the chart you get the option menu as you get in xls, meaning you can change the type of chart (line, bar, pie,...) the series, the titles and so on (like regular xls)
    so the answer to your question is yes. If you want even more features you can use workbooks.
    M.

  • Can i Create Output Variable for DB Polling in BPEL 11g?

    Hi Team,
              I want to create the Output Variable for DB Polling,But when i double click on Reply Activity-->Create New Variable it is giving error message like "Can't Create output variable.The Selected operation doesn't have an Output Message".
    My Question is Can we create Output Variable for DB Polling, if Yes tell me the procedure to create the Output variable ?
    Regards,
    Kiran

    Hi Kiran,
    In these scenario generally runtime faults occurs so you can use the CatchAll activity and rethrow activity to complete the instance in error state. Also before the completion of the process if exception occurs you can rollback all the transaction.
    or
    you can use the Fault handling framework:
    Using Fault Handling in a BPEL Process - 11g Release 1 (11.1.1.7)
    Regards,
    Anshul

  • Can I create folders (albums) for my photos and move them?

    Can I create folders (albums), for my photos and then relocate said photos to specific folders?

    These links may be helpful.
    How To Create Photo Albums http://tinyurl.com/cxm4eoq
    How to Add New Albums in the Photos App on the iPad & Add Photos to the Album
    http://tinyurl.com/7qep7fs
     Cheers, Tom

  • Can we create an index for a list of itmes in a single object?

    Can we create an index for multiple values in a single object. We have an object Order that contains list of items. I like to get all orders for a specific item. I want to create an index to speed up the query. Is it possible? What are the other alternatives?
    My Order object is as follows:
    Orders
    Item List
    Shipping Address
    Example:
    Order 1
    i1, i2, i3, i4
    123 some way, city, 12345
    Order 2
    i2, i3
    333 some other way, city2, 33333
    order 3
    i2, i4, i7
    My search would be, give me all orders that has item i2. It should return Order 1, Order 2 and Order 3.
    Thanks

    Hi,
    I think that this will work ...
    ValueExtractor extractor= new ReflectionExtractor("getItemList");
    cache.addIndex(extractor, true, null);
    Set setKeys = cache.keySet(new EqualsFilter(extractor, i2));
    In this case, the Collection value extracted by the ValueExtractor is treated as a Collection of contained attributes when the index is created.

  • Can I create a network for printing & music alone ?

    I don't have DSL or any type of broadband - still using dial up.
    If I buy an Airport Express can I configure it to wirelessly print and stream music or do I need a wireless network in the background to make this work ?

    Can I create a network for printing & music alone ?
    Yes
    If you also want internet access at the same time you will need to tweak things a bit.

  • Can't  create mail account for gmail

    Can't  create mail account for gmail in my new man pro 15 retina later 2013 ME294

    I'm having trouble settinng up my @mail.com account on mac's default mailing service. When i et to tthe incoming mail server part I'm lost. I don't know what to put.

Maybe you are looking for

  • Problem with ringer after upgrading to ios 6

    I recently upgraded my iphone 4 to ios 6 and immediately the ringer on the phone will not work. I have tried a hard reboot , a restore and investigated all of the sound settings but still nothing works. The speakers work fine ,playing music etc but t

  • Can't execute a main class with jar file loaded on command line

    Hello Guys, I try to use the following command to execute a main metod from msword class. java -cp f60all.jar:jacob.jar msword and i receive: Exception in thread "main" java.lang.NoClassDefFoundError: msword If i extract the 2 jar files then i can ex

  • Help in printing labels

    Hello experts. I need your help in the concept of printing labels. Is it possible using SapScripts or Smartforms? Any help in this regard would be highly appreciated. Thanks in advance. Regards, Jani.

  • RADIUS authentication for IDS admin

    Hi, We've decided to centralize our accounts and are using ACS to authenticate admin access to switches, firewalls and to the CS-MARS by RADIUS. I'd like to extend that authentication also to the IDSMs running on our switches and to our CSS1100 boxes

  • Urgent - routine help needed

    Hi guys, I have to populate communication structure with extra records after master data look up in update routines , how do i do that, which internal table i have to modify where do i do that? Thanks points will be assigned