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

Similar Messages

  • 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

  • PO printout is not coming after changing only line item Delivery Address

    Hi
    Can anybody suggest a solution for the problem?
    Using ME22N , if I change the line item delivery address details to the already generated manual address number ( Not generated using Transaction MEAN)
    If I save the PO then PO Printout is not coming but output message log showing " No print-relevant changes to document XXXXXXXXX exist"
    We can read CDHR and CDPOS table for changes .
    Is there a way to pass the parameter to the print program to Print the changes?
    Thanks
    sanath
    Edited by: sanath kumar sarvepalli-venkata on Nov 2, 2010 11:23 PM

    Hi,
    In IMG - Materials Management- Purchasing-Messages - Fields relevant to Print out of changes
    Enter Table EKPO , Reference Field LOEKZ, tick on change print relevant for purchase order,in routine enter 03.
    Now your Output will be triggered with a change indicator and you can process it using ME9F.
    Regards
    Chandra Shekhar

  • User exit/BADI for Return PO item delivery Address

    Hi Guyz,
    We have a requirement where in when a PO item is marked as return PO item(In ME21n/ME22n/ME23n We have check box at item level) and click on enter/Check/Save, In delivery address of item details we have to populate Vendor address. By default SAP populates Plant address. If we manually give Vendor number in item details=>Delivery address tab then it populates vendor address. We want to automate this functionality.
    Is there any Exit/BADI which serve this purpose.
    Note: We need this functionality for few doc types(i.e PO doc type should also be available in the exit).
    Any ideas could be really helpfull.
    Thanks,
    Vinod.

    Hi,
    there are some user-exit & enhancements....
    MEQUERY1                                Enhancement to Document Overview ME21N/ME51N
    MEVME001                                WE default quantity calc. and over/ underdelivery tolerance
    MM06E001                                User exits for EDI inbound and outbound purchasing documents
    MM06E003                                Number range and document number
    MM06E004                                Control import data screens in purchase order
    MM06E005                                Customer fields in purchasing document
    MM06E007                                Change document for requisitions upon conversion into PO
    MM06E008                                Monitoring of contr. target value in case of release orders
    MM06E009                                Relevant texts for "Texts exist" indicator
    MM06E010                                Field selection for vendor address
    MMAL0001                                ALE source list distribution: Outbound processing
    MMAL0002                                ALE source list distribution: Inbound processing
    MMAL0003                                ALE purcasing info record distribution: Outbound processing
    MMAL0004                                ALE purchasing info record distribution: Inbound processing
    MMDA0001                                Default delivery addresses
    MMFAB001                                User exit for generation of release order
    MRFLB001                                Control Items for Contract Release Order
    MELAB001                                Gen. forecast delivery schedules: Transfer schedule implem.
    AMPL0001                                User subscreen for additional data on AMPL
    LMEDR001                                Enhancements to print program
    LMELA002                                Adopt batch no. from shipping notification when posting a GR
    LMELA010                                Inbound shipping notification: Transfer item data from IDOC
    LMEQR001                                User exit for source determination
    LMEXF001                                Conditions in Purchasing Documents Without Invoice Receipt
    LWSUS001                                Customer-Specific Source Determination in Retail
    M06B0001                                Role determination for purchase requisition release
    M06B0002                                Changes to comm. structure for purchase requisition release
    MEFLD004                                Determine earliest delivery date f. check w. GR (only PO)
    MEETA001                                Define schedule line type (backlog, immed. req., preview)
    ME590001                                Grouping of requsitions for PO split in ME59
    M06E0005                                Role determination for release of purchasing documents
    M06E0004                                Changes to communication structure for release purch. doc.
    M06B0005                                Changes to comm. structure for overall release of requisn.
    M06B0004                                Number range and document number
    M06B0003                                Number range and document number
    Some BADI s:
    ME_PROCESS_PO                           Enhancements for Processing Enjoy Purchase Order: Intern.
    ME_PROCESS_COMP                         Processing of Component Default Data at Time of GR: Customer
    ME_PO_SC_SRV                            BAdI: Service Tab Page for Subcontracting
    ME_PO_PRICING_CUST                      Enhancements to Price Determination: Customer
    ME_PO_PRICING                           Enhancements to Price Determination: Internal
    ME_INFOREC_SEND                         Capture/Send Purchase Info Record Changes - Internal Use
    ME_HOLD_PO                              Hold Enjoy Purchase Orders: Activation/Deactivation
    ME_GUI_PO_CUST                          Customer's Own Screens in Enjoy Purchase Order
    ME_FIELDSTATUS_STOCK                    FM Account Assignment Behavior for Stock PR/PO
    ME_DP_CLEARING                          Clearing (Offsetting) of Down Payments and Payment Requests
    ME_DEFINE_CALCTYPE                      Control of Pricing Type: Additional Fields
    ME_COMMTMNT_REQ_RE_C                    Check of Commitment Relevance of Purchase Requisitions
    ME_COMMTMNT_REQ_RELE                    Check of Commitment Relevance of Purchase Requisitions
    ME_PROCESS_PO_CUST                      Enhancements for Processing Enjoy Purchase Order: Customer
    SMOD_MRFLB001                           Control Items for Contract Release Order
    MM_EDI_DESADV_IN                        Supplementation of Delivery Interface from Purchase Order
    MM_DELIVERY_ADDR_SAP                    Determination of Delivery Address
    ME_WRF_STD_DNG                          PO Controlling Reminder: Extension to Standard Reminder
    ME_TRIGGER_ATP                          Triggers New ATP for Changes in EKKO, EKPO, EKPV
    ME_TRF_RULE_CUST_OFF                    BADI for Deactivation of Field T161V-REVFE
    ME_TAX_FROM_ADDRESS                     Tax jurisdiction code taken from address
    ME_REQ_POSTED                           Purchase Requisition Posted
    ME_REQ_OI_EXT                           Commitment Update in the Case of External Requisitions
    ME_RELEASE_CREATE                       BAdI: Release Creation for Sched.Agrmts with Release Docu.
    ME_PURCHDOC_POSTED                      Purchasing Document Posted
    ME_PROCESS_REQ_CUST                     Enhancements for Processing Enjoy PReqs: Customer
    ME_PROCESS_REQ                          Enhancements for Processing Enjoy PReqs: Internal
    ME_COMMTMNT_PO_REL_C                    Check for Commitment-Relevance of Purchase Orders
    ME_CCP_BESWK_AUTH_CH                    BAdI for authorization checks for procuring plant
    ME_CCP_ACTIVE_CHECK                     BAdI to check whether CCP process is active
    ME_BSART_DET                            Change document type for automatically generated POs
    ME_BAPI_PR_CREATE_02
    ME_BAPI_PR_CREATE_01
    ME_BAPI_PO_CREATE_02
    ME_BAPI_PO_CREATE_01
    ME_BADI_DISPLAY_DOC                     BAdI for Internal Control of Transaction to be Invoked
    ME_ACTV_CANCEL_PO                       BAdI for Activating the Cancel Function at Header Level
    MEGUI_LAYOUT                            BAdI for Enjoy Purchasing GUI
    EXTENSION_US_TAXES                      Extended Tax Calculation with Additional Data
    ARC_MM_EKKO_WRITE                       BAdI: Enhancement of Scope of Archiving (MM_EKKO)
    ARC_MM_EKKO_CHECK                       BAdI: Enhancement of Archivability Check (MM_EKKO)
    ME_CCP_DEL_DURATION                     Calc. of Delivery Duration in CCP Process (Not in Standard)
    ME_COMMTMNT_PO_RELEV                    Check for Commitment-Relevance of Purchase Orders
    ME_COMMITMENT_STO_CH                    BadI for checking if commitments for STOs are active
    ME_COMMITMENT_RETURN                    Commitment for return item
    ME_CIP_REF_CHAR                         Enables Reference Characteristics in Purchasing
    ME_CIP_ALLOW_CHANGE                     Configuration in Purchasing: Changeability Control
    ME_CIN_MM06EFKO                         Copy PO data for use by Country version India
    ME_CIN_LEINRF2V                         BADI for LEINRF03 excise_invoice_details
    ME_CIN_LEINRF2R                         BADI for CIN India - Delivery charges
    ME_CHECK_SOURCES                        Additional Checks in Source Determination/Checking
    ME_CHECK_OA                             Check BAdI for Contracts
    ME_CHECK_ALL_ITEMS                      Run Through Items Again in the Event of Changes in EKKO
    ME_CHANGE_OUTTAB                        Enrich ALV Output Table in Purchasing
    ME_CHANGE_CHARACTER                     Customer-Specific Characteristics for Product Allocation
    No.of Exits:         35
    No.of BADis:         55
    Arunima

  • "Create Limit" Item not visible in Shopping Cart for Employee

    Hi Experts,
    The employee user has the following roles in SRM 701 system.
    /SAPSRM/EMPLOYEE
    /SAPSRM/EMPLOYEE_EHP1. The user is not able to see the "Create Limit Item" option in Shopping cart & hence not able to create a limit item in the shopping cart.
    The Purchase user has the following roles in SRM 701 system.
    /SAPSRM/OP_PURCHASER_ADMIN
    /SAPSRM/OP_PURCHASER
    /SAPSRM/OP_PURCHASER_EHP1. This user is able to create Limit Item in the shopping cart using the "Add Item" Menu.
    My requirement is to allow the users of type "Employee" to allow creating the limit items in the shopping cart. Could you please give some guidance on what needs to be done?
    Thank you.
    Thanks & Regards
    Kasee

    Hello Kasee,
    As per the details given by you, you are using a mix of SRM70 and SRM 701 roles for the same user and hence system behavior will not be correct and it will lead to issues.
    I suggest you to try the scenario with user having roles of one release i.e. either assign SRM 70 or SRM 701 roles.
    Also if you are using portal , there also you have to map the user roles accordingly.
    Moreover with SRM 701 we have the Easy Shopping cart delivered to customers where the user can only add items from Catalogs or Free text ones. You will not get different options like provided in the professional or normal shopping cart used in the SRM 70 releases.
    With the /SAPSRM/EMPLOYEE  role ( SRM 70 ) in the abap system and portal, you will get an option to add limit items in the SC's.
    Same applies to the OP purchaser roles. Its not recommended to use /SAPSRM/OP_PURCHASER  & /SAPSRMOP_PURCHASER_EHP1  roles together for one user.
    You can also refer to the note 1476447 SAP SRM 7.0 EHP1 : Important info on New Functionality for more references.
    Hope this will answer your query here.
    Thanks & Best Regards,
    Rahul
    Edited by: Rahul Rastogi on Jan 11, 2012 9:53 AM

  • HT1051 Trying to change Shipping and Delivery address for one in the US, from Canada, and can't do it. State and zip code appears in red but no change in country name.  Using French (Canada) iPhoto app.

    Trying to change Shipping and Delivery address for one in the US, from Canada, and can't do it. State and zip code appears in red but no change in country name.  Using French (Canada) iPhoto app.

    Larry's right, You can still use your credit card, you just need to change the "billing address" to the recievers address. It gets billed to your CC and delivered to the US

  • Shopping Cart needs to be Held Status when created from Upload Program

    Hi All,
    Shopping Cart is created from Custom Upload Program. In Upload Program, we used BBP_PD_SC_CREATE, BBP_PD_SC_UPDATE, BBP_PD_SC_SAVE and BBP_PD_SC_COMMIT.
    Once the Shopping Cart is created from this upload program, I want ot put Shopping Cart as Helad Status.
    I exported the parameter I_PARK as 'X' in BBP_PD_SC_CREATE and BBP_PD_SC_UPDATE. But it is not working i.e., the SRM system is not keeping the Shopping Cart as Held Status.
    Scenario:
    I am uploading the Shopping Cart Items (Shopping Cart creation) on behalf of my manager. My manager has to approve Shopping Cart.
    If shopping cart is created maually and Shopping cart value is within the spending limit, work flow is not triggered approval proceess. If I am creating shopping cart behalf of some one, I am adding the approver manually while creating.
    When ever we create shopping cart through custom upload program, the shopping cart needs to be approved by the Requestor (my manager, to cross check shopping cart items). So I want to park the Shopping Cart and I want to add Approver as my manager.
    Please suggest me or guide me to get the solution for my issue.
    Thanks,
    Sudarsan
    Edited by: KOYYA SUDARSANA NAIDU on Nov 14, 2008 9:12 PM

    Completed

  • Shopping cart-Requestor and Approver of Shopping cart shouldn't be same

    Hi,
    I have a requirement where the Requester and the Approver of the Shopping cart shouldn't be same.
    This requirement needs to be met for online and offline approval both .
    Secondly if the Requester is set as Approver Substitute then in that case also it should not allow the requester to approver the shopping cart as in this case he has become the approver too.

    Hi,
    Please check if DOC_CHANGE_BADI is called when approving SC.
    Regards,
    Masa

  • Shopping cart header status differs to status at line item level

    Hello
    I am using SRM 5.5 EC, got a situation where there is a single line shopping cart which has been approved. The status on the header is still showing "awaiting approval" but at line item level it shows as being "approved" and no follow on document has been created.
    Can anyone help and let me know why this has happened and how to change the header status now?
    Many Thanks in Advance
    Prakash

    OK found a solution

  • Line Item level Approval for Shopping cart

    Hi Expert,
    I am using workflow template WS14500015 for line item level approval.i have few doubts on this
    i am using cost center based approval, so if the 1st line item is approved will it generate a PO or will it wait for all the line items approval.

    Hi Mano,
    if you use approval. It will be approved by steps. Next step will not be started until previous completely done. In your case 1st Item should wait until all other items processed.
    Regards
    Konstantin

  • Change currency at header level in shopping cart

    Hello
    I'm working with SRM 7.0 in classic scenario. We are facing an issue, because even if we change the currency at item level, when the PO is created in back-end it is the default currency of the supplier. We can change behaviour in Badi BBP_CREATE_BE_PO_NEW to get header currency (wich is default currency in pposa_bbp). But problem is that we want to be able to change header currency in shopping cart. And when we change header currency this currency will be applied in all items (thank to badi BBP_DOC_CHANGE).
    How can we make possible for the requetser to choose the currency at header level? This currency will those when purchase order will be created.
    Thank you.
    Regards,
    Peggy.

    Hello Peggy,
    If you change the SC header Currency as well it won't be an effective solution as your SC items can have muplitple currecies.
    Now As per standard SRM PO currency is determined from vendor currency, hence if you SC line item is created with currency GBP and your vendor has currency CHF then your PO will be created with currency CHF only.
    Now if you need to retain the SC line item  currency in your PO then you need to do particular enhancements in standard SAP code  to overwrite vendor currency functionality.
    and more over I would suggest you to group the PO based on Currencies. For example all SC line items with currency CHF will create 1 PO.
    In that case it will be easier to change the PO currency.

  • 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

  • Item level link in PO for items added from individual Shopping carts

    Hi all,
    IF i create a PO in Sourcing using multiple shopping carts,then for each of the item in the PO ,is there any link which has details about the Line item of the SC from which the PO was created?I am looking for some link in the PO(created from multiple carts) at the item level with the Items in the shopping cart.
    E.g. I create PO 100 from cart 10 and Cart 20.
    CArt 10:
    Line item A
    cart 20:
    Line item B
    PO 100:
    Line Item A(1st item)
    Line item B(2nd item)
    For the above example,is there any link in PO 100 for item A in SC 10 and for item B in SC 20?
    Thanks in advance.

    What are you trying to achieve? What other link do you need if you get the item GUID (this is not the shopping cart number!)? The item GUID is a unique number in the SRM system that is only used for that particular item. So there is no need to identify it any further or in any other way?
    So 4 ways to get it:
    1. use the correct tables (CRMD_ORDERAMD_I & BBP_PDIGP using GUID and SRC_GUID from the top of my head).
    2. Use the BBP_PD_PO_ITEMGETDETAIL Function Module (do a search for BBP_PD_PO* in transaction SE37 to find the correct name).
    3. use transaction BBP_PD (only reference)
    4. use the PO transaction in internet explorer and check the preceding shopping carts
    Regards,
    Robin

  • Changing description of a field in shopping cart form in SRM Portal

    Hi,
    We have a requirement to change the description/adding a note to one of the fields in Shopping cart creation form in the portal. In the SHOP page, when we click on describe requirement we have an option to choose the product type as Goods or Services in the ADD ITEMS section. Here we would like to add a note for the radio button GOODS.
    I tried to check the source and undertand that it uses the template - bbpsc01/99/saplbbp_sc_ui_its_1000.html
    I'm not sure where I can view this HTML file and also not sure how I can modify this HTML page.
    Please give some pointers regarding the same.
    Thanks,
    Lakshmi

    Hi,
    I could see the HTML code in SE80 -> Internet service -> BBPSC01 -> HTML Template -SAPLBBP_SC_UI_ITS -> Screen 230.
    Can I directly modify the code of this particular screen? Is there any standard procedure that need to be followed to modify the HTML Template?
    Please clarify as soon as possible.
    Note: I have not worked on Internet services before.
    Thanks,
    Lakshmi

  • Line Sort order differs from Shopping Cart to PO

    All :
    A number of shopping carts are raised on the back of a quotation received from vendors.
    Where these quotes require a multi line Purchase Order, we enter the data in the same sequence as they appear on the quotation.
    The Purchase Order should also therefore reflect the same sequence. For some reason this does not happen.
    EG shopping cart shows items:
    1st Line 30 Green Widgets
    2nd Line 50 Blue Widgets
    3rd Line 900 Red Widgets
    BUT PO shows:
    1st Line 50 Blue Widgets
    2nd Line 30 Green Widgets
    3rd Line 900 Red Widgets
    Is there some setting I am missing somewhere? Or is there some sort of arcane sorting going on in the background that I don't know about.
    Thanks for your time guys
    Adrian

    Hi
    <b>Seems like a bug in the BAPI call at R/3 side.The sorting incase of multi line Purchase Orders is not happening correctly. Please give some more details.</b>
    Please report the same bug to SAP by creating a OSS message as well, for faster processing of the query.
    Regards
    - Atul

Maybe you are looking for