Sunteți pe pagina 1din 4

This document describes how to arrange that a Shopping Carts (SC) header POWL query appears in addition to the

standard SC items POWL query in Employee Self Services (ESS) in SRM 7.0, i.e. to make ESS entry screen look like this:

Minimum release / SP: SRM 7.0 SP03. 1) Logon in English to ensure maintenance in the original language. 2) Transaction POWL_TYPE: copy entry SAPSRM_FEEDER_SC to SAPSRM_FEEDER_SC_H with feeder class /SAPSRM/CL_CLL_PWL_A_SC_H Description could be e.g. Shopping Cart Header ; translation of description via menu -> Goto -> Translation

3) Transaction POWL_QUERY : create a new entry SAPSRM_E_CHECKSTATUS_06 with type SAPSRM_FEEDER_SC_H (please note: you could also copy SAPSRM_E_CHECKSTATUS_01 to SAPSRM_E_CHECKSTATUS_06, but I do not recommend to do so, as - theres no benefit, because -> Details -> will not be copied and - (more important) if you intend using for the users (or already use these), you will experience that background data have been copied so that a layout variant created for one query ID will also be available for the copied ID, which means query IDs are not independent from each other regarding layout variants. According to POWL development, the Copy as (F6) button has been placed unintended and will be removed in a future release.) Description could be e.g. SC header data list; translation of description via menu -> Goto -> Translation

Optional steps: a) after creating the entry, check -> Details -> and adjust parameters / settings according to project requirements. b) Consider changing the description of query ID SAPSRM_E_CHECKSTATUS_01 to e.g. SC items list to make the difference clear for the users.

4) Transaction POWL_QUERYR: copy entry SAPSRM_E_CHECKSTATUS / SAPSRM_E_CHECKSTATUS_01 to SAPSRM_E_CHECKSTATUS / SAPSRM_E_CHECKSTATUS_06 To arrange that the new SC header query tab appears right next to the tab of the original SC items query, enter 2 in field query sequence no. Additionally change the entry for the Confirmations query (SAPSRM_E_CHECKSTATUS/SAPSRM_E_CHECKSTATUS_02) to e.g. query sequence no = 6 (meaning Confirmations will become the rightmost tab in Employee Self Services).

5) Transaction POWL_TYPER : copy entry SAPSRM_E_CHECKSTATUS / SAPSRM_FEEDER_SC to SAPSRM_E_CHECKSTATUS / SAPSRM_FEEDER_SC_H

6) Transaction SM30, view /SAPSRM/V_PWL_FS : copy entry SAPSRM_FEEDER_SC to SAPSRM_FEEDER_SC_H and enter structure /SAPSRM/S_POWL_RESULT_SC in the new entry

7) This step is required only for SRM 7.0 SP03, not for SP05 or later releases: Transaction SE80, class /SAPSRM/CL_CLL_POWL_A_BO_SC_H method SET_MV_RESULTSTRUCTURE : you could modify this (just erase _ITM) or create an enhancement. To do the second, open the object in display mode, menu -> Edit -> Enhancement operations -> Show implicit enhancement options. You will see that its possible to create an enhancement directly before the ENDMETHOD line.

Create an enhancement by clicking on the snail icon or use Ctrl+F4. Enter the following line of code and activate it: mv_resultstructure = '/SAPSRM/S_POWL_RESULT_SC'.

8) This step is required only for SRM 7.0 SP03, not for SP05 or later releases: Execute step 7) for method SET_MV_RESULTS, i.e. erase _ITM (= modification) or add a line mv_results = '/SAPSRM/T_POWL_RESULT_SC'. directly before endmethod. (= enhancement).

9) In SE80, class /SAPSRM/CL_CLL_PWL_A_SC_H , method IF_POWL_FEEDER~HANDLE_ACTION, search for strings 'SAPSRM_ITEMID' (occurs 4 times). Delete or comment out these lines and also the next 2 lines at all spots where 'SAPSRM_ITEMID' occurs. These are the following lines: * ls_namevalue-key = 'SAPSRM_ITEMID'. * ls_namevalue-value = <fs_result>-item_guid. * APPEND ls_namevalue TO lt_namevalues. In total, these are 12 lines (this is a modification of code that was used in SRM 6.0 but is idle in SRM 7.0). 10) Transaction /SAPSRM/POWL_CUST : copy feeder type SAPSRM_FEEDER_SC to SAPSRM_FEEDER_SC_H (include all dependent entries); if during copying you receive messages like not in stucture, select another field. Adjust the field catalogue later according to your requirements. To arrange that clicking on the SC number launches the Display SC window, the entry for field OBJECT_ID must contain

Below you find a sample screen shot with entries in the field catalog. The fields with position numbers 9099 must be flagged as Technical column fields to make them invisible for the users. Please note that if these fields are missing in the field catalog, the columns will be visible (all other fields may be Hidden or Visible up to project requirements). Please note that Field STEXT (Status) here means SC header status, which may be confusing as one or more SC item(s) might have another status. Thus consider to flag STEXT Hidden or even Technical.

11) Execute report POWL_D01 with the Display checkbox empty. Please note that doing so resets all userspecific POWL settings, like views, column adjustments etc. to entries from the configuration (i.e. from transactions POWL_QUERY etc.)! Thus, you might consider to restrict it to APPLID = SAPSRM_E_CHECKSTATUS and to a few users initially and execute the report for all users later (after receiving first feedback).

Now the new query can be tested.

S-ar putea să vă placă și