on 11-30-2007 9:38 PM
Hi,
My requirement is that , In Confirm Goods/Services BBPCF02 under "Search for Purchase Order section" we have ("Item Description" "Name of Shopping Cart" " Timeframe" "Purchase Order Number" ) fieds.At present the TIMEFRAME value is always defaulted to "Last 7 Days".I need to chnage TIMEFRAME value dfault to "Last 90 Days" instead.
Regards
Hi
<b>We have done this long back..</b>
<u><i>Which SRM version are you using ?</i></u>
<u><b>This is possible by either SAP standard code modification or use of Screen Varaiants using SHD0 transction.</b></u>
<i>We have got a similar requiremnt earlier when we were using SRM 4.0 version, quite a long time back in our SRM implementation project.
In this case, you need to change the standard SAP code inside the Screen - Flow logic (I guess, this is not possible using HTML Templates incase you want to make it applicable for Employee role only - Reason being, all the roles in SRM web page, share the same HTML Templates)...
Therefore better to go for modification of Standard SAP logic, but for this case, you will need Access Keys (SSCR keys) in order to make changes to standard code.</i>
<b>For Screen variant - You need to -</b>
1. Create a screen variant (using tcode SHD0) for tcode BBPSC04.
- Assign the new values to the fields (in your case GS_SEARCH_FIELD-SELECTION_DATE set to '4' and GS_SEARCH_FIELD-WITH_CLOSED set to 'X').
- Also mark "W. content" field with 'X' for the changed fields.
2. Assign the screen variant to the transaction variant.
<b>This way you do not need to change SAP Standard code.</b>
There seems to be one bug though with field "timeframe" which always defaults to '3' irrespective of what value you change it to in the screen variant. Other fields accept the variant values.
<u>Per OSS, we needed to do the following:</u>
Include LBBP_SC_UI_ITSF44 has the following code which sets the values.
PERFORM field_disable TABLES et_field_control_list
USING 'SELECTION_DATE' gc_yes '3'.
....
PERFORM field_disable TABLES et_field_control_list
USING 'WITH_CLOSED' gc_yes space.
We changed '3' to '4' (last 30 days) and deactivated BADI ZBBP_SCREENVARIANT.
<u>Hope this will help. Do let me know.</u>
Regards
- Atul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
As per Atul thread
"Per OSS, we needed to do the following:
Include LBBP_SC_UI_ITSF44 has the following code which sets the values.
PERFORM field_disable TABLES et_field_control_list
USING 'SELECTION_DATE' gc_yes '3'.
....
PERFORM field_disable TABLES et_field_control_list
USING 'WITH_CLOSED' gc_yes space.
We changed '3' to '4' (last 30 days) and deactivated BADI ZBBP_SCREENVARIANT.
If we deactivated BADI then how does creating only screen variant help...I am confused does that mean we can achieve this just by HTML templete change.
Regards
Hi,
If you are using screen variant,you need to use the badi "BBP_SCREENVARIANT".
Here is the documenation of the BADI.
BBP_SCREENVARIANT
____________________________________________________
Short Text
Determine Screen Variants
Use
In this BAdI you can change the screen variant that controls the display of the item overviews and search results. As default, the following screen variants are called up:
· Item data overview in the invoice without purchase order reference: Screen variant BBP_IV_NON_PO
Method GET_SCREENVARIANT_INV
· Item data overview in the invoice with purchase order reference: Screen variant BBP_IV
Method GET_SCREENVARIANT_INV
· Item data overview in the confirmation: Screen variant BBP_CF
Method GET_SCREENVARIANT_CONF
· Item data overview in the confirmation for time recording: Screen variant BBP_CF_TIMEREC
Method GET_SCREENVARIANT_CONF
· Item data overview in the purchase order: Screen variant BBP_PO
Method GET_SCREENVARIANT_PO
· Item overview for contracts: Screen variant BBP_CTR_ITEMLIST
Method GET_SCREENVARIANT_CTR
· Item overview for contract selection: Screen variant BBP_CTR_ITEM_SELLIST
Method GET_SCREENVARIANT_CTR
· Search results for creating an invoice and/or confirmation: Screen variant BBP_SEARCH_PO
Method GET_SCREENVARIANT_SEARCH
· Search results for creating a purchase order: Screen variant BBP_SEARCH_SC
Method GET_SCREENVARIANT_SEARCH
· Search results for displaying/changing an invoice: Screen variant BBP_CHANGE_IV
Method GET_SCREENVARIANT_SEARCH
· Search results for displaying/changing a confirmation: Screen variant BBP_CHANGE_CF
Method GET_SCREENVARIANT_SEARCH
· Item overview for creating/displaying/processing/status of a shopping cart: Screen variant BBP_SC
Method GET_SCREENVARIANT_SC
· Worklist for Sourcing: Screen variant BBP_SOCO_WL
Method GET_SCREENVARIANT_SOCO
· Work area in Sourcing: Screen variant BBP_SOCO_GA
Method GET_SCREENVARIANT_SOCO
Activities
If you wish to hide or show fields, proceed as follows:
1. Determine the screen variant, for example, BBP_IV, using the list above.
2. Copy this screen variant, for example, in ZZ_BBP_IV_1, in Transaction SHD0.
3. Change the new screen variant as required. Note that you can only change the display properties for fields of table controls. You can switch the display on and off (column Invisible in Transaction SHD0). You can recognize the fields of a table control because they have a 1 on the right side of the first column. In addition, the heading for this area contains (Table CTRL.
4. Implement the appropriate method (see the list above). Fill the export parameter EV_SCVARIANT with the new screen variant.
You can create multiple screen variants for a screen and then select these in the BAdI depending on the user or on other criteria.
If you are not using screen variant,then you need to do the std code changes in Include LBBP_SC_UI_ITSF44 or the corresponding Confirmation screen include.
Hope this clarifies your confusion.
P.S. Do reward points if you find the answers helpful in solving your problem.
BR,
Disha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.