BBP_BS_GROUP_BE

Hi,
I wanted to read the content from is_object-items[1]-be_doc_type inside the BADI. Please help
Regards
Mak

Hi
I tried the below code. It resolved my issue.
  data : it_items type table of bbp_pds_transfer_item.
  data : wa_items type bbp_pds_transfer_item.
  clear : it_items, wa_items.
  it_items = is_object-items.
  read table it_items index sy-index into wa_items.
  if sy-subrc eq 0.
    wa_items-be_doc_type will have required value.
  endif.
Regards
Mak

Similar Messages

  • GROUP_PO_BACKEND in BAdI BBP_BS_GROUP_BE

    Hi'
    We want to further split our SC into more POs.
    Using Method GROUP_PO_BACKEND in BAdI BBP_BS_GROUP_BE.
    How to split into more POs?
    I cannot see which data to change, in order for the split to occur.
    Please provide a coding example.
    Regards,
    Karin.

    Hi
    Are you correctly checking in SE18 transaction for the BADI - BBP_SC_TRANSFER_BE ?? Please double-check again...
    <u>See related link -></u>
    Re: Badi BBP_SC_TRANSFER_BE, method GROUP_PO
    We had the same issue with GROUP_PO.
    SAP asked us to use BADI BBP_BS_GROUP_BE instead of BBP_SC_TRANSFER_BE for SRM 5.0 (SRM_SERVER 550). Please refer note "Note 1073137 - SRM5.0: Badi BBP_BS_GROUP_BE instead of BBP_RESERVATION_GRP"
    Here CT_ITEM is changing. The field "CT_ITEM-refnumber" corresponds to "CT_PROC_ITEM-GROUP_1".
    If for the badi BBP_BS_GROUP_BE you are finding that CT_ITEM is empty as well- Please implement note "Note 1040082 - BADI BBP_BS_GROUP_BE: Parameter is_object not filled".
    It should resolve the issue. With CT_ITEM filled you should be able to carry out the grouping according your crieteria.
    BBP_SC_TRANSFER_BE BADI (Sample documentation and source code)
    Re: PR type
    Please go through the following SAP OSS Notes as , which will help ->
    Note 715213 - Interface change in BAdIs in Release SRM 4.0
    Note 1040082 BADI BBP_BS_GROUP_BE: Parameter is_object not filled
    Note 980017 Follow-on document not created
    Note 912873 Item not filled when using PO number range BADI
    Note 820404 BADI BBP_SC_TRANSFER_BE not called correctly
    Note 610332 BADI BBP_SC_TRANSFER_BE/BBP_RESERVATION_GRP: Customer fields
    Re: shopping cart created 2 PO's fro same vendor and Org data...plz advice
    Re: CT_PROC_ITEM Empty in BBP_SC_TRANSFER_BE~GROUP_RQ
    <u>Do let me know.</u>
    Regards
    - Atul

  • BBP_BS_GROUP_BE for new document type and number range

    Hi gurus,
    I am working on Classic scenario in SRM and currently have used the above BADI to use a different document type and number range when creating the PO in the backend system. It all works fine. The only thing is I noticed that the BE_DOC_TYPE field in the shopping cart is still reflected as 'EC' even though the PO created in ECC is for example EC1. My question: Is this standard SRM? If so, is it common to leave this field as it is or is it advisable for us to change the document type to EC1 as well? Also, is there any implication in standard SRM reporting and downstream processes that you are aware of?
    Appreciate any advice on the above.
    Cheers!
    Sf

    We have ended up having to populate the document type on a custom field or alternatively replace the existing one.

  • Reservation generated in R/3 from SRM

    Hi
    I am working on Extended Classic scenario and using SRM 5.0.
    We have implemented the BAdI "BBP_EXTLOCALPO_BADI" to fluctuate between the Scenarios (i.e. Classic and Extended Classic) because we are also creating reservations in the SRM systems for all materials with the MRP view existing in the Material Master.
    I would like to know that when we create a Shopping Cart with Multiple items, then is it possible to get a single reservation created for them instead of Multiple reservations getting created right now based on each Shopping Cart Line item. I guess its the standard SAP functionality to create one reservation per line item.
    Thanks for the help.
    manoj

    Hi,
    You can implement the BADi "BBP_BS_GROUP_BE".
    Related threads:
    Re: SHC line items converted into single reservations for each line Item
    Re: Badi BBP_SC_TRANSFER_BE, method GROUP_PO
    BR,
    Disha.
    <b>Pls reward  points for useful answers.</b>

  • Creating Multiple POs from the shopping cart

    Hi
    I have a requirement to create multiple POs from shopping cart. we are in SRM 7.0 I have implemented the BADI BBP_SC_TRANSFER_BE GROUP_PO method. modified group_1 field with 1 and Doc_type with custom document type
    and udpate the change parameter CT_PROC_ITEM with the above changed data for each line item.
    But purchase order always taking original document type and its number range only. 
    Please help me in this regard,
    Regards,
    Rama.

    Hi,
    Thanks for your reply. I have implemented the BADI BBP_BS_GROUP_BE method GROUP_PO_BACKEND. I modified BE_DOC_TYPE with the custom document type and REFNUMBER as the group number .
    But  it is generating number range for the original document type only.  when i debug the code i found that it is taking original document type (which is hardcoded contant value mentioned in the code when number range is initial).
    Please suggest me  after grouping the line items with document types and REFNUMBER how to assign number ranges for each group of line items.
    Regards,
    Rama.

  • Badi BBP_SC_TRANSFER_BE, method GROUP_PO

    Hi All,
    We are on SRM 5.0 SP07.
    I want to add an additional grouping criteria for grouping backend PO's- <b>Shopping cart Line item currency</b>.
    In addition to the standard grouping (which is as per the PO header fields like vendor, purchase org, purchase group, company code etc.), I want to add line item currency as one more grouping criteria.
    Can someone suggest how I can do it using BADI BBP_SC_TRANSFER_BE, method GROUP_PO?
    Sample code might be very useful.
    Thanks,
    Srivatsan

    Hi
    Custom fields addition, go through the OSS Notes
    672960 and 458591.
    <b>To see the sample code, please go through the SAP OSS Notes, which is recommended here -></b>
    Note 610332 BADI BBP_SC_TRANSFER_BE/BBP_RESERVATION_GRP: Customer fields
    Note 1040082 BADI BBP_BS_GROUP_BE: Parameter is_object not filled
    Note 980017 Follow-on document not created
    Note 715213 Interface change in BAdIs in Release SRM 4.0
    Note 912873 Item not filled when using PO number range BADI
    Note 820404 BADI BBP_SC_TRANSFER_BE not called correctly
    Do let me know.
    Regards
    - Atul

  • Creating Multiple POs for Contract

    Dear Team,
    Our Company has Yearly budget Allocation.
    For longterm Contracts (Say 3 Years),we are facing Porblem in creating Multiple POs from the Contract.
    The PO with ref to Contract  can be created only for this Year as only Sufficient Budget is allocated for the current year.
    For next year another PO need to be raised for Subsequent year.
    The users need to make sure they have to Plan the budget for the next yesr to Process the PO.
    Is there any way to address this issue.
    Apperciating ur ideas.
    Regards
    Zulfikar

    Hi,
    Thanks for your reply. I have implemented the BADI BBP_BS_GROUP_BE method GROUP_PO_BACKEND. I modified BE_DOC_TYPE with the custom document type and REFNUMBER as the group number .
    But  it is generating number range for the original document type only.  when i debug the code i found that it is taking original document type (which is hardcoded contant value mentioned in the code when number range is initial).
    Please suggest me  after grouping the line items with document types and REFNUMBER how to assign number ranges for each group of line items.
    Regards,
    Rama.

  • BADI FIEB_CHANGE_BS_DATA codeing

    Hi experts,
    I have an issue in which i have to append the leading zeros which the system populate in the assignement field of te document when the batch runs through SM35 after posting in ff68 some check number is written in the filed e.g 55555 system process the batch built in ff68 process through sm35 but when the doument are posted system populate leading zeros in the assignment field and make it 0000000055555 and make it 13 characters which is the main issue in clearing the open items in BAnk recon i have found a BADI to eliminate leading zeros which is   BADI 'FIEB_CHANGE_BS_DATA' but cannot write the code for this.
    please if anyone can comment on this.
    Regards

    Hi
    Are you correctly checking in SE18 transaction for the BADI - BBP_SC_TRANSFER_BE ?? Please double-check again...
    <u>See related link -></u>
    Re: Badi BBP_SC_TRANSFER_BE, method GROUP_PO
    We had the same issue with GROUP_PO.
    SAP asked us to use BADI BBP_BS_GROUP_BE instead of BBP_SC_TRANSFER_BE for SRM 5.0 (SRM_SERVER 550). Please refer note "Note 1073137 - SRM5.0: Badi BBP_BS_GROUP_BE instead of BBP_RESERVATION_GRP"
    Here CT_ITEM is changing. The field "CT_ITEM-refnumber" corresponds to "CT_PROC_ITEM-GROUP_1".
    If for the badi BBP_BS_GROUP_BE you are finding that CT_ITEM is empty as well- Please implement note "Note 1040082 - BADI BBP_BS_GROUP_BE: Parameter is_object not filled".
    It should resolve the issue. With CT_ITEM filled you should be able to carry out the grouping according your crieteria.
    BBP_SC_TRANSFER_BE BADI (Sample documentation and source code)
    Re: PR type
    Please go through the following SAP OSS Notes as , which will help ->
    Note 715213 - Interface change in BAdIs in Release SRM 4.0
    Note 1040082 BADI BBP_BS_GROUP_BE: Parameter is_object not filled
    Note 980017 Follow-on document not created
    Note 912873 Item not filled when using PO number range BADI
    Note 820404 BADI BBP_SC_TRANSFER_BE not called correctly
    Note 610332 BADI BBP_SC_TRANSFER_BE/BBP_RESERVATION_GRP: Customer fields
    Re: shopping cart created 2 PO's fro same vendor and Org data...plz advice
    Re: CT_PROC_ITEM Empty in BBP_SC_TRANSFER_BE~GROUP_RQ
    <u>Do let me know.</u>
    Regards
    - Atul

  • Plant specific variant when using BBP_SC_TRANSFER_GROUPED

    Hi all
    I'm working for a costumer that are using BBP_SC_TRANSFER_GROUPED in order to group requirements from the plan driven scenario. We have two different plants that are sending requirements from ERP to SRM, and we want to separate the grouping of the requirements from these two plants, using a variant.
    When I'm looking at the screen selection for screen variants, there is no such possibility. Does anyone have an answer to this problem? We have no costcenters, orders, WBS elements etc we can differ on.
    Thanks in advance
    Maria

    so you want to group SC items into requisition based on plant as well... right?
    you can do that with BBP_CREATE_BE_RQ_NEW or BBP_BS_GROUP_BE.
    if you are going for BBP_BS_GROUP_BE, then method name is GROUP_RQ_BACKEND. here keep same CT_ITEM-refnumber
    for all the items you want to be grouped.
    just read the documentation and you will be fine.. .

  • External Purchase Order Number Range

    We are creating shopping carts using a Z program which is creating the follow-on documents ie.. PO's.
    Now our requirement is to get the PO's created with external no's  not the internal no range.
    Is there any BADI which we can use for doing this so that we can get the PO no populated. quick reply appreciated.

    Hi Sham
    Always SRM system determines number range for its follow on documents from SRM
    but however you can change this BADI,
    plz update me the code . i am also lookin for this
    The BAdI BBP_BS_GROUP_BE provides the following options:
    Alternative to the standard, you can use method
    GET_NUMBER_OR_RANGE
    to override determination of the number range object and the number assignment for the following document types:
    Purchase orders
    Purchase requisitions
    Reservations
    good luck
    did you try the method? Hope you might tried  and you got an error saying that document XXX not within define interval. any one trie above same...
    eventually system checks internal or external number range?
    any break through?
    Muthu

  • Group PO line item in Shopping cart

    Hi All,
    Currently SRM has some criteria to split the PO and if the contract number is different then it splits the SC item to create 2 different PO, But as per our requirement even SC has two items with same vendor, pur org,etc... but different contract number then it should create 1 PO in the backend system.
    Badi:
    I have tried BBP_SC_TRANSFER_BE-GROUP_PO but CT_PROCITEM is empty
    So i tried with this BADI BBP_BS_GROUP_BE, but BBP_BS_GROUP_BE--GROUP_PO_BACKEND  is called item by item.... if there is 2 items then it is called 2 times ... with single current records...
    Please help me So how to group the line items.
    We are in SRM 7.0 and we are using classic scenario
    Regards,
    Rama.

    Dear Poster,
    As no response has been provided to the thread in some time I must assume the issue is resolved, if the question is still valid please create a new thread rephrasing the query and providing as much data as possible to promote response from the community.
    Best Regards,
    SDN SRM Moderation Team

  • BBP_TARGET_OBJTYPE - Code Approach

    My Scenario is Extended Classic scenario -for completed shopping carts it creates PO and for catalog item it creates PO. For incomplete carts it creates PR
    But our requirement for a particular vendor from the catalog it should create a PR but not PO.
    Please SRM guru's send me some sample code or approach to write it in the badi BBP_TARGET_OBJTYPE.
    If I am not suppose to user the above badi please also send which badi to be used.
    Thanks
    NSSRM

    Hi,
    Following enhancements (BADIs) will have to be coded based on rules defined for PO / PRs. These rules can vary from organization and hence I am not providing any sample code for the same.
    Badi BBP_TARGET_OBJTYPE : Use method DETERMINE_TARGET_OBJECT_TYPES to determine follow-on document type for PO. Here reservations object type is replaced by PO object type.
    Badi BBP_BS_GROUP_BE : Use method GROUP_PO_BACKEND to split line items for PO . Method GET_NUMBER_OR_RANGE can be used to get a new PR/PO number as defined in configuration. 
    Badi BBP_CREATE_BE_PO_NEW : This Badi is called before PO/PR is created in the backend.
    Hope this helps (*only for the approch and may differ from your requirement*).....
    Best Regards,
    NMK

  • Splitting SC items in ECS

    Hi experts,
    We are on SRM 5 ECS.
    We have a requirement to split SC items into multiple POs by additional criteria.
    We implemented BBP_BS_GROUP_BE method GROUP_PO_BACKEND and set a break point.
    The flow is not stopping at the break point.
    Are we using the right BADI to split SC items into multiple POs in ECS?
    If yes, how can I debug the code?
    Any help or guidance would be much appreciated. Irina

    Hi,
    I think this Badi is for classic scenario. For ecs, you should try using badi which sounds like bbp_loc_group_po. Check for exact name.
    Regards,
    Sanjeev

  • PO Group for different Purchasing Groups of SC Items

    Hi ,
    I want to create a single PO if 2 different PO Groups are available for items in SC.
    I could see that standard code is splitting PO for different vendors different Purchasing Groups contracts and soo on.
    is it possible to create a single PO for my case mentioned above.
    I am using BADI  BBP_BS_GROUP_BE for this but don't understand how to go about it.
    Please help with your useful suggestions.
    Thanks.

    Hi
    PO can be splitted based on Header Data
    Company Code
    Purchasing Organization,
    Purchase Group
    Vendor
    It also depends upon the backend customizing for assignmnet of plant to Purchasing Organization
    Thanks
    Trinath

  • SC is split in multiple PO when delivery date is different

    Dear Expert,
    We are on SRM 5 (SRM SERVER 550) in classic scenario.
    When we create a shopping cart in SRM , a PO is directly created in R/3. When we use multiple items, the system is generating multiple PO's because the delivery date is different. We do not want the system to create multiple PO's, even if the delivery date is different. Therefore we tried to implement BADI BBP_BS_GROUP_BE with method GROUP_PO_BACKEND, but this does not seem to do the trick. Any suggestions on this?
    Regards,
    Tom

    Hi Tom,
    you can check the splitting criteria in the SC transfer (bbp_pd_transfer - methode SPLIT_BACKEND_PO):
    SORT lt_object_split BY
    fixed_vend
    proc_org_ot|
    proc_org_id
    proc_group_ot
    proc_group_id
    agreement
    ctr_hdr_number
    be_doc_type
    be_co_code
    vper_end
    vper_start
    plant_country
    number_int.
    With BAdI badi_group_po_be can you change this for the PO.
    If the delivery date is different between SC lines, just one PO should be created with different lines.
    Delivery date is not an split criteria.
    Regards
    Laszlo

Maybe you are looking for