Update Condition records of an existing Service master in SRM

Hi All,
I want to develop a functionality to update Condition records like add new Vendor or delete vendor or change Amount etc. of an existing service master in SRM, which can be possible manually by using tcode COMMPR01.
Can you please suggest any standard FM or BAPI name to update existing Service Master. If you please provide sample code to update service master then it will be more helpful for me.
Regards
Anirban

FYI, the output of this call returns something like:
<?xml version="1.0" encoding="UTF-8"?> 
<queryplan>
    <union>
        <fullOuterJoin>
            <statement index="1">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), count( distinct SALES.inv_id) FROM SALES GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
            <statement index="2">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), sum(INVOICE_LINE.nb_guests) FROM SALES, INVOICE_LINE, SERVICE_LINE, SERVICE WHERE ( SALES.INV_ID=INVOICE_LINE.INV_ID ) AND ( INVOICE_LINE.SERVICE_ID=SERVICE.SERVICE_ID ) AND ( SERVICE.SL_ID=SERVICE_LINE.SL_ID ) AND ( SERVICE_LINE.service_line = 'Accommodation' ) GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
        </fullOuterJoin>
        <fullOuterJoin>
            <statement index="3">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), count( distinct SALES.inv_id) FROM SALES GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
            <statement index="4">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), sum(INVOICE_LINE.days * INVOICE_LINE.nb_guests * SERVICE.price) FROM SALES, INVOICE_LINE, SERVICE WHERE ( SALES.INV_ID=INVOICE_LINE.INV_ID ) AND ( INVOICE_LINE.SERVICE_ID=SERVICE.SERVICE_ID ) GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
        </fullOuterJoin>
    </union>
</queryplan>

Similar Messages

  • Updating condition records in an outbound delivery

    Hi,
    I'm trying to update condition records in an outbound delivery but couldn't find any suitable BAPI for the same so I just implemented the BADI 'le_shp_delivery_proc' and called a FM inside the method SAVE_DOCUMENT_PREPARE' which does a call transaction to VL02N to update the condition records. But the problem now is that, when I try to save this delivery, again the same BADI is triggered and goes through the same process of call transaction and thus gives me an error message that the delivery is locked as it indeed is.
    Can somebody suggest a way out of this problem. ??
    Thanks
    Ashish

    Hi,
    @praveen: I tried the solution provided by you and it worked for me in this context. But it seems this BADI gets triggered every time the delivery is getting saved. So for my test purposes, I'm triggering this BADI in a program, but in actual scenario, the BADI would be called on every sy-ucomm = 'SICH_T' i.e. SAVE. hence, I can't separate my piece of code using this condition.
    I'm trying to call my FM(update module in collective run mode) inside this BADI in backgrnd task as a separate unit but this doesn't seem to work.
    Any more suggestions?
    Thanks
    Ashish

  • Update condition records for delivery

    Hi
    Can anyone tell me is there is any function module or IDOC which updates condition records for Item level and header level for a delivery??
    I checked the standard BAPI's but they dont do..
    also can we use bdc ??
    Thanks
    Thilothama
    Message was edited by: Thilothama v

    Sorry, can't help there as I don't have access to that environment.
    Srinivas

  • Function modules etc for Updating condition records

    Hi Guys ,
                   Anybody have any idea on how to update condition records in CRM . I have used CRMXIF_COND_REC_SLIM_SAVE but this only updates product conditions ( condition table SAP004 ) . I want to update condition table SAP012 which is maintained in transaction /SAPCND/GCM .
                   Any ideas ?
    Regards,
    Radha

    Hi Radha,
    Even I am using the FM CRMXIF_COND_REC_SLIM_SAVE   to update conditions in the conditions table SAP004 and SAPSC012 , but for me the conditions are getting updated in table SAPSC012 but not SAP004.
    I want to update using the conditoin record guid and want to
    update the condition rate value.
    Can you please help .
    Thanks,
    Poonam.

  • Condition record not found for service net price

    Hi Experts,
    I have seen other posts related to this topic but didnt solve my issue. Issue is: in one system when trying to create PO for requisition, it says please enter a price for service item since "condition record not found" (because package number is wrongly taken as '00000000'. i dont know why).
    In another system, again the condition record was not found but its taking some non-zero value for ESLL-NETWR and successfully creating PO.
    In both the systems, coding is the same. No extra coding in user-exists. I think package is not properly determined. But in tables ESLH/ESLL, i see the values are stored in exactly the same manner as in the other system. I literally see no difference.
    What could be the problem?

    Solved myself.
    The difference was in the purchase organization data. Depending on this field there was some check: 'Ignore requisition price in PO'. This was checked in one system for a purch org due to which it was not picking the price from PR data.

  • How to update info record price in to material master as a standard price -

    Hi Experts,
    We have a client requirement as below:
    Client wants to compare the info record price per material for all related vendors.
    Once he arrives at the best effective price (Material Price + Freight + Duty), he would want this price to update in the Material Master Record as Standard price.
    I know we can use MR21 and LSMW to update this manually but we are looking to automate this process as we have more than 100,000 records in the system.
    Can the above requirement be addressed through CK40N? if yes, How?
    Thanks,
    Jammy

    Hi Jammy
    Usually, in std SAP, if there are multiple condition records, the one with lowest price is considered by the system in CK11N/CK40N
    Configure your valuation variant to pick up price from info record... As far as I remember, the one with lowest price would get picked up when you do costing run...
    however, if your requirement is bit different than this, but is based on a logic which can be configured in the system, then use Valuation Strategy U in your Valuation Variant and write your code accordingly in the exit COPCP005 (Component EXIT_SAPLCK21_002.)
    Regards
    Ajay M

  • Condition record exist but not set in SO

    Hi SDN Team,
    I have a problem.  Where in the sales order for the Discount condition type condition record where already exist in diffferent validity period.
    EG
    ZAJ1 discount condition type - with the same key combination with different valididity period
    EG:
    ZAJ1 - 27.01.2009 to 15.02.2009
    ZAJ1 - 16-02-2009 to 15-03-2009
    The reason is not set for the ZAJ1 condition in the Sales Order is due to the sales order was created before the pricing condition record validity datet.  Sales order where created on 11.02.2009.  But the condition record where valid from 16.02.2009  that is the reason the condition record was not set in the sales order.
    Based on this explanation user agreed and the call was closed. 
    I have also explained Where ZAJ1 has condition record. but which is not set in the document. if pricing was carried out again it will set the condition for the item.
    But now again the call was reopened stating that -
    At the time of creating the sales order the ZAJ1Condition record exist in the period 27-01-2009 to 15-02-2009. now the primary rebate should be used by the system. Unfortunately it did not.
    Based on the reopend call - i have further investigated the issue but i could not find the root cause.
    Based on this when i checked the previous order where the ZAJ1 condition was well picked up with the validity period 27-01-2009 to 15-02-2009, what might be the reason the condition type was not picked up in the sales order?
    Can you please let me know with your expertise in solving this issue.
    Regards,
    J

    1)Requirement is set with 2 (itme with pricing). and calculation type is assigned with own calculation type.
    2) In the pricing analysis - it shows as per below
    This message tells you that the condition record exists, but has not been set in the document. If pricing was carried out again for the document item, then the condition would be set.
    There are different reasons for this:
    The condition was deleted manually in the item condition screen.
    The condition record was created later. Please note that order processing and pricing have buffer mechanisms. This means that a newly added condition record might only be found after order processing has been left completely and then started again.
    If the condition type is used for subsequent settlement (rebate), there may be subsequent updating of business volume (the agreement is is created retrospectively). The document conditions do not contain the condition record, as the condition record was not created when pricing was carried out. Updating of business volume is carried out using special functions for subsequent settlement.
    When an item was added, the condition record was accessed with key fields other than change time. This could lead to different results in the requirements check at the time of adding and the change time. This can occur when modifications are made.
    In billing (or when copying orders): Certain condition types were not determined in the source document (this is usually controlled by the pricing requirements). When creating the document, the document flow (TVCPF,TVCPA) is processed using a pricing type that does not redetermine these condition types, although they are supposed to be called via the requirements.
    Thanks,
    J

  • No condition update from the sales orders exist - VK322 Message

    Hello All,
    I have activated " Condition Index" & " Condition Update" flag for one of my discount condition type and then created it's condition record along with scales on three levels. The condition type which I mentioned above is set as " Value Scale" in Scale Basis for checking the document value and apply the applicable discount percentage.
    I have created three sales orders wherein the discount percentage is getting applied as per my condition record ( so, the document value is getting accumulated and compared with the condition record correctly )  but when I try to check the cumulative values ( ctrl +shift + F4 ) from the condition record, I get information message " VK322" mentioned in the subject.
    VK322 -
    No condition update from the sales orders exist
    Message no. VK322
    Diagnosis
    The following causes are possible:
    1. There are no sales orders for the condition record that you selected.
    2. Updating condition records in the sales order entry is not active.
    Procedure
    Concerning 1:
    Check the sales orders created for the condition record that you selected.
    Concerning 2:
    Activate the updating for condition records in the sales order entry.
    I have checked everything in SPRO for this but could not find anything which can give me a clue to resolve this problem, especially " Concerning 2" part of this message.
    My requirement > To be able to see the cumulative values from condition record.
    Also, in which table the accumulated values get stored?
    Appreciate your expert advise on this issue.
    Regards,
    Hrishi
    Edited by: Hrishikesh Bhalwankar on Sep 13, 2011 1:59 AM

    Hello Everyone,
    I would like to thank each one of you for giving valuable inputs in regard to my requirement and I would like to let you know that I am able to achieve the results as per the expectation.
    I would also like to share some key things which I did ( with the help of all your expert inputs ) due to which the requirement is met:-
    1. Activation of ' Condition Index, Condition Update' in V/06 for the discount condition type.
    2. Maintained ' B - Value Scale' in Scale Basis for the said condition type in V/06 - my requirement was to check against a value to apply the necessary scale base percentage.
    3. Activation of ' S071' info structure via OM01
    4. Condition record maintenance as per the required scales.
    4. Written a new routine to check the accumulated condition base value from S071 along with the current document condition base value.
    5. Put this routine in ' Scale Formula' in V/06.
    This is giving me the perfect results for the correct application of the discount.
    Just last question - How to re-organize the S071 info structure as I tried to re-organize it with Standard Program ' RV15F001' but it is not re-organizing this info structure... Any idea on this?
    Thanks a lot friends for all your advice...
    Regards,
    Hrishi
    Edited by: Hrishikesh Bhalwankar on Oct 11, 2011 2:11 AM

  • Mass extention of service entry sheet condition record validity date

    Hi all,
          I have immediate requirement. i need to extend the validity date for condition record related to the Service entry sheet. This has to done mass sheet changes.
         I am looking for Any bapi or Standard function module or any config changes.
    I am looking forward for your valuable inputs.
    Regards,
    Sreenivasa Sarma K

    Arun,
    This doesn't suprise me...
    I'm not sure if there is a standard solution, but you could do this via user-exit/BADI (see [here|http://www.sapfans.com/forums/viewtopic.php?p=648307] under maintenance plans )
    PeteA
    [www.pjas.com]

  • Condition Records in Sales Deal are displayed wrongly as u201CBlockedu201D

    Dear expert I need your help on issue
    Example Sales Deal # 123456:
    If Sales Deal is opened with transaction VB22 (e.g. to add a condition record or to amend one), then all condition records appear first as released (blank in column u201CSu201D status and u201CPu201D processing status):
    But just after a slight scroll within the screen, both columns get a value (u201CAu201D in column u201CSu201D and u201CDu201D in column u201CPu201D) and therefore appear as u201CBlockedu201D and u201CDouble Check Neededu201D:
    But if the SAVE button is pressed, then the system reports, that no changes have been done:
    Actually when we enter with transaction VB22, condition records are not blocked, but released:
    But when we scroll then changes happened even we scroll in Vk12 or VB22
    Condition validity u2013is 10.04.2008 to 25.05.2008
    Regds
    Alicia K

    I know it is late but still iam replying as i got a similar error as it might help others in the future.
    On Creation of VA01 the Condition records were not populate KONV is blank and so when i update condition records on an item i get an error as above. I first updated pricing Conditions on all the corresponding line items and then did the save in VA02 and the SO saved.

  • Manual for service entry sheet and service master

    hello all,
                if someone is having manual available for service entry sheet and service master....
    regards,
    Rahul Bhardwaj.

    You have to configure service category in SPRO for service master and you can assign the number range in SPRO
    The path is SPRO is:
    Materials Management-External Services ManagementService Master---Define Service Category
    Service Master is created using AC03
    The service master record counts as part of the master data within External Services Management and serves as a source of data for you to draw upon when creating service specifications. This enables you to save time and reduces the frequency of errors, since you need only enter the complete service descriptions in the service master record once.
    A service master record contains the following principal information for the unique description of a service:
    Service number
    Service category
    Descriptive texts (short and long text)
    Base unit of measure
    Material group
    Valuation class by which G/l account is determined
    when you reference it in the PO, all the data gets transfered and you avoids the mistakes

  • FM FOR CREATING NEW CONDITION RECORDS FROM INPUT FILE

    Hello vikas,
    I need to develop a interface program FOR CREATING NEW CONDITION RECORDS FROM INPUT FILE.
    Is there ay function module to update or create the condtion records,
    if u have any example interface program to update conditions records please send me.
    regards
    ram.

    This must be your compiler output.
    Basically, it is telling you two things that are wrong - in syntax.
    1. On line number 11 of the file RationalCollection1.java, the compiler expects a type identifier - that would be the object or return type such as int, String, boolean, etc.
    The reason it is doing this is probably due to your not ending a previous statement - like the "expected ';'" error statement. Check your code, make sure that methods (brackets) are closed correctly and there are no open statements (i.e. missing the semi-colen at the end).
    2. On line number 33 of the file RationalCollection1.java, the compiler expected the closing bracket. Thus, you didn't put the bracket where the compiler wants it.
    It appears that you have skipped some lines of code. Those lines are the problem, post them - post lines 30-36 and 9-15 so we can see what is happening around those error lines.

  • Condition record getting deleted

    Hello,
    We have an issue with pricing condition ZPRO (basic price ).
    Our users created a sales order, let's say on 16.12.10 and the basic price ZPRO is determined based on the conditon record. Now on 17.12.10 , users are doing a re-determination of pricing for whatever reasons and to their surpirse, the condition type ZPRO is not appearing again in sales order. On checking the condition record for ZPRO, the same does not exist. They are not aware on how the condition record for ZPRO is getting deleted.
    They created again condition record for ZPRO and then re-determines pricing in sales order and then the ZPRO appears again in sales order.
    Now the above scenario (condtion getting deleted ) is happening for some more sales order !!
    We need to analyse why the condition record for ZPRO is getting deleted and how ?
    Can someone suggest how to check the same and why the above is happening ?
    regds
    Pamela

    hi Pam,
    please follow the given instructions:
    i guess that means condition record is being deleted by some body.
    because after deleting acondition record it will activate the deletion indicator checkbox & after a sales order is created the next movement it will say condition record does not exist.
    because thie condition records are dependent on validity periods.
    suppose the user is trying to create two condition records with in the same validity period one after the other.
    it will create only one and it will throw an POP UP message for the second one in this combination condition record existslie that with pretty good explanation.
    to find the user - goto VA02 - ENVIRONMENT - CHANGES if the relevant condition record is delted then it will show the name and date of record deletion
    hope this clears your issue.

  • Error while uploading conditions records in MEK1

    Hi All,
    I have a code that updates condition records in MEK1 from an excel sheet. The no of records in an excel sheet can go up to 60 k records. If i try to upload 5000 records, the coditions records are saved successfully. But then, if I try to upload 10000 records i get a error saying " Condition blocked by user " . On debugging I found out that the user id is mine. That is, same id as the person who is trying to upload records. The transaction is not open in any window as well.
    My question is, why do we encounter this error and is there any limit to number of records that can be uploaded at a time in MEK1?
    Thanks in advance,
    Sapna

    Hi Rao,
        For blocking you can commit in intevals or you can use wait command but it will take extra time but your records will update in one go,when a condition record is created,then after you try to update for same material or plant thats the reason its blocking,you can either use wait or adjust your excel files and avoid duplication of materials or whatever you are using in sequential manner.

  • Service Master Integration from ECC

    Hi,
    We are on Extended Classic Scenario and we are wondering if we are able to use the Service Master which is replicated from the ECC and use it when creating a Service Type Shopping Cart?
    We managed to get the Service Master into SRM and visible in COMMPR01 however when we raised a Service Type SC, we are unable to select the Service although the search help for the Service ID managed to return the result and once click OK, the Service ID is not in the SC. Error message "Product &1 does not exist; check your entries" /SAPSRM/PDO_SC 012.
    Anyone knows if the above are possible and if yes, are there any pre-req for this to happen?

    Hi Elham,
    Thanks for the reply as we have already managed to resolve the issue. The issue is due to some of the enhancement which we have done previously on the material which has caused the service master not being able to be selected into the SC. We have identified it and fix it.
    Regards,
    Tiang.

Maybe you are looking for

  • Can't open Email Settings after firmware updated a...

    Hi, I've upgrated my E71 with new 3.00 firmware yesterday and then restored phone memory from saved backup (yes, restoring is still a great pain for Nokia phones owners - you know, not all the software installed restores and so on, but that's another

  • Where do i see all the default tables and views in oracle 10g

    hi, I have installed oracle 10g in the linux os. I just wanna see the list of deffault tables and views created by oracle. can anyoone hlep me on this thanx in advance....

  • Photoshop Elements 12 Editor not working after Registration

    After installing & registering my Adobe Photoshop Elements 12, a week or so has passed since I last played with it. The Organizer still works fine, but the Editor sends me to a registration screen, which ultimately ends up telling me to ensure the In

  • TDS line item not generated during down payment.

    Hi, TDS line item not generated during down payment to vendors. Advanced tax codes have been properly assigned to vendors. Kindly help. Thanks in advance... Regards, Sriram.

  • GR inspection based on vendor batch

    Hi Guys, I have a test that must be done for each vendor batch(Not for every GR). Vendor may send materials from same batch in two or more deliveries let say in a month. I was thinking of using DMR but I couldn't find a way to relate it to vendor bat