Shopping Cart Changes before saving
Hello ,
I want to change the Logical/Target System of the Shopping Cart before I can save the shopping cart on some condition. Can any one suggest me how can this be done. Any standard program that needs to be changed...
Thanks in Advance
Hi,
You can use the badi "BBP_DETERMINE_LOGSYS".
Read the documentation below:
BADI - BBP_DETERMINE_LOGSYS
code
You can use the Business Add-In BBP_DETERMINE_LOGSYS to define your own criteria for determining the backend system / company code. You use this BAdI to determine the source system for
Shopping cart items
In the standard system, the backend system is determined using the product category Define Backend Systems. The backend System is placed in the field ITEM_DATA-LOGICAL_SYSTEM. Then the system calls the Business Add-In BBP_DETERMINE_LOGSYS.
The company code is put in the field ITEM_DATA-BC_CO_CODE. Then the system calls the Business Add-In BBP_DETERMINE_LOGSYS.
Contracts
In the standard system, the system creates contracts locally from Sourcing and SAP Bidding Engine You can use this BAdI to determine a backend system.
Example
Shopping Cart:
Backend system A is determined for product category OFFICEMATERIAL. You also want to consider the vendor and purchasing organization fields during determination of the backend system. The purchase order is to be created in backend system B for the vendor OFFICE1 and purchasing organization 0001. You overwrite the field ITEM_DATA-LOGICAL_SYSTEM with B.
Contract:
The local system used by the standard system to create contracts is XYZ4711. In the field CV_LOGSYS, you enter the logical system ABC0815 that links to a backend system. In this way, contracts are created in the backend system.
Standard settings
The BAdI provides the following methods:
-> DETERMINE_LOGSYS
-> CONTRACT_LOGSYS_DETERMINE
Activities
Implement this BAdI if you want to define a target system that is different from the standard system.[/code]
Sample code for BBP_DETERMINE_LOGSYS BADI
codemethod IF_EX_BBP_DETERMINE_LOGSYS~DETERMINE_LOGSYS.
data: w_acct_data type enriched_acct_data.
data: w_acct_icom type BBP_PDS_ACC_ICOM.
data: w_et_messages type BBP_TMESSAGES_BADI.
data: re_obj(40).
data: imkey(8).
field-symbols: <waItem> type bbp_oci_enritem.
field-symbols: <waAcct> type bbp_oci_enracct.
field-symbols: <f1> type any.
if not acct_data[] is initial.
loop at item_data assigning <waItem>.
loop at acct_data assigning <waAcct> where line = <waitem>-line.
check <waAcct>-acc_cat = 'RE'.
if not <waAcct>-acc_str is initial.
CALL FUNCTION 'Z_RE_ACCT_ASSGN'
EXPORTING
ACC_STR = <waAcct>-ACC_STR
BUKRS = <waItem>-BE_CO_CODE
IMPORTING
RE_OBJ = RE_OBJ
IMKEY = IMKEY
TABLES
BBP_RETURN = w_et_messages.
endif.
if not imkey is initial and w_et_messages[] is initial.
move imkey to <waAcct>-rl_esk_key.
move re_obj to <waAcct>-acc_str.
modify acct_data from <waAcct>.
endif.
endloop.
endloop.
endif.
endmethod.[/code]
BR,
Disha.
Do reward points for useful answers.
Similar Messages
-
Check on vendor email address change before saving PO
Hi All,
I need to check Is there any change in Vendor Email address in PO before
saving. I am trying to find userexits.
I found some like EXIT_SAPMM06E_012, But here I am not getting complete
Vendor address...
Req: I am maintaing multiple email address for Vendor at PO header level.
Here is the path: PO Header --> Address tab --> Click on Address Details
--> Here we can maintain(Insert/ Delete/Change) multiple e mail address.
So I need to check is there any change in email address before saving.
Could you please any body help me on this....
Thanks
RaysHello Rays,
One base question,
Are you going to check the vendor email address manually before saving the PO?
The vendor address in the puchase order is copied from the vendor master so you can maintain email address (single or multiple) in the vendor master before creating the purchase order. At the time of purchase order creation/save, you can change the default email address and use this to trigger PO to vendor.
By the way, user exit EXIT_SAPMM06E_012 (Check Customer-Specific Data Before Saving) is used for custom field not for SAP std field.
Hope this helps.
Arif Mansuri
Reward the points if answer is helpful. -
Workflow applet in approval preview (shopping cart) changed in SRM 5.0
Hi,
we have upgrade from EBP 3.0 to SRM 5.0.
The approval preview in the shopping cart transactions (f.e. BBPSC03) now shows only the approval state (in grahpic mode), not the step description from the workflow definition.
In EBP 3.0 was showed the step description.
How can we change the applet output ?
B.RauerHi
Please specify the SRM version(Support packs) details in next reply.
<u>Meanwhile, please go through the following SAP OSS Notes, which will definitely help -></u>
Note 798295 BADI workflow: SRM 3.0 upgrade to 4.0 approver list -> main
Note 748655 SC APPROVAL GRAPHIC PREVIEW NOT CORRECT FOR BADI APPROVERS
Note 843636 PO BADI WORKFLOW does not assign correct approvers
Note 861147 BAdI workflow: Adjusting step name to runtime
Note 883207 BBP_WFL_DIN_APPR_BY_RULE_GET: if BAdI not implemented
Note 713567 SRM-EBP-WFL: Limit is ignored in WS14000109
Note 923463 BAdI n-step approval - Container inconsistent for 1st step
Note 901068 BAdI Workflows: Enhancement of Note 896556
Note 898768 BADI Workflow: Determining current approvers
Note 861147 BAdI workflow: Adjusting step name to runtime
Note 688724 BADI workflow: Problems with substitute
Note 788584 BADI Workflow: empty WI_ID in approver table
Note 780021 BADI Workflow: subsequent approvers after rejection
Do let me know.
Regards
- Atul -
Shopping Cart change by approver is not updating in approval preview screen
We are using SRM 4.0 in ECS and have been noticing a problem with the approval preview on the shopping cart when the shopping cart is changed or rejected by one of the added approvers.
The shopping cart was created with multiple line items for materials and when the shopping cart was ordered it workflowed to the 1st approver that was added. He noticed that a price was wrong on one of the line items of the shopping and proceeded to change it and then approved the SC. The approval preview screen in the SC shows that it was approved but the preview does not show that it was forwarded to the next approver listed on the preview screen. However checking in the backend I'm showing the SC sitting in the inbox of the next approver stating: Your shopping cart 'MD D&C LL1 dvf Vetco-Subsea Wellhead Eq' was changed/rejected in part. Please check.
Why isn't the approval preview updating when the SC is rejected or changed?hi,
This behaviour of the system is as follows , when the first approvers makes the changes and then approves the cart , it will go to the requestor of the shopping cart , and wether the workflow should restart --->
depends on the security level of the approver who is changing the cart -->
you can find the security level of the approver --> in the transaction SU01 ---> persononalization tab ---> key bbp_wfl_security
and the text you have mentioned --->
Your shopping cart 'MD D&C LL1 dvf Vetco-Subsea Wellhead Eq' was changed/rejected in part
this is for the requestor of the cart ---> this is mail which specifies that the first approver has partially approved the cart. -
Change in Currency code in Shopping cart changes the given price
hi all,
When i change the currency code the price given gets varied automatically in the shopping cart,Could anyone please advice me why and whats the reason behind chnages?
i appreciate your value participation.
Thanks,
SNMPkumarHi
If you change the currency code in the shopping cart it will happen automatically. because we are maintain the currency conversion in the system because of this will happen.
regards
satish -
Hi All,
I am stuck in one issue.
The issue is that when user create a shopping cart and during approval the approver changes the location on the shopping cart the system drops the vendor from the shopping cart and the shopping cart gets approved without the vendor and converts into a PO without the vendor. The PO stays in the held state until user manually populate a vendor in the PO.
We are using extended classic scenario.
Regards,
SauravHi Saurav,
I don't know your release, but pelase see following notes:
881346
758481
825604
792920
Regards,
Peter -
Notfication for shopping cart change
Hi,
Is there any notification sent o the requestor whenever a shopping cart is changed by approver or others?
How does it work?
Thanks,
Sivagami RHi Masa,
configuration is done. Notification is sent for deadline and after approval or rejection. Only for change it is not working.
Thanks,
Sivagami r -
Hello all, I am working in SRM 7.0 and I need to know if I can change shopping cart values if the shopping cart is approved. Can I change some values in standard mode?
Thanks in advance
Rosa RodríguezRosa Rodriguez wrote:>
> Hello Muthu, in this case we have classic scenario and fixed source of supply, always must be a contract or a vendor (travel agency).
> In this case then buyer has to deleted purchase order in ERP, system automatically deleted purchase order in SRM and then requester can change shopping cart as he/she wants no?
Yes. BUYERs can process the Purchase order since they have a good relation with vendor .their communication is fast.
cancellation of Purchase order , you need to justify the vendor why you ahve ordered and later not taken the material.
> When you write buyer are you refering to person that creates purchase order manually in backend no?
or if the REQUESTER have access to delete the purchase order ,they can do it. but eventually this information must convey to the Vendor /supplier.
> And as finally, can we create from two different shopping carts, only one purchase order? or update one purchase order that was created in backend from SRM?
Yes two different shopping cart can create a one Purchase order from the cockpit if the vendor and purchase group is same.
for example sc item 1 MM 10003456 - purchase group -ROSA and 1 MM 10003455 - purchase group -ROSA
and BUYER canassig a vendor code and put the price and create ONE PO for two shopping cart. -
Validating changes before saving
Hi all
Sorry if this sounds like a novice question but I am still learning.
Just wondering if their is a way to validate data in the form before committing; this is in order to display certain checks and present the result via a message display on the form.
Currently, I have to make the change and then commit the changes before the form will validate and the message is displayed.
Thanks for any suggestions...
NewbieHi
There is a few things i'm validating e.g. one lov
with 2 choices; if one choice is picked then another
field in that block is checked for a correct format,
pick the other choice and the first check is
cancelled and another field again is checked for a
certain length value etc.It seems as if you want to do some validations as soon as some value is selected by LOV for an Item.
If this is the case you can use WHEN-VALIDATE-ITEM trigger for that Item and then set and validate your requirements depending upon the value selected from LOV.
Hope this is what you are looking for and helps u.
Regards
Arif -
Changes allowed in shopping cart during approval
Hi all,
I am on SRM 7 , ECS.
My reqirements are :
1. The requisitioner should not be able to change the shopping cart during approval workflow.I have changed the authorization level , BBP_WFL_SECURITY , to none " changes are not allowed" in the employee role . But still the requester is able to change the cart during workflow
2. The approver should be able to change the shopping cart during approval workflow.I have changed the authorization level , BBP_WFL_SECURITY , to low " workflow is always restarted when changes are made" in the employee role . But the approver is not able to change the cart during workflow.
3. If the approver rejects the cart , the workflow should end. what is the way to achieve this?
can you please advise on all these points?
Rgds
SumendraHi,
It is called Process-Controlled Workflow. BRF Workflow is not correct term.
BBP_WFL_SECURITY is for only Application-Controlled Workflow.
>1. The requisitioner should not be able to change the shopping cart
Changing SC is available in standard. You can de-activate Edit Button by custom class. Please check "Extension and Field Control (Personalization)" customizing.
>2. The approver should be able to change the shopping cart
There are 2 task types, Completion and Approval in #Define Process Level"
Completion TS40007952 Approver can change SC
Approval TS40007953 No chnage is available
>3. If the approver rejects the cart , the workflow should end
It is in standard for full reject case. What is requirement for partial reject case?
>4.all header and item information can be changed by the approver
Yes
Team SC concept is also available in SRM 7.0. Team members can edit Team SC before submit.
Regards,
Masa -
How to read the status changed in crmd_order txn before saving it to DB.
hello all,
My requirement is to perform some checks after the user changes the status
( Before saving it to DB i need to do some checks )
I could find the BADI and Fm's for checking conditions.
My question is i need to check for a particular status change how do i trace that that particular status which i need to capture has been changed??
i could see some FM's but it is only fetching the staus save in DB.
how do i trace the status just after user changes before saving it to DB.
it's an urgent requirement............pls help me on this..........
pls get back to me if u want more details.........
Thanks,
Shiva.Hello.
Have you figured this out yet? We are having the same problem. -
How to create a shopping cart which will be in saved state
I am creating the shopping cart using the standard function module BAPI_SCEC_CREATE. After the shopping cart creation, I use the FM BAPI_TRANSACTION_COMMIT , so that the created shopping cart is committed.
Now , The problem is, if I create a shopping cart using the above process, it gets into awaiting approval state. What do i do to save a shopping cart rather than creating it. I mean to say, the state of the shopping cart should be saved.
And let me know the procedure to update an existing shopping cart which is in saved state.
Thanks,
Karthik Babu.
Edited by: karthik_pulluru on Jul 28, 2011 12:27 PMHi,
As per your suggestions, I am using BBP_PD_SC_CREATE FM to create my shopping cart. the shopping cart is being created in HELD state. But, the item details, partner details, account details and org data is not being inserted.
DATA iv_header type BBP_PDS_SC_HEADER_IC.
lv_header_ref = '1'.
lv_item_count = '2'.
iv_header-guid = 1.
iv_header-description = 'test for save cart'.
iv_header-currency = 'USD'.
iv_header-process_type = 'SHC'.
*ls header
ls_header-process_type = 'SHC'.
ls_header-currency = 'USD'.
ls_header-subtype = 'EP'.
ls_header-businessprocess = '1'.
*lt item
ls_item-guid = '2'.
ls_item-number_int = '0000000002'.
ls_item-parent = '1'.
ls_item-description = 'Deep Groove Lower Fuser'.
ls_item-product_type = '01'.
ls_item-category_id = '00106'.
ls_item-quantity = '1.000'.
ls_item-unit = 'EA'.
ls_item-gross_price = '39.0000'.
ls_item-price_unit = '1'.
ls_item-deliv_date = sy-datum + 1.
ls_item-be_stge_loc = '0001'.
ls_item-be_co_code = '1000'.
ls_item-currency = 'USD'.
ls_item-be_plant = '1000'.
ls_item-be_pur_group = '003'.
ls_item-be_pur_org = '1000'.
*****To be populated from Header Data
append ls_item to lt_item.
account data
data: ls_account type BBP_PDS_ACC ,
rt_account_data type BAPIT_ACC.
ls_account-p_guid = '2'.
ls_account-acc_no = '0001'.
ls_account-g_l_acct = '400000'.
ls_account-cost_ctr = '1000'.
ls_account-co_area = '1000'.
ls_account-profit_ctr = '1402'.
ls_account-acc_cat = 'CC'.
append ls_account to lt_account.
*bupa data
data:
ls_bup type BBP_PDS_PARTNER,
rt_bupa_det TYPE BAPIT_BUP_C.
ls_bup-parent_guid = 2.
ls_bup-partner_fct = '00000016'.
ls_bup-PARTNER_no = '0000000206'.
ls_bup-mainpartner = 'X'.
ls_bup-p_guid = '2'.
append ls_bup to lt_bup.
ls_bup-parent_guid = 2.
ls_bup-partner_fct = '00000075'.
ls_bup-partner_no = '0000000007'.
ls_bup-mainpartner = 'X'.
ls_bup-p_guid = '2'.
append ls_bup to lt_bup.
*org data
data: ls_org type BBP_PDS_ORG ,
rt_org_det type BAPIT_ORG_C.
**********Org
ls_org-proc_org_ot = 'O'.
ls_org-proc_org_id = '50000011'.
ls_org-proc_group_ot = 'O'.
ls_org-proc_group_id = '50000012'.
ls_org-p_guid = '2'.
append ls_org to lt_org.
data e_header type BBP_PDS_SC_HEADER_D.
CALL FUNCTION 'BBP_PD_SC_CREATE'
EXPORTING
I_REF_GUID =
I_BAPIMODE = 'X'
I_PARK = 'X'
I_SAVE = ' '
I_TESTRUN = ' '
I_HEADER = IV_HEADER
I_SRC_GUID =
I_SRC_OBJECT_TYPE =
IT_ATTACH =
IV_MSG_SCENARIO = ' '
IMPORTING
E_HEADER = e_header
ET_ATTACH =
TABLES
I_ITEM = lt_item
I_ACCOUNT = lt_account
I_PARTNER = lt_bup
I_CONFIRM =
I_LONGTEXT =
I_LIMIT =
I_ORGDATA = lt_org
I_TAX =
I_PRIDOC =
I_HCF =
I_ICF =
I_TOL =
E_ITEM = e_item
E_ACCOUNT = e_account
E_PARTNER = e_partner
E_CONFIRM =
E_LONGTEXT =
E_LIMIT =
E_ORGDATA = e_orgdata
E_TAX =
E_HCF =
E_ICF =
E_TOL =
E_STATUS =
E_MESSAGES = lt_message1
call function 'BAPI_TRANSACTION_COMMIT'.
I pasted my code here. pls tell m ewhere i went wrong.
Thanks,
Karthik Babu -
Hi
Can you tell me where the attachment file for shopping cart & RFC is saved in SRM?
I uploaded attachment file from SRM portal but not sure where its stored now.
Table BBP_PDATT has only attachment information. but where the physical file stored?
I have configured SAP content server in CSADMIN/OACT. but how did SC document recognize content server?
Pls advice
regards
ChandraHello Masa
Thanks for your reply. I observed as below
Can you clarify two points
1) First I created shopping cart in SRM portal with attachment. but i could not see table BBPCONT
BBP_TRANSCONTENT is updated. There is no increase in number of entries in table.
But i can see the attachment info is stored in BBP_PDATT table except physical file content.
Where does it store now?
2)To configure contentserver, I used below setting for content server as u said.
and save the attachment in shopping cart. how to find its stored in content server?
BBPFILESYSTEM
Documnt area is EBP document area(should i have to use Document management system?)
Storage type as HTTP Content server
Content table changed as ContentServer/ContentServer.dll
Also can you tell me whether storage category has to be defined for cotnent repository?
Pls advice.
Regards
Chandra
Edited by: princeck on Feb 16, 2011 7:07 AM -
Shopping Cart approval process in SRM using Black Berry
Hi,
I am very new to SRM. Here the user wants the whole approval/rejection process of shopping cart should be done via the Black Berry.
When a shopping cart is created in SRM then automatically a mail should appear in this mail box(outlook or lotus) as well as in the black berry mail box, so from black berry the user will accept/reject the shopping cart.
What workflow should be used? for mailing to outlook as well as in the blackberry whether we should implement any BAdI and also for integrating SRM & black berry whether we require any plug-in or configuration to be done..
Please do the needful..
Thanks and Regards,
Chandra SekharHi,
pl. read this:
Mobile Enterprise Buyer
Use
Users can log on to the Enterprise Buyer system using a WAP-enabled cellular phone or any other WAP-enabled front end. This allows them to perform many procurement tasks completely independently of any docking station. These mobile applications are part of the standard system setup for Enterprise Buyer.
Managers can approve shopping carts while on business trips far away from the office.
The start URL for the mobile scenarios is:
http://.:/scripts/wgate/wapbbpstart/!?~language=
where <language> = de or <language> = en, for example.
The initial screen is displayed in the relevant language.
Integration
You can either use your own WAP gateway or you can use a WAP gateway service from a telecommunications provider. If you have your own gateway, you can position it behind your firewall. This means that communication is via a dialup line as far as the WAP gateway, that is, a secure connection going behind the firewall. Beyond this point, communication is via HTTP. If you are using a WAP gateway service, the dialup line stops outside your firewall with the less secure HTTP communication starting outside the firewall.
The graphic shows a standard configuration with a WAP gateway located behind the firewall.
Prerequisites
You require the following:
WAP-enabled mobile device
WAP gateway
WML-enabled catalog that supports OCI
You have configured your Web server to handle the MIME (Multipurpose Internet Mail Extensions) types required for WAP. These are as follows:
File extension
MIME type
Wml
text/vnd.wap.wml
Wmlc
Application/vnd.wap.wmlc
Wmls
text/vnd.wap.wmlscript
Wmlsc
Application/vnd.wap.wmlscriptc
Wbmp
image/vnd.wap.wbmp
If you have your own Web server, you define the MIME types using the Web server's administration tools. In Microsoft IIS, you have to enter the types on the Properties page of your site on the tab card HTTP Headers. If you are not using your own Web server, inform the administrator or provider running the Web server.
Features
The following functions are available:
Create new shopping cart
Users can:
Select catalogs using input help
View catalogs (by product group)
Search for products in catalogs (full text)
Display item details
Add items to shopping carts
Delete items from shopping carts
Change item quantities
Delete shopping carts
Order shopping carts
When a shopping cart is ordered, an order confirmation is displayed giving the shopping cart name and the total value of the shopping cart.
Status check
Users can:
Display overview of shopping carts (shopping cart name and status)
Display header data for shopping carts (for example, shopping cart name and date of last change)
Inbox
Users can:
Display overview of work items (only shopping cart approval) and messages
Display detail view of messages (sender and full short text)
Display detail view of work items (full short text only)
Managers can approve or reject shopping carts
Managers can only approve or reject complete shopping carts. Approval and rejection at item level is not possible.
Reporting
Managers can display the most recent purchase orders created for their cost center(s).
to get presentable doc mail me on
[email protected]
BR
Dinesh
<b>Reward if helps</b> -
Hi All,
I need to check for certain data changes before saving a business partner using transaction BP in CRM. If there are any unwanted changes I need to throw an error and should not allow to change the business partner using transaction BP.
For this purpose I found BADI BUPA_FURTHER_CHECKS and implemented the BADI method CHECK_CENTRAL. I have put a break-point in the method but it doesn't stop.
I have activated the implementation of the method and BADI but still doesn't work.
Has anyone successfully implemented this BADI? or is there is any other BADI to solve my problem?
Please let me know if anyone has answers.
Points will be rewarded.
Thanks in advance.
Sonali.Hi Gautham,
No good, It did not help me Gautham.
Can you please suggest me some other way of dong it.
I have 2 badis to use one is address_update and the other is addres_check.
I implemented address_check which had a address structure as a changing parameter and I update it there, it works absolutely fine.
But my requirement is to update the structure based on the condition of BUT000. That is the BUT000-type, which means I need to update the structure only for person and not for organization and group.
so in the badi address_check i need the BUT000 details, which I am not able to trace even from the local memory as I am getting the error saying "Memory is not yet instantiated"
and If i use the other badi address_update.
I have the problem the other way round here. I have all the BUT000 details here I can put the condition to update only for person, but I am not able to update the address structure.
Please help me. This is required very urgent.
Maximum points will be rewarded.
Thanks in advance.
Arul.
Maybe you are looking for
-
I've lost all my contacts off my phone I synced my I pad with the same account when I deleted the contacts from the I pad it deleted them from my phoneidont have it backed up on a pc how do I get it back
-
Hi! I use two accounts on Mail: @gmail.com and @mail.ru. The @mail.ru is used as default. So all answers have to be sent from mail.ru, however it is not - they go from @gmail.com. What is wrong?
-
Lost audio files after sync but storage space unchanged
I had 4GB of audio files in my iphone which was erased after syncing. But my memory is unchanged. So I can't sync and add it on my phone again because it says I don't have any space. Is there any way I can reset the phone and just start over.
-
No SharePoint Websites run in the Microsoft Preconfigured SharePoint 2010 VHD
Host machine: Sun Virtual box (latest version) windows 7 64 bit, 6 GB RAM Booting from MS preconfigured SharePoint 2010 VHD Guys, No sharepoint sites including CA run in the Virtual Box that i booted from the MS preconfigured VHD. CA url is : http://
-
Hi, I would like to check if ISE may support sending of SMS to appliances in the format of <guest mobile number@sms_gateway> to the sms gateway instead of just specifying the sms gateway ip address? I have attached a screen capture of it. Thanks.