Extracting Purchase doucument Item condition value (Urgent)

Hi Gurus,
Currently, I am extracting purchase order item level data using 2lis_02_itm DS in which the extract structure is modified with fields which are fetching data from Condition Type (KSCHL), Condition Value (KWERT), etc., field at run time for which code is written in CMOD.
Now, user requirement is some what like this: they maintain KWERT for one of the condition type after a week/a month or 2 months (not fixed) of PO creation date.
Problem: In current extraction the data is comming for all the values changed or records added at item level (like material number, quantity, value, net value, etc.) but its not extracting the change in Condition Value (KWERT).
<b>Please explain why?</b>
Also, I tried to create a view based on the tables EKKO, EKPO and KONV but since KONV is pool table it's not allowing to create one.
Tried to create function module by changing standard function module RSAX_BIW_GET_DATA_SIMPLE_1 and passing an custom extract structure created with only few (required) fields. The problem with this one is that in OPEN CURSOR ..... area when I am trying to write select statement which contains INTO clause, its giving error while checking where as query is working when tested as a report output.
<b>Also, pls. let me know weather any provision is available on extraction of Condition data for each item in a PO is available in SAP's standard DS or BC. The one like they have condition level DS for application area SD.</b>
for any further details pls. let me know.
Thank You in advance.
Points will be awarded to satisfying answer.
Regards,<b></b><b></b>

Good afternoon Joshi,
It is unfortunnatelly very normal that the changes of the conditions are not loaded into BI... When you enhanced a DS, all the fields you add are simply calculated for each line that are in the delta queue. Here the change of a condition is not recognize as a change for BI, so no record is created in the delta queue so you extra fields are not calculated...
The simplest way to check on which field a change is triggering a record in the delta queue is to check the fields in the extract structure in transaction LBWE for your datasource.
One solution might be to assign one of the sub-totals to that condition (if you already use the 6 available sub-totals I remember that there was a way to create some extra ones...)
If this does not work, to extract data from a pool table, you can always create in infoset query in transaction SQ01. To my knowledge there is no BC datasource  for PO condition.
hope it helps,
Rodolphe
I do not think

Similar Messages

  • Change the Purchase Order : Item - Conditions value

    Hi,
    How to change the Purchase Order : Item - Conditions value.
    In my PO, Item conditions shows the SKTO - Cash Discount value is 0. I want to change the Discount value 10.
    How can i change it??

    Hi,
    Goto the Transaction code MN05 and give the CONDITION TYPE SKTO and change the value
    MN05 is the Transaction code for Purchase order  condition types.
    Please check and revert back if you need more details.
    regards,
    santosh

  • Error while editing the item condition data : urgent

    Hi,
    I am using a bdc. when i try to edit any of the item condition value (KBETR) and also if i try to insert a new condition , I am getting error as " Message_type_X " and the message no :00341, and the BDC is terminating at the point.
    Can anybody kindly suggest a work around
    shyam

    Hi Shyam,
    Try with this code.
    *-----Adding the Condition Types at item level
                  PERFORM bdc_dynpro      USING 'SAPMV45A'    '5003'.
                  PERFORM bdc_field       USING 'BDC_CURSOR'  'KOMV-KSCHL(01)'.
                  PERFORM bdc_field       USING 'BDC_OKCODE'  '=V69A_KONY'.
                  PERFORM bdc_dynpro      USING 'SAPMSSY0'    '0120'.
                  PERFORM bdc_field       USING 'BDC_CURSOR'  '05/04'.
                  PERFORM bdc_field       USING 'BDC_OKCODE'  '=PICK'.
    *----1. Unitprc ( ZPR0 )
                  PERFORM bdc_dynpro      USING 'SAPMV45A'    '5003'.
                  PERFORM bdc_field       USING 'BDC_CURSOR'  'KOMV-KSCHL(01)'.
                  PERFORM bdc_field       USING 'BDC_OKCODE'  '=V69A_KOAN'.
                  PERFORM bdc_dynpro      USING 'SAPMV45A'    '5003'.
                  PERFORM bdc_field       USING 'BDC_CURSOR'  'KOMV-KBETR(02)'.
                  WRITE x_item-unitprc TO v_unitprc CURRENCY komv-waers NO-SIGN.
                  PERFORM bdc_field       USING 'KOMV-KSCHL(02)'  'ZPR0'.
                  PERFORM bdc_field       USING 'KOMV-KBETR(02)'  v_unitprc.
                  PERFORM bdc_field       USING 'BDC_OKCODE'  '/00'.
    *-----End of Addition
                  PERFORM bdc_dynpro      USING 'SAPMV45A'    '5003'.
                  PERFORM bdc_field       USING 'BDC_OKCODE'  '/EBACK'.
    Regards,
    Aman
    Message was edited by:
            Amandeep Kumar

  • FM for item condition values in RFQ

    Hi,
         I have a RFQ number. now the i want a function module which will return me the item condition values ( eg freight,gross price etc).
         i have gone through a FM named 'PRICING' but thats not helping me
          any help

    Hi,
         I have a RFQ number. now the i want a function module which will return me the item condition values ( eg freight,gross price etc).
         i have gone through a FM named 'PRICING' but thats not helping me
          any help

  • Exclusion item condition value for header condition

    Dear All,
    I explained my problem with example scenerio.
    Sales Order Total Net Amount = 1.500 EUR
    SO Item-10 = Advance Payment Sales = 500 EUR >> for first invoice
    SO Item-20 = Sales from stock with HAWA material - 1 = 300 EUR  >> for second invoice
    SO Item-30 = Sales from stock with HAWA material - 2 = 1.200 EUR >> for second invoice
    SO Header condition > ZAP1 = Advance payment decrease = - 500 EUR
    System divided Advance Payment amount to all items.
    Item-10 = - 125 EUR
    Item-20 = -   75 EUR
    Item-30 =  -300 EUR
    My request is on below;
    Item-10 =      0 EUR
    Item-20 = - 100 EUR
    Item-30 = - 400 EUR
    Is calculation possible with zero value for item-10 ?
    Thanks for your helps.
    Gulay Celik

    Hi Gulay
    System cant divide the advance payment to all items ,System can divide the advance payment for one item  .
    But assign a billing plan at header level and just check , if it works then your requirement can be fulfilled.But generally it is done at item level only 
                            Make the following down payment configurations
    item category group - 0005
    item category - TAO
    for this TAO item category a billing plan 01 (milestone billing plan -01) will be assigned and its billing relevance should be I which is order related billing .
    billing doc type - FAZ
    cancellation billing doc type - FAS
    maintain a condition type AZWR which is down payment settlement , it has requirement as 2 and calc type as 48 acct key as ERL
    Now when you enter a material in line item 10 and go to item data , you can see the billing plan tab.
    now go to billing plan tab and enter the start date and enter the dates on which billing has to be done and then in billing request enter 0009 which is for down payment.once u press enter automatically it all the dates get blocked and billing request by default you get as 1 , that you change it to 4 or 5 . 4 is for down payment at value basis and 5 is for down payment at percentage basis. and beside that there will be a billing type .assign billing doc type as FAZ. to all dates
    check the copying requirements are there at VTFA as 20 and for item category TAO copying requirements 23 is maintained or not
    now do the cycle OR - LF - FAZ (billing doc type)
    Regards
    Srinath

  • Billing Plan Item - Condition Value 0

    Dear Experts,
    I'm creating a Service Contract.
    1.Pricing Procedure is Determine
    2.Billing Plan at item level is determining saying billing trigger once in a month.
    3.Maintained Item Price as 1200 USD in maintain conditions of product.
    The problem:
    When check the billing plan item value it is showing '0.00' instead of '1200 USD', Can you kindly advise me why the condition type is not determining.
    Note:
    I used Standard Item Cat no Z.
    Best Regards,
    Srujan

    Please use function module RV_PRICE_PRINT_ITEM
    Pseudo code :
    IF komk-knumv NE vbdkr-knumv.
        CLEAR komk.
        komk-mandt = sy-mandt.
        komk-kalsm = vbdkr-kalsm.
        komk-fkart = vbdkr-fkart.
        komk-kappl = pr_kappl.
        IF vbdkr-kappl NE space.
          komk-kappl = vbdkr-kappl.
        ENDIF.
        komk-waerk = vbdkr-waerk.
        komk-knumv = vbdkr-knumv.
        komk-vbtyp = vbdkr-vbtyp.
        komk-bukrs = vbdkr-bukrs.
        komk-land1 = vbdkr-lland.
        komk-vkorg = vbdkr-vkorg.
        komk-vtweg = vbdkr-vtweg.
        komk-spart = vbdkr-spart.
        komk-hwaer = vbdkr-waers.
        komk-prsdt = vbdkr-erdat.
        komk-kurst = vbdkr-kurst.
        komk-kurrf = vbdkr-kurrf.
        komk-kurrf_dat = vbdkr-kurrf_dat.
      ENDIF.
      komp-kposn = vbdpr-posnr.
      komp-kursk = vbdpr-kursk.
      komp-kursk_dat = vbdpr-kursk_dat.
      IF vbdkr-vbtyp CA 'HKNOT6'.
        IF  vbdpr-shkzg CA ' A'.
          komp-shkzg = 'X'.
        ENDIF.
      ELSE.
        IF  vbdpr-shkzg CA 'BX'.
          komp-shkzg = 'X'.
        ENDIF.
      ENDIF.
    CALL FUNCTION 'RV_PRICE_PRINT_ITEM'
        EXPORTING
          comm_head_i = komk
          comm_item_i = komp
          language    = nast-spras
        IMPORTING
          comm_head_e = komk
          comm_item_e = komp
        TABLES
          tkomv       = tkomv
          tkomvd      = tkomvd.
    The tables TKOMVD contains the item pricing condiitons

  • How do invoice condition values hit accounting?

    Hello,
    I am picking up the billing item condition values from KWERT and the corresponding GL Account SAKN1 from the KONV tabke. KWERT gets stored with the sign. I need to know how this condition amount will hit accounting. Would it be a debit or a credit entry on the accounting side. How can I do this? I cannot use the debit/credit indicator BSEG-SHKZG as we have a summarization on the material and we are trying to re-determine in a custom code what amounts should have posted to BSEG by material. While I am getting the amounts correctly from KONV, I am not able to figure out how these amounts should be treated on the accoutning side - as a debit or a credit?
    Example, on a regular invoice if the value is positive for a G/L account, on the accounting side the value is reverse in sign. However, this cannot be generalized as we can have many different types of invoices and different combinations.
    Thanks,
    Prayarna

    Hi,
    The values from billing for different condtions pick accouting documents for the GL's that are assigned as per the required combinations set in VKOA transaction. We do the revenue account det here. Now the values on invoice with + ve are the ones we are going to receive from the customer, so the customer account is debited and you see a negative sign. A discount is in negative on invoice which goes positive to the customer and hence positive sign. Freight goes to a Freght revenue GL since it cannot really be accouted as revenue as we end up paying the transporter though we collect from customer.
    you may need a functional consultant if you are already not one.
    regards
    sadhu kishore

  • How do billing item conditions hit accounting?

    Hello,
    I am picking up the billing item condition values from KWERT and the corresponding GL Account SAKN1 from the KONV tabke. KWERT gets stored with the sign. I need to know how this condition amount will hit accounting. Would it be a debit or a credit entry on the accounting side. How can I do this? I cannot use the debit/credit indicator BSEG-SHKZG as we have a summarization on the material and we are trying to re-determine in a custom code what amounts should have posted to BSEG by material. While I am getting the amounts correctly from KONV, I am not able to figure out how these amounts should be treated on the accounting side - as a debit or a credit?
    Example, on a regular invoice if the value is positive for a G/L account, on the accounting side the value is reverse in sign. However, this cannot be generalized as we can have many different types of invoices and different combinations.
    Thanks,
    Prayarna

    Hi ,
    if u are unable to use BSEG for credit or debit , then what u can do is , ask ur Functional ppl abt the condition types , which one will have -ve values in the pricing procedure..
    i think is the only way to do in this case , finding which condition type is -ve.
    regards
    PP.

  • How do the billing item conditions hit accounting?

    Hello,
    I am picking up the billing item condition values from KWERT and the corresponding GL Account SAKN1 from the KONV tabke. KWERT gets stored with the sign. I need to know how this condition amount will hit accounting. Would it be a debit or a credit entry on the accounting side. How can I do this? I cannot use the debit/credit indicator BSEG-SHKZG as we have a summarization on the material and we are trying to re-determine in a custom code what amounts should have posted to BSEG by material. While I am getting the amounts correctly from KONV, I am not able to figure out how these amounts should be treated on the accoutning side - as a debit or a credit?
    Example, on a regular invoice if the value is positive for a G/L account, on the accounting side the value is reverse in sign. However, this cannot be generalized as we can have many different types of invoices and different combinations.
    Thanks,
    Prayarna

    Hi ,
    if u are unable to use BSEG for credit or debit , then what u can do is , ask ur Functional ppl abt the condition types , which one will have -ve values in the pricing procedure..
    i think is the only way to do in this case , finding which condition type is -ve.
    regards
    PP.

  • Purchase Order item value breakup condition type wise

    Dear Sir,
    We are developing a custom report and in this report we need to reflect  for Purchase Order item wise the break-up of values  at the condition type level .
    In Me23n , at at Item Level , when we click on tab <Condition> then all values break-up at condition type level gets displayed .
    But to use in custom program , we need to know the table  where this information is available .
    Kindly guide us pl .
    Regards
    B Mittal

    Hi,
    This suggestion is based on my understanding of your issue.  May not be straight forward SAP solution.
    I would suggest you to make following assessment for your custom program: (going through the condition tab will lead you to structures)
    1. Try to figure out how the pricing condition are maintained.  Normally you have your Base price PBXX or gross price per EA defined that can be found in the PIR of the material + Vendor combination or in the pricing condition you would have defined.
    2. In same way figure out all the other absolute condition types.  I mean any thing that is not % percentage based on PBXX value. (assess ;your pricing Schema to understand this.
    3. Once you know how is your pricing schema  breakup then try to pick the net price of PO and then do a backward calcuation based on PIR condition value.    .
    Hope this helps.
    thx
    MJ

  • 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

  • Purchase Order Condition Value

    Hi,
    We have an issue with the Conditions in a Purchase Order raised by the client.
    In this purchase order, there are 151 items with PB00 or PBXX item conditions.
    However when these are totaled up (as a standard SAP functionality) and the values are displayed are at header level, we find that the totaled values are incorrect.
    For some values the quantity used for totaling at header level are incorrect.
    For eg. For one material, there are 2 line items of 16 qty each which total up to 32 items at 29.25 USD. However the header level shows the amount as 965.25 with amount as 29.25 and qty as 33.
    There are many such discrepancies between the header calculations and the item level quantities. In some cases items with PBXX conditions have been totaled up under PB00.
    Both PB00 and PBXX are configured as item  level conditions only.
    This results in Net Value of Purchase Order being wrongly calculated.
    Could anybody throw any light on why this happens and how it can be resolved.
    Regards
    Anjan

    Hello Anjan
    If u check the condition type PBXX and PB00, in PB00 in Group condition field , 'Group condition' check box needs to 'Tick'. Please check relevant help. I hope due to non tick in condition type, caculation in PO for above condition types are going wrong. Also check with Item and Header tick in condition type.
    Regards
    Amol

  • Fright condition & value sholud appear  in purchase order printout

    Dear Sir,
    I have made a smartform for purchase order , i want to add fright condition in purchase condition , now my client want this condition value should appear in purchase order printout aginst fright condition,
    What setting i have to do in MM confrigartion for doing this , and also what changes should ABAP do in smartform so this condition should appear and its value.
    thanks & regards
    Shailendra

    Hi
    In pricing procedure against this freight condition type select/tick print
    then only abaper can make appear in print
    Functinal speciciation for Abaper need to give as
    1. SE11 - EKKO u2013 contents- PO number, take doc. condition no.
    2. SE11 - KONV u2013 contents -  doc. condition no.
    3. Take condition value against condition type "FREIGHT" & Item no.
    Raju

  • BAPI_PO_CHANGE, changing condition value in the purchase order

    Hi Friends,
    I have a requirement,
    a flat file is present in the application server that contains the information about PO,PO-ITEM,Condition type, movement type , condition value, plant, storage location .
    And i m calling the bapi "BAPI_PO_CHANGE" and passing the po number to it.
    the bapi returns the following tables, i_return, i_header,i_cond, i_item,i_itemx.
    But the purpose of calling the BAPI is, to check, if the condition value in the specified PO is '0', then it has to replace with the value of condition type present in the flat file.
    But when we check the tablei_return, its shows error type.
    And the PO is not updated with the new  condition value.
    Help me out in sorting this problem, by telling me
    what value is to be passed to the respective BAPI and what should i do to solve the issue?
    and after that i m using a BAPI " BAPI_GOODSMOVEMENT_CREATE".
    and it is for the purpose of creating the GR(Goods Receipt),
    when i go through the i_return table of the bapi, it si returning a message that "BAPI_201  Unable to create goods movement".
    Help me in proving the input to those bapi's and how can i get the expected output?
    And let me know, what the bapi's ,"BAPI_COMMIIT" and " BAPI_ROLLBACK" , will be doing?
    Edited by: kumar t on Aug 9, 2008 1:02 PM

    HI
    [Check the Link|http://abap.wikiprog.com/wiki/BAPI_PO_CHANGE]
    [Commit|http://abap.wikiprog.com/wiki/BAPI_TRANSACTION_COMMIT]
    [Roll Back|http://abap.wikiprog.com/wiki/BAPI_TRANSACTION_ROLLBACK]
    Regards
    Pavan

  • Main Item net value showing as zero by condition type R100.

    Hi Experts,
    I am configured free goods, maintained condition record for exclusive free goods.
    but in sales order free goods item is not populating and when i see the analysis the requirement 55 not met.
    I removed the requirement 55 and i saved it.
    Still in the sales order the  free goods exclusive item not populating.
    and i find that main Item net value showing as zero by condition type R100.
    Why system showing the main item amount as zero by condition type R100?
    Thanks in advance.

    HI ram reddy
    you have to maintain R100 requirement -55 it should be there
    also Alternative Condition Base value - 28(100% discount)
    check your main pricing procedure having conditon type R100 or not if it is not there then maintain
    conditon record in VBN1 for NA00 check all the setting(calculation rule)
    activate free goods pricing correctly(NA0001)
    save it now try
    Regards,
    Krishna.
    Edited by: kris_hna on Jul 14, 2011 11:13 AM
    Edited by: kris_hna on Jul 14, 2011 11:31 AM

Maybe you are looking for

  • Need help with memory upgrade on Satellite A100-250

    Help me with upgrade memory on TOSHIBA Satellite A100-250 up to 1024 mb. I want to buy another slat of memory ddr2-533 512 mb, what exactly model am I necessary to search, that they worked in a pair. Sorry for bad english. From Russia with Love. PS.

  • Which Adaptors/Cords do I need to hook my  mid-2010 Macbook Pro into my new HDTV?

    I heard they changed the port (to include audio as well as video) after my model and I want to make sure I order the right adaptors so I can hook my macbook into my new HDTVs HDMI port. Can someone point me in the right direction? Thanks, Jake

  • Xfce4 Can't Start File Manager or Settings w/Non-Super User

    This is possibly a very stupid question, but I've been weeding through the forums and the wiki for a couple of hours now to no avail.  I've just installed Xfce and have it working in conjunction with GDM.  I can login just fine with my non-root accou

  • Nokia e75

    hi, i got a problem with my nokia e75, for some reason i cant update it, tried directly via the phone and via the updater and it keeps failing when trying via the phone i get "connection error" when searching for updates, but i can connect to the int

  • Can't install adobe flash player, error message says cannot contact a reliable source

    Everytime I try to download it, it gets to about 7% and then the error message says cannot contact reliable source. I used the adobe uninstaller to uninstall the previous versions, but no luck. I've tried locating hidden files but couldn't find any.