Agreement Extracttion in 2LIS_02_ITM

Hi All,
Im trying to extract Purchase Orders with 2LIS_02_ITM, i use the standard LIS extractor and for certains PO i have purchasing agreements associated. The extractor uses EKPO and extracts the PO number, quantities, contract number, contract item etc.
The problem that im having regards to the fact that some contract data like target quantity (EKPO - KTMNG) always comes with 0 in the extractor, that´s because the extractor ITM only gets info that its available by the PO and not in the contract itself.
If i go to SE16 table EKPO with filter purchasing number = PO number, the field KTMNG gets =0
If i go to SE16 table EKPO with filter purchasing number = Contract number and document category = "contract" then field KTMNG gets values correctly for target quantity.
Can anyone help how to solve this? how can i get the KTMNG field correctly with the standard DS 2LIS_02_ITM.
Regards,
Pedro

Hello there
The extractor 2lis_02_itm will extract both Purchase Orders and Agreements.
In BW,
1. you can store the all the Purchase Orders in one InfoProvider ( restricting on doc. cat = F )  . These infoprovder will not have a field for  ktmng rather it will have PO specific fields such as PO no, po qty, PO Agreement no.
2. In the second InfoProvider, you can store all the agreements ( loading restricted on doc. cat 'K' and 'L') . These records will have field for  KTMNG
3. While reporting , you can join both the infoproviders ( prefereably an InfoSet) based on Agreement no.
If you do not wish to have a seperate infoprovider for Agreements, then you need to enhance 2lis_02_itm , on the following lines. (using internal table instead of direct c_t_data)
loop at c_t_data .
if c_t_data-BSTYP = F .   "  (if the line is a PO )
     if c_t_data-konnr NOT initial.     "  ( an agreement exists for po)
          select ktmng from ekpo
          where ebeln = c_t_data-konnr
                      ebelp = c_t_data-ktpnr into result.
           c_t_data-ktmng = result.
           modify c_t_data.
          endif.
endif.
endloop.
Hope that helps.
Regards
sanjyot

Similar Messages

  • Deleted records are not captured in 2lis_02_itm

    Hi SDN,
    I am extracting Purchase order records(more specifically Outline agreements ME23K) from 2LIS_02_ITM.
    When I delete a PO with Purchase Order History in ME23K and save it I am able to see the change recorded in LBWQ and now i run the collective run in LBWE I can see the total coloum in RSA7 filling with value 1.
    Now when i try to see the record in in RSA7 it is showing nothing and also when the delta infopackage is run zero records are being pulled.
    In a nutshell I am missing the deleted records with Extractor.
    Is there any way I can see the actual delta record sitting in LBWQ after the deletion is posted.
    Please help me out folks

    Hi,
    check this notes:
    FAQ: Business Warehouse (BW) in Purchasing
    SAP Note Number: [459517|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bct/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d343539353137%7d]
    Note [527490|https://websmp130.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=527490] - BW: Deletion indicator not set correctly - Part 2
    Regards
    Andreas

  • 2LIS_02_HDR, 2LIS_02_itm.

    Hi,
    i having a problem. I have keyfigures " Number of Scheduline agrements and Number of Sch, agreement Sche line" in purchase group cube which based on conditions in the field routine. like
    if HDRVORG =3  and no_hdr<>0
    result=  no_hdr.
    My problem is HDRVORG =3 not coming from data source and not able to find out in ECC.
    my question is
    1) where should i check in ECC.
    2) what is the meaning of '3'
    3) should i need to configure in ECC.
    4) what is the table name.
    2nd Problem:  Number of Sch, agreement Sche line.
    this key figure also based on condition if 0process key is 4, 14, 24....
    these values are also not coming from ECC.
    Note: this is new SAP SCM implementation.
    Please help me to fix this issue,
    Thanks

    TMC5 table is a good place to look for to better understand the values of HDRVORG
    The reference field is ZEITP.
    HDRVORG- Transaction for BW purchasing document- 2lis_02_hdr
    BWVORG- Transaction key for BW- 2lis_02_itm
    Now there are two types of purchasing item types- non return items and return items
    and the 6 types of document types- HDRVORG
    01-Purchase Order
    02- Contract
    03- Scheduling Agreement
    04- Request for Quotation
    05- Goods Receipt
    06- Invoice Receipt
    And based on your HDRVORG and item types you have different transaction keys- BWVORG.
    The fields HDVORG and BWVORG defines some of the features of the purchasing datasource, like number of deliveries- field ALIEF is only filled when the HDVORG- document type is goods reciept.
    And I understand number of schedule line agreements is a calculation. Sit with your functional contact and ask for more info.
    Hope this helps.
    Ram Chintala.

  • BW: Transaction Key  in 2LIS_02_ITM

    Hi ,
    In the datasource for Purchasing 2LIS_02_ITM and it is also there in the Schedule line item 2LIS_02_SCL, there is a field called BW: Transaction Key mapped to BWVORG in R/3. It looks to me, that it provides information about, whether it is a invoice, GR, and so on. Does anyone know, what are the different values and what do they mean. Thanks a bunch for helping me.

    Hi Sonali,
    Check oss 684465
    In the BW customizing is possible to maintain the description of the
    transaction key for transferring Logistics movement data to BW system,
    field BWVORG in purchasing data sources, but this will not change
    the BWVORG determination process.
    Customizing (transaction MCB0):
    Settings for application specific -> Logistics ->Purchasing settings ->
    Maintain Transaction Key for SAP BW.
    Here is a list of the values that BWVORG can assume, according with
    the purchasing item type, processed document and purchasing order type:
    1 - For non return items:
        a) Document type: Purchasing order
            - Normal purchasing order - BWVORG = 001
            - Stock transport order   - BWVORG = 011
            - Cross company order     - BWVORG = 021
        b) Document type: Goods receipt
            - Normal purchasing order - BWVORG = 002
            - Stock transport order   - BWVORG = 012
            - Cross company order     - BWVORG = 022
        c) Document type: Invoice receipt
            - Normal purchasing order - BWVORG = 003
    - Stock transport order - BWVORG = 013
            - Cross company order     - BWVORG = 023
        d) Document type: Scheduling agreement
            - Normal scheduling agreement - BWVORG = 004
            - Stock transport agreement   - BWVORG = 014
            - Cross company agreement     - BWVORG = 024
        e) Document type: Contract
            - Normal contract             - BWVORG = 008
            - Cross company contract      - BWVORG = 028
        f) Document type: Request of quotation
            - Request of quotation        - BWVORG = 009
            - Quotation                  - BWVORG = 040
    2 - For return items:
        a) Document type: Purchasing order
            - Normal purchasing order - BWVORG = 005
            - Stock transport order   - BWVORG = 015
            - Cross company order     - BWVORG = 025
        b) Document type: Goods receipt
            - Normal purchasing order - BWVORG = 006
            - Stock transport order   - BWVORG = 016
            - Cross company order     - BWVORG = 026
        c) Document type: Invoice receipt
            - Normal purchasing order - BWVORG = 007
            - Stock transport order   - BWVORG = 017
            - Cross company order     - BWVORG = 027
        d) Document type: Scheduling agreement
            - Normal scheduling agreement - BWVORG = 041
            - Stock transport agreement   - BWVORG = 051
            - Cross company agreement     - BWVORG = 061
    Jaya

  • 2LIS_02_SCL and 2LIS_02_ITM missing records

    Hi,
    We have a problem with DS: 2LIS_02_SCL and 2LIS_02_ITM. We load data in 0PUR_C01 throu Bi content standard objects (0PUR_C01 2LIS_02_ITM / ...SCL). ... there seem to be problem with DS because In infocube 0PUR_C01 we don't get consigment records (consigment records - possition on PO). I have already checked DSs in RSA3 and those records are missing?
    Any ideas?
    JN.

    Hi,
    are you sure you have PO's for your consignments? I would recommend to check the source tables EKKO, EKPO and EKET first. Once you are sure to have PO's there for consignments you can run  RSA3 for the DS with the EBELN (PO Number) and confirm that the extractor does not extract them. One thing to watch out for the RSA3 does not pull from the delta queue but from the setup tables. So you need to make sure that the Consignment Document you are missing are the setup tables.
    Hope that helps,
    Michael
    PS the extractor also pulls BSTYP Document Category K (Contracts) and L (Scheduling agreements)
    Edited by: Michael S on Jul 14, 2009 12:20 PM

  • Difference Between 2lis_02_itm & 2lis_02_scl

    Hi All,
    My client here does not use schedule lines. But we realized that process key 7 was not captured by 2lis_02_itm and had to implement 2lis_02_scl to cater this deficiency. I went on with the assumption that SCL will capture all events that ITM captures except for Quotations and Contracts (Which my client does not use). But when I extracted data in high volumes thru ITM and SCL and did a comparison between the two, I realized that SCL captures limited data.
    My question here is :
    What is the basic difference between the extractors in terms of events that they may capture. Lets take for example the event for PO create/change - Does the extractor function differently when one creates or changes a regular PO?
    Thanks.

    Thank you for the reply Anil. I understand that ITM extractor captures the following events :
    PO/GR/IR/Quot/Contracts whilst SCl capures PO/GR/IR. For this do you agree that SCL will catch all events of ITM except for Quot and Contracts. So if a PO were to be created or changed then both the extractors shoudl capture the events. But in my case it does not see happen. ITM captures it but SCL does not.

  • Unable to capture field values in Master agreement  Line Items

    I am trying to get the field values from master agreement line items page. I have written the following code to get the line item details which is working fine to capture part number and quantity->
    agreementBean = doc.getRootParentIBean();
    lineItemCollection = agreementBean.getLineItems();
    collectionsize = lineItemCollection.size();
    for(i=0;i<collectionsize;i++){
         collectionbean = lineItemCollection.get(i);
         partNum = ""+collectionbean.getPartNumber() ;
         Quantity = ""+collectionbean.getQuantity();     
         throw doc.createApplicationException(null,partNum + " , " + Quantity );
    Now, my problem is that I am unable to capture the following field item values in the master agreement > line items page.
    1. Price Unit
    2. Unit Price
    3. Product Category
    4. Plant
    Please help me to find the values.
    Thankx in Advance.
    Su
    Edited by: subrataindra on Aug 10, 2010 11:11 AM

    This will return the name of the plant.
    .getExtensionField("PLANT").get().getDisplayName(session);
    Check if this returns the product category
    collectionbean.getExtensionField("ITEM_CAT").get().getDisplayName();
    This will Return the Price
    collectionbean.getExtensionField("PRICE").get().getPrice();
    (return type :BigDecimal)
    This will return the currency
    collectionbean.getExtensionField("PRICE").get().getCurrency;
    (Return type:String)
    Similarly to retrieve other fields for which there are no standard functions, use .getExtensionField("Field ID")
    Hope this helps
    Regards,
    Immanuel

  • How to measure performance of supplier when using scheduling agreement ?

    Hello all,
    My client has an absolute need to be able to measure the performance of its suppliers based on delivery dates and delivered quantities. That is to say he needs to be able to compare what dates and quantities were asked to what has been really delivered.
    Most of the procurement processes used are based on scheduling agreements : schedule lines are generated by MRP and forecast is sent to supplier while firm requirements are sent through JIT calls.
    It seems that when doing GR in MIGO, it is done against the outline agreement number, and not against the call. Therefore, we have no way to compare dates and quantity with what was expected (in the JIT call).
    Do you know if SAP proposes a standard solution to this, and what could be a solution to this issue ?
    Thanks for your help
    E. Vallez

    Hi,
    My client faced the same problem and we ended up developing an own analysis in LIS. Since the GR is not linked to specific schedule line (SAP does some kind of apportioning, but it doesn't have to correlate to the correct match), one needs to do assumptions. Our assumption was the closest schedule line, i.e. each GR is related to the schedule line with the closest date. Then all GR the same day are totaled together before the quantity reliability is calculated, since the very same shipment can be reported through several GR transactions in SAP (one per pallet).
    If anybody has info about what SAP has to offer in this question (or is developing), please tell us!
    BR
    Raf

  • How to put schedule lines for one year  in a schedule line agreement

    dear all
    thanks for the support till now from the forum
    now i need some seetings by which the scheduling agreement will autoumatically take the schedule line for one year automatically
    in my client we are getting open PO so
    we have to make one agreement acording to that PO and thats for one year
    and this one yr will have same quantity to be produced everyday
    means 12nos of material every day for 12 month and this will be for every day
    and as per that it should generate a sales order.i need to put schedule line automatically not mannually one by one for each date.so wat is the settingand how to reffer this scheduling agreement we can produce sales order.
    please help
    subrat
    Message was edited by:
            subrat panda

    Dear Subrat,
    you cannot create a yearly schedule line in the scheduling agreement. It is not possible due to format restrictions of the date field. But what you can do is the follows (it is the modification, but it should work with the help of user-exits):
    1. You can split the year schedule line to the monthly schedule lines. There are two ways to do it. If you apply the DELINS IDOC, then you can do it already during transfer of the data to the application (itr is the best way). Here you can use, for example, user-exit USEREXIT_ZUORDNEN_IDOCS (include LVED4FZZ) or customer function EXIT_SAPLVED4_002, called from the subroutine USEREXIT_DYNPRO (Include LVED4F0U). Alternatively, you can use the user-exit USEREXIT_MOVE_FIELD_TO_VBEP (Include MV45AFZZ) within the call transaction, then it will work also in the dialog case.
    2. After getting the monthly schedule lines, you can create a planning delivery schedule, where you can split mothly schedule lines automatically to daily schedule lines according to the customer factory calender.The settings for generation of planning delivery schedules can be found under:
    Customizing SPRO: Sales and Distribution => Sales => Sales Documents => Scheduling Agreements with Delivery schedules => Maintain Planning Delivery Sched. Instruct./Splitting Rules
    It is the only ways, how you can reach your aim. I hope, this information will help you further.
    Kind Regards,
    Akmal Vakhidov
    Development Support SD, SAP, Walldorf/Germany

  • Order of delivery schedule line counter at schedule agreements from MRP run

    Currently we are using schedule agreements for our long term external suppliers, but we are facing a problem with the order of new delivery schedule lines created during MRP run.
    Because of master data settings like, lot size, rounding value, plan delivery time and planning time fence to set as firm new requirements, multiple schedule lines are created with no order for schedule line counter.
    Does anyone is aware of a BADI, user exit or customizing control to have this schedule line counter in order?
    Thank you
    Daniel Guillen
    IT
    Skyworks Inc.

    Hi,
    Pls put this query in SD fourms  and get immly help because this is technical fourms.
    Anil

  • MRP To Generate SCHEDULE LINES for Scheduling Agreement

    Hi
    I have followed the below steps but still the Schedule lines is not generated for scheduling agreement.
    1Maintain MRP views 1,2,3,4 for the material in material mste.(MM01)
    2. Maintain Purchase Info Record for the vendor plant & material combination.(ME11)
    3. Create Scheduling agreement using ME31L
    4. Maintain source list for the material & the scheduling agreement # and Line item set the MRP relevant indicator 2 (Necessary ?) ME01
    During Run MRP for the material.the below details entered///
    Processing key NETCH Net Change in Total Horizon
    Create purchase req. 1 Purchase requisitions in opening period
    Schedule lines 3 Schedule lines
    Create MRP list 1 MRP list
    Planning mode 1 Determination of Basic Dates for Planned
    Run MDBT or MD02 but still doesn't create the schedule lines......Anything else missing.
    MRP1:
    MRP Procedure: PD
    MRP Group: 0000 (External Procurement only)
    Lot Size: EX (Lot For Lot)
    MRP2:
    Procurement Type: F
    Sched Margin Key: 000
    MRP3:
    Avilablity chec: 02 (Individual requirement)
    MRP: 4
    Nil

    Raj,
    Source List a Mandatory for Scheduling Agreement, if you want to create automatic Scheduling line.
    Plz use (2) in MRP RELEVENT tab in ME01 (Source List).
    rest of the thing is ok, make sure a material master(MRP 2 VIEW) in that view you have to give a planed delivery days. it is must.
    HOPE IT WILL WORK
    Regards:
    Poision

  • About selecting Scheduling Agreement and Forecast delivery schedule

    Hi Experts,
    i want to write a Report, with 2 parameters for the selection : Sold-to-party and Period
    For this Sold-to-party/Period, I want to list all scheduling agreement + Forecast delivery schedule.
    I already found the Function SD_VBEP_READ_WITH_VBELN to read all Forecast delivery schedule lines using Sales Doc.No. , but how can I select all Scheduling Agreement for the Period ?
    Regards,
    David

    Solution:
    by selecting data from table VEPVG (Delivery Due Index) and using function SD_VBEP_READ_WITH_VBELN for each SD Document.
    Regards,
    David

  • *MRP unable to create Delivery Schedule Lines in MM Scheduling Agreement*

    Hi Experts,
    I need your help...
    The issue is, in-spit of maintaining Source List with an u201CScheduling Agreement with item No.u201D & u201CSource List Usage in MRPu201D as 2 (Record relevant to MRP. Sched. lines generated automatically), MRP run does not generate Schedule Lines, instead PRs are created.
    Please help me to understand such behavior and fix the issue as the requirement is to generate Schedule Lines only.
    Thanks,
    Pratap

    Hello
    Please check
    1) Source List maintained properly in terms of Material # ; plant # ; proper POrg ; Schd Agr # and line item# ; proper validity date & MRP relevant indicator
    2) Please also check Quata arrangement if you are using. whether % is maintained correctly against the vendor
    3) MD03 , Delivery schedules- should be 3
    4) check your planning horizon whether it is NETCH or not
    5) check material master -MRP2 view, Procurement type is F- external procurement, schedule margin key if you are using
    if everything above is set, then I feel it should work
    Also please verify-
    lot size, safety stock and the corresponding prod volume for MRP input v/s the stock available in MMBE
    example.
    MD04, we can see the open del lines.
    if SS = 50 , prod volume is 150
    1) if MMBE shows 200 then it wont generate any schedule.
    2) if MMBE is 180 and your lotsize is 40, then after MD03, you will have a schedule line of 40 (provided if everything is set properly)
    Please ensure there are NO open delivery lines . if you find such in MD04, then please close open delivery lines
    in calculation of MRP, system considers such open delivery lines are going to receive and no additional schedule line generated even after MRP run
    thanks

  • Error in creating a schedule agreement

    hi friends
    i got an error in creating a scheduling agreement
    the error reads- 'zjk5(the output type ) is not defined'
    condition records,port definition,partner profiles everything is fine.
    another error that reads is 'No communication data is set for medium 6ie edi'
    please answer this problem.thanks is advance.

    Hi,
    Check the Output type was created or not for that Scheduling Afreement?
    check the table T685 for that Output type?
    And n the diocument have you configured the Output type with the correct medium (EDI  value 6) and have you assigned the same in NACE tcode?
    check
    reward points if useful
    regards,
    Anji

  • Error while executing a JDBC to Idoc scenario : No standard agreement found

    Hello SAP PI Gurus, 
    I am having a JDBC to idoc Scenario .And the interface is running at 10 min of duration. 
    <SAP:AdditionalText>No standard agreement found for ,
    BS_EXT_CTBSREPDB, , BS_ERPQAS_QE1_320, http://XYZ.com/FI/FI_FI_01/Charges, FIDCC2</SAP:AdditionalText>.
    While i test the configuration...i get an error in reciever agreement as mentioned above.
    Can you pls help me in resolving this issue.
    Regards,
    Ravi

    Hi,
        I think the problem is with namespace....for IDOC the namespace will be "urn:sap-com:document:sap:idoc:messages"...but in your case it is different.....i.e http:....etc.....please check whether you 've used the same IDOC withe above mentioned namespace in all the configuration objects like interface determination, receiveragreement etc.....
    Thanks
    Priyanka

Maybe you are looking for

  • Windows 7 32 bit search of PDF files does not work

    I have installed Windows 7 on a 32 bit Dell Laptop and I can no longer search the content of my PDF files using Microsoft's search in Windows Explorer which I need to do. I've tried following the advice listed on several sites on line and nothing see

  • 2WIRE Interfering with my wireless connection through Airport hub

    I live in a condo in the downtown area. I use cox communication as my internet provider. Because this is a condo located around other condos my wireless connection stops as soon as someone turns on their 2WIRE wireless router. In fact, even if I use

  • Classilla 9.3.1?

    next week i'm going to download classilla 9.3.1 to a g3 600mhz imac. i've never used classilla. in fact it's been more than two years since i've used the internet on this machine. before someone comments, i DO NOT watch videos on the internet. any ti

  • IPhoto file extension

    Hi All, I have been looking through my Events on iPhoto. I think I originally installed v8. Anyway, my filenames are showing the extension ie dsc_0123.jpg as the filename. However, my more recent events are not showing the file extension. Its annoyin

  • HT1688 can't pair iPhone 5 to Cadillac CTS 2009

    Just tried to pair my new iPhone5 with a Cadillac CTS 2009 bluetooth.  It wouldn't pair, even though my iPhone4S did.  Cadillac says it's an apple problem.  Has anyone else had this problem?