Report of condition types per line item in sales order

Hi all,
Is there any report that can tell me all the price conditions that are allocated to a sales order line item? I am talking about the actual conditions relevant for a line item, not only conditions that have a condition record setup.
So I would like to key in sales order number, the line item and get a report of all conditions that are allocated to that line item in the specific sales order.
If there is no such standard report, does anyone know what tables to link?
Thanks in advance,
Lars

Hi Lars,
In my current customer they had the same requirement and after almost 1 month of analysis we decided to build a custom report to execute this.
And as an enhancement we compare prices from the sales orders and the sap price records in order to check the differences.
First we need to find all the open lines (status and reason for rejection (ABGRU)), than loop KONV and select the  KSCHL (condition types) you want, material text descriptions, etc.....of course a lot more in terms of coding.....;-)
This was the form I used :
FORM FIND_SO_PRICES.
  LOOP AT IT_ITEM_REPORT.
    REFRESH IT_PRICING.
    SELECT KSCHL KBETR WAERS KPEIN KMEIN KUMZA KUMNE
      INTO IT_PRICING
      FROM KONV
     WHERE KNUMV = IT_ITEM_REPORT-KNUMV
       AND KPOSN = IT_ITEM_REPORT-POSNR
       AND KINAK <> 'M'
       AND KINAK <> 'X'.
      APPEND IT_PRICING.
    ENDSELECT.
    READ TABLE IT_PRICING WITH KEY KSCHL = 'XXXX'. -> My price condition
    IF SY-SUBRC = 0.
      IT_ITEM_REPORT-ZSP1 = IT_PRICING-KBETR.
      MODIFY IT_ITEM_REPORT.
    ENDIF.
    READ TABLE IT_PRICING WITH KEY KSCHL = 'XXXX'. -> My discount condition
    IF SY-SUBRC = 0.
      IT_ITEM_REPORT-ZSD1 = IT_PRICING-KBETR / -10.
      MODIFY IT_ITEM_REPORT.
    ENDIF.
   IT_ITEM_REPORT-LIQ = IT_ITEM_REPORT-ZSP1 - ( IT_ITEM_REPORT-ZSP1 * (
                                          IT_ITEM_REPORT-ZSD1 / 100 ) ).
    MODIFY IT_ITEM_REPORT.
  ENDLOOP.
ENDFORM.                    " FIND_SO_PRICES
Please tell me if this helped you,
Regards,
Alcides Fialho

Similar Messages

  • Is Credit Check Per Line Item in Sales Order  Possible?

    Dear All,
    Hope you all are doing well !!!
    Infact i am currently implementing OPM and SCM modules for a CSD (carbonated soft drinks) industry. They have a specific requirement on Credit Management. Please look at the Requirement Below.
    Credit Management Per Line on SO
    Client Charges Distributors for both Liquids (Finished Product) + [Return Glass Bottles and Shells) for the First Time.
    Subsequently while returning RGB(Return Glass Bottles)'s and Shell's are being given Credit memos.
    CBL gives credit only on Bottles & shells but not on Liquids.
    For Liquids CBL takes the Prepayment & Its Compulsory.
    So the Credit limit needs to be check on the bottles and shells only.
    Oracle E-Business Suite Credit Management does not work per line item for a
    Particular Sales Order. It works on total Sales Order. as this is not a standard Process in Oracle how we can achieve this without customization.
    Please suggest me through any workaround we can achieve this and its a show stopper for us and business critical for my client.Please help me on this regard.
    Thanks & Regards,
    Aditya                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I'd suggest writing your own might be easier. Oracle buckets the exposure as per the list below whereas you are probably only interested in seeing a total order exposure (by line item for bottles/shells) and total AR exposure summary.
    Also the standard report will look at the unit sell * the ordered quantity in calculating transaction amounts on open orders which is your problem. If I've understood your requirement correctly, you only want to consider the shells and bottles in the credit check because you enforce prepayment for liquids so presumably your AR o/s balances are only for money owing on shells and bottles.
    In that case, your only real issue is at the order entry stage (again because Oracle will be considering the total transaction value if you're using the standard automated credit check) which is why I suggested the manual workaround there.
    1     Header uninvoiced orders
    2     Header uninvoiced orders tax
    3     Line uninvoiced orders
    4     Line uninvoiced orders tax
    5     Line uninvoiced freight
    6     Header uninvoiced freight
    7     Header and line freight
    8     Invoices
    9     Payments at risk
    10     Order holds
    11     Line holds
    13     Order tax holds
    14     Line tax holds
    15     Order freight holds
    16     Line freight holds     
    17     Header and line freight holds
    18     External exposure
    21     G_BR_INVOICES
    22     G_BR_PAYMENTS_AT_RISK
    23     G_HEAD_RETURN_UNINV_ORDERS
    24     G_LINE_RETURN_UNINV_ORDERS
    25     G_ORDER_RETURN_HOLDS
    30     G_ORDER_RETURN_HOLDS
    31     G_LINE_RETURN_HOLDS

  • Credit Check Per Line Item in Sales Order is Possible?

    Dear All,
    Hope you all are doing well !!!
    Infact i am currently implementing OPM and SCM modules for a CSD (carbonated soft drinks) industry. They have a specific requirement on Credit Management. Please look at the Requirement Below.
    Credit Management Per Line on SO
    Client Charges Distributors for both Liquids (Finished Product) + [Return Glass Bottles and Shells) for the First Time.
    Subsequently while returning RGB(Return Glass Bottles)'s and Shell's are being given Credit memos.
    CBL gives credit only on Bottles & shells but not on Liquids.
    For Liquids CBL takes the Prepayment & Its Compulsory.
    So the Credit limit needs to be check on the bottles and shells only.
    Oracle E-Business Suite Credit Management does not work per line item for a
    Particular Sales Order. It works on total Sales Order.  as this is not a standard Process in Oracle how we can achieve this without customization.
    Please suggest me through any workaround we can achieve this and its a show stopper for us and business critical for my client.Please help me on this regard.
    Thanks & Regards,
    Aditya                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    I'd suggest writing your own might be easier. Oracle buckets the exposure as per the list below whereas you are probably only interested in seeing a total order exposure (by line item for bottles/shells) and total AR exposure summary.
    Also the standard report will look at the unit sell * the ordered quantity in calculating transaction amounts on open orders which is your problem. If I've understood your requirement correctly, you only want to consider the shells and bottles in the credit check because you enforce prepayment for liquids so presumably your AR o/s balances are only for money owing on shells and bottles.
    In that case, your only real issue is at the order entry stage (again because Oracle will be considering the total transaction value if you're using the standard automated credit check) which is why I suggested the manual workaround there.
    1     Header uninvoiced orders
    2     Header uninvoiced orders tax
    3     Line uninvoiced orders
    4     Line uninvoiced orders tax
    5     Line uninvoiced freight
    6     Header uninvoiced freight
    7     Header and line freight
    8     Invoices
    9     Payments at risk
    10     Order holds
    11     Line holds
    13     Order tax holds
    14     Line tax holds
    15     Order freight holds
    16     Line freight holds     
    17     Header and line freight holds
    18     External exposure
    21     G_BR_INVOICES
    22     G_BR_PAYMENTS_AT_RISK
    23     G_HEAD_RETURN_UNINV_ORDERS
    24     G_LINE_RETURN_UNINV_ORDERS
    25     G_ORDER_RETURN_HOLDS
    30     G_ORDER_RETURN_HOLDS
    31     G_LINE_RETURN_HOLDS

  • Splitting Delivery per line item in Sales order

    Hi All,
    We have a requirement of splitting the delivery per every line item on the sales order Is there a way to achieve this
    So eg. if we have 10 line items with X quantity each, it should create 10 deliveries.
    Suggestions awaited.

    Hi,
    You may have to change your copy control to work the way u want it to. In Tcode VTLA, for the say OR to LF you will have to write the condition at header (for copying the header data) and item level (to split the items into a new delivery) in such a way that, once the delivery is created for the first line item (I think the status of the table VBUP for the item number changes and that can be retrived), the new delivery gets created for the second and the same follows.
    BTW, what is the scenario you are dealin with. If you have this kind of a scenario, then, in real time, it becomes very difficult to really have a track of all the sales orders, deliveries and invoices. Also, from system point, the delivery tables will get filled up very fast and so as the VBFA table. So, acrchiving will have a problem. Returns is another thing you may have to look into.... So, as I have seen, normally, one sales order, one delivery, one billing doc is created always so that it is easy to track and archiving becomes very easy.
    Hope this helps
    Regards,
    Mukund S

  • How to get report for deleted line items from sales orders

    Dear FRIENDS,
    please infirm the t.code or report for viewing the deleted line items from sales ordrers.
    Kindly do the neeedful.
    regards,
    N.M.PAWAR

    Hi,
    With transaction SE16 you can view table CDHDR for header changes and
    CDPOS for item changes. This includes deletion.
    OR
    GO to VA03 - Display Sales order -> Put order no : don't press enterbutton. -> Go to Enviornment -> changes -> You will get details
    Date ItmNo. SLNo Action
    Hope this help please close the thread if answers

  • How to get Characteristic Values assigned to the line item of Sales Order?

    Hi,
    I want to get the Characteristic Values( Variant Configuration )assigned to First Line Item of Sales Order.
    I was using the Fn. Mod.: VC_I_GET_CONFIGURATION_IBASE,
    this fn. mod. giving all the Characters but not the assigned characteristic values.
    Is there any other way to find characteristic values of sales order.
    Thanks,
    vinayak.
    Message was edited by: vinayaga sundaram

    For example, please see this example program.
    It lists the characteristic names, the values, and the description of the values which are tied to a sales document.
    report zrich_0001.
    * Internal Table for Characteristic Data
    data: begin of i_char occurs 0.
            include structure comw.
    data: end of i_char.
    data: xcabn type cabn.
    data: begin of xcawn,
          atwtb type cawnt-atwtb,
          end of xcawn.
    data: xvbap type vbap.
    parameters: p_vbeln type vbap-vbeln,
                p_posnr type vbap-posnr.
    start-of-selection.
      select single * from vbap into xvbap
                 where vbeln = p_vbeln
                   and posnr = p_posnr.
      clear i_char.  refresh i_char.
    * Retrieve Characteristics.
      call function 'CUD0_GET_VAL_FROM_INSTANCE'
           exporting
                instance           = xvbap-cuobj
           tables
                attributes         = i_char
           exceptions
                instance_not_found = 1.
      loop at i_char.
        clear xcabn.
        select single * from cabn into xcabn
                 where atinn = i_char-atinn.
        clear xcawn.
        select single cawnt~atwtb into xcawn
                   from cawn
                     inner join cawnt
                       on cawn~atinn = cawnt~atinn
                      and cawn~atzhl = cawnt~atzhl
                          where cawn~atinn = i_char-atinn
                            and cawn~atwrt = i_char-atwrt.
        write:/ xcabn-atnam, i_char-atwrt, xcawn-atwtb.
      endloop.
    Regards,
    RIch Heilman

  • 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

  • Delete the line item in sales order in VA01/VA02 when the quantity is modif

    Hi SAP,
       I have requirement to delete a line item in sales order.Please suggest me to do the same.
      THe scenarios is , we are inserting a free good line item based on some condition and quantity, If the quantity is modified  the free good line item inserted needs to be deleted.
    Waiting for your responce
    Thanks,
        Billa
    Moderator message : Spec dumping is not allowed,search for available information. Thread locked.
    Edited by: Vinod Kumar on Nov 14, 2011 1:54 PM

    Hi,
    Can you also check the SALES LINE.
    Sales line is the combination of SALES ORGANISATION + DISTRIBTION CHANNEL +PLANT.
    Hope it was not maintained.
    Transaction code : OVX6
    PATH:  IMG->ENTERPRISE STRCTRE->ASSIGNMENT>SALES AND DISTRIBTION->ASSIGN SALES ORG- DISTRIBTION-PLANT.
    please revert if the error still exists.
    santosh

  • Automatically add line-items to Sales order

    Hello,
    Our client needs us to add line items to sales orders. The requirement is such that, when the users enter a material on a line item, they wish to see few more materials automatically added as new line items -- item category to be maintained as "Free" items. This appears similar to automatically getting BOM-sub-items for materials which have BOMs maintained. The client is not willing to maintain BOMs for materials in question. They instead have asked us to maintain sub-item materials in a Z-table and then fetch those to populate the subsequent line-items on the sales order.
    So far, we have tried to fiddle around with the XVBAK and XVBAP internal tables in sales exit (MV45AFZZ) and also tried to use BAPI within the same exit. Both methods do not work.
    Could you please guide us ? Thank you.
    Regards,

    Hi,
    I think you can try with product proposal(Item Proposal). T.Code:VA51.
    Using this one can create list of items to be proposed at the time sales order processing.
    Item proposal contains list of items with or without default quantities those were frequently ordered by the customer. You can create any no of items in an Item proposal.Like wise you can create any no.of item proposals.
    But,You can assign only one item proposal per customer in sales tab of the CMR.So that when ever you are creating order for that customer you can access those materials which are listed in an Item proposal completely or selectively,with or without default quantities.
    The items which are proposed from an Item proposal are always changeable.
    Item proposal makes sales order processing simple and fast.
    Only the thing here is it will not automatically explode like in case of BOM.You have to manually select those items from an item proposal.
    Regards,
    Revan
    Edited by: REVAN on Dec 23, 2008 10:55 AM

  • Add Line Item In Sales Order VA01

    HI All,
    I  have new requirement in creation of sales order . Here we have free promotion sales . Here if customer buy one material then he will get some other material as free .In standard sap we can give only one line item as free not more than that .
    Here our requirement is more than one line item . I suggested them maintain all the free materials in one Ztable when ever the original material  will come for  sales order then i have to fetch these materials from ztable  automatically and it should create sales order. I started doing this using user exit  FORM USEREXIT_MOVE_FIELD_TO_VBAP.
    These are the below links i checked in our sdn.
    Adding Line items to sales order on creation using User-Exit in VA01.
    Please give me some idea on this .
    Regards,
    Madhu.

    Hi Asik,
    Thanks for your reply.In my case i can not got for Bom  because the schemes will change for every ten days. I think Bom  creation will fill a lot of data but it wont solve my issue.
    Regards,
    Madhu.

  • How to add 100 line item in sales order at one time

    Hello Guru's
    My requirement is to add 100 line items in sales order at once.
    what can be good approach to overcome this situation.Is there some kind of tool which can be useful?
    Let me know your suggestions
    Thanks a lot in Advance

    Hi,
    do configuration for Proposal Items tab - like -
    then create sales order using with Propose items button - VA01 - then system will accept more than 50 line of materials at a time
    Please Use BAPI -- creation of Sales order
    Thanking you
    Regards
    Mahesh

  • How to make the line items of sales order cannot be deleted.

    Hi All,
    Is there any Enhancement spots or user-exits which make the line items of sales order cannot be deleted if item category is 'TAN'.
    Thanks in Advance,
    Sudhakar Reddy .A

    Hi All,
    If you doesn't want to delete sales order line items then we have write in the Include Program which has mentioned below and in the form .....endform.
    Program Name :  Include MV45AFZB
    _Example:_
    form userexit_check_xvbap_for_delet using us_error
                                              us_exit.
    IF .......
      US_EXIT = CHARX.
    ENDIF.
    endform.

  • To add the line item in Sales Order

    Hi Experts,
    I have to insert  the line item between two line item in sales order dynamically.
    How should i do this.
    any idea??
    Thanks in Advance.

    Hi,
    I guess you are talking about BOM, sub-items or free goods, wherein after you put in one item the other material defined gets added automatically in the sales order.
    That is done with the help of Item Category config by functional person.
    Check here for more info
    [Item Category|Re: Item Category;
    You can also use user exit MV45AFZZ form user_exit_move_to_vbap for a specific logic defined at runtime.
    Regards,
    Amit
    Edited by: Amit Iyer on Aug 26, 2009 10:21 PM

  • Mrp run on no of line items in sale order

    hi all
    i have a sale order with o line items include.
    i want to run mrp on sale order only (not want to use MD50)
    can i use user exit for this task ? if so please advise which user exit i can use ?
    thanks

    Dear,
    Please refer this link,
    [Mrp run on no of line items in sale order|Re: MD50 issue]
    Regards,
    R.Brahmankar

  • Automatically add line-items to sales orders

    Hello,
    Our client needs us to add line items to sales orders. The requirement is such that, when the users enter a material on a line item, they wish to see few more materials automatically added as new line items -- item category to be maintained as "Free" items. This appears similar to automatically getting BOM-sub-items for materials which have BOMs maintained. The client is not willing to maintain BOMs for materials in question. They instead have asked us to maintain sub-item materials in a Z-table and then fetch those to populate the subsequent line-items on the sales order.
    So far, we have tried to fiddle around with the XVBAK and XVBAP internal tables in sales exit (MV45AFZZ) and also tried to use BAPI within the same exit. Both methods do not work.
    Could you please guide us ? Thank you.
    Regards,

    Ist method:
    Maintain one Ztable with the fields of Material and sub materials.
    write BDC to create order,before entering the material  number check if material is existed in Ztable or not.
    If it exist take that material and added as a another line item.
    if not exist create like normal line item.
    2 nd method:
    Ask your MM functional consultant to maintain supression of materials concept.

Maybe you are looking for

  • Can I include raw files into the installer folder with LV application builder?

    Hello, I have created a batch file that will run at the end of the installer, which will copy over some raw configuration files into the source destination so that the configuration files can be customized for each end user without rebuilding the ins

  • Elements Organizer does not die on exit

    I've been using Photoshop Elements for more than 10 years now and I use it for 40,000+ photos, videos and PDF. I'm currently using Elements 11 on 64 bit Windows 7, but the problem has been there for the last few versions. I've had a consistent proble

  • My HP PAVILION X2 10 has Bluescreen

    I bought it on Monday  10th. I use browsing website with Google Chrome and then system is hang and then BlueScreen.Should I bring a claim with the dealer ? 

  • Why is the iTunes 11.0.2 under OS X 10.7.5 "Search library" disabled?

    The Search box in iTunes 11.0.2 under OS X 10.7.5 won't even accept mouse clicks in Library view, it is completely unresponsive.  However, it works fine in iTunes store. Just another in the endless list of ways Jobs-less Apple is ruining good things

  • Mysql Query VS Vector Object

    I run mysql query using Java, and the results of it are put in a vector object. Due to the vector object is made by 1 element (it's sure because I wrote the database) I'd like to take it and put it in a string variable, but Java returns me a lot of e