Default Delivery Date on Shopping Cart

Hi
We have a requirement to have delivery date in future (current date + n days) on the shopping cart line items. I have searched and found a BADI BBP_CHANGE_DEFAULT to handle this requirement. I have implemented the method CHANGE_DEFAULT_DELIV_DATE to make the delviery date in future. Now this works fine when we create SC with "Describe Requirement" or "Create from old SC/template".
However when we try to create SC from the catalog the default date remains as current date? I have debugged the code but it seems to be ignoring the date calculated from BADI. Is there any other BADI or different logic for SC created from service catalogs?
Regards
Manish.

Hi,
Use BADI BBP_DOC_CHANGE_BADI.
and this sample code:
    LOOP AT it_item ASSIGNING <sc_item>.
      lv_delivery_date = sy-datum.
      lv_delivery_date = lv_delivery_date + ls_sc_item-leadtime.
        WHILE lv_working_day_flag IS NOT INITIAL.
          CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
            EXPORTING
              date                 = lv_delivery_date
              factory_calendar_id  = 'AA'
            IMPORTING
              workingday_indicator = lv_working_day_ind.
          IF sy-subrc EQ 0.
            IF lv_working_day_ind NE space.
              lv_delivery_date = lv_delivery_date + 1.
            ELSE.
              CLEAR lv_working_day_flag.
            ENDIF.
          ENDIF.
        ENDWHILE.
        <sc_item>-deliv_date = lv_delivery_date.
      APPEND <sc_item> TO et_item.
    ENDLOOP.
In this code I add lead time to delivery date and check if this date is a working day (factory calendar eq AA).
If yes - it is my delivery date, if not - I add to date one day and recheck.
Regards,
Marcin

Similar Messages

  • Delivery date in shopping cart

    While creating a shopping cart, delivery date displayed is the current
    date.It is not taking into consideration the planned delivery time
    maintained in the material master in backend R/3

    Hi
    Which SRM version are you using ?
    <u>Yes it is default standard SRM behaviour.. It is correct..</u>
    <b>Incase you want to make changes to the delivery date, then using BBP_DOC_CHANGE_BADI, this can be easily done.</b>
    P.S.: Please read the standard SAP documentation of this BADI using SE18 Transaction.
    Hope this will help.
    Do let em know.
    Regards
    - Atul

  • Need information regarding Approver and approved date of Shopping Carts

    Dear All,
    We have got a requiremrnt to extract a list approvers and approved dates of shopping carts created for a given department and date range.
    Is there any standard way to find that?
    If we need to create a Z report please let us know the tables invovled.
    Thank you.
    Regards
    Arindam

    Hi
    Each approval step in SRM has got a work item guid and its relevant data stored in few Data tables. You may build a custom report to meet your requirements.
    Refer to this post for more details:
    Re: SRM table which stored shopping cart approval start and end time
    Regards
    Virender Singh

  • Default currency for a Shopping Cart

    Hi All,
    We are using SRM 3.0, EBP 4.0 ECS.
    We need a currency (say USD) to be populated as default while creating a special request Shopping Cart.
    We have maintained the Currency as default in the Org. Structure in the Attributes for Local Currency as USD.
    While creating a Shopping Cart via 'Shopping Cart - Full Functionality', the currency field is blank and is not defaulted with any currency. However, while we create a Shopping Cart via 'Shopping Cart - Wizard', the currency USD is defaulted.
    We need currency USD to default while creating a Shopping Cart via 'Shopping Cart - Full Functioanlity' transaction.
    Any pointers on how to achieve this, will be highly appreicated.
    Thanks in advance,
    Francis

    HI Francis
    Always you need to manually supply CUR
    for eg we could do default for following for items.
    ship to address
    cost center
    product category
    PGroup
    company code
    location
    storage location
    But currency did not come as default . It could be a  SRM  standard.
    br
    muthu

  • Default delivery date in sales order

    Hi guys
    A strange problem: I have two sales organisation (sales org.channeldivision) we will call A and B and two sales order documen type (C and D).
    Both the document type have as default delivery date the today date.
    I created a order using A and C combination: the default delivery date appear to be 01.01.1990 always.
    I created with A and D it is ok (today date).
    I created with B and C it is ok
    I created with B and D it is ok.
    I precise: no customer or material has been already assigned to order.
    How it is possible? Other values, a part from default flag over the document type, can change the delivery date over the sales order?
    thanks
    Davide

    Found: it is the sales org. factory date, but only because the document type C has a lead time value. When no lead time exist, like for document type D, the system take the today date correctly.
    Thanks.
    ciao
    Davide

  • Set Dynamic Default Delivery Date in ME21n

    Hi!
    Under personal settings in ME21n, it is possible set a default delivery date. However, as I see it one can only set a fixed date like 2011-08.-12, which would quite useless in a couple of weeks. Is there any way to set this date dynamically as it is possible in normal selection variants.
    I am grateful for all input.

    yes this field is pretty useless, except for hundreds of items within one PO.
    usually delivery dates are defined by the requisitioners  and not by a default value of a buyer.

  • System is not checking Account assignment data in shopping cart

    Dear Experts,
    We are implementing SRM7 with SP06. We are using extened classic scenario. Recently we have noticed that system is not validating account assignment data at shopping cart level and creating purchase order in SRM, however at the time of PO transmission to backend system it is failing.
    Does any one has faced this issue?If yes help me how to resolve this issue.
    Thanks in advance.
    Umakanth

    Hello Umakanth,
    Could you check if in your settings for Define backend system customizing ( BBP_BACKEND_DEST table), option "realtime backend validation of FI data" is set or not ?
    Regards.
    Laurent.

  • Shopping Cart default delivery date

    Hi,
    SAP SRM system takes by default  current date as a delivery date in the Shopping cart line item.
    Can any one suggest, whether we can set the same as next working day by default  i.e.. If S/C raised on Friday then defau Delivery date should be on Monday? If yes , how ?
    Regards
    NAP

    Create a PR as like shopping cart in ecc and refer the contract and see the PO delivery date
    PR- PO - what is delivery date.
    update me or cross check
    I think in ECC it definetly works fine as we expected .
    You are correct . i just testing
    SC PO did not behave what we exected
    PR  PO behaves what we expected.
    no comments as of now.
    can you order as direct this material w.r.t vendor list (refer here backend contract) and uppdate PO delivery date in SRM the results here
    Muthu

  • Moving data from shopping cart to Purchase Req in backend

    Hi,
    We are implementing SRM 5.0 with R/3 ECC 6.0 in the backend.  I am brand new to this module and version. 
    When shopping and ordering, then running clean_reqreq_up to transfer to the backend, we notice a material number does not flow through to R/3.  I have implemented the BADI BBP_CREATE_BE_RQ_NEW to try and force a material number into the parameter field CS_RQ_DOCUMENT-IT_REQUISITION_ITEMS-MATERIAL.  When I activate the badi, and shop and order some product, then I check the status, it shows the following message in the follow on documents, which I can not figure out.
    "Shopping cart 3nnnnnnnnn/1 Error in Process"  but if I deactivate the badi and do the same thing, the shopping cart status is successful.  I am having trouble debugging this badi and getting it to stop in the code to see what is happening.
    I would like suggestions regarding if I am using the correct badi for what I need, and if so, how can I see more details regarding my error.
    Thanks,
    Marty

    Hi
    Please read the BADI documenation provided by SAP, before making any coding.
    <b>Here is the SAP Documenattion of the BADI Definition - BBP_CREATE_PO_BACK</b>
    Short Text
    Purchase Order in Backend System
    You can use the Business Add-In BBP_CREATE_BE_PO_NEW to change all data transferred to the backend system to create a purchase order. This includes the item data, account assignment, and text.
    Standard settings
    The following changing parameters are available in the FILL_PO_INTERFACE method:
    Parameter   Transfer structure
    PO_ITEMS   Purchase order items
    PO_ITEMS_ADD_DATA   Additional purchase order item data
    PO_ITEM_SCHEDULES   Purchase order delivery schedule line
    PO_ITEM_ACCOUNT   Purchase order item account assignment
    PO_ITEM_TEXT   Purchase order item texts
    PO_LIMITS   Purchase order limits
    PO_CONTRACT_LIMITS   Purchase order limits - Contracts
    PO_SERVICES   Services for a purchase order item
    PO_SRV_ACCOUNT   Account assignment data for service
    PO_SRV_TEXTS   Texts for service line
    PO_HEADER   Purchase order header
    PO_HEADER_ADD_DATA   Purchase order header additional data
    PO_ADDRESS   Purchase order header address data
    You can use the following parameters for transferring the attachements to the backend system:
    CT_ATTACH_BE  KW attachments including document
    CV_ATTACH_BE_DOC_TYPE  Document type (standard is SRM)
    CV_ATTACH_BE_STORAGE_CAT  Storage type (standard is DMS_C1_ST)
    CV_ATTACH_TRANSFER_ACTIVE  Activate transfer of attachments
    CV_ATTACH_USE_URL  Transfer URL only
    Recommendation
    If you edit the PO_HEADER_ADD_DATA structure, you should check the settings of parameter HEADER_ADD_DATA_RELEVANT.
    Activities
    You are able to use the parameter HEADER_ADD_DATA_RELEVANT in the BAdI implementation. Assigning this parameter the value:
    '1'
    Means that the system only transfers the data of structure PO_HEADER_ADD_DATA to the purchase order in the backend system that is not empty (initial).
    'x'
    Means that the system transfers all data of structure PO_HEADER_ADD_DATA to the purchase order in the backend system regardless of whether individual fields are filled.
    Regards
    - Atul

  • Changing line item delivery address in shopping cart need to reflect same in all line items

    Hi All,
    Need help on below,
    I have a requirement that when we change the shopping cart line item delivery address same needs to reflect all line items.
    Suppose a shopping cart having 3 line items 1, 2 and 3. if i change the delivery address of line item 1, the same needs to reflect the line item 2 and 3 as well.
    In my case  if we change the 1's delivery address, after processing its genrating the IDOC on line item wise not in the header wise. And same having the different delivery address.
    Thanks in advance.
    regards:
    Ramesh

    Hello Ramesh,
    we can do this changes in BBP_DOC_CHANGE_BADI . Create a Implementation for the above BADI and Inside that Implementation BADI method just call the function module BBP_PD_SC_GETDETAIL for SC item details by passing the Header GUID.
    Once you get the Partner table(E_PARTNER) details.. Keeping a loop on SC item(E_ITEM) and change address number(ADDR_NO) in Partner table when Partner function eq X( X is an partner function values which you define in SPRO.).
    pseudo logic:
      CALL FUNCTION 'BBP_PD_SC_GETDETAIL'
        EXPORTING
          i_guid    = l_guid
        TABLES
          e_item    = lt_item
          e_partner = lt_partner.
    * Check for all the line items if vendor is assigned
      LOOP AT lt_item INTO lwa_item.
        READ TABLE lt_partner INTO lwa_partner
                          WITH KEY partner_fct = '00000019'
                                   del_ind     = space
                                   p_guid      = lwa_item-guid.
        IF sy-subrc eq 0 .
       * modification of address number logic here in partner table
        ENDIF.
      ENDLOOP.
    All the best.
    Regards,
    Sankarbabu

  • Delivery address - in shopping cart

    Hello ,
    Is it possible to populate the shopping cart delivery address on real time basis by picking the storage location address from SAP R/3 backend?
    If yes, which function modules / BADI can be used to achieve the same?
    Thanks ,
    Rama krishna

    Hello Rama krishna,
    You can create a FM in R/3 with logic of picking up  the storge loaction address.
    Call the same FM with RFC destination in BBP_DOC_CHANGE_BADI .
    And Modify et_partner  of partner_fct = '00000027'  with storge location address .
    Hope it helps.
    Regards,
    Neelima

  • Default Check Status timeframe(Shopping Cart)

    Hi All SRM experts,
    Is it possible to make default timeframe for particular timeframe such as to last 90 days in the shopping cart check status screen ? because defaulted is last 7 days. Please kindly advise. Thank's in advance

    Hello,
    First pl try the follow path
    IMG->Supplier Relationship Management->SRM Server->Cross-Application Basic Settings->Personalization->Personalize Display
    IMG->Supplier Relationship Management->SRM Server->Business Add-Ins (BAdIs)->Interface Configuration->Determine Screen Variants
    I am not sure whether it is available in below SRM 5.0
    If does not help
    you can ask your ABAP consultant to check the template
    bbpsc04/99/saplbbp_sc_ui_its_4000.html
    for this change
    BR
    Dinesh

  • Default account assignment in Shopping Cart in SRM7.0

    Hello,
    We are on SRM 7.0 , SP07 and ECC 6.0 EHP4
    I am facing issues with default account assignment behaviour in my system .
    When a user is creating shopping cart then G/L account is picked based on the settings in SPRO ( Product Cat, Account *** Cat and G/L account ) but i am noticing in my system when i put default in user attributes "PPOMA" suppose cost center "CC" then only it is picking default G/L account corresponding to that product categary . If i remove that Default tick from the user attributes then system is not picking default G/L account and also i checked in BBP_PD its not saving there.
    Any one of you had come across this strange behaviour please let me know if there is any SAP Note for this.
    Regards
    Ashish

    G/L Account is defaulted for the combination of Prod Cat and Acc *** Cat. Hence, it appears in SC. When you remove the default settings in PPOMA_BBP, it doesn't work even after putting Acc *** Cat in SC because of standard bug.
    See if these Notes help you -
    1420241
    1420622

  • How to update partner data in shopping cart ?

    Hi expert,
    My requirement is to update the requester field in the Shopping Cart with another requester as well as some other CUF field. Through BBP_PD_SC_UPDATE i am able to update the CUF item fields but i am unable to update the business partner.
    please help, its urgently...
    regards,
    Rahul

    use the BAPI
    'BAPI_BUPA_ADDRESS_CHANGE'.
    it works
    regards
    Giridhar

  • Account Assignment data in Shopping Cart not visible after upgrade of  R/3

    Hello,
    We are currently working with SRM 5.0 and R/3 4.6 Backend system.
    We are now upgrading our R/3 system from version 4.6C to ECC 6.0.
    When we try to create a shopping cart, the account assignment Tab is not visible.
    We checked the RFC (SRM-R/3 and R/3-SRM) and they our working fine.
    Now we think the problem is caused by a configuration setting in which one defines the Backend System. In this configuration, the system category is still set to 4.6C (for the logical System of the Backend System)
    We want to change this but in our list of system categories, the ECC 6.0 option is not present!
    Questions:
    1. Is this configuration setting the cause for our account assignment tab problem?
    2. How can one add the System Category ECC 6.0 so it will appear in the configuration setting "Specify Backend System" ?
    Anyone had experience with this? Please give us a clue.
    Thanks in advance.
    Aart

    Hello Aart,
    You can choose the ERP_2.0 option. It contains the correct structures for the new ECC 6.0 system.                                             
    You can change it and retest.
    Kind regards,
    Ricardo

Maybe you are looking for