AR Invoice Presentation / Invoice Lines diff than Sales Order Lines

Hi,
Due to business rules I got the following requirement, I'd like to get advice or second opinions please:
Instead of showing 200 lines we want to show 1 line in the invoice summarizing the job done.
The requirement is:
The invoice should summarize the Order Lines, meaning that we want to have different lines in the invoice than those in the orders composing the invoice. The total amounts must equal between both, the invoice and the orders lines been invoiced.
For example:
We need to create an Invoice for 2 Sales orders with 10 lines each, each line for $1 usd.
The invoice could be in any of these situations:
- Having only one line composing the 2 orders. The invoiced amount is $20.
- Having 2 lines composing the 2 orders. The invoiced amount is $20 ($10 line 1, $10 line 2)
The description on the invoice lines must be completly open.
Internaly, the link/reference between the invoice line and the order line(s) composing it must be kept.
This must work with 1 or more Sales Orders (partial or complete)
Can be done via autoinvoice or not. (The user is able to compose and reference the invoice manually)
¿Is there already something done that I can use? Just point me on one direction and I'd be happy to investigate.
I already have 1 or 2 ideas of how to achieve this without customizing at all.
Just wanted to check and get advice and second opinions on this before taking a decision.
Technical Spec:
Oracle EBS 11i (11.5.10.2)
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
Thanks in advance.
Juan Alcocer

seems to error
APP-AR-11526
ORA-28115
seems the security policy is implemented at your database leval and check which ID you are using to insert the record.Check with your DBA, for security to resolve first for ORA-28115.
Disabled in case if you have any custom triggers defined on RA_CUSTOMER_TRX_ALL.
Few Documentation for ORA-28115
ORA-28115 with EXEMPT ACCESS POLICY privilege
A user USER1 has been granted select, insert, update, delete on all
tables of an application schema (USER2) that uses row-level security.
The RLS policies cover select, insert, update, and delete, and have check option enabled. USER1 has also been granted EXEMPT ACCESS POLICY system privilege.
Each table in the USER2 schema has a trigger that causes insertion of
a row into an audit table whenever DML is performed. When USER1 performs DML on a USER2 table, the operation fails with

Similar Messages

  • Line id in sales order lines and source_line_id in wsh delivery details are entirely different

    i am trying to get serial number based on sales order line,i am getting no data since   AND WSH.SOURCE_LINE_ID = OOL.LINE_ID is failing,Please help me.Im not getting what wrong im doing
    SELECT OOH.ORDER_NUMBER
         ,OOH.FLOW_STATUS_CODE
         ,OOH.CUST_PO_NUMBER
         ,OOL.ORDERED_ITEM
         ,OOL.LINE_ID
         ,OOL.ORDERED_QUANTITY
         ,OOH.ORDER_TYPE_ID
        ,WSN.FM_SERIAL_NUMBER
    FROM SO_ORDER_TYPES_ALL SOT
         ,OE_ORDER_HEADERS_ALL OOH
         ,OE_ORDER_LINES_ALL OOL
         ,WSH_SERIAL_NUMBERS WSN
         ,WSH_DELIVERY_DETAILS WSH
    WHERE 1=1
      AND WSN.DELIVERY_DETAIL_ID = WSH.DELIVERY_DETAIL_ID
      AND WSH.SOURCE_LINE_ID = OOL.LINE_ID
      AND OOL.SOURCE_TYPE_CODE = 'EXTERNAL'
      AND OOH.HEADER_ID = OOL.HEADER_ID
      AND OOH.ORDER_TYPE_ID = SOT.ORDER_TYPE_ID
      AND SOT.NAME = 'US Distributor Order'

    what is the status of SO and SO line ?
    Have you manually check the line_id and source_line_id from backend using select statement ?

  • AR Invoice Line Numbers and Sales Order line numbers are not in Sync.

    Hi,
    There is an AR Invoic with 2 lines and SO with 2 lines. The line numbers on the Invoice and SO are not in Sync. SO line No 2 is Invoice line No1 and SO line No1 is Invoice Line No2. What determines the Invoice line numbering?
    Thanks

    Hi,
    Goto the T.Code "VOV7".
    Select your item category.
    Details.
    Maintain the Completion rule as "A(Item is completed with the first reference)".
    Save.
    If you do this after the follow on document is created,the item is completed and you cannot reject the item.
    For your second question,
    Goto the T.Code "VTLA".
    Select your valid combination.
    Click on item.Select your item category.Details.
    There is a check box called as "Update document flow".Tick that one.
    Save.
    Regards,
    Krishna.

  • Help required in identifying Line Charges in Sales Order Lines

    Dear All,
    I want to know the column or calculation used for retrieving Line Charges present in
    sales order->Line_items->Pricing tab.
    Thanks and Regards,
    Mahesh

    I got the solution . We can get the line charges column as (requested_quantity*unit_selling_price)/33.33.
    Thanks and Regards,
    Mahesh

  • How update amount of charge line for a sales order  line id

    I have a modifier which are qualified for a order line id, i want to update the amount of charges if the Shipping date is > 1 day than resquest date, as I do not have the advances pricing module so i have to do a customization for this condicion.
    I want to now how to update these, Does exist a API in order to do that ? or Can i go directly to oe_price_adjustments table and modify the data ??
    Thanks
    Fernando

    Hi Fernando,
    I'd probably do this in Adv. Pricing using a dynamic formula + factor list (two diff charge levels dependent on schedule ship date minus request date) against a booking event modifier. Obviously, you don't have dynamic formulas in Basic Pricing but could you handle this via creating a new pricing attribute? The charge levels could be maintained on a lookup rather than hardcoded and used in the calculation by your new pricing attribute.
    Whatever approach you go for would also need to cope with the scenarios that you either rescheduled the order or manually amended the request date because obviously the gap between request date and SSD would change.
    Your first suggestion is feasible, the second not a good move - I'm not sure how much it costs to licence Adv. Pricing but you could always offset the cost against the cost of developing and maintaining a custom update routine.
    Regards,
    Jon

  • Line Numbers in Sales Order Lines

    In a Sales Order, my line items are shown as 1.1, 1.2, 1.3, 1.4 , 1.5 & 1.6
    but my select returns line_number = 1
    select line_id,line_number from oe_order_lines_all where header_id = 6250
    and the result is
    Line_id Line_number
    5428 1
    5429 1
    5430 1
    5431 1
    5432 1
    5433 1
    how would I write a generic decode to show the line_numbers as 1.1, 1.2, 1.3 ....

    .. or dense_rank() ? :
    SELECT line_id,
              line_number
           || '.'
           || DENSE_RANK () OVER (PARTITION BY header_id ORDER BY header_id)
                                                                      line_number
      FROM oe_order_lines_all
    WHERE header_id = 6250

  • Quantuty on the Sale Order line item

    HI,
    Can anyone suggest how to control the Quantity on the sales order line item.
    Sale order line item should not be reduced below the delivered or invoiced quantity. For EX:Sale order line item 10 has 200kgs,delivery quantity created aganist that order is 100kgs, now the system should not allow us to change the sale order line item quantity below the delivery quantity i.e 100kgs.
    Thanks in Advance.

    In the transaction OVAH, for the message class V4 and message number 083, in the category column, change the entry from W to E. Then system will issue hard error when you change the order qty to below delivered qty.
    Regards
    Sai

  • Sales Order Line item category not getting Re detemining Correctly

    Dear all,
                I need  help regarding the Sales order item category redetermination.
                we are having two item categories YNAE and YNAG and it contains schedule  line categories CP and CB ( i.e for item         category  YNAE schedule line category is CP and for item category YNAG schedule line category is CB),
    for YNAG Purchase Requisition is automatically created becz of functional setting on save and it is working fine.
    For every line item in sales order line item level item category YNAE will be determined by default as per functional settings.
             Now my requirement is that, if sales order line item doesn't contain 100% confirmed quantity, than i needs to change the default line item category YNAE to YNAG which i am trying to do it in USEREXIT_PRICING_PREPARE_TKOMP becz in this exit i am getting the values in XVBAP and XVBEP and  it is working fine .
             But schedule line category is not getting redetermined automatically what i mean is, if i change the item category to YNAG from YNAE in user exit corresponding schedule line category CB of YNAG is getting determined automatically at the schedule line level and if ichange the schedule line categories in XVBEP in exit USEREXIT_PRICING_PREPARE_TKOMP, changes are reflecting at the schedule line level but Purchase requisation is not getting created for schedule line on SAVE and its delivary dates are also not getting determined properly. If i press the option ATP check at the schedule line level than very things will getting corrected.
       I feel that i am not doing this in proper way, do u have any idea about how to redetermine item category. please let me know if u have any idea .
    Regards,
    Vaddepally Manoj

    USEREXIT_PRICING_PREPARE_TKOMP is the wrong location - that exit is for pricing communication preparation only.  Your primary location for item category determination is USEREXIT_SOURCE_DETERMINATION (MV45AFZB).  In your simple scenario, you could consider making an availability check at this point with some assumptions and then assign the item category accordingly.  Otherwise, you can re-assign item category and schedule line category in USEREXIT_MOVE_FIELD_TO_VBEP.  The exit is called once before ATP (for ATP-relevant schedule line categories) and once afterwards.  The call is recursive if you re-assign another ATP-relevant category.

  • Sales order line with status calcelled picked by auto invoice program

    I cancelled  one line in Sales Order and Shipped remaining lines
    after Ship Confirm process ,I ran workflow background process.
    I am getting cancelled line information to AR interface tables
    when I run Auto invoice amount is sitting in Unearned account
    The status of cancelled line -  Cancelled
    Flow status code is cancelled
    INVOICE_INTERFACE_STATUS_CODE I AM SEEING is YES for that line.
    Why the cancelled Sales order line is picked by auto invoice program?
    Thanks,
    John

    Hi Ivruksh,
    Thanks for the reply, the reference you gave was not actually related to the issue I had, let me put it this way,
    Our Auto Invoice Job is scheduled at midnight, it runs and process only few CM's, rest of them are left behind with out any error message in error tables. Al I can see in the ra_interface_lines_all table is interface_line_id is populated, which shows that the Auto Invoice program has picked all the records but it is processing only few, the rest are left out with out any error message.
    Interestingly, when I tried to run those stuck CM's Individual one by one its gets successfully processed.
    Is anyone faced with similar kind of issue, kindly let me know of any solutions you guys had.
    Thanks in advance.
    Regards
    Srinivas

  • Pricing date in Invoice same as pricing date in Sales order

    Dear Experts,
    I have a situation wherein i need to maintain the pricing date in Invoice same as pricing date in Sales order. what setting i should maintain in IMG so the default pricing date in Invoice is same sales order pricing date date?
    Regards,

    Hi,
    As per my knowledge, there is no need of any configuration. I have tried creating billing doc.
    System copies Pricing date from Sales doc. to Billing doc.
    Make sure that you have maintained Pricing date in sales order.
    You can set Pricing date in VOV8 as to what it should be like Today's date, req. del. date or contract start date
    Try once again. It should work
    Sagar

  • MRP RUN for the more than one line item in sales order.

    Hi ,
    In the sales order nuber of line item are , i will have to take MRP RUN for selected line item .
    So plz suggest what development will require?
    Abhay
    Edited by: abhay patil on May 30, 2008 8:52 AM

    HI,
    U can write separate prog. Which will ask sales order no. and from to line item or multiple line item of sale order. Then in loop internally pass the each line item no to MD50 prog. Which will run in background.
    I will give u sample prog. Which I had created for running MRP for all the lines items of given sales order in one go.
    *& Report  ZPRG_PP_001
    REPORT  ZPRG_PP_001.
    tables vbak.
    data: begin of it_vbap occurs 1,
            vbeln  type    vbap-vbeln,
            posnr  type    vbap-posnr,
          end   of it_vbap.
    DATA: P_MODE   TYPE    C.
          Batchinputdata of single transaction
    DATA:   BDCDATA LIKE BDCDATA    OCCURS 0 WITH HEADER LINE.
    selection-screen begin of block b1 with frame title text-001.
      parameters :   p_vbeln  like  vbak-vbeln obligatory.
      selection-screen skip.
      parameters :   p_fore   radiobutton group mode,
                     p_back   radiobutton group mode default 'X'.
    selection-screen end   of block b1.
    at selection-screen.
    Check Sales Order
      if not p_vbeln is initial.
        select single * from vbak
          where vbeln eq p_vbeln.
        if sy-subrc <> 0.
          message e499(sy) with 'Invalid Sales Order no.' p_vbeln.
        endif.
      endif.
    start-of-selecTION.
    Get Sales order items
      select vbeln posnr from vbap
        into table it_vbap
        where vbeln eq p_vbeln.
    Set BDC mode
      if p_back eq 'X'.
        p_mode = 'E'.
      else.
        p_mode = 'A'.
      endif.
    Process MD50 BDC
      LOOP AT IT_VBAP.
        perform bdc_dynpro      using 'SAPMM61X' '0160'.
        perform bdc_field       using 'BDC_CURSOR'  'RM61X-TRMPL'.
        perform bdc_field       using 'BDC_OKCODE'  '/00'.
        perform bdc_field       using 'RM61X-KDAUF'  IT_VBAP-VBELN.
        perform bdc_field       using 'RM61X-KDPOS'  IT_VBAP-POSNR.
        perform bdc_field       using 'RM61X-BANER'  '1'.
        perform bdc_field       using 'RM61X-LIFKZ'  '3'.
        perform bdc_field       using 'RM61X-PLMOD'  '3'.
        perform bdc_field       using 'RM61X-TRMPL'  '1'.
        perform bdc_dynpro      using 'SAPMSSY0' '0120'.
        perform bdc_field       using 'BDC_OKCODE'   '=XBAC'.
        CALL TRANSACTION 'MD50' USING BDCDATA MODE P_MODE.
        CLEAR BDCDATA.
        REFRESH BDCDATA.
      ENDLOOP.
    end-of-selection.
           Start new screen                                              *
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      CLEAR BDCDATA.
      BDCDATA-PROGRAM  = PROGRAM.
      BDCDATA-DYNPRO   = DYNPRO.
      BDCDATA-DYNBEGIN = 'X'.
      APPEND BDCDATA.
    ENDFORM.
           Insert field                                                  *
    FORM BDC_FIELD USING FNAM FVAL.
      CLEAR BDCDATA.
      BDCDATA-FNAM = FNAM.
      BDCDATA-FVAL = FVAL.
      APPEND BDCDATA.
    ENDFORM.
    Ajay P. Nikte

  • Third Party GRN Posting Date to be Copied to Sales Order Line item Billing Date

    Hello Experts
    I have a client requirement where in they want to bill line items in the sales order ( third party process ) to the end customer in sync with the GRN posting dates happened in the PO
    For EG if GRN happened on 1st July 2014 then Billing Date should come in as 31st July 2014 so when they execute VF04 giving from and to dates as 1st july to 31st corresponding sales order can be invoiced
    Actual problem is for suppose if i create a sales order in the month of june say 26th basing on the factory calendar setting and invoicing list maintained in the customer master system defaults the billing date to 30th June 2014 , and the same when user runs VF04 from 1st June to 30th June this sales order shows as due and mistakenly end user invoices the customer ( whereas logical GR would have only received in July 1st )
    My requirement is similar to below threads but i am unable to find answer how to copy GR Posting date to Billing Date of the sales order line item
    use GR Doc date as billing date
    3rd party sales process (w/o ship notif) - Billing

    Hi Lakshmipathi ji,
    As my requirement is to update the billing date at the sales order line item level , As a process user goes in executes VF04
    For Ex
    Sales Order Created Date is 1st June 2014 then System Defaults Billing Date at line item to 30th June 2014
    Now when i do GRN suppose on 1st July 2014 for that line item , system should trigger a code where in check the posting date of the GRN and override the same in the Biiling Date field of the sales order line item
    So when VF04 is run for a month All the GRN which are recieved in the month of July are invoiced in July
    Please share me your thoughts do we need to check any userexits from MM side which reads the posting date of GRN and then copies in to my third party sales order
    Regards
    Hiba

  • How to release Stock blocked against deleted line items from  Sales order.

    We have Scenario as follows.
    Sales order made for  items available in stock.  Deleted few lineitems from sales order balance items delivered and invoiced. Sales cycle is complete in all sense.
    What we have noticed is when we are creating new sales order / Delivery for deleted items from above Sales order it shows deleted quantity is blocked against old sales order. These line items are no longer
    available in old sales order since it is deleted also it is not appearing in open sales order report (VA05).
    Overall stock available is same as quantity mentioned in deleted line item.
    In MD04 - Sales requirenment transaction it shows sales order / line item against which it is blocked.
                    i.e deleted line item.
    How to release these stock and make available for sales. Any standard process available ? or any other solutions
    Thanks & Regards,

    I got a solution for my question from other forum. for info
    Go to SE38 and enter program SDRQCR21 then execute...
    Enter line item which is blocked for sales order in MD04 and enter plant then check Data
    transfer box and uncheck other boxes... It will pop up information and click yes...
    You will get one report and Stock inconsistency will go off and then check it in MD04....
    regards

  • Sales order Total = Zero (0) No Sales order Lines

    Hi,
    Is there any possibility to accept Sales order Total = Zero (0) - No Sales order Lines for a specific customer?
    I assume it should be a parameter in SBO somewhere...
    Thank you,
    Rune

    Hi Rune,
    i think there's no parameter for this.
    Link
    "You cannot have a Sales Order without items unless it is a Service Invoice"
    regards
    David
    Edited by: David Nussböck on May 3, 2008 1:15 PM

  • Sales order line for Non Stock items progressed to Closed status, need to be Cancelled.

    Hi,
    First time posting to this community, I hope someone can help.
    Currently we have a setup where non stock items are being added to sales order lines (charges, etc.).
    These lines are being progressed through to Closed status automatically.
    Users are reporting that they have entered the line in error and would like to change the status of the line to Cancelled.
    We are unable to return the material (RMA) as it is non stockable/transactable etc.
    Current workaround is to adjust the stock and make finance aware so that the line does not get invoiced.
    However, the system still shows that the line is closed (i.e. provided to customer) which is not correct.
    Is there any way of getting the line to a status of cancelled?
    Your help is very much appreciated.
    Regards
    Tim

    Hi Arif,
    Many thanks for the warm welcome.
    I'm thinking the only course of action I have for future, is to make the items stockable/transactable/returnable such that an RMA can be performed if added in error.
    We can put a large qty into stock at zero value.
    Thanks for your help in any case.
    Tim

Maybe you are looking for

  • Is there a way to import my movies on dvds to macbook pro then sync onto to Ipad2

    Is there a way to import my dvd movies onto my Macbood Pro and then sync to my IPad2 so that the movies go on that device?

  • Managed Standby Recovery not active

    Dear All, My database version is: SQL> select banner from v$version; BANNER Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod PL/SQL Release 10.2.0.1.0 - Production CORE 10.2.0.1.0 Production TNS for Linux: Version 10.2.0.1.0 - Product

  • Curious case of file location

    hello all! SO in a botched attempt to move my iTunes library to abother hare drive, I've created a library that doesn't know where the files are. 11st attempt I followed the instructions by creating the new location and consolidating files to move th

  • Raise to Speak quit working

    When I upgraded to io6, Raise to Speak quit working.  The setting is turned on on my iPhone 4s.  Siri does work when holding the home button. What else could have changed? David

  • Nokia 6230i MMC problem

    hi everybody.i'm using 6230i almost a year and ihadn't any problems...by now...recently i had the following problem:i transfered 2 JPG files from PC via bluetooth.i saved one of the files in the MMC amd the other in the phone's memory.the free space