cancel
Showing results for 
Search instead for 
Did you mean: 

Shooping cart - Attachments

Former Member
0 Kudos

Hi,

I have requirement that the system should provide a link to a X form ( a word document) when the shopping cart limit exceeds the limit maintained in the X from (word doc). can anyone give me inputs on how to go abt it

points would be rewarded!!

Rgds

Harshika

Accepted Solutions (0)

Answers (1)

Answers (1)

Ramki
Active Contributor
0 Kudos

Hi

Requirement is not clear. Could you pl elaborate with an example ?

Rgds

Ramki

Former Member
0 Kudos

Hi Ramki,

My requirement is that system should provide a link to a form (word document )when the shopping cart dollar amount exceeds or meets the limit maintained in that form . If this is not clear, can you give me your email id so that i can forward the exact requirement

Thanks for your response

harshika

Ramki
Active Contributor
0 Kudos

Hi Harshika

Do you mean this ?

1) You maintain a limit in word document. (Do you have many such word documents for all various limits? Howmany ?)

2) When a shopping cart is created (checked or ordered), you want the system to get the total SC value, check this with all those word documents and if it exceeds the limit in any word document, then insert an attachment (or link) in shopping cart. Or it should popup a message which has the link to word document.

Am I right ?

Former Member
0 Kudos

Yes thats the requirement

Former Member
0 Kudos

couple of docs carrying limits and the others would be

employee form--when hiring former employee

conusulting form--when sc is created with items belonging to that consulting category

vendor form--when sc is populated with that particular vendor

if you need any other info let me know

Rgds

Harshika

Ramki
Active Contributor
0 Kudos

Hi

Suggest you to use BBP_DOC_CHECK_BADI to give the messages with the conditions you mentioned.

Best regards

Ramki

Ramki
Active Contributor
0 Kudos

Forgot to mention, the check badi will not work, if you want to insert an attachment in shopping cart.

You may use BBP_DOC_CHANGE_BADI for that (frankly, I am not sure whether you can insert an attachment with this badi...but we need to try once, is it not).

Also, system will not check values from word documents. I suggest you to maintain a ztable as configuration table to maintain these conditions.

e.g. z table can have product category, value, URL etc fields. If the prod category is consulting, then the URL given against that prod category in the z-table is used for message in check badi.

You need ABAPer for this

Hope it helps

Best regards

Ramki

Former Member
0 Kudos

I know its possible with bbp_doc_check_badi. but then how do i make the system provide a link to all these forms?

do i have to archive them on SRM?

can you eloborate on how to go abt it

Rgds

Harshika

Ramki
Active Contributor
0 Kudos

Hi Harshika

This is what I do normally - very flexible and very simple:

If they are generic forms and do not change everytime, I suggest you keep them in your web server (or include them in your BBP Global).

Attach the link as a menu item in PFCG for your user roles.

Best regards

Ramki

Former Member
0 Kudos

Thanks for your answer..

My other requirement is that users should be able to select level of email alerts: high med low and off..

I know this can be achieved with creating a z program out of rswuwfmlec and adding the code with in the program ..

can you share your thoughts on this

Rgds

Harshika

Ramki
Active Contributor
0 Kudos

Do you mean 'Alert' mails/notifications for events configured ?

Am not sure about the easy way of doing?

I think smartform BBP_OUT_EXCEPTION is used there...does this info help ?

Former Member
0 Kudos

can you speak more abt this smart form on how to go abt it

Ramki
Active Contributor
0 Kudos

Hi Harshika

You can explore it in smartforms txn.

I guess you need to get an ABAPer there..I do not have much dev expertise

Best regards

Ramki

Former Member
0 Kudos

Hi Ramki,

Can you give me your email id?

Rgds

Harshika

Former Member
0 Kudos

Hi

Incase you are using SRM 5.5 version, then you can use this approach.

Have you used this BADI - BBP_ALERTING ?

Creating BAdI implementation for BAdI BBP_ALERTING of enhancement spot

BBP_ENHANCEMENT_SPOT

<b>Here is the documentation</b>

Alerts/Messages and Events in SRM Alert Management
Use

Using BAdI BBP_ALERTING you can define your own events for SRM Alert Management and you can override existing (delivered) events. You can also override the standard alert categories and change the links(URLs) that the recipient uses to get to the relevant business object (document). In addition, you can use the document data to determine your own recipients.

This BadI serves to enhance and/or vary the settings of the IMG activities under
Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> Event and Event Schema for Alert Management.

The following methods are available:

BBP_EVENTS_ANALYZE
Change the standard events and define your own events
BBP_EVENTS_CATEGORIZE
Change the standard alert categories
BBP_EVENTS_DET_RECIPIENTS
Change the standard recipient
BBP_EVENTS_DET_FOLLOW_UP_URL
Change the links contained in the alerts/in the messages, for example, for the link to the affected document

See also: Release Information SRM Alert Management (new)!

Requirements

In order to receive detailed information on documents, document status, and document items, we recommend that you use the following function modules (the document GUID is available as an import parameter in the individual methods):

BBP_PD_ALL_GET_DIFF
BBP_PRODOC_GETDETAIL

Standard settings

This BAdI is not active in the standard delivery.

If the BAdI is activated without being changed, there are no changes in the system behavior.

Hope this will help.

Please reward suitable points.

Regards

- Atul

Former Member
0 Kudos

Hi

<b>Here is the concept of SRM Alert Management.</b>

<b><u>SRM Alert Management</u></b>

Use

As of SAP SRM 5.0, functionality is available that provides users with alerts and messages to inform them about predefined or critical statuses or events (exceptions) in the business process. Besides the information itself, the alerts enable the recipient to react directly to the underlying situation and to process it immediately. This effectively reduces the time gap between the occurence and solving of critical statuses.

In order to send alerts, SRM Alert Management technically uses the Alert Framework.

Alerts reach the appropriate recipient per alert entry (in the LaunchPad: Alerts). (If SRM is running on an ERP platform, then in the Portal the central worklist (UWL) is used for receiving and processing the alerts.) The recipient receives a link with a direct link to the relevant business object (for example, to an SRM document) - a direct reaction is expected from the recipient.
Messages are sent by mail to the recipient and only inform about the event that has occurred without expecting an immediate reaction. (The link contained here is only for information purposes.)
Tasks, as a third variant, are sent by workflow (WS14500051) so that the recipient has to carry out the relevant work item.

SRM delivers a standard recipient determination for most events.
Alternatively you can define the recipient determination in the respective alert categories of the classification SRM Alerts (SAP Web Application Server -> SAP Web Application Server -> Generic Business Tools -> Alert Management -> Define Alert Categories) or by implementing the BAdI BBP_ALERTING.
The texts for the individual alert categories (changeable) are storedhere (Message title: Subject line of alert/message,short and long text: consist of the event text and the message text generated by the application or by a system report).
You can define your own alert categories or modify the delivered ones.

The Smart Form BBP_OUT_EXCEPTION controls the layout, the displayed text and its elements, the logic etc. of the notification e-mail.

Details:

SRM delivers predefined events for the majority of the business objects,for example, (z.B. BUS2000113 - purchase contract) (IMG: Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> Event and Event Schema for Alert Management -> Define Events).
In event schemas these events are linked with the alert category (IMG: Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> Event and Event Schema for Alert Management -> Define Event Schema). Using the event schema, you can define the following:

whether an alert, a task, or a message is to be sent for this event (Event category)
the alert category (subcategory of the event)
how many hours after the occurrence of an event the appropriate alert or message is to be sent.




Effects on Customizing
You make the settings for SRM Alert Management in the IMG:
Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> Event and Event Schema for Alert Management -> ...
Using BAdI BBP_ALERTING (Alerts/Messages and Events in SRM Alert Management), you can make the following settings at variance with the SRM standard:
Alert Categories
Events and Alerts/ Messages
Recipient Control
URLs for the jump to the relevant documents
In the IMG under Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> Define Transaction Types you can assign an event schema of a business object to a transaction type and thus make event control even more detailed.
Only when an event schema is also assigned to a transaction type, is the Alert function for this also activated!
As a technical prerequisite for triggering alerts and notifications, thereport on deadline monitoring must be scheduled as a background job:
IMG: Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> SAP Business Workflow -> Maintain Standard Settings for SAP Business Workflow -> Maintain Runtime Environment -> Schedule Background Job for Deadline Monitoring

See also
For more information on Alert Management, see the SAP Library (SAP R/3 Enterprise, Release 4.70) under:
SAP-NetWeaver Components ->SAP Web Application Server -> Basis Services / Communication Interface -> Business Workplace and Services -> Alert Management

Hope this will help.

Please reward suitable points.

Regards

- Atul