Field control in shopping cart screen
Hi All,
My requirement is that approvers or delegates should not be able to delete attachments from shopping cart. I did take a look at BBP_UI_CONTROL_BADI
but then that doesn't show any thing about field control in shopping cart (BUS 2121).
The other solution i was thinking about is to change the HTML templates to suppress that delete icon in approver screen. can anybody throw light on this issue
Points for sure!!
Rgds
Harshika
Hi
As Yann suggested, we can go for the Authorization object.
Or <u>Else, you can also try out implementing the Business - AddIns using SE18 Transaction</u>
<b>BBP_ATT_CHECK</b>
Attachments
<b>BBP_AUTHORITY_CHECK</b>
Further Authorization Checks f. Documents in EBP
<u>Sample code for <b>BBP_ATT_CHECK</b> BADI Implementation -></u>
METHOD if_ex_bbp_att_check~check.
DATA:
lv_prof TYPE vscan_profile,
lo_vsi TYPE REF TO cl_vsi,
lv_xstring TYPE xstring,
lv_scanrc TYPE vscan_scanrc,
lt_bapiret TYPE vscan_bapiret2_t,
lv_bapiret TYPE bapiret2,
lv_size TYPE i,
lv_dummy TYPE bbp_control_value.
* transform the content table to a xstring
lv_size = attachment-phio_fsize.
CALL FUNCTION 'BBP_OUTPUT_X_TABLESIZE_CHG'
EXPORTING
iv_size = lv_size
IMPORTING
ev_xstring = lv_xstring
TABLES
it_data = attachment-phio_content[]
EXCEPTIONS
noentries = 1
OTHERS = 2.
IF sy-subrc = 0 AND NOT lv_xstring IS INITIAL.
* the default profile is used (see transaction SPRO)
CALL METHOD cl_vsi=>get_instance
EXPORTING
if_profile = lv_prof
IMPORTING
eo_instance = lo_vsi
EXCEPTIONS
configuration_error = 1
profile_not_active = 2
internal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
RETURN.
ENDIF.
* scan binary
CALL METHOD lo_vsi->scan_bytes
EXPORTING
if_data = lv_xstring
IMPORTING
ef_scanrc = lv_scanrc
et_bapiret = lt_bapiret
EXCEPTIONS
not_available = 1
configuration_error = 2
internal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
* error in call of scan engine
MESSAGE e013(bbp_att) INTO lv_dummy.
CALL FUNCTION 'BBP_PD_MSG_ADD'
EXPORTING
i_msgty = 'W'
i_msgid = sy-msgid
i_msgno = sy-msgno
EXCEPTIONS
log_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
CALL FUNCTION 'BBP_PD_ABORT'.
ENDIF.
ENDIF.
IF lv_scanrc <> 0.
* scan got results that indicate infection
MESSAGE e014(bbp_att) WITH attachment-description INTO lv_dummy.
CALL FUNCTION 'BBP_PD_MSG_ADD'
EXPORTING
i_msgty = 'E'
i_msgid = sy-msgid
i_msgno = sy-msgno
i_msgv1 = sy-msgv1
EXCEPTIONS
log_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
CALL FUNCTION 'BBP_PD_ABORT'.
ENDIF.
ENDIF.
LOOP AT lt_bapiret INTO lv_bapiret.
* apply scanmessages to our messagelog
MESSAGE ID lv_bapiret-id TYPE lv_bapiret-type NUMBER lv_bapiret-number
WITH lv_bapiret-message_v1
lv_bapiret-message_v2
lv_bapiret-message_v3
lv_bapiret-message_v4
INTO lv_dummy.
CALL FUNCTION 'BBP_PD_MSG_ADD'
EXPORTING
i_msgty = sy-msgty
i_msgid = sy-msgid
i_msgno = sy-msgno
i_msgv1 = sy-msgv1
i_msgv2 = sy-msgv2
i_msgv3 = sy-msgv3
i_msgv4 = sy-msgv4
EXCEPTIONS
log_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
CALL FUNCTION 'BBP_PD_ABORT'.
ENDIF.
ENDLOOP.
ENDIF.
ENDMETHOD.
Hope this will help.
Please reward suitable points, incase it suits your requirements.
Regards
- Atul
Similar Messages
-
Adding an asterix(*) in the standard field in the shopping cart screen.
Hi all,
In the Delivery address of the shopping cart screen, I need to add (*) in a field text, saying that it is mandatory field.
So, I need information that can help me change the standard field text, to add(*) in prefix. can you please help me find the information to add the same.
Regards,
Abhinay.Hi Abhinay,
if you are in SRM 7.0 , then you can do it through the below configuration else you will have to modify the relevant HTML template.
SPRO->IMG->SAP Supplier relationship managemnet->SRM Server->Cross Application basic setings->extension and Field control(personalization)-> configure field control->configure control of field of substructure->Metadata for Fields of Substructures and Table-Like Enhancements
In your case if this is delivery address field , then choose Bus. object set type as 07 , Business object as BUS2121 , set level as Item , set subtype as 00000027.
you have to finnd the field name and select that and make the option as Field Visisble, Fiels enable 'Field required' tick.
As far as i know it will make a red asterick in the screen but you will have to write that check in DOC_CHECK_BADI to throw error message.
Thanks
Iftekhar Alam -
SRM 7.0 - Configure Field Control for Shopping Cart Item Overview
Hi,
I am able to hide fields in the shopping item details using the "Configure Control for Fields on Item Level" node in the IMG.
However, this same configuration does not seem to work for fields that are in the item overview of the shopping cart. Any advice on how/why this seems to work differently?
I do want to hide fields via config, not as an end-user.
Thanks!
MattHello Matt,
You will find this useful.
https://websmp105.sap-ag.de/~sapidb/011000358700001969972008E.pdf
Thanks
Ashutosh -
Activating F4 help/Validating for a field added to SRM shopping cart screen
I have added Profit Center as an additional field on the Shopping Cart Screen. This should be displayed only when the user selects Cost Center as value for another input field. Also I need F4 help for this profit center.
Can someone please guide me with the steps to do the same.
Thanks and Regards,
VanessaHi Vanessa,
Validation can be done in doc change and doc check BADIs.
For attaching F4 help you can create a search help in ABAP Dictionary and attach that serach help to your cutom field .
Hope that helps,
Anubhav -
Disable G/L account field in Shopping cart screen
Hi SDN,
I am ABAP Developer and new to the SRM system, I got a requirement to disable G/L account field in the Shopping cart creation screen and overview screen and also I have to disable the message that is triggered when the G/L account field not entered .
Please guide me to achieve this requirement.
Thanks in advance,
Srinivas D.Hi,
I guess you use current SRM 7.0 version.
You can control the field visibility by Meta Data customizing. SRM -> SRM Server -> Cross-Application Basic settings -> Extensions and Field Control(Personalization) -> Configure Field Control.
Regards,
Masa -
How do I create custom field in MDM shopping cart preview screen (srm-mdm)
Hi
Am on SRM 5.0 MDM 2.0.
Requirement is 'temp labor'. i have a price form a specific supplier for a specific service is $80 in SRM_MDM internal catalog.
But i talked to supplier and they have agreed on a new price of $75. After I select this catalog item, and view the shopping cart preview screen i see "Price information and total price". I want to add a custom field to the shopping cart preview screen called "new price" to enter $75 as the new price and click recalculate to recalculate the new total price and send this to SRM for follow on functions...
is there standard functionality in SRM7 for this requirement?
cheers
alex
Edited by: Alex Waiyaki on Jul 23, 2010 10:04 PM
Edited by: Alex Waiyaki on Jul 24, 2010 2:51 AMI have resolved the issue
thanks
alex -
How do i create a custom field in SRM_MDM shopping cart preview screen
Hi
I on SRM 5.0 MDM 2.0.
Requirement is 'temp labor'. i have a price form a speciific supplier for specific service is $80 in SRM_MDM catalog.
But i talked to supplier and they have agreed on a new price of $75. After I select this catalog item, and view the shopping cart preview screen i see "Price information and total price". I want to add a custom field to the shopping cart preview screen called "new price" to enter $75 as the new price and click recalculate to recalulate the new total price and send this to SRM for follow on functions...
is there standard functionality in SRM7 for this requirement?
cheers
alexHi Alex.
I totally agree with Sudhanshu's comments. If you create a custom specific field it will always be a read-only. you can also use EForm for such usecases. Also in case of SRM-MDM Scenario, the price information field holds a standard behaviour which can't be manipulate for custom specific fields.
But if you want to achive this through the exisitng repository schema and the BADI. then you can follow the steps given below:
1. If you want to hold the value for the new price, you can create a new custom field (New Price)of type "Text" in the repository and store the price information in that field.
2. In the configuration screen, you can add the "New Price" to all the views(Result Set, Shopping Cart Preview etc).
3. In the "Shopping Cart Preview", now you can view the existing standard price information column and the newly created "New Price" column. Now you can change the quantity based on your need. Now when you click "Recalculate" button the standard price column will change and not the "New Price" column.
4. Now you can map this newly created field to any of the custom fields which were provided by default. (like NEW_ITEM-CUSTFIELD1).
5. You can make use of the BADI BBP_CATALOG_TRANSFER to perform the remaining calculations.
6. The BADI will hold all the catalog related data in its OCI structure. Before transferring the data to shopping cart you can modify it by multiplying the quantity with the "New Price" value and send the updated price in the OCI standard structure "NEW_ITEM_PRICE".
Now SRM shopping cart will hold the updated "New Price" for the item shopped through catalog.
Let me know in case you need more information.
Regards
Bala -
Adding a new text field in Shopping Cart screen
Hi,
I am new to SRM and I am working on SRM 5.0
My requirement is to add a text field for buyer's note with unlimited length similar to Approver's note in Shopping Cart screen.
I have seen in the forum that many have done this earlier and i need step by step procedure to complete this task.
I am able to create text field in Text Schema, but this field is not reflecting in shopping cart screen. Do i need to do any thing extra apart from maintaining in Text schema?
Can you please send the detailed procedure to do this task?
Thanks in advance.
Regards,
VamseeHi Saritha,
Thank you for your help. In fact, i have gone through this link and followed the steps there. But, the Text ID is not reflecting in my shopping cart.
We are using SRM 5.0. The requirement is to add a new text field with unlimited length similar to the existing Approveru2019s note field in Shopping Cart screen at header level.
I have followed the steps mentioned below.
1.Go to SRM IMGSRM Server->Cross-Application Basic Settings->Text Schema
2.Execute Define Text Types and then select the entry BBP_PD Text Object and click on Text Type.
Here, create new entry for ID as ZHTXT and Description and save it.
3.Execute Define Text Schema and then select the existing Text Schema SC ( Shopping Cart) and click on Texts for Schema.
Here, assign the newly created Text ID with details Header/Item etc.
4.I am not executing the last step Define Fixed Values for Texts, as the Text Schema SC is already assigned Transaction Type Transaction Type SHC.
Please suggest do I need to perform any extra steps apart from Text Schema to reflect the Text ID which I created in my Shopping cart screen? Or do we need to code anything on ITS side?
Thanks in advance.
Regards,
Vamsee -
Custom field in shopping cart screen
Hi,
Please let me know how to add a custom field at the item and header level in shopping cart screen.
Thanks,
ManuHi,
Add the fields into the below structures-
1- INCL_EEW_PD_ITEM_CSF_SC (For Item Level)
2- INCL_EEW_PD_HEADER_CSF_SC (For Header Level)
And then activate the BADI "BBP_CUF_BADI_2".
and manage the fields in this badi for display or hide.
Regards,
Sachin -
Adding new field in Monitor Shopping Cart
Helll All,
I have a requirement where I need to add a new field in the Search Criteria screen for Monitor Shopping Cart (item data).
The new field needs to have a property so as to be able to add more than 1 value for it. It is just like Purchasing Group criteria present in the standard Shopping Cart Monitor screen.
I have the structure BBPS_MON_SC_ITEM where there is a field PURCHASE_GROUP, which is like a range. I need to add one more field here with the same range structure so as to get values of my new screen field into it.
Coming to my question........In which structure should I append this new field so as to get it in BBPS_MON_SC_ITEM? I have read the note 672960 and tried appending for Table Type fields but no success.
I am working in SRM Version 5.
Kindly help.
Thank you.
Johnson
Message was edited by:
Johnson IttyerahHi
<u>See related links -></u>
Re: Adding CUF fields in Monitor Shopping Cart Selection Screen
Re: Error while viewing the SC via BBP_MON_SC
Adding fields in shopping cart
Do let me know.
Regards
- Atul -
Shopping Cart Screen needs some minor change!
Hello,
1. Is there any way that I can increase the size of input field "Notes for approval" in the shopping cart screen ??,
2. Also, some custom text needs be embedded in the shopping cart for example "please scroll down" needs to be displayed above the field "Notes for approval"
ThanksHi,
1.
See the foll related threads for solution/pointers:
Re: Changing long text box "Internal Note" look and size
Changing properties of long text box
2
To find the SC ITS service and the correspondig template for the SC screen,right-click in IE to view the template source code, and find the service/template.Just right click on the ITS screen ,say view source and locate the corresponding ITS template and ITS service for your SC screen.
Then go in SE80 and in the relevant template ,locate the code for the "INTERNAL NOTES" text field.There you can modify the code to add the custom text above the text field.
BR,
Disha.
Do reward points for useful answers. -
Display error message from SLG1 on shopping cart screen
I have implemented a 'BBP_CATALOG_TRANSFER' badi. I am adding all the custom error messages in ET_SC_MESSAGES export parameter of this badi. As a result of this, all the custom error messages added in the above parameter, gets logged in the application log SLG1 automatically and I can see those custom messages in SLG1. Now how to display this message from SLG1 on the shopping cart screen on the top where you normally see standard error messages in red.
Can anyone please help me on this?
Thanks,
KrupaHi
Which SRM version are you using ?
I have not tried this... but I think this is not possible to display error messages
using BBP_CATALOG_TRANSFER BADI.
<u>Try to code your logic in using BBP_DOC_CHECK_BADI for filter type - BUS2121 (shopping cart). You need to add your custom message in ET_MESSAGES [] table.</u>
<b>For sample coding, refer to the link below -></b>
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/srm/bbp_doc_check_badi-CheckPurchasingDocument&
<b>Hope this will definitely help.</b>
Do let me know.
Regards
- Atul -
Activating Order as Direct material button on Shopping cart screen
Hello SRM experts,
we are in SRM 5.0. we implemented BADI: BBP_DP_PROD_CHK_BADI to suppress Order as direct material button on Shopping cart screen.in this BADI under PRODUCT_CHECK method we have this code CLEAR ev_dp_possible.Now the requirement is to bring back that order as direct material on to shopping cart screen and we need to check there for direct material and non direct material.
i commented the code in METHOD PRODUCT_CHECK . but still i'm unable to see that button on SC screen.After bringing that button on to screen we need to check for Direct and non direct materials, if it is a non-direct material and trying to press button Order as Direct Material it should hav to give some error.
please help me.
thanks in Advance....Dear Poster,
As no response has been provided to the thread in some time I must assume the issue is resolved, if the question is still valid please create a new thread rephrasing the query and providing as much data as possible to promote response from the community.
Best Regards,
SDN SRM Moderation Team -
Details in "ACCOUNT ASSIGNMENT" tab in Shopping cart screen
Hi all,
We are on SRM 7.0.1.
For each requester,we have the EMPLOYEE role assigned.
In shopping cart screen,under account assignment,we want to see the acocunt assignment detailed view as the default view under tab "ACCOUNT ASSIGNMENT".Currently,under account assignment,user has to click on the DETAILS button and then the details show up in the bottom part of the screen.
Can anyone advise how do we change the default view for the "ACCOUNT ASSIGNMENT' tab?
Thanks.Can someone answer my query?
-
SRM shopping cart screen flickers
Shopping cart screen for SRM flickers and does not load up. No short dump in backend system and no errors in portal log.
This issue get's resolved after restarting the SRM backend system. Same issue and resolution used for eRecruit however not able to determine exact cause of the error.
Does anyone has idea as why this is happening?Hi Tanmay,
I faced a similar issue while integrating WDA application in Portal.
Check out the following SAP note that corrects this issue:
1230506 - Endless loop when starting Web Dynpro ABAP
Hope this solves your problem!
Thanks.
Chitrali
Maybe you are looking for
-
Graph.xml not rendering correctly
Hi! I've been working on a pie chart for a while and i'm striving to refine it. Here's my code: *<rw:graph id="CT_1" src="nnnnnnn" series="nnnnn" dataValues="nnnnn">* *<!--* *<?xml version="1.0" ?>* *<Graph version="3.2.0.22" graphType="PIE" depthAng
-
Can't set time in reminders app in OS X ML
hey, according to apple's instructions at: http://support.apple.com/kb/PH11838, setting a time for a reminder in the OS X Mountain Lion is just like doing it on an iDevice: 4.Click the time to enter a different time. But not so, when adding a reminde
-
Preventing contact update in linked email
I have one business email account linked to my Blackberry for live email updates at the request of my employer. I would like to keep the live email without it automatically adding contacts to the gmail address I use. I only use this address for work
-
How can I disable the downloads list altogether?
I really don't find that I need the downloads list and it is a pain in the rear to have to click it away in order to return to the main window each time when I'm doing many picture downloads in a row.
-
Left my ipad 2 on flight, hawaiian says its not to be found,never set up "find me"
I left my ipad 2 on the flight from hnl to pdx july 31. Hawaiian says it is not in lost and found. i never set up find me, can it be located, can i get my photos, can someone get into any of my personal info. used it for photos, games, email, change