One Supplier, One SC, Two Contracts, Two POs, Wanted One PO

Hello all,
in classic scenario, SRM 4.0, R/3 4.7.
User is creating one Shopping Cart  from catalog which contains items from one supplier. Company is having two contracts with supplier, thus considered as two sources of supply in the backend. (Contracts are only in the backend, not in SRM).
Because of that EBP is creating two Purchase Orders in the backed where we want to have only one PO which will count only for the supplier, and not consider if supplier has several contracts.
Is that possible?
TIA
Gordan

Hi Gordan,
You can modify the standard code or try (not done myself before) to use the badi_group_po_badi
Please refer to the standard code :
METHOD split_backend_po .
  INCLUDE bbp_pd_con_cl.
  DATA: lt_object_split TYPE bbpt_bs_object_be_split,
        ls_object_split LIKE LINE OF lt_object_split,
        lt_object_group TYPE bbpt_bs_object_be_split,
        lt_object_pack  TYPE bbpt_bs_object_pack,
        ls_object_pack  LIKE LINE OF et_object_pack,
        lt_item         LIKE ls_object_pack-items,
        ls_item         LIKE LINE OF lt_item.
  FIELD-SYMBOLS: <object_split>  LIKE LINE OF lt_object_split,
                 <object_pack>  LIKE LINE OF et_object_pack.
*=======================================================================
map splitting criteria fields
  split_po_be_map_criteria(
        EXPORTING is_objtype_pack = is_objtype_pack
        IMPORTING et_object_split = lt_object_split ).
*=======================================================================
sort object list for PO grouping
  SORT lt_object_split BY fixed_vend
                          proc_org_ot
                          proc_org_id
                          proc_group_ot
                          proc_group_id
                          agreement
                          be_doc_type
                          be_co_code
                          vper_end
                          vper_start
                          plant_country
                          number_int.
*=======================================================================
  LOOP AT lt_object_split ASSIGNING <object_split>.
    IF lt_object_group IS NOT INITIAL.
      IF ls_object_split-fixed_vend <> <object_split>-fixed_vend       OR
         ls_object_split-proc_org_ot <> <object_split>-proc_org_ot     OR
         ls_object_split-proc_org_id   <> <object_split>-proc_org_id   OR
         ls_object_split-proc_group_ot <> <object_split>-proc_group_ot OR
         ls_object_split-proc_group_id <> <object_split>-proc_group_id OR
         ls_object_split-agreement     <> <object_split>-agreement     OR
         ls_object_split-be_doc_type   <> <object_split>-be_doc_type   OR
         ls_object_split-be_co_code    <> <object_split>-be_co_code    OR
         ls_object_split-plant_country <> <object_split>-plant_country OR
         ( ( <object_split>-vper_end IS NOT INITIAL  OR
             ls_object_split-vper_end IS NOT INITIAL )       AND
           ( ls_object_split-vper_start <> <object_split>-vper_start OR
             ls_object_split-vper_end   <> <object_split>-vper_end ) ).
      call BADI (customer can split PO)
        badi_group_po_be(
             IMPORTING et_object_pack  = lt_object_pack
             CHANGING  ct_object_split = lt_object_group ).
        APPEND LINES OF lt_object_pack TO et_object_pack.
        REFRESH lt_object_group.
      ENDIF.
    ENDIF.
    APPEND <object_split> TO lt_object_group.
  save current line for next round
    ls_object_split = <object_split>.
  ENDLOOP.
  IF lt_object_group IS NOT INITIAL.
  call BADI (customer can split PO)
    badi_group_po_be(
         IMPORTING et_object_pack = lt_object_pack
         CHANGING  ct_object_split = lt_object_group ).
    APPEND LINES OF lt_object_pack TO et_object_pack.
  ENDIF.
  LOOP AT et_object_pack ASSIGNING <object_pack>.
  get next PO ID
    <object_pack>-pack_logsys  = iv_logsys.
    <object_pack>-pack_objtype = c_b_po.
    get_next_foll_object_id(
       EXPORTING is_object    = <object_pack>
       IMPORTING ev_object_id = <object_pack>-pack_object_id ).
Kind regards,
Yann

Similar Messages

  • Can we create two POs for the same 3rd party Sales Order?

    Hi MM experts,
    Issue: Can we create two POs for the same 3rd party Sales Order
    In Third party purchase process, first sales order created with a spl. item category  and it creates the PR automatically with the Sales order material and Qty and this PR converted PO.
    They got a pur.req. for sale order on same item for same delevery date. They did not get any warning msg. saying that a PO was prviously placed against this sale order.
    How it is possible that we were able to place another PO? concern is that second PO was palced against SO which was already used & completed. they were able to place 2 POs for the same customer same delevery date. How it is possible?
    If anyone face the same issue, please let me know if you have any answer to this questions.
    Thanks in advance.
    Suresh.

    Suresh,
    It is hard for me to give you a definitive answer since you have created a customized solution.
    How it is possible that we were able to place another PO? concern is that second PO was palced against SO which was already used & completed. they were able to place 2 POs for the same customer same delevery date. How it is possible?
    Normally, the system will not do this.  A third party PR or PO will be 'account assigned' to the Sales order.  SAP standard 3rd party will not create additional purchase reqs unless there has been manual intervention.  Try searching for changes in the Sales order and changes in the original purchase order.  They may give you a clue.
    I believe the normal Item category for third party SO is TAS (I am working from memory here, I am not in front of a system).  I don't know what ZTAG does.  I confess I am not an SD expert.  You might also want to post your question in an SD forum.
    You mention two custom applications, ZMMPLAN and ZSTPMP.  These somehow have functionality that is used to help you convert your PRs to POs.  If I were in your position, I believe I would also look at these applications for clues to how they might be contributing to your problem.  And please don't send me details about these apps.  I will not comment on custom code in this forum.
    Sorry I can't be of more help.
    Rgds,
    DB49

  • I have an icloud account with two other users besides myself.  We share the same game center.  We want our own. My two children want their own Clash of Clans account!  What do I do?

    I have an icloud account with two other users besides myself.  We share the same game center.  We want our own. My two children want their own Clash of Clans account!  What do I do?

    Log out of Gamecenter and try downloading CoC again. if it doesn't prompt you with a new village, try downloading with a different apple id. if that doesn't work, you would need a new device to create a new village and transferring it to your sons device using the code in the CoC settings.

  • HT4993 If I buy a sprint iphone with a contract,  but I want to sell the phone to a sprint store, will I be billed?

    If I buy a sprint iphone 4 with a contract, and I want to sell it to a phone store, will I be billed in the future??

    Your contract with Sprint has a termination clause. Read it. If you terminate the contract early, you will have to pay to do so.

  • I was using O2 Pay as you go. Now I'm using a monthly contract but I want to use my old number.

    I was using O2 Pay as you go. Now I'm using a monthly contract but I want to use my old number.  How can I get to that position?

    The situation is as follows:  I was using an O2 Pay as You Go but suddenly noticed that it was costing me 14 pence a text which as I am very hard of hearing I prefer to use rather than the telephone.  I then saw an advertisement for a BT package offering unlimited texts plus other things for £5.00 a month so I gave that a go.  I then discovered that for 90% of the time I was unable to get a signal from my living room where I do most of my texting so I dumped BT and took an O2 package with unlimited texts for £8.50 a month.  Having said that I don't understand why I need to be careful about MMS charges if I send what in my lack of knowledge I would refer to as a multi address message.  As you can see I'm new to this mobile telephone thing and I really appreciate the help I'm getting from this Forum.

  • Two libraries, want to make just one

    I got two iPhoto Libraries in a computer, but I'd like to make a single one that would have the pictures that these two libraries have.
    The thing here is that there might be duplicate pictures (pictures that are in both libraries), and both libraries are pretty big.
    How would be the procedure?

    If you want to merge the Libraries: that is get all the pics, metadata, versions and so on then the only way to do it is use iPhoto Library Manager.
    See here for their information:
    http://www.fatcatsoftware.com/iplm/Help/merging%20libraries.html
    In their notes they speak about duplicates.
    Other than that you would need to export from one Library and import to the other - but this will not get all your versions.
    Regards
    TD

  • Two iTunes accounts, one iMac, two iPhones - want to share apps

    My wife and I both have iPhones, and we have our own iTunes accounts. Her phone is first generation, and mine is 3GS.
    We have one iMac with a single user on the mac. I have been able to sync both the phones just fine because I have set up both her phone's sync preferences to ignore application sync.
    But now we have a situation where I have purchased some app that I want her to be able to use and vice versa. I had read somewhere that Apple now allows the household to share purchased apps.
    I am not sure though, how to exactly do it. I have read on these forums that I could go to "Authorize Computer" and then "Transfer All Purchased Content from this iPhone" and I did that with my wife's phone, while I was signed into my iTunes account.
    I noticed it was transferring the apps but they do not show under the Applications area.
    Is there a step-by-step guide somewhere?

    Allan Sampson wrote:
    Not sure where you read this, but a household cannot share apps under the definition you are wanting.
    There is no device limit for the number of iPods and/or iPhones that can be synced with the same iTunes library and iTunes account on the same computer. Although iTunes music no longer includes DRM protection when purchased, 3rd party apps do include DRM protection, which is tied to the iTunes account used to purchase/download the app.
    I tried a quick search but could not find it, but I am sure that either during one of the iPhone OS updates or an iTunes update, it was also revealed that within a household, paid apps can be shared.

  • Supply scenario for single contract model

    Hi together,
    in normal case, a differnentiation in the supply of a point of delivery is made, using the supply scenario.
    There it is defined, if it is only a grid usage, supply or any other kind of business scenario.
    Now my question is:
    does it make sence, to implement the functionality of the supply scenario, when I have a company in a country, that still has a single-contract-model (grid-usage and supply in one contract) ?
    Where the differentation is made in the rate category on installation level and via the billing master data ?
    And where only big customers ( > 100.000 kwh) are allowed to swich suppliers as they want to.
    I have searched for information in this case, but did not really found any that is telling, that it is worth implementing it or stating, no, better not, because using the supply scenario functionality does only make sence, when implementing a two-contract-model (even in one SAP IS-U client) ?
    What do you recommend / suggest / think ?
    Thank you for your help and effort.
    Kind regards,
    Manuel

    Manuel:
    The supply scenario is used to define the service providers at the POD and contract – it was designed to provide the ability to automatically assign service providers to the POD and contract. It was designed to enable customers to implement using the single contract model; it can be used for a multiple contract model as well.
    Supply scenario uses MDT to assign service providers and update master data (e.g. rate category). It is possible to copy the standard MDT and provide rules on how the master data is updated when there is a supply scenario change. 
    regards,
    bill.

  • Two applications wants to read on the same port using Socket

    I have an application running on one machine using TCP/IP socket. The data transfer with the other application on other machine is in ASCII.
    Now I want a new application that can have a copy of data received and sent on the given port, where the previous application is running.
    Is it possible in Java using socket and TCP/IP to have two application reading data from the same port and both can read all the data.

    Even when you don't state the type of app which need to read the data stream (is it a server or a client app???), it's impossible to share a single TCP/IP socket among multiple apps.
    Perhaps the best thing to do is to develop something like a proxy server who listens on the nominated port and provides to contact (if your apps are server ones) or to be contacted (if your apps are client ones) by the desired apps.
    This way, the only job for the proxy is to duplicate the contents of the data stream and make them available to all the apps engaged.
    Hope this helps.

  • Two Accounts - Want to delete my acc

    Hi, I have two skype account. The one I have problem with is the fact that I link it with my Microsoft account, and now unlink it...so I can't log in and wants to delete my account..please help

    Hi, Annstone05, and welcome to the Community,
    In order to delete/remove/cancel a Skype account, please see here:
    'Can I delete my Skype account?'
    http://community.skype.com/t5/Security-Privacy-Tru​st-and/How-Do-I-Delete-My-Skype-Account/td-p/31461​...
    Please note, you need to file your request directly with Skype Customer Service; we here in the Community can not process account-related service requests.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Mail on two accounts - want to combine

    Hi!
    I have two partitions on my system (for optimizing purposes, etc) I have left my Mail application on both. Sometimes when I am on the second account I have checked my account and obviously received mail.
    What I want to know is is there an application, or way to take the downloaded messages and combine them with the same named mailbox on my mail partition?
    I see that they are stored as "emlx" format. Is there something that can combine these formats together?
    Thanks in advance.

    Do you want to do this as a recurring process or just once. You can import mailboxes from one account to the other. I'm not sure that is what you want, though.
    Really, I was curious about the "(for optimizing purposes, etc)." If you are really talking about Optimizing the disk structure, it's not necessary on the Mac unless you are regularly editing files greater than 20 MB in size. Otherwise, Mac OS X optimizes on the fly any files less than that size. If that is not the purpose, I guess I'm interested, but that would take us off topic, which I already have.

  • Between two ViewContainerUIElements want to add RadioButton & Its Events ch

    Hi friends,
    I have requirement using the WebDynpro JAVA that between the DropdownList and TableView I want to add Radio Button. And want to change the even accordingly.
    There is a ViewContainerUIElement_A which contained the Single DropDownList and another ViewContainerUIElement_B which contained the TableView. So based on the selection of dropdown list (ViewContainerUIElement_A) displayed records in the TableView(ViewContainerUIElement_B). Dropdown and tableView are  both use the Adaptive RFC Model. Which is working fine.
    Now i try to modify like this :
    I have created the RadioButton  as per requirement, after selection of  DropDownList , I am getting the radioButton values and able to select and see the change values  while clicking the Radio button which is perfectly working fine but tableView is not refreshing at all.now my question is how to call the TableView(ViewContainerUIElement_B) using the Radiobutton?
    So do I need to create the ViewContainerUIElement_C for RadioButton also, currently I am using the simple Radiobuton and Group for this.
    Do I need to create  ViewContainerUIElement_C for RadioButton also?  How to link with inbound plugs with this and how to call the even.
    Suggest me plz.
    Thanks
    Ali

    Hi Suresh,
    Since TableView is ViewContainerUIElement and creating dynamically so not able to see much codes here. Any Idea how to refresh the TableView using onSelect.
    I already assigned one method under the OnSelect of RadioButton using that i can see the selected values as message.
    Is there any way to call the Dropdown list event in the Radio Button?
    Thanks
    Ali

  • Library on two computers, want to pick a best of mix to Ipod

    Hi there,
    I'm a brandnew user of an Ipod. Since I have a Desktop at home with huge mass storage, my music library is quiet big.
    I bought a laptop and I'm using it more often now.
    Here is my question: On both Computers I do have different songs an I want to combine them on my Ipod.
    Whenever I swap between them, I get the information that my Ipod is configured to another computer. I want to select my songs from both computers to one Ipod.
    Sorry for bothering, but I actually didn't find a topic displaying my problem.
    Thx in advance D_01
    PC   Windows XP  
    PC   Windows XP  

    You can't "sync" that is automatically update an iPod from multiple libraries or computers. If you want to connect and use an iPod on more than one computer you need to change the update preference in the iPod Summary tab to "Manually manage music and videos" and click Apply. With the iPod in manual mode you can drag the songs you want onto the iPod from either computer:
    Using iPod with Multiple computers
    Managing content manually on iPod

  • Can I get a iphone 5 without contract, I just want the cel because I live in mexico

    Hi
    I just wanna know, if I get a Iphone from apple without contract and unlocked,

    You can get one in some countries.
    The U.S does not sell unlocked iphone 5

  • I PURCHASED A IPHONE 4 IN SAN FRANCISCO FROM BEST BUY FOR USD 650 WITHOUT CONTRACT. I WANT TO UNLOCK THE PHONE TO USE IN INDIA AS IT IS LOCKED AT THE MOMENT

    i purchased a iphone 4 in san francisco from a best buy for 649.99 usd without contract. the phone is however locked and i want it to be unlocked by apple officially. please help

    Apple does not unlock iPhones, only the carrier that it is locked to can do that. Contact them. If you were sold a phone that was supposed to be unlocked when you purchased it (which is what it sounds like) you should contact Best Buy.
    Best of luck.

Maybe you are looking for

  • How do I create a series of text frames using values from Excel list?

    First of all, this is the very first script I'm attempting to write from scratch. I'm completely green at scripting, and I've picked up a few snippets from Adobe's ID scripting guide, but nothing has really stuck yet relating to this particular objec

  • In iTunes 10 I can see the apple tv but have lost the menu options

    I am currently running iTunes 10 and 2 apple tv,s 1st generation. I can see the apple tv in the iTunes device list and when I select can see the device. Previously I used to be able to select what music movies tv Shostakovich etc that I synced with t

  • Hue/Saturation Adjustment layer problems

    I posted earlier about having problems printing with new color laser printer and colors printing wrong.  It is not the printer, the printer prints perfect color from what I see on my screen (calibrated).    Have narrowed it down to a hue/saturation a

  • Using Transportrule patterns in Exchange 2013

    In Exchange 2010 I was able to send a specific disclaimer (with or without Mobile Phone number) based on a AD Pattern match. Strangly Exchange 2013 does not allow the expression I'm using. I was wondering if anyone could help me out: I'm using powers

  • GE60 Replacement keyboard

    Hey, i was unlucky during a boat travel and managed to get some water on the keyboard, resulting in about 10 keys not working, so i am in need of a new keyboard replacement. Can anyone help me find a place to buy a new keyboard with Norwegian/Nordic