SRM7 - Sourcing Cockpit steps and FPM
Hi all gurus,
in SRM7 there's a sourcing cockpit for purchase requisitions which is basically split in 4 main steps:
- in the first one (which corresponds to a specific WebDynpro/view) the user cah search for a PR; after the results are retrieved, the user can select PR's positions and proceed to the second step;
- the second step (second WD) represents the user's workarea; here positions from one or more PR can be selected to create a following document (contract or purchase order);
- the third step (third WD) let the user specify in depth which document should be made (e.g., the specific type of the contract);
- the fourth step (fourth WD) shows which document has been created.
By standard, navigation between steps (in both directions, as the user can go back from step 2 to step 1 and so on) is implemented via FPM buttons (e.g, NEXT_STEP).
In my task I have to work on step 2, and these are the requirements: each time the user goes from step1 to step2 (with some positions, of course) I have to perform a sketch of code.
The code is ready and works, but don't kwon how to restrict the execution on the clause "each time the user goes from step1 to step2" because:
- WDDOINIT of step2 is triggered only once, so it works for the first time the user goes from step1 to step2. If the user goes back to step1 and then proceed to step2, the code isn't triggered anymore.
- WDDOMODIFYVIEW of step 2: quite similar as before. Using the FIRST_TIME parameter I can execute correctly the code when the user proceed to step2, but if he goes back and then again to step2 the code isn't triggered anymore.
Outside the IF FIRST_TIME = 'X' condition is not a solution as well, since we'd like the code to be executed only when stepping from step1 to step2.
I guess the solution could be something related to FPM world, but I'm absolutely not an expert of it so I kindly ask for help to you gurus.
Thanks for your support.
Saravanan, I've seen that PROCESS_EVENT method for componentcontroller; when I pass from step1 to step2, that method is executed 3 times and in each run mv_event_id is set as follows:
1) REFRESH_TOOLBAR
2) RENAME_STEP
3) RENAME_STEP
well, actually I passed from step 1 to step 2 exactly two PR items, that could explain redundancy in 2) and 3).
Anyway... time to go deeper in the specs I guess, as I don't see a path to find a solution using the componentcontroller.
My task is to remove the initial lead selection from the table that contains PR items in step2.
This seemed to be straightforward by removing the initialization of the lead selection from the context node which represents the table (even though this is a custom modification of a standard WD).
However, that did not work as the standard Webdynpro/view itself has been made on the specific assumption that a leadselection ALWAYS exists; it is used to initialize some properties on the table, so if I remove that "Initialization Lead Selection" flag the standard code dumps. So, this cannot be a solution.
However, I've seen that once the lead selection has been set and the screen has been rendered, the user can un-select it via CTRL+left click on the selection column.
I debugged a bit and was able to reproduce via code that behaviour; no more dumps. Here's the code (actually I put it in a post exit of WDDOMODIFYVIEW, when FIRST_TIME = 'X'.. not a solution anyway, as I explained before):
DATA: lon_soco_workarea TYPE REF TO if_wd_context_node.
DATA: lead_selelement TYPE REF TO if_wd_context_element.
DATA: idx TYPE i.
lon_soco_workarea = wd_context->get_child_node( name = 'SOCO_WORKAREA' ).
CALL METHOD lon_soco_workarea->get_lead_selection
receiving
element = lead_selelement
DATA wpr TYPE TABLE OF wdr_event_parameter.
DATA wpr1 TYPE wdr_event_parameter_list.
DATA dref TYPE REF TO data.
DATA nullref TYPE REF TO data.
DATA did TYPE REF TO data.
DATA didx TYPE REF TO data.
* Get element index - redundant, cause it's = wa_item_indexes-index
CALL METHOD lead_selelement->get_index
RECEIVING
my_index = idx.
* Getting reference to DATA generic datatype in order to
* define a custom event parameters for the lead selection
CREATE DATA dref TYPE REF TO if_wd_context_element.
GET REFERENCE OF lead_selelement INTO dref.
CREATE DATA nullref TYPE REF TO if_wd_context_element.
CREATE DATA did TYPE REF TO string.
DATA: idstring TYPE string VALUE 'WA_TABLE'.
GET REFERENCE OF idstring INTO did.
CREATE DATA didx TYPE REF TO i.
GET REFERENCE OF idx INTO didx.
* Creation of custom wpr1 event
DATA wps TYPE wdr_event_parameter.
DATA newevt TYPE REF TO cl_wd_custom_event.
wps-name = 'ID'.
wps-value = did.
INSERT wps INTO TABLE wpr1.
CLEAR wps.
wps-name = 'CONTEXT_ELEMENT'.
CLEAR wps-value.
INSERT wps INTO TABLE wpr1.
CLEAR wps.
wps-name = 'ROW'.
wps-value = didx.
INSERT wps INTO TABLE wpr1.
CLEAR wps.
wps-name = 'NEW_ROW_ELEMENT'.
wps-value = nullref.
INSERT wps INTO TABLE wpr1.
CLEAR wps.
wps-name = 'OLD_ROW_ELEMENT'.
wps-value = dref.
INSERT wps INTO TABLE wpr1.
CLEAR wps.
CREATE OBJECT newevt "pass this event to that method.
EXPORTING
name = 'REMOVE_SEL'
parameters = wpr1.
wd_this->mo_dom_soco_gaf2->/sapsrm/if_cll_do_tree_mapper~handle_lead_select( newevt ).
* for other lead selection related actions
wd_this->mo_dom_soco_gaf2->additional_act_on_lead_sel( io_wdevent = newevt ).
Problem: this code is related to the view's table management, how could I port such code to the componentcontroller? My guess is it's not possible; I should find a way to execute this code only "every time user switch from step 1 to step 2", maybe I could raise a "sign" from the method PROCESS_EVENT that i could catch in WDDOMODIFYVIEW?
Any help as always's welcome.
Similar Messages
-
1 st step , 2 nd step and 3 rd Step in cockpit
Note 1462093 - Create purchase order in sourcing application fails
the 3rd step of the sourcing application .
Is it new practice and defined by SAP steps must be followed in cockpit
1 step
2 step
3 step.
can any one clarify .what is 1 st stp, 2 nd step and 3 rd step ...
thanks
muthuHello Muthu,
Guided Activity Floorplan (GAF) is a design template that dictates the structure and behavior of a user interface of a guided activity.
For more information check out the help link below.
Link: [url] http://help.sap.com/saphelp_nw70ehp2/helpdata/en/4d/6d90bd7990407ab52f2db5b7295068/frameset.htm -
Need Information on Sourcing cockpit and Business rule framework
Hi Experts,
I am having 2 general qustions :
1. ) What is sourcing Cokpit and what are the things that we can done from sourcing cockpit.Please explain in detail.
example : what i knw abt sourcing is...... It means from where we are going to source our material means vendor.
My idea is to know everything abt sourcing cockpit.
2. ) In SRM 7.0 what is the Busniess rule framework concept and if i need to configure a BRF approval process with respect to Shopping cart and a Purchase order in Extended classic scenario then how do i need to move ahead.
Thanks
SunnyHi,
Q no 1:
Sourcing Cockpit is an area from where you can source the requirements..There are two ways by which sourcing can be done.
1. The Purchase requisiton created from ECC 6.0 can be pushed to SRM for Sourcing . Either direct material with Part no or
Service requirement without part number
2. The shopping cart created in SRM can be converted to sourcing.
once the requirments are flown from ECC 6.0 and SRM . in the SRM server in sourcing node--click Carry our sourcing.
you can get all the requirements.
From this you can convert it to Purchase order,contract,Auction. Bid invitation.
Q. no 2 :Business Rule Framework.(BRF)
This is related to Workflow .From SRM 7.0 this workflow is called Process controlled workflow. Only by simple rules the
Workflow for Approval process for P.O ,Contract,Bid invitation can be done.
If you are SAP ABAP person they you can confugure this .Normally ABAP person will do this.. Please go to S ID and get the
details there for Business rule framework
Just check in this forum in Search you can get more details and notes
go to Google.com and enter business rule framework you get more material
check this link
http://www.sdn.sap.com/irj/sdn/nw-rules-management?rid=/webcontent/uuid/d00df7db-c783-2b10-aa97-ccfeacc19fcb [original link is broken]
Regards
G.Ganesh Kumar -
SRM Bidding Engine and Sourcing Cockpit
Hi All,
can the SRM Bidding Engine be linked to the sourcing cockpit when using the classic scenario?
What I want to be able to do is to create an RFX from a shopping cart in the sourcing cockpit. We use the classic sceanrio currently on SRM 4.
Cheers
ChrisHi Chris,
yes, the bidding and auction functionality is directly connected to the Sourcing Cockpit in Classic Scenario. That is standard. In order to be able to create a classic PO from Bidding / Auction, all you need is a shopping cart, you describe you have.
Cheers,
Claudia -
PR to SRM Sourcing Cockpit Issue
In ECC, the ME_SOU* BADI is implemented to activate sending PR of type RV to go to SRM Sourcing Cockpit.
The necessary Workflow Event Linkages are activated in ECC to send the PR to SRM.
When the PR is released, it does not trigger the event to call the workflow. The event trace SWELS at the time of releasing the PR does not show any events triggered.
Any thoughts here to resolve this issue?
ThanksHi Kasee,
If you are going to transfer ECC PR to SRM via SOA, the following steps should be configured well in ECC side:
1, LOG_MM_P2PSE_1 should be activated via trx SFW5 in ECC side;
2, implement BADI ME_REQ_SOURCING_CUST;
3, go to trx SWETYPV and check if the following objects are existing:
BUS2015 RFXREQUESTED
BUS2105 SOURCINGREQUESTED
4,activate outbound message as below:
(ERP) Transaction SPRO -> Other mySAP.com components->Supplier Relationship Management->
Message Control-->Activate outbound messages through qRFC
BUS2015 RFXREQUESTED
BUS2105 SOURCINGREQUESTED
5, configure RFC destination for workflow system
6,configure RFC destination for SAP XI
7, create SU01 XI user
8, trx olme: Portal >Set Up Landscape
9, trx smqr: MMPURS_BUS2105_* should be registered.
XML message should be triggered after this.
You may also refer to the following notes:
note 1263876
note 1268336
Hope this helps.
Regards,
Ivy -
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 -
Transacation types missing in sourcing cockpit
Hi All,
we are on SRM7.01 ECC6 EHP5.
I have created a new transaction type ZTED also I added to Buyer attribute Transaction type.
when buyer is going to sourcing cockpit select SC and create a draft RFX and when see in the transaction type ..the ZTED transaction type is missing.
strangely, when buyer click on create RFX this transaction type ZTED is appearing.
Abdul RaheemHi Abdul ,
As per standard transaction types wont be shown in the sourcing cockpit if you are creating standalone RFX then it will work .
Thanks & Regards
Pradeep Kumar Dondeti -
Purchase Order error message when on Sourcing Cockpit.
Hi All,
I have encountered a series of error messages when I try to convert my Shopping Cart into a Purchase Order in SRM 5 within the Sourcing Cockpit. I am using Extended Classic Scenario and have defined the number range in SRM and ECC5. The error messages are below, the moment i try to concert the cart to a Po;
- Internal number range is missing for transaction type. Inform syst. admin
- Transaction type * does not exist. Check entries
- Some backend documents could not be generated, or they contain errors Further Information
- No status object is available for
I have checked the transaaction type, number ranges assignments, attributes in PPOMA_BBP but fail to find the cause.
Any pointers would be welcome!
Thnx,
MikeHi Muthu,
The number ranges are consistent as I have checked the number range for local purchase order and this is set as an internal between the range 3000000000 - 3999999999. On the transaction type for BUS2201 Purchase Order, 30 has been set as the Int Number Range, with all other fields left blank.
The strange thing is that the documents that failed to convert into a PO had been reprocessed in the Application Monitor for Purchase Orders, but when I go back into Sourcing to create the PO, I now get the message:
"You have either failed to select an item, or you cannot create a follow-on document due to an error that has occurred"
Regards
Mike, -
Hi Gurus,
we're working with EC Scenario in SRM 4.0 and Sourcing Cockpit.
We can create the following documents from a shopping cart: Bid Invitation, Auction and Purchase Order, but not a Contract. The system goes exits out and dumps the following messages:
"Note
The following error text was processed in the system SV5 : Transaction type ECPO must not be used for object type BUS2000113
The error occurred on the application server itsv03_SV5_10 and in the work process
The termination type was: TH_RES_FREE
The ABAP call stack was:
Form: ADD_MESSAGES_TO_LOG of program SAPLBBP_SOCO_APP
Form: CREATE_FOLLOW_ON_DOCUMENT of program SAPLBBP_SOCO_APP
Function: BBP_SOCO_EV_FOLLOW_ON_CREATE of program SAPLBBP_SOCO_APP
Function: BBP_SOCO_EVENT_DISPATCHER of program SAPLBBP_SOCO_APP
Form: FCODE of program SAPLBBP_SOCO_UI_ITS
Module: FCODE of program SAPLBBP_SOCO_UI_ITS"
Could u help us?
Thx, EnricoHello Enrico,
Please maintain the transaction type for the BO/TransCat- BUS2000113 in the SPRO at the path SRM Server -> Cross-Application Basic Settings->Define Transaction Types and also if you have implemented the Badi BBP_DETERMINE_LOGSYS , please verify the code for the method ~CONTRACT_LOGSYS_DETERMINE.
hope this info will be useful.
regards,
Mani -
ESYU: Blanket PO approve시 ASL과 Sourcing Rules이 생성되기 위해 요구되는 steps
Purpose
Oracle Purchasing - Version: 11.5.8 to 11.5.10
Blanket Purchase Order approval 동안 ASL과 Sourcing Rules이 생성되게 하기 위해
요구되는 steps에는 무엇이 있는지 알아본다.
Solution
Profile Options:
- PO: Allow Auto-generate Sourcing Rules => CREATE AND UPDATE
- PO: Allow Autocreation of Oracle Sourcing Documents => Yes
- MRP: Default Assignment Set => Define with desired Assignment Set (eg. Supplier Scheduling)
Note:
- 위 Profiles은 User, Responsibility, Application 그리고 Site level로 setting 할 수 있다.
- Profile option을 setting 하거나 변경 후, application을 re-log 해야 한다.
Workflow Builder를 통해 PO Approval Workflow를 setup:
Attributes
- Create Sourcing Rule Flag: "Y"
- Update Sourcing Rule Flag: "Y"
- PO SR Rule Name Prefix: "PURCH" - Default Value
- PO Assignment Type ID for SR: "3 - Item level "
- PO Sourcing Organization ID: ASL이 생성되어야 하는 Inventory Org를 set
Example 1 : 새로운 Socing Rule이 생성
a. 아래 setting을 가진 Blanket을 생성:
- "Enable Automatic Sourcing"
- "Update Existing Sourcing Rule and Assignment"
- Item: AS12345
- Supplier: Advanced Network Devices
- Site: SANTA CLARA
b. Deferred Parameter "Yes", Workflow Background engine을 실행
c. Supply Base> Approved Supplier List로 이동
d. Item AS12345를 조회
e. 생성된 ASL을 확인
f. Soucing Rule 화면으로 이동
- Sourcing Rule을 조회: PUR%
- Soucing Rule 'PURCH_ABCD' 이 생성된 것을 확인
- Supplier: Advanced Network Devices
- Allocation = 100% , Rank =1
g. Soucing Rule 생성을 확인
h. Assignment Set 화면으로 이동
i. 조회:
- Assignment Set: Supplier Shceduling
- Type: Item
- Item: AS12345
- Soucing Rule: PURCH_ABCD
j. Assignment Set 생성을 확인
Example 2 : 기존의 Soucing Rule / ASL을 update
a. 아래 setting을 가진 Blanket을 생성:
- "Enable Automatic Sourcing"
- "Update Existing Sourcing Rule and Assignment"
- Item: AS12345
- Supplier: Advanced Network Devices
- Site: SANTA CLARA
b. Deferred Parameter "Yes", Workflow Background engine을 실행
c. Supply Base> Approved Supplier List로 이동
- Item 'AS1345'를 조회
- Supplier Block으로 이동:
- Supplier: Advantage Corp
- Site: ADVANTAGE - US
d. ASL이 존재하고 있음을 확인
e. Soucing Rule 화면으로 이동
- Soucing Rule을 조회: PUR%
- Soucing Rule 'PURCH_ABCD' 이 생성된 것을 확인
- Supplier: Advanced Network Devices
- Site: SANTA CLARA
- Allocation = 100% , Rank =1
f. 기존의 Soucing rule PURCH_ABCD가 update 된 것을 확인
g. Assignment Set 화면으로 이동, 조회
- Assignment Set: Supplier Shceduling
- Type: Item
- Item: AS12345
- Soucing Rule: PURCH_ABCD
j. Assignment Set은 변경됨이 없음을 확인, 왜냐하면 soucing rule이 동일하기 때문
Reference
Note 273983.1 -
Custom Error Messages in Sourcing Cockpit do not prevent PO creation
Hi forum gurus,
We are implementing SRM 5.5 SP 9 in extended classic mode. We have implemented sourcing cockpit too.
We have coded an error message in the 'BBP_ITEM_CHECK' BADI for the sourcing cockpit and it appears correctly in the sourcing cockpit when necessary.
However, the system still allows the PO to be created, despite the error message being visible prior to clicking on the 'Create Purchase Order' button.
Any ideas? I will create a customer message to SAP with this anyway, but hoped someone may know for certain how to resolve it!
Thanks,
NickHi,
Use the BADi "BBP_DOC_CHECK_BADI".
See the foll thread:
authority check on Creation of Purchase order usin badi BBP_ITEM_CHECK_BADI
BR,
Disha.
Pls reward full points for useful answers. -
PO split in sourcing cockpit ? :-(
Hello my helpful friends.je.je
I have quick question for the SRM gurus:
In the sourcing cockpit, I selected 20 items (per example) and the application splits those items among 2 purchase orders.
What is the reason of this behavior ? I know that ebp separates direct and indirect materials. But in this case everything is indirect.
Is there any field that may cause a PO split ?
Thanks and regards from Mexico !
diegoFollowing is the criteria which is used to split POs
For Backend Purchase Orders
Company Code
Purchasing Org
Purchasing Group
Document Type
Vendor
Subtype (Direct/Hierarchy)
FI Logical System
Logical System from where an External Requirement comes
For Local Purchase Orders additional criteria is used to split POs:
Delivery Address (for higher releases)
Procument Card Number
Procurement Card Company
Additionaly as mentioned by Vadim, check the Implementation of BADI BBP_SC_TRANSFER_BE (Method GROUP_PO) for any Customer Added Splitting Criteria.
Thanks,
Ashish -
Assigning a source of supply in sourcing cockpit not working.
Good day Gurus,
When we assign a source of supply in sourcing cockpit we get the following error : Invalid combination of sources of
supply for item 1200012571/1
This is how we got the error.
Create a shopping cart and approve it.
Go to sourcing cockpit and in the comntract column enter the contract number and in the contract item enter the contracts item number,when click enter we get the error as indicated below.
Please assist,Your help is very much appreciated.
kind regards,
Lethabo KgatlaHI Anamika,
I created a free text shopping cart and wanted to propose the source of supply without using the propose source of supply button and got the error.The functionality did work previously and does not work anymore.I am trying to find how can be resolved.
Regards,
Lethabo -
Search Help for Custom field in Sourcing Cockpit
Hi SRM Experts,
I added custom field "rush order" in the Structures as per requirement. I added code in MODIFY_SCREEN function module. Search help is working for "rush order" in Process Purchase Orders (to search PO) and Check Status (Searching Shopping Cart). But it is not working in sourcing cockpit. Please guide or suggest me is there any additional settings or programming is required to have search help for custom fields in Sourcing Cockpit.
Thanks a lot in advance.
Thanks,
KoyyaHi SRM Experts,
Please let me know any suggestion on this issue.
Thanks a lot in advance.
Thanks,
Koyya -
The Shopping cart not appearing in the sourcing cockpit of the buyer
Hi
We are using Extended Classic Scenario. The SC was created in SRM and then after approval was send to a central buyer for sourcing. The central buyer redistributes the same to the respective Buyer based on the purchasing group. However the SC doesnt appear in the sourcing cockpit of the actual buyer and when I see the details of the SC item in BBP_PD, I see that the Sourcing Relevant Indicator is marked 'Y' which means Sourcing is already completed. But nowhere a supplier has been added to the SC by anyone and it also doesnt reflect in the BBP_PD.
Any idea how and why the indicator has the status 'Y' and how can I make the SC appear in the sourcing cockpit of the buyer.Hi Manoj,
If the SC is directly converted into a P.O (either ordered / held status) please check the Sourcing settings in SPRO.
SPRO > IMG > SRM > SRM Server > Sourcing > Define sourcing for product categories
Check whether sourcing always carried out was maintained for the required product category. The P.O will get directly created in case the setting is " Sourcing never carried out".
Please check this and let me know if this is the case.
Rgds,
Teja
Maybe you are looking for
-
When in Final Cut My MacBook Screen goes black
I was working on Final Cut on my Macbook Pro and everything was running smoothly until I used the "help" tab to find out how to freeze frame. I moused over to the drop down window to hit the command and I either clicked on it or something around it,
-
Which field ,table gets the entry when we refresh cube statistics
Hey, I just want to know into which field or table entry is made when we Refresh statistics using the manage tab of the Infocube.. I saw the fields of the table RSDCUBE , there are two includes as given below and their fields, Im noy able to quite f
-
Animated Buttons: How to Change Clip?
My animated buttons always play the first 15 seconds of the chapter. I usually want to start the clip a few seconds later. How?
-
Does it matter if i am on WiFi or 3G?
-
Show Data As tab missing in Pivot Table
Hello all, I have added a column to the Measures in Pivot table. But I dont c any data for that column in my actual report. When I clicked on that particular column SHOW DATA AS option is missing..what went wrong here? Please let me know. Its kind of