Add validation in Sourcing Cockpit

Hi all,
I want to add a validation in the step 2 "Assign Sources of Supply".
I've tried to add this validation in the class /SAPSRM/CL_CH_WD_DOM_SOCO_GAF2. But in the method DOC_CHECK can't put an enhancement point, the following message is displayed; "Implicit enhancement impl. cannot be displayed due to syntax error"
Then, i've tried to do it in the method /SAPSRM/IF_CLL_MAPPER~REFRESH. But i have a problem. When my error message is displayed (when the user try to create a draft) all the items are removed in step 2 and filled in step 3. Although I am staying in step 2.
On top i can read in the step 2 :Assign Sources of Supply ( No Items ), and in the step 3: Review Drafts ( 1 Items ).
I use the following code for add the message;
loe_workarea = lon_workarea->get_element( index = sy-tabix ).
        lv_msgv1 = ls_workarea-EXT_DEMID_POSID.
        CALL METHOD mo_cll_message_handler->add_validation_error
          EXPORTING
            iv_msgno      = 022
            iv_msgid      = 'Z...'
            ioe_error     = loe_workarea
            iv_msgv1      = lv_msgv1.
And i have managed to repopulate the table in step 2 as well;
mon_cll_set_facade->bind_data_table( EXPORTING new_items = lt_workarea_all
                                                   set_initial_elements = abap_false ).
But i don't know how remove the lines of the table in the step 3...
Do you know how can i do it? I do not know to if it has become clear.
Thanks in advance.

Finally i've put an enhancement point in the method /SAPSRM/IF_CLL_MAPPER~CHECK_FOR_REQUIRED_FIELDS

Similar Messages

  • CRVS2010 Beta - Error: No valid Report Source is available

    I am new to using crystal reports in .NET so any (un-jargoned) help is much welcomed and appreciated.
    I am implementing an web application on a Windows XP machine using VS2010 and have downloaded and installed the CR4VS2010 beta 2 and the CRforNET40_x86.  All installed OK with no errors.
    I have embedded a crystal report viewer into my web page and have populated a dataset (myDS) successfully from my SQL server connection earlier in the code.
    The report (stoppages.rpt) is an untyped report stored in a separate folder and has 2 datetime parameters to pass in.  When I run the web app it runs fine until the parameter boxes appear - I enter 2 valid date values into the parameter boxes when I hit OK I get an error - No valid report source is available.
    My code is shown below - I have searched other forums and it was suggested to put in the session.add part but the error occurs with or without this bit in...
    Please help - newbie and desparate! Thanks
    Dim myReportDocument = New CrystalDecisions.CrystalReports.Engine.ReportDocument()
                myReportDocument.Load("C:\Reports\stoppages.rpt")
                myReportDocument.SetDataSource(myDS)
                Session.Add("Report", myReportDocument)
                crvThisReport.ReportSource = myReportDocument
    Subject modified as per the sticky post at the top of this forum; [Crystal Reports for Visual Studio 2010 Beta - read before posting|Crystal Reports for Visual Studio 2010 Beta - read before posting;
    Edited by: Ludek Uher on Oct 13, 2010 7:22 AM

    Hi Ludek,  I tried adding
    <startup useLegacyV2RuntimeActivationPolicy="true">
      <supportedRuntime version="v4.0"/>
    </startup>
    to the config file but it didnt resolve the problems. 
    However I think I have found a work-around solution to setting the parameters programmatically rather than use the crystal report viewer pop-up boxes.  I am posting my code to help anyone else who might be experiencing the same problems:
    Dim myReportDocument = New CrystalDecisions.CrystalReports.Engine.ReportDocument()
    myReportDocument.Load(Server.MapPath(strRptPath))
    myDS.WriteXml(Server.MapPath(strXMLPath), XmlWriteMode.WriteSchema)
    myReportDocument.SetDataSource(myDS)
    myReportDocument.Refresh()
    myReportDocument.SetParameterValue("DateFrom", #9/1/2010 6:35:00 AM#)
    myReportDocument.SetParameterValue("DateTo", #9/8/2010 6:35:00 PM#)
    crvThisReport.ReportSource = myReportDocument
    DateFrom and DateTo are the parameter names within my crystal report.
    It seems to be working fine, it stops the crystal report viewer from displaying the parameter pop-up box which stops the error occurring.  However, the error still occurs when you want to interact with the report in other ways, ie page navigation, group tree navigation.  It still allows me to print, export and zoom in and out, so I will have to disable some buttons and features until this error is resolved - the search continues!
    Thanks for all your help and advise.
    Edited by: juliep68 on Oct 14, 2010 11:33 PM

  • Buyer not able to change fields of SC in sourcing cockpit in SRM 7.0

    Hi
    We are on SRM 7.0 , SP 07 . We are in classic mode.
    Buyer is not able to change fields of shopping cart in sourcing cockpit like delivery date and quantity . He is able to add supplier and create PO . Even when he creates draft PO , he is not able to edit the fields of shopping cart like delivery date and quantity. Is it a standard Bug , is their any OSS SAP Note for this
    Regards
    Ashish

    As per SAP Standard BUYER can only vendor and Enter price and create  a follow on document.
    Buyer does not have a control to edit other data.
    Buyer wants to they can do it in ME21N ..PO
    not in the shopping cart

  • Resctriction while displaying work items in sourcing cockpit..

    Dear all SRM gurus,
    We are using SRM 5.0 extended classic scenario.
    We are having a requirement to restrict the work items in sourcing cockpit based on the purchaser user id, i mean particular SC's should be visible to particular users only..
    Is there any BAdI or any other procedures to restrict the display.
    Thanks in advance,
    Chandra Sekhar.

    Hi,
    You can easily do this by implementing the badi "BBP_WF_LIST" for the object type SOCO.
    Here is the documetation of the BADI -
    BBP_WF_LIST
    Short Text
    Display Worklists and Search Results Lists
    With the Business Add-In BBP_WF_LIST , you can tailor the
    display of worklists and search results lists for purchase order documents (and Sourcing applications) in SRM Server according to your own criteria.
    Standard settings
    The following methods are available:
    BBP_WF_LIST for purchasing documents
    <b>BBP_WF_LIST_SOCO for the Sourcing application</b>
    In the standard version, the following differences exist between the display of worklists and search results lists:
    Normal employees see only their own requirements and documents
    The purchaser's worklist in Sourcing and in the application for processing purchase orders is dependent on assignment to an organizational unit.
    The goods recipient and invoicing party can find all purchase orders, confirmations, and invoices.
    As standard, the system sorts the purchasing documents in ascending order by the last date of processing.
    To distinguish between the worklists and search results lists of the SRM Server applications, the BAdI is implemented dependent on the following filters:
    BUS2201
    Filter value for the worklist in purchase order processing in SAP Enterprise Buyer
    BUS2203
    Filter value for the worklist in confirmation processing in SAP Enterprise Buyer
    BUS2205
    Filter value for the search results list in invoice processing in SAP Enterprise Buyer
    BUS2121
    Filter value for the worklist in shopping cart status check in SAP Enterprise Buyer
    BUS2200
    Filter value for the search results list in bid invitation processing in SAP Bidding Engine
    BUS2202
    Filter value for the search results list in bid processing in SAP Bidding Engine
    BUS2000113
    Filter value for the search results list in contract processing in SAP Enterprise Buyer
    Activities
    Implement and activate the BAdI if you wish to adapt worklists and search results lists.
    Note that the filter value Object type (field OBJECT_TYPE) determines for which application the BAdI implementation is active.
    Example
    Using the BadI BBP_WF_LIST you can sort the worklist by document number, for example, or remove documents belonging to a particular user from the worklist.
    The implementation of the BadI using Business object type BUS2205 allows you to change the list of invoices and the purchase orders associated with these invoices independently of one another. For example, you could sort the purchase orders by purchase order number and the invoices by the name of the user who created them.
    You can exclude bid invitations from a certain product category, for example, from the purchaser's search results list in SAP Bidding Engine.
    You can exclude contracts from a certain purchasing organization or purchasing group, for example, from the purchaser's search results list in SAP Enterprise Buyer.
    Further notes
    If the BadI is used for confirmations and purchase orders, it always accesses the list of the actual document and its purchase orders.
    The purchaser's worklist contains only requirements that, according to Customizing, are to be processed in the Sourcing application. See the IMG activity Define Sourcing for Product Categories.
    Sample code in foll threads:
    Filtering content in the SRM confirmation worklist
    Re: Purchaser worklist
    BR,
    Disha.
    <b>Pls reward points for useful answers.</b>

  • Why SAP keEp editable Contract FIELD /ITEM in the workarea sourcing cockpit

    Hi All
    Why SAP kept editable (easy to enter) a contract in the work area of the sourcing cockpit.
    since buyer may enter irrelavant contract w.r.t shopping cart right.
    Any specific reason?
    Unfortuntaely buyers enter any contract which is not relavant to contract details to create a PO...
    PO also successfully created w.r.t contract and PO release values are updated in contract too.
    Hope that for specific reason SAP kept the same as easy enter. why?
    buyers can use  propose source of supply right? why SAP made it editable entry here .Why design kept CONTRACT entry become manual. here . it really confuses me .
    Thanks
    Muthu

    Thanks SAP 1290196  :-No Validation of Material Group in Contract item in Sourcing
    muthu

  • Sourcing cockpit field should be greyed out

    Hi,
       In Sourcing Cockpit, the purchase Org and Purchase Group field should be Greyed out in "Find" tab...
    How can we achieve this.?? Is there any BAdi availbe???
    thanks........

    Hi, thank you for your quick reply. but i have new problem regarding this requirement.
    I have created logic as shown below:
    IF is_header-total_value LE 500000.
        IF iv_fieldname = 'START_BIDDING_BUTTON'.  " Create bidding button name
          cv_invisible = '1'.
        ENDIF.
    ELSEIF is_header-total_value GT 500000.
        IF iv_fieldname = 'PROCESS_ORDER_BUTTON'.  " Create purchase order button name
          cv_invisible = '1'.
        ENDIF.
    ENDIF.
    It seems to work but why can't i find any value in the table is_header nor is_item: (I have already add SC in the work area)

  • Custom Field/Column in Sourcing Cockpit Overview

    Hi All,
    We are using SRM 5.0 Classic Scenario and requirement is to add custom fields like Material No. and Delivery date on Sourcing cockpit overview as columns.
    I have already checked the Templates and the Screen for SAPLBBP_SOCO_UI_ITS screen 200 and 300. Since there are no structures availing Custom fields I do not think we can add custom column in SOCO Overview.
    Request your guidance on how to, if this functionality can be achieved.

    Hi Swarnim,
    To bring customer fields to the sourcing cockpit , you need to add those custom fields to shopping cart first and these fields will automatically show up in the sourcing cockpit.
    To add fields in the shopping cart you need to follow the steps given in the following blog:
    /people/nanda.kondagunta/blog/2006/10/23/how-to-create-custom-fields-in-srm
    To find out in which structures the field is to be included you can go through the following notes:
    Note 672960 - User-defined fields 2
    Note 458591 - User-defined fields: Preparation and use
    And after adding the fields in shopping cart you need to regenarate the sourcing screens so that the custom fields are dispalyed in the sourcing cockpit. For doing that the below given note:
    Note 632982 - Generation of the screens for the sourcing.
    Hope this helps.
    Thanks,
    Pradeep

  • Sourcing Cockpit in Classic Scenario

    Hi,
    We are implementation SRM 7.0 Classic Scenario.
    The client requirement is this. They want a requester to create a incomplete shopping cart, as they are not aware of the price and the vendor at times. Now they want the incomplete shopping cart to be picked up by the buyer in the sourcing cockpit, add the price and vendor details, and then this cart to go ahead with the approval hierarchy.
    Now I understand that the PO gets created directly from the sourcing cockpit, but is it possible for the buyer to complete the SHC first(we are ok with buyer approvals), and then for the SHC to go through the approval hierarchy. Else is there any other Solution for this.
    Please suggest.
    Ron

    Hi
    after approval only the SC goes to cockpit or follow on document created.
    BUYER can determine the price
    you can do the configuration Sourcing carried out without source of supply.
    though REQUESTER eneter any price , BUYER can override the price.
    If requester assigned prefered vendor or without any vendor - it will go the cockpit.
    if REQUESTER enter any price if requester assign any fixed vendor, PO will be created since - Free text sc - Product category contract,
    if it is material , the price can be picked from contract like any fixed siurce of supply.
    Muthu

  • Reject SC from Sourcing Cockpit

    Hi All,
    My client has some different kind of requirement,
    We have implemented SRM 4.0 Extended Classic scenario in which we have turned on Sourcing Cockpit to provide buyer functionality to add various Shopping Carts and create one single PO to one Vendor.
    Now client want a functionality in which Purchaser (Buyer) can Reject some shopping Cart back to Requestor. As a standard SRM Sourcing cockpit, It allows to set flag as complete and send one email to requestor that Shopping Cart has been complete. They didn't like this functionality and they want to have multiple selection at the click of "Complete" button where they can select option such as "Reject" Or "Can not Order" Or "Complete". Along with this option they want a free text form where Purchase can enter the the reason for Rejection which then goes into email to Requestor.
    Prsent Standard SRM Sourcing Cockpit is ambigutous to the Requestor whether Shopping Cart has been created PO or Rejected.
    Does anyone come acorss this kind of situation? Is there any BADI available where we can call some custom screen and based on custom screen we can send emails to Requestor? I could not find any such BADI available for Sourcing Except few which does not solve the purpose.
    Kindly let me know.
    Thank you
    Ritesh

    Hello Ritesh,
      I have similar requirements where I need to group the Sourcing rquirements as per SC ID and then display them in Sourcing Cockpit.
      Purchaser would have the option to reject entire SC or individual item of the Shopping cart...
      Could you please let me know how you have handled the grouping part ??
    Is there any BADI by which we can define the grouping rules???
    Currently, I am planning to do this by modifying ITS template (1100) in SOCO.
    PLease let me know if there is better way of doing this.
    Regards,
    Girish

  • Sourcing cockpit - customer columns in worklist.

    Hi,
      I added two fields in item level of shopping cart as mentioned in note Note 672960 - User-defined fields 2
    After that In sourcing cockpit I am not able to see the customer fields in the column list where as when I add the shopping cart to the workarea, In the workarea the customer fields are visible as columns.
    Fields in worklist.
    Description  Category  Quantity  Requester  Name of Vendor  Requirement   Contract  Bid Invitation  PRS Number  Auction  Manufacturer Part Number  Manufacturer 
    Fields in workarea are :
    Description  Category  Quantity  Requester  Vendor  Name of Vendor  Gross Price  Net Price  Requirement   Contract  Info rec.  Purchasing Group  Manufacturer Part Number  Manufacturer  Pur Grp  Requestor
    The last two columns Pur Grp and Requestor are the two fields added to shopping cart item level.
    Why is it like customer columns are displayed in Workarea but not worklist?
    Is the note 632982 Generation of screens for sourcing  is the solution for this problem which tells about deletion of screens?
    Thanks.

    Hi
    Which SRM version are you using ? Where you have added the fields - At Item level or Header level ?  Are they appearing in the Extended Search functionality ?
    Please ensure that the Append and Include table structures are activated carefully and also send the screen shots as well.
    Anyways, Try the following SAP OSS notes.
    <u>Some useful SAP OSS notes -></u>
    <b>
    Note 809630 - Customer field in bid invitation and bid - How does it work?
    Note 672960 - User-defined fields 2
    809628 - Table like customer fields from bid invitation in bid
    935433 - Error in structure BBPS_PO_NOVATION after adding CUF
    798731 - Bid: Bid Inv. Customer fields not visible
    762984 - SRM40-SUS: Implementation of customer enhancement fields
    675800 - Business partner enhncmnt in EBP4.0 data on maintenance scrn
    458591 - User-defined fields: Preparation and use
    Note 632982 - Generation of the screens for the sourcing
    </b>
    Have you raised any OSS message with SAP yet ?
    Do let me know.
    Regards
    - Atul

  • Alert - Items were canceled in Sourcing Cockpit

    When a Item is "Rejected" from Sourcing Cockpit, an alter "Items were canceled in Sourcing Cockpit" is created for the user in Work overview.
    The alert alone doesn't give the user any clue what Shopping Cart / item is cancelled.  I tried to use the transaction ALRTCATDEF but not sure how to add the shopping cart / item number to the message.
    Any help is well appreciated.
    - Vijay Alisetty

    Hi Vijay
    system send a message to the requestor that this biuyer has complated a shopping cart item with an attachment
    check SOST boss.
    Shopping Cart Item Completed by Purchaser . why do want to alert vijay?
    it is just notification.
    sc gone that all. it is burried.
    alerts can alarm others.
    Muthu

  • Customer field - Sourcing cockpit

    Hello,
    I have added a customer field which is check box (XFELD) to the shopping cart item.
    INCL_EEW_PD_ITEM_CSF_SC
    INCL_EEW_PD_SEARCH_ITEM_CSF_SC
    INCL_EEW_PD_ITEM_CSF
    Now the shopping cart screens all look OK. But the field does not show up in the worklist or the workarea of the sourcing cockpit.
    I have read threads saying that the item would show up in the workarea not in the worklist and then applying note 632982 (regenerating sourcing cockpit screens) helped.
    We are SRM SERVER 5.5 Patch level 07.
    Can somebody confirm if I am missing anything or should I just regenerate the screens as mentioned in 632982.
    Points will be rewarded.
    Thanks,
    Musta

    Hi,
    Although you have added the custom field in the SC structure,to display it in the sourcing cockpit ,you may have to explicitly mdoify the corresponding ITS template in the ITS service BBPSOCO01.
      We had a similar reqt wherein we had to add an additional column fro PURCHASE REQUISITION no in the SOCO list.But even after trying with screen variant,i couldnt display that column.Ultimately i had to hide some unwanted columns in the SOCO list and in place of that dispaly the PR no(Since the PR nowas already in the SC strcuture ,we had to just diplay  it in the SOS list by modifying the template ).
    For details refer the foll thread:
    Re: Purchase requsition nr column in sourcing cockpit
    BR,
    Disha.
    Pls reward points for useful answers.

  • "HOLD" functionality NOT working in Sourcing cockpit.

    Gurus,
    I have 2 issues:
    1)
    I am trying to hold requsitions in Sourcing cockpit but when I add them to Workarea and click " HOLD" button it doesn't do anything ( NO Messagee, Nothing) and when I check back in it still shows the requsition item in the scourcing cockpit not the hold status.
    I think the Hold Functionality is not working properly...is thee any fix to it or any OSS Note.
    2)
    We are facing a issue with the “Vendor Text” being getting copied from a catalog item to a Free Form item while the creation of shopping cart.
    When I am creating a SC - say with 3 line items with 3rd line item as Freeform item and 1st and 2nd as catalog items then the vendor text is getting copied from the Catalog line items in  to the Freeform line item.
    So if two catalog line items are there then Vendor text gets copied twice in the Freeform Line item.
    Is there any OSS note or any fix for this
    Kindly advice.
    ANKIT

    Hi,
    1)
    Please go through these SAP OSS Notes ->
    Note 1028009 Message 'Items are being processed by another user' 21.03.2007
    Note 680265 Incorrectly translated message in sourcing cockpit
    Hope this helps.Also seems to  be a bug in the system,so paralley raise an OSS message.
    2)
    Note 816763 - Copy items does not copy vendor text and internal note
    633726 - Internal note and vendor text are not copied
    661820 - Internal note/vendor text disappears
    Note 987686
    Note 988490
    Note 987640
    Note 1021692
    Note 930450 - Vendor text appears twice
    Related threads:
    Vendor Text and Internal Note in Shopping Cart
    SRM 5.0 SP 9 - Text fields shown incorrectly in 'Documents & Attachments'
    Text editor on top of page instead of under Documents
    SRM 5.0 SP 9 - Text fields shown incorrectly in 'Documents & Attachments'
    Re: Internal Note and Vendor Text field size
    Internal note, vendor text
    Re: Internal note text and vendor text disappears during the approval process.
    BR,
    Disha.
    Pls reward points for useful answers.

  • Carts sent to Sourcing Cockpit Even Though PO created

    SRM 5.0
    I have a situation whereby all of my carts are appearing in the sourcing cockpit regardless of whether a PO has already been crerated.
    My settings within the IMG are for all product categories to have sourcing carried out if incomplete.
    My items are generally coming from a CCM catalogue so are therefore complete. All other carts with a valid source of supply (contract, vendor list) are also appearing in the SoCo.
    Has anyone seen this before ?
    Regards
    Keith

    Robin
    This was just the note that was required.
    Thanks for your reply. Full points awarded.
    Keith

  • Business use of bypassing sourcing cockpit

    Hi experts,
    In which scenario, 'process purchase order in draft' is used instead of sourcing cockpit? What are the benefits in such cases?Personally, I donot see much of any benefits here. Say, a shopping cart with three items have been ordered. If we configure 'sourcing not carried out' for three items, the ordered shopping cart will result in three purchase orders in draft stage. Even if all three items could have been sourced from the same supplier, we now cannot bundle it together to create a single purchase order.
    Your thoughts and feedback are highly apprciated.
    Thanks and regards,
    Ranjan

    Hi,
    The business case for not using the sourcing cockpit would be as follows:
    You are using catalogs, where prices, vendors and contracts all come with the item and there is no need to search for these via the sourcing cockpit.
    There is a difinite source of supply, ie you can use Vendor lists where you have a predefined list of vendors that you wish to
    source your items from...then the source is already found and again no need for sourcing cockpit.
    In the shopping cart itself there is a Source of Supply tab where you can search for all valid sources of supply, ie, vendor, contract etc. So this is like a mini sourcing cockpit, the sources found would be the same in the SC as in the Sourcing Cockpit. So there then would be no need to send the item to the sourcing cockpit.
    Like above also you can still use the Grouping report to group any items your wish to group in the same PO.
    Also please see note 1380879, where it lists all splitting critieria on why your items would split into different PO's, normally if all criteria are the same then no split happens and one PO would be created for multiple items.
    The benifits of using the sourcing cockpit would be more flexibility:
    You can create different kinds of follow-on documents eg. PO, Contract, Bid Invitation.
    With the Bidding option there is a negotiation side of things where your vendors can submit their prices etc. This would suit some customers.
    All customers needs are different, this is why you can choose to use this or not.
    I hope this helps with the decision process.
    Kind Regards,
    Lisa

Maybe you are looking for

  • Putting Resultset objects in an Vector

    Can anybody help me, I have to put all my results from the ResultSet in a Vector. But I don't know how. Thanx in advance.

  • DVD recording on A505-6980

    Is it possible to record a DVD on this model to another DVD, or how do we record to hard drive?

  • HT1222 Weird security update Java for OS X 2013-003

    Why is the security update Java for OS X 2013-003 causing my 15" rMBP to start displaying a flashing window asking me if I want to allow the application "java" to accept incoming network connections? OS X 10.8.3

  • Error deployment OrgChart

    Hi everybody, hope you're well Few days ago I posted a thread about deploy OrgChart and the requirements to do this. Mainly, the SAP NetWeaver CE Application Server Java have to be present on the hosting server, so I downloaded a trial version for SA

  • Service battery notice!

    I have the first Intel based Macbook (2006) white.  Battery model: DP ASMB016.  Under System profile the charge remaining is 3620.  Full charge capacity is 3769 and the cycle count is 240.  This is my second battery in 5 years.  The battery icon says