FM/Badi for simulating shopping cart conversion

Hi Folks,
Pls suggest me a relevant Function module or BADI which we can use to simulate the Shopping cart conversion to PR in SRM 5.0 Classic scenario before save it. It is required to capture the errors when shopping cart is trying to convert it into PR in ECC after approval in advance.
Please advice whether it is feasible.
Regards
TGB

https://wiki.sdn.sap.com/wiki/display/SRM/Howtoanalyzethefollow-ondocumentdetermination
why PR is geting created
what about the settings in Define backend objects?
or
what about source of supply in the shopping cart - Fixed vendor?
Re: SRM 7.0: Classic Scenario no PO is created only PR is generated
muthu

Similar Messages

  • Badi for passing shopping cart data to Bid at Create Rfx Button

    Hi experts,
    I have custom fields in shooping cart and Bid. I need to pass data from shopping Cart to Bid at the time of Bid creation using Create Rfx Button in Portal. Please let me know how to achieve it.
    Thanks & Regards,
    Sushant Singh

    If it is required to push data from Item to Header then it is required to write explicit code for it.
    If you have specific mapping requirements, one potential approach is to implement the BBP_DOC_CHANGE_BADI for the follow-on document (RFx in your case) and update it with the source document information (SC in your case).

  • GR Based IV Flag for Limit Shopping carts.

    Hello,
            We are on ECS SRM 3.0,EBP 4.0.There is a requirement to populate GR based Invoice verification flag (GR Based IV flag) for a PO for any  Limit shopping carts raised.For all other shopping carts this flag should not be set.One option we can think is a condition set in the Badi which replicates the PO to backend.Are there any settings to achieve the same.
    Thanks
    Rakesh.

    Hi Rakesh,
    As Dave said the simple way is using BADI BBP_CREATE_BE_PO_NEW.
    There is a way to achive this for Limit shopping carts. Choose 'Confirmation and Invoice' as Follow-on doc in the Limit shopping cart, this will create PO with GR flag active always. But this will not solve your other requirement that all non Limit orders should create PO with no GR flag. In that case you need to use BADI again.
    It is up to you, think and decide which way is better..:)
    Thanks,
    Jagadish

  • Purchase Order not created for a Shopping Cart

    We have a few Shopping Carts created in SRM which did not transmit as PO to our backend R/3 system. This happened because our R/3 system went down for a couple of hours and the Shopping Carts were created during this time. We tried to submit these Shopping Carts through the Application monitor later and the SRM system gave a message "Processed Successfully". However, POs for these Shopping Carts were not created and the Shopping Carts have a status of "Item in transfer process".
    The Shopping Carts have already got a PO number assigned to them through the SRM system. However these PO's have not been created in the backend R/3 system
    We are struggling to find the failed RFC calls with the help of BASIS so that we can possibly reprocess them. Alternatively we are also looking for a way to retrigger the PO creation for these Shopping Carts.
    I need ideas to resolve this issue.
    Many thanks in advance.
    Susmit

    Not sure if you received an answer or not, but this is what we have had to do in the past:
    1.  Run BBP_PD for the shopping cart to see what the purchase requisition number will be on the backend system.  The requisition number will still be provided even if it fails to transfer to the backend.
    2.  Run FM BBP_PD_SC_RESUBMIT.  The object key field will be the requisition number; the object ID field will be the shopping cart number.
    Hope this helps.
    Monique Stephens

  • Work flow not created for the Shopping Cart

    Hi one of the customers created a shopping cart,in approval overview it is showing as no need of approvals,but the status of approval is 'awaiting approval', but workflow is not created for the Shopping cart. advised to re-order in change mode but still no use. please advise.

    Hi,
      what do you see in SLG1? Check the below t.codes
    SM58 - check for stuck remote function calls
    ST22 - check for system dumps
    SM13 - check for stuck update requests
    SM21 - check in the system log for anything unusual
    SWUD - run a consistency check on the workflow
    Saravanan

  • Purchase requistion number not been generated for material shopping carts

    Dear Experts,
    I am able to create a purchase requistion for text shopping carts once it is approved. For material if i create a shopping cart then status is showing approved(activated workflow without approval) but purchase requistion number not been generated.
    It was happening suddenly...earlier i was able to generate PR for material shopping carts.
    Please advise on this
    Thanks
    Ravo

    Hi Venkatesh,
    Can you please give me the detail requirement. If you want generate a PR for catalogue items then you have to maintain the setting in SPRO_>srm->SRM SERVER->cross application basic settings-> define objects in backend systems...
    Thanks
    Ravi

  • How to Get Each line item Create and Approval dates for a SHOPPING CART in SAP SRM (ABAP Programming)

    Hi All,
    I have to Get Each line item Create and Approval dates for a SHOPPING CART in SAP SRM. Either a table, or any Function module, Method, please let me know ASAP. Same i can use in my Program.
    Thank you Very much.
    Regards,
    Ramesh J.

    Hi,
    Refer the below wiki link it may help you.
    Product catlog configuration for ECC - CRM - SCN Wiki

  • Indexing product data for embedded search for my shopping cart fiori app

    Hello Experts
    I'm doing indexing of product data records for SRM embedded search for My Shopping Cart Fiori app.
    however the job being created by the system to accomplish the task is, as error message displayed, not defined properly.
    any idea how to resolve this?
    i have no idea what program is this, and job details cannot be displayed/changed because of incomplete job definition.
    Appreciate any assistance pls.

    Hi Dex,
    Please check if there was a dump recorded in ST22. Also perform an authorization check SU53 for the background user that submits the job.
    Thanks,
    Vipin

  • Enter a vendor error message for catalog shopping carts

    Hi Viewers,
    I am facing problem while creating PO in backend R/3 system by using catalog shopping carts.
    Procedure:
    I have created catalog shopping cart with vendor.
    when i click on order button shopping cart has been created successfully.
    But when i see the history in BBP_PD transaction it went to error.
    I can see the error message in RZ20 transaction under SAP B2B Procurement - Monitors -->Shopping Basket as follows:
    "Shopping cart 3000841126 (PO 2000251272): 06 049 Enter a vendor"
    Is there any config settings missed out or anything else need to do for the same.
    while transferring data from shopping cart to banckend system vendor is initialising.
    Please help me how to fix the issue.
    Thanks in Advance,
    Prashanth P.

    Hi Prashanth,
    This is very strange, please check if any of the following BADI's    
    are active, if so please temporarily deactivate them and retest. These would be the most likely cause of this as there are no notes about this. Also very few other customers with similar issue.     
    BBP_CREATE_BE_RQ_NEW                                                 
    BBP_CREATE_BE_PO_NEW                                                 
    BBP_CREATE_REQ_BACK                                                  
    BBP_CREATE_PO_BACK                                                   
    BBP_DOC_CHANGE_BADI                                                  
    Hope this helps,
    Kind Regards,
    Matthew

  • Error while creating confirmation for a shopping cart

    Hi,
    i have created a sample fm and am passing sample values that i got by debugging the standard portal and badi(bbp_doc_change_badi) together, to create a confirmation.
    I am getting the following error in the process,while debugging, in the lt_messages table:
    GUID or object type of the reference document is missing
    (BBP_PD msg no. 081)
    I also tried passing the sample values i got for guid and object type from bbp_pd but that too dint help.
    PS : the standard FM am calling in my sample FM is BBP_PD_CONF_CREATE.
    Please suggest a solution for this error.
    Regards
    Pratyusha

    HI,
    Are you in SRM 7.0 ?
    Confirmation can be created against Purchase Order. But I believe you are tyring to create against shopping cart.
    Kindly confirm.
    So, Please fill the reference object type and guid of PO.
    Thanks
    Rajesh K

  • Language Setting for Print Shopping Cart

    Hi experts!
    Does anybody of you know how to customize the printing of Shopping Cart as well as where to define the relevant language. Language DE should use Form DE, Language EN should use Form EN.
    Many thanks for your support.
    Best Regards,
    Corinne

    Hi,
    Try using the  BADi "BBP_OUTPUT_CHANGE_SF" and acc set the parameters for the smartform icluding the Language.
    BR,
    Disha.
    Pls reward points for useful answers.

  • Badi when deleting shopping cart from BBPSC04

    Hi,
    Does anybody know if any BADI is called when the purchaser delete his shopping cart from BBPSC04. I have tried with BBP_DOC_CHANGE but it doesn't seem to execute it. If not Any other way to add code after deleting shopping cart??
    thanks
    BR

    Hi Jorge,
    As Mani said: BBP_DOC_SAVE_BADI will help you out... It has two parameters:
    - FLT_VAL (for shopping cart will receive a BUS2121)
    - IV_DOC_GUID (document header guid)
    There you can retrieve the document using BBP_PD_SC_GETDETAIL (FM) with the GUID.
    Hope this helps you out...
    Gerardo.

  • Report to view the approvers for individual shopping cart

    Dear All,
    Is there any standard report or Table or FM to view the approvers who approved for a individual shopping cart?
    Regards
    KP

    There are a couple of reports that you can use.
    Try transactions SWI5 and SWI2_FREQ.
    Follow path SAP menu -> Tools  -> ABAP Workbench -> Development -> SAP Business Workflow -> Reporting -> Work item analysis
    The help for SWI5 is below:
    Workload Analysis
    Use
    Using the workload analysis, you can establish the workload of individual organizational objects (users, positions, jobs, work centers or organizational units.
    You can look into the past ("completed since...") and into the future ("to be processed by...") in order to establish workload.
    Features
    Workload for the past
    The selection produces a list of work items completed by the members of the organizational object before the specified date.
    A work item must meet the following criteria to be displayed in this list:
    The work item must represent a task that satisfies the selection criteria specified as a task filter.
    The work item must be a dialog work item.
    The work item must have the status completed.
    The actual agent of the work item is a user who is assigned directly or indirectly to the organizational object is specified.
    The result of the selection is displayed with the following information in the list Completed Work Items by Agent and Task:
    Organizational unit of the actual agent
    Agent
    Number of the task represented by the work item
    Date of final completion
    Work item text
    Processing duration
    If you double-click on an entry, you go to the relevant work item display.
    Formatting for statistical purposes
    The information can be formatted for statistical purposes.
    To do this, position the cursor on one of the columns Org. unit, Agent, Task or Date, and select the function Statistics.
    Depending on the column you selected, the following information is displayed:
    Organizational unit and number of work items completed by an employee from the organizational unit.
    Agent and number of work items completed by this agent.
    Task and number of work items for this task, which were completed.
    Date and number of work items completed on this date.
    In addition, the following times are calculated:
    10% threshold:
    For 10% of the work items, the duration of processing was shorter than the time specified.
    50% threshold:
    For half of the work items, the duration of processing was shorter than the time specified.
    90% threshold:
    For 90% of the work items, the duration of processing was shorter than the time specified.
    For more information, see Threshold Value and Average Value.
    Workload for the future
    The selection produces a list of work items that must be processed by the members of the organizational object by the date entered.
    A work item must meet the following criteria to be displayed in this list:
    The work item must represent a task that satisfies the selection criteria specified as a task filter.
    The work item must be a dialog work item.
    The work item must have one of the following statuses:
    waiting
    ready
    in process
    reserved
    executed
    The actual agent of the work item has to be a user who is assigned directly or indirectly to the organizational object is specified.
    This only applies to work items with the status waiting, in process, reserved or executed, since there can only be an actual agent in these cases.
    There has to be at least one user in the possible agents of the work item who is assigned directly or indirectly to the organizational object is specified.
    (This only applies to work items with the status waiting or ready since these do not yet have a actual agent.)
    The latest end for processing the work item must be before the date entered.
    The result of the selection is displayed in the list Workload for .... The list of work items is grouped according to actual agents and tasks. At the end of the list, the work items and tasks for which no actual user exists are displayed under the header Not reserved by an agent.
    When no date is specified, a user's workload corresponds to the contents of their workflow inbox.
    Operations on the list
    You can go to the definition of a task by double-clicking.
    You can display the work items for a task by double-clicking on the plus sign in front of the task.
    You can go to the work item display by double-clicking on a work item.
    Activities
    To call workload analysis, choose Tools ® Business Workflow ® Development ® Reporting ® Workload Analysis.
    To determine the past workload, select the option Completed since on the selection screen Workload analysis. For future workload select To be processed by.
    Use the input help for all other entries.
    Help for SWI2_FREQ is as follows:
    Work Item Analysis
    Use
    You can use work item analysis to carry out statistical evaluations on work items. The work items to be analyzed can be limited according to time, type and task.
    Features
    Work items per task
    Number of work items of the specified type or for the specified tasks, which were created in the specified period. The list is sorted according to task.
    Double-clicking on an entry in the list displays all the work items for the task in another list. From this list you can select  to go to the work item display and  to go to the workflow log.
    Work items with monitored deadlines
    Number of work items of the specified type or for the specified tasks, which are subject to deadline monitoring.
    The work items are displayed in an overview tree sorted according to the type of deadline monitoring and task. Double-clicking on an entry displays the work item.
    Work items by processing duration
    Information on the processing duration of work items of the specified type or for the specified tasks, whose processing ended in the period. The list is sorted according to task.
    Provided there are appropriate work items, the current period is compared with a prior period of the same length. The variances and differences are shown.
    For further information, refer to Technical Details on Calculation and Threshold Value and Average Value.
    Activities
    To call work item analysis, choose Tools ® Business Workflow ® Development ® Reporting ® Work Item Analysis ® ...
    Hope this helps.
    Keith

  • Incorrect Buy on Behalf name displayed for Deleted Shopping Cart

    Hi All,
    The issue is with the deleted Shopping Carts.
    In case of non deleted Shopping carts the Buy on behalf field displays correct value.
    I debugged and found that there is a bug in standard code itself.
    In class /SAPSRM/IF_CLL_MAPPER~REFRESH, the code is written for non deleted and deleted SC to read the buy on behalf value.
    In case of non-deleted the of condition reads the item values and  item guid is exported to patner table that returns the buy on behalf value.
    But in case of deleted SC the
    the else condition is executed where the requestor id is used to get the patner table which inturn gives us the buy on behalf value.
    The difference is with the requestor id (MV_REQUESTOR_ID) in both cases.
    In case of non deleted SC the requestor ID is different and in case of deleted Sc the requestor id is the vlaue of one who currently is viewing the SC.
    Kindly help.
    Thanks in advance,
    Rahul

    Hi Rahul,
    Apply the note 2020037.
    2020037 - Wrong 'Buy on Behalf of' user displayed in Shopping Cart
    when there are no items in the Cart.
    BR
    Praveen Kumar

  • Approver For the shopping cart

    Hi,
       Which table brings out Approver for Shopping cart.Any suggestions.Thanks.

    Hi,
    It is possible to find the details from the workflow , you can find all the workitem ids linked to the document.
    For this ,
    a) start transaction 'SWI6'.
    b) use object type 'BUS2121' , enter the shopping cart number for the object id , then execute.
    Then System will return the workflow log , from the container definition of the workflow log , you can find the involved approvers , workitem id etc.
    2) Also you can use BBP_PDH_WFL_WI_FROM_OBJECT_GET with
    - iv_object_id = SC ID
    - iv_object_type = BUS2121
    Then, you can then use SRM_WAPI_WORKFLOW_GETDETAIL to get WI details.
    See related links ->
    <b>Re: Approving agents of an item in SC ?</b>
    Re: Link SC to Work Item
    Re: SRM tables for Approvals Items
    Re: Approving agents of an item in SC ?
    SWW_WI_TO_OBJECT_FIND
    Re: WorkItem ID- Object ID
    BR,
    Disha.
    <b>Pls reward points for useful answers.</b>

Maybe you are looking for