cancel
Showing results for 
Search instead for 
Did you mean: 

Timeframe Default Value in Confirmation

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

Thanks for the inputs.

We are trying to achive this when doing Confirm Goods/Services.What Screen variants/T-codes you refering seems to be for Shopping cart.

Regards

Former Member
0 Kudos

Hi,

In case of Confirmation screen,tcode will be BBPCF01.

BR,

Disha.

<b>Pls reward points for useful answers.</b>

Former Member
0 Kudos

Hi,

We are on SRM 5.0.Can we make HTML template change only without changing the settings using SHD0

Regards

Former Member
0 Kudos

Hi,

I dont think you can make changes in HTML templates and modify the dropdown value.Please try the std code modifications/screen variants methods suggested in this thread.

BR,

Disha.

<b>Pls reward points for useful answers.</b>

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

See the solution in the foll threads:

<b></b>

BR,

Disha.

<b>Pls reward points for useful answers.</b>