SRM standard number ranges?

I know from former relases like SRM400 there were standard number ranges delivered, but not with SRM500
What is the standard number range for PO respones?
Rgds.
Dieter

Hi Dieter,
please see the following number ranges:
01     0000000001     1999999999
02     2000000000     2999999999
Regards,
Peter

Similar Messages

  • Number Range increment in SRM

    Dear Experts,
    We are implementing Classic scenario with SRM 7.03 and ERP 6.05 and have set up the system such that follow-on document to Shopping Cart should be Purchase Order or Purchase Requisition depending on whether Source of Supply is available or not respectively.
    We have maintained internal number range for RQ in SAP Implementation Guide -> SAP Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> Number Ranges -> SRM Server Number Ranges -> Define Number Ranges for Shopping Carts and Follow-on Documents and the same number range has been maintained in ERP as external number range for PR
    When we order a shopping cart without a supplier, it creates a PR in ERP but shows 'Error in Process' in SC Related Documents. The corresponding error in RZ20 is 'Shopping cart 2170000045 (PReq. 1170000011): W5 030 Purchase requisition 1170000011  does not e xist'
    What we have observed is that the PR number in SRM is increments by 10 while PR number in ERP increments by 1. To explain with an example -
    Currently in SRM, in PR number range, the last used number is 1170000010.
    The same is also available in ERP for PR.
    Now we create a SC which would create a PR in ERP. In BBP_PD, in item data, BE_OBJECT_ID is 1170000011. In ERP, PR is successfully created by the same number 1170000011.
    However, when we go to 'Related Documents' of the SC, we find the status as 'Error in Process'.
    In RZ20, we find the error 'Shopping cart 2170000045 (PReq. 1170000011): W5 030 Purchase requisition 1170000011  does not e xist'
    When we go to the SRM IMG path as mentioned above to check the current number for RQ, it is 1170000020 instead of 1170000011
    This means that after creation of PR, when this PR number is brought back to SRM, the RQ increments by 10 instead of by 1 and SRM thinks that the incoming PR number is already consumed by ERP.
    We have checked for REQREQ in TCode SNRO in SRM and see that buffering is mentioned as 10. But then this is a standard setting which is never changed. We are unable to figure out why is RQ getting incremented by 10 instead of 1.
    Any thoughts or guidance would be greatly appreciated.
    Best regards,
    Madhur Shah
    P.S.: Points would be appropriately awarded

    Hi Harish
    Thanks for the update...
    Steps performed
    Tcode SE37 type in RSD_CUBE_GET and execute.In the new screen key in ur infocube name and execute.
    In the new screen under export parameter under E_T_DIME ,I found 13 enteries -->click on the information button.
    Can you please elborate on the below
    Now find the column Nobject and note down the value.
    Give that value and do the number buffering in SNRO.
    Do i need to set Number Range buffering forall the dimensions or how/based on can i select which dim i need to setup an dhow to set configure in snro
    and also
    Are these settings have to be made individually in each system or in dev and transport them
    Thanks in advance

  • Classic & EC -  PO & other purchasing documents number range

    Hi SRM Gurus,
    Can any one please explain me more precisely about number ranges in SRM & MM.
    For classical scenario, we will define number ranges for PO & other purchasing documents in SRM as internal number ranges and in MM as external number ranges.
    But in Classical scenario we will create POs (or other Purchasing Documents) in backend system. Suppose If it is to be replicated to SRM as per business need, then how system works. Because we defined in SRM PO number range as internal number range and in backend system as external number range.
    Again in Extended Classical scenario, for MRP materials PR or Reservation will be created in backend system with internal number range. But in Plan-Driven scenario they will be replicate to SRM. In this case how we have to choose number ranges.
    I am confused. I'll appreciate if any one explains me with step by step or with examples for Classic and Extended classical scenarios
    Points will rewarded
    Thanks,

    Hi,
    Please find my responses in bold below:
    For classical scenario, we will define number ranges for PO & other purchasing documents in SRM as internal number ranges and in MM as external number ranges.
    Sundeep: In Classic Scenario, you do not define number ranges for PO internally in SPRO. You would only define number ranges for shopping carts, Confirmation and Invoices if required. Please see description of classic and extended classic scenario below.
    External number ranges are defined for PR's and PO's in ECC in a classic scenario environment. (No Internal number range is defined in SRM for these documents in classic scenario and a shopping cart is a PR in SRM)
    So, basically in classic scenario, you create only a Shopping cart (Internal Number Range) and all follow on documents such as PR, PO etc are created as external number ranges in ECC, which are a result of a shopping cart from SRM having an internal number range locally.
    But in Classical scenario we will create POs (or other Purchasing Documents) in backend system. Suppose If it is to be replicated to SRM as per business need, then how system works. Because we defined in SRM PO number range as internal number range and in backend system as external number range.
    Sundeep: This scenario is not possible. In classic scenario you cannot replicate the PO back to the SRM system. Such a scenario is usually accomodated by an Extended Classic Scenario.
    Again in Extended Classical scenario, for MRP materials PR or Reservation will be created in backend system with internal number range. But in Plan-Driven scenario they will be replicate to SRM. In this case how we have to choose number ranges.
    Sundeep: In a Plan driven procurement the PR is created in SRM as a shopping cart with internal number range. (PR = Shopping cart in SRM). No reservations are created locally in SRM from a PDP. Reservation are only possible in a Classic scenario from SRM -> R/3.
    · The classic scenario
    The shopping cart is created and approved in SAP Enterprise Buyer. The remainder of the procurement process takes place in the backend ERP system(s) and all other follow-on documents, such the purchase order, goods receipt/service entry sheet and invoice, are located there. With SAP Supplier Self-Services, you have partial supplier involvement for the operational procurement business scenarios when buying materials. There is no support for services.
    · The extended classic scenario
    The shopping cart is created in SAP Enterprise Buyer. The purchase order and follow-on documents are also created there and then replicated to the backend system. The purchase order in SAP Enterprise Buyer is the leading purchase order and cannot be changed in the backend system. Goods receipts and invoices can be pre-entered in SAP Enterprise Buyer or entered directly in the backend system. With SAP Supplier Self-Services, you have partial supplier involvement for all your operational procurement scenarios. In these scenarios, you have supplier involvement for the purchase order and the purchase order response.
    Hope this info helps !!
    Pls assign points for usefull answers !!
    Sundeep
    Message was edited by:
            Sundeep Ravande

  • Extended Classic - Purchase Order Number Ranges

    We are using Extended Classic EBP. When a PO is created in SRM the PO replicated into R/3 does not have the same number.
    The backend PO document type is ECPO. We have assigned an internal and external number range to this document type.
    When an SRM PO is replicated to the backend, the backend PO number is taken from the internal number range for the document type. This internal number range does not include the number range of the SRM POs.
    We expect the SRM PO number to be pushed into R/3 and therefore the external number range of the R/3 document type should match the SRM PO number range.

    Hi
    No need to maintain the internal number range for the SRM PO document type ECPO in R3 (maintain the external number range code of SRM PO transaction type).
    As the PO is created in SRM, and the number range you maintained in SRM and R3 should be same, but in SRM it will be internal number range and in R3 it should be external number range. (number range code should be same in both the systems).
    Regards
    Reddy

  • Problem in Purchase Requisition Number Range (Skipping)

    Hi,
    While creating the Purchase Requisition, the PR Number is skipping by 10, for example, first PR is 10000000, send is 10000010 and so on.. on the Quality Server
    The same is OK in Development Server. Pls. note that I have used the Standard Number Range.
    Pls. guide.
    Regards,

    Hi,
    To add on Arun's answer. The setting in trs SNRO is client independent. You should press the "display" button there (the glasses) and check the field "No. of numbers in buffer". The standard SAP setting is 10 and changing this setting is a modification to standard.
    The scenario is as follows. Each time your application server needs to allocate new number to a PReq it contacts the database server, which keeps track of the number range. Even if your system (Q) is a single server system, the principle is still the same.
    The point is that the application server doesn't take one next number from the database server, but 10 numbers. Next time it needs to allocate new number to a PReq, it doesn't have to call the DB server again - it merely takes the next number from the "bundle" it already got. The reason is to save time.
    This works fine as long as the application server is up and running all the time - no "holes" are generated. It can however happen that the application server "forgets" the buffer, e.g. when the server is taken down (this is however not the only way). In this case, all the numbers it got from the DB server get lost and the application server takes out new ten.
    As I mentioned above, this function is impossible to change without modification to SAP standard. Please consider well your business need to have the consequent numbers. Most of the companies manage with this setting.
    BR
    Raf

  • Number ranges for billing documents

    Our client has got 130 plants (105 are depots and 25 manufacturing plants) ) from which sales transactions are handled.
    There is a legal requirement that billing documents should have separate number ranges for a particular depot / plant. We have adopted the following method: -
    -  SAP standard number range object (transaction VN01),
    -  Customized table wherein we mapped billing document types, plant and number range object,
    -  User exit RV60AFZZ (Form Userexit_Number_range) to determine the number range during invoicing.
    We have consumed almost all of the possible number range object combinations (starting from AA to ZZ and 01 to 99) due to the huge number of plants.
    For the new depots, how to set up the number range objects for billing documents (example: is there any way by which this object can be made as three digits)?
    With best regards,
    S Viji

    We have not done such thing.
    But you can change it from 2 digit to 3 digit using access key. Which should be the last option.
    Look for option like creating customized number range object (instaed of using RV_BELEG which you are currently using). RV_BELEG is used for number ranges for Order, delivery in addition to billing. So the new number range object should also be able to provide number range for that.
    Also try make the current number = 0 of "consumed" no range and then delete the number range and recreate it (using VN01 or SNRO object RV_BELEG)

  • Classic - SAME PO number ranges in SRM  PO via SC as well as ECC PO  via PR

    Hi
    for example we do have PO
    existing
    PO 54XXXXX number serial creates via SRM by shopping cart
    PO  55XXXXX number serial created PO via ECC system
    but business now wants same number ranges for Both system Purchase orders WHATERVER IT MAY BE.
    54XXXXXX only for SRM created PO as well as ECC PO .
    SC IN srm  PO in ECC 54XXXXX
    PR-PO in ECC 54XXXXX
    is it possible? TO HAVE SAME NUMBER RANGE
    *CUSTOMER EXPECTS LIKE BELOW.*
    *FOR EX  PO 540000001 CREATED FROM srm by Shopping cart
                  *PO 540000002 CREATED BY ECC SYSTEM.via Purchase request or direct me21n*
    HOW CAN I MAKE INTERNAL AS WELL EXTERNAL VIS DOC TYPE.
    THEY DO NOT WANT TO HAVE TWO SEPARATE NUMBER RANGES FOR ONE BUSINESS OBJECTS. aNY ONE ACHIEVED IN REAL TIME?
    br
    Muthu

    Thanks much Ahmed for confirmation on this.Appreciate you  Ahmed on this help.
    why i have asked this question we do create some PR from APO system. but their APO Purchase request uses same number range in the ECC system.
    for eg. APO creates PR -300001
                ECC creates PR -300002
    but i dont know how it achieved in APO -ECC scenario.
    Muthu
    Edited by: Muthuraman Govindasamy on Jan 16, 2010 3:01 PM

  • Converting a standard BSP field into an internal number range

    Hi Friends,
    I'm new to CRM BSP and have a requirement wherein i have to edit standard BSP field and convert it to an internal number range field.Can anyone plz help me out on this.
    Thanks in advance.
    Regards,
    Parvathy.

    Hi,
    This cant be done in configuration
    There are some enhancements for this control
    You please check those enhancements
    MGA00002 and MGA00003
    regards,
    santosh

  • Number ranges for Business Partner

    Hello experts,
    Can you please guide how to define different number ranges for differenet different parner functions such Bidder and Employee.
    Presently when I create a new employee for a Business partner who has newly registered with SRM, they both are getting same range of BP number, which makes the user list very long to manage/search while creating BID/Auction invitation.
    Please guide me. Thanks in advance
    Vijay

    Hello,
    find below the settings of table T77S0 in our system. We use grouping Z4 for org units. Be aware of the fact that number range and grouping have to have the same ID in this case.
    Regards
    Wolfgang
    GRPID SEMID GSVAL      ETEXT
    HRALX HRAC  X          Activate HR Integration
    HRALX MERID X          Enter Integration Error in IDOC
    HRALX MSGRE 0          Recipient of Error Message When Creating BP
    HRALX OADBP            Business Partner of Standard Address
    HRALX OADRE            Address Necessary for Business Partner?
    HRALX OBPON ON         Integration O-BP Activated
    HRALX OBWIG X          Ignore Business Partner Warnings
    HRALX ONUMB 2          Business Partner Number Assignment (Org. Unit)
    HRALX OPROL BUP004
    HRALX OSUBG Z4         Business Partner Subgroup (Organizational Unit)
    HRALX PALEO            Log: Organizational Units in ALE
    HRALX PALEP            Log: Employees in ALE
    HRALX PBPHR OFF        Employees Are Replicated from HR System
    HRALX PBPON ON
    HRALX PCATS            Integration P-BP for CATS Activated
    HRALX PINAC            Activate ALE Distribution of Inactive Employees
    HRALX PLEVE 3          Log: Detail Level of Error Messages (1 - 5)
    HRALX PNUMB 3          Business Partner Number Assignment (Employee)
    HRALX PPROL BUP003
    HRALX PQUAL            Import Qualifications
    HRALX PRTON            Log Active
    HRALX PSUBG            Business Partner Subgroup (Employees)
    HRALX PSYNO            Log: Organizational Units in Dialog
    HRALX PSYNP            Log: Employees in Dialog
    HRALX USRAC X          Create Relationship to User

  • Vendor number range issue in BUCF transaction

    Hi,
    We are implementing the SRM 5.0 with Extended Classic scenario.  I my current SRM system is already connected with 3 SAP R/3 system and I am implementing and adding 4th SAP R/3 system.
    I am having an issue to replicating the vendor master from 4th R/3 system to our SRM system due to wrong number ranges in BUCF transaction code.
    Current Number Range in SRM systems are:-
    01     0010000000            0014999999     10003009
    AB     0001000000        0009999999                        X     --> (7 Digits)
    My new vendor master from 4th R/3 system is:-
    0080000001        to     0080029999    -->  (8 Digits)
    My new vendor master number range is overlapping with my internal number range 01.  As we know that we cannot reduce the lower range of 01 from 0010000000 to 0000000001.  Also I cannot increase the number AB higher value from 0009999999 to 0099999999.
    Can you any one please suggest me to correct the number range?
    Thanks,
    Senthil

    Hello Senthill,
    The vendor replication to external number ranges works as follows:-
    (1) Cross-Application Components SAP Business Partner > Business Partne
    > Basic Settings > Number Ranges and Groupings > Define Number Ranges
    Here you sould define an external number range which corresponds to
    the R/3 numbers. You may want to have more than one external range
    in order to replicate all vendors.
    (2) Cross-Application Components > SAP Business Partner > Business Part
    > Basic Settings > Number Ranges and Groupings > Define Groupings and
    Assign Number Ranges
    For each replication run, you can download the vendors which correspond
    to the external number range / grouping which is marked as 'standard
    external'.
    So, you will have to replicate your vendors separately for each number
    range:-
    Select the correct grouping each time by marking 'Ext.Std Grping'
    and then run BBPGETVD for the vendors to be assigned to this grouping.
    As standard, the customized settings for the number ranges
    would have to be changed for each run of BBPGETVD and BBP_VENDOR_SYNC.
    If you run the update or synchronization in combination with a
    BADI the intervals could be taken into account.
    The BADI is BBP_TRANSDATA_PREP
    The methods are:-
    Method: PREPARE_REPLICATION_DATA (intitial download)
    Method: PREPARE_UPDATE_DATA (update)
    Import data is stored in CT_LFA1 should be copied to an
    internal table. There the required intervals can be determined.
    This BADI is not assigned in the IMG but can be seen through SE18.
    I hope this information is helpful.
    Kind Regards,
    Edel.

  • Issue on Number Range for MRP Purchase Requisition

    Hi Gurus,
    Please help me on the issue explained below.
    We are already using SAP ECC 6.0 and SRM 5.0 and now we are implementing Plant Maintenance Module.As a result of this implementation ,we have created number of PR document types and assigned to unique number ranges in ECC. One of these document types has been maintained for MRP group for a material type in order to identify the MRP purchase requisitions created on the shortage of the materials for these material types.
    This functionality is working fine. MRP run for the materials is picking the appropriate PR document but number range of the document is not the same what was assigned to the linked document type.Some other number series is getting picked by system .
    There is setting under SPRO Consumption Based PlanningNumber RangesPurchase Requisitions
    Here, number range assignment is against plant. This is the same number range which is being taken by system on running MRP. But the desired number range is the one which has been linked to PR document type.
    If I change the number range above then number range for MRP PR in present system will get affected..
    Can you please advise me on above so that PR generated on MRP run should have appropriate number range?
    Thanks & Regards,
    Niti

    Hi,
    As per my understanding, what you have mentioned above is exactly the way SAP is designed. Its SAP Standard behaviour.
    But if you check your PR document type - no:range & the CBP no:range both will be same only since both refers to the same object.
    Please check the PR document type that you have assigned in the CBP & its no:ranges.
    Thanks & Regards,
    Ram

  • Could you check our source? (To determine the PR type and number range)

    Hello.
    We use SRM Server5.5 with Classic Scenario.
    We will use the BADI BBP_SC_TRANSFER_BE to determine the PR type and number range according to your recommend.
    We have two PR type in R/3.
    1) KGPR
    2) KTR1
    As you know that shopping cart has no type. So we add customer field to mapping to R/3 PR type and this field has two values.
    1)     PR01: mapping to KGPR
    2)     PR02: mapping to KTR1
    We will use the method GROUP_RQ to determine the PR type.
    If customer field is PR01, PR type is determined KGPR
    If customer field is PR002, PR type is determined KTR1.
    To determine the PR number range, we will use the method GET_NUMBER_OR_RANGE.
    If PR type is KGPR, Choose the No key 12
    If PR type is KTR1, Choose the No key 16.
    Configuration step:
    1.     Maintain the PR number range in SRM.
    No key: 12  (for KGPR) internal NR
    No range: 2520000000 – 2529000000
    No key: 16 (for KTR1) internal NR
    No range: 2560000000 – 2569000000
    2.     Maintain the PR number range in R/3
    No key: 12  (for KGPR) Ext NR
    No range: 2520000000 – 2529000000
    No key: 16 (for KTR1) Ext NR
    No range: 2560000000 – 2569000000
    3.     Assign the PR number range to PR type in R/3
    KGPR – 12 (EXT)
    KTR1 – 16 (EXT)
    4.     Maintain the attribute in SRM
    Document type in R/3
          Add KGPR and KTR1
    We developed this logic, but it’s not working.
    LOOP AT ct_proc_item INTO ls_proc_item “ Where is no date in ct_proc_item:
    We can not find out the reason.
    Could you check our source?
    METHOD if_ex_bbp_sc_transfer_be~group_rq.
      DATA:
           ls_proc_item           TYPE bbps_procurement,
           lv_number_int          TYPE bbp_item_no,
           ls_item                TYPE bbp_pds_transfer_item,
           lv_group_counter       TYPE numc5,
      CONSTANTS:
          lc_on(1)               VALUE 'X'.
      SORT ct_proc_item BY obj_to_gen.
      CLEAR: lv_group_counter.
    LOOP AT ct_proc_item INTO ls_proc_item  
    where obj_to_gen eq iv_object_to_generate.
    get item data which includes customer fields
        MOVE ls_proc_item-preq_item TO lv_number_int. " convert
        READ TABLE it_item INTO ls_item WITH KEY number_int = lv_number_int.
        IF sy-subrc = 0.
          IF ls_item-pr_type EQ 'PR01'.
            ls_proc_item-doc_type = 'KGRP'.
          ELSEIF ls_item-pr_type EQ 'PR02'.
            ls_proc_item-doc_type = 'KTR1'.
          ENDIF. " lv_cust_field
          lv_group_counter = lv_group_counter + 1.   " increase counter
          ls_proc_item-group_1 = lv_group_counter.
          MODIFY ct_proc_item FROM ls_proc_item
                 TRANSPORTING group_1.
        ENDIF.  " sy-subrc
      ENDLOOP.
      cv_method_active = lc_on.
    ENDMETHOD.
    method IF_EX_BBP_SC_TRANSFER_BE~GET_NUMBER_OR_RANGE.
      if is_item-pr_type = 'PR01'.
         CV_NUMBER_RANGE = '12'.
         CV_NUMBER = '2520000000'.
      elseif is_item-pr_type = 'PR02'.
         CV_NUMBER_RANGE = '16'.
         CV_NUMBER = '2560000000'.
      endif. " is_proc_item / is_item
    Thank you
    Best Regard
    SH

    Hi
    Please find some suitable sample code, which might help you out.
    method IF_EX_BBP_SC_TRANSFER_BE~GET_NUMBER_OR_RANGE .
    * IV_OBJECT_TO_GENERATE
    *   '1' Reservation
    *   '2' Purchase Requsition (BANF)
    *   '3' Purchase Order
    *   '4' Customer Object
    * 1. current item data are in structures
    *    - IS_ITEM shopping cart item data including Customer Fields
    *    - IS_PROC backend relevant item purchasing data
    * 2. accounting data in tables
    *    - IT_ACCOUNT all shopping cart account. data with Customer Fields
    *    - IT_PROC_ACCOUNT backend relevant accounting data for current item
    *  - key criteria between this tables are
    *    - it_proc_account-preq_item
    *                     -serial_no (numc 2)
    *    - guid from is_item
    *    - it_account-p_guid
    *                -accno(numc 4)
    * A) example to use current item data + item customer fields
    *  if is_proc_item-DOC_TYPE = 'ABCD' AND
    *     is_item-<field of CI_BBP_ITEM> = .
    * set own number range
    *  CV_NUMBER_RANGE = .
    ** set own number
    ** .. ==> if initial SAP Standard with no.range will be processed
    *  CV_NUMBER = .
    *  endif. " is_proc_item / is_item
    * B) example to use only proc_account no accounting customer fields
    *data:
    *     ls_proc_account   type bbp_bapipogna.
    *  loop at it_proc_account
    *            into ls_proc_account.
    *    if ls_proc_account-BUS_AREA = '9988'.
    ** set own number range
    *  CV_NUMBER_RANGE = .
    ** set own number
    ** .. ==> if initial SAP Standard with no.range will be processed
    *  CV_NUMBER = .
    *     endif. " ls_proc_account
    *  endloop.
    * C) example to use only accounting customer fields, no other accounting
    *data:
    *     ls_account        type bbp_pds_acc.
    *  loop at it_account
    *            into ls_account
    *            where p_guid = is_item-guid.
    *    if ls_account-<field of CI_BBP_ACC> = .
    ** set own number range
    *  CV_NUMBER_RANGE = .
    ** set own number
    ** .. ==> if initial SAP Standard with no.range will be processed
    *  CV_NUMBER = .
    *   endif. " ls_account
    *  endloop.
    * D) example to use proc_account + customer fields for accounting
    *data:
    *     lv_serial_no      type bbp_bapipogna-serial_no,  " sequence num 2
    *     lv_acc_no         type bbp_pds_acc-acc_no,       " sequence num 4
    *     ls_proc_account   type bbp_bapipogna,
    *     ls_account        type bbp_pds_acc.
    *  loop at it_proc_account
    *            into ls_proc_account.
    *    move ls_proc_account-serial_no to lv_acc_no.
    *    read table it_account
    *         into ls_account
    *         with key p_guid = is_item-guid
    *                  acc_no = lv_acc_no.
    *    if sy-subrc = 0.
    **     if ls_account-<field of CI_BBP_ACC> = .
    ** set own number range
    **  CV_NUMBER_RANGE = .
    ** set own number
    ** .. ==> if initial SAP Standard with no.range will be processed
    **  CV_NUMBER = .
    **      endif. " ls_account
    *    endif. " sy-subrc
    *  endloop.
    endmethod.
    method IF_EX_BBP_SC_TRANSFER_BE~GROUP_RQ .
    * 1. current item data are in structures
    *    - IT_ITEM all shopping cart item data including Customer Fields
    *    - IT_PROC_ITEM backend relevant item data of current log.system
    *    key criteria between this tables are:
    *    - IT_ITEM-NUMBER_INT (numc 10)
    *    - IT_PROC_ITEM       (numc  5)
    * 2. accounting data in tables
    *    - IT_ACCOUNT all shopping cart account. data incl. Customer Fields
    *    - IT_PROC_ACCOUNT backend relevant accounting data for current item
    *  - key criteria between this tables are
    *    - it_proc_account-preq_item (numc 5)
    *                     -serial_no (numc 2)
    *    - is_item-guid
    *             -number_int (numc 10)
    *    - it_account-p_guid
    *                -accno(numc 4)
    constants:
          lc_on(1)               VALUE 'X'.
    * A) example to use only proc_item with NO customer fields
    *         group requisitions by backend document type
    *data: lv_doc_type            TYPE esart,
    *      ls_proc_item           type BBPS_PROCUREMENT,
    *      lv_group_counter       type numc5.
    *    clear lv_group_counter.
    *    clear lv_doc_type.
    *    SORT ct_proc_item BY obj_to_gen doc_type.
    *    LOOP AT ct_proc_item
    *            into ls_proc_item
    *            WHERE obj_to_gen EQ iv_object_to_generate.
    ** new group criteria?
    *      if lv_doc_type ne ls_proc_item-doc_type.     " backend doc.type
    *        lv_group_counter = lv_group_counter + 1.   " increase counter
    *        lv_doc_type      = ls_proc_item-doc_type.       " save criteria
    *      endif.
    *      ls_proc_item-group_1 = lv_group_counter.
    *      modify ct_proc_item from ls_proc_item
    *             transporting group_1.
    *    ENDLOOP.
    * B) example to use item customer fields
    * data:
    *      ls_proc_item           type BBPS_PROCUREMENT,
    *      lv_cust_field          type <field of ci_bbp_item>.
    *      lv_number_int          type BBP_ITEM_NO,
    *      ls_item                type BBP_PDS_TRANSFER_ITEM.
    *    clear lv_group_counter.
    *    clear lv_cust_field .
    *    SORT ct_proc_item BY obj_to_gen.
    *    LOOP AT ct_proc_item
    *            into ls_proc_item
    *            WHERE obj_to_gen EQ iv_object_to_generate.
    ** get item data which includes customer fields
    *      move ls_proc_item-preq_item to lv_number_int. " convert
    *      read table it_item
    *           into ls_item
    *           with key number_int = lv_number_int.
    *      if sy-subrc = 0.
    **       new group criteria?
    *        if lv_cust_field ne 'XYZ'.
    *         lv_group_counter = lv_group_counter + 1.   " increase counter
    *         lv_cust_field = ls_item-<field of ci_bbp_item>."save criteria
    *        endif. " lv_cust_field
    *        ls_proc_item-group_1 = lv_group_counter.
    *        modify ct_proc_item from ls_proc_item
    *               transporting group_1.
    *      endif.  " sy-subrc
    *    ENDLOOP.
    * C) example to use accounting data with customer fields
    *            group requisitions by backend document type
    *data: lv_doc_type            TYPE esart,
    *      ls_proc_item           type BBPS_PROCUREMENT,
    *      lt_account             type BBPT_PD_ACC,
    *      ls_account             type bbp_pds_acc,
    *      ls_item                type BBP_PDS_TRANSFER_ITEM,
    *      lv_number_int          type BBP_ITEM_NO,
    *      lv_account_flag        type c,
    *      lv_group_counter       type numc5.
    *    clear lv_group_counter.
    *    clear lv_doc_type.
    *    SORT ct_proc_item BY obj_to_gen doc_type.
    *    lt_account[] = it_account[].
    *    SORT lt_account BY p_guid acc_no.
    *    LOOP AT ct_proc_item
    *            into ls_proc_item
    *            WHERE obj_to_gen EQ iv_object_to_generate.
    ** get accounting customer fields for this item
    *    clear lv_account_flag.
    ** ..first get item guid
    *    move ls_proc_item-preq_item to lv_number_int.
    *    read table it_item
    *         into ls_item
    *         with key number_int = lv_number_int.
    *    if sy-subrc = 0.
    *      loop at lt_account
    *           into ls_account
    *           where p_guid = ls_item-guid.
    *        if ls_account-<field of CI_BBP_ACC> = .
    *           lv_account_flag = lc_on.
    *        endif.
    *      endloop.
    *    endif. " sy-subrc it_item
    ** new group criteria?
    *      if lv_doc_type ne ls_proc_item-doc_type OR     " backend doc.type
    *         lv_account_flag = lc_on.                    " accounting
    *        lv_group_counter = lv_group_counter + 1.   " increase counter
    *        lv_doc_type      = ls_proc_item-doc_type.       " save criteria
    *      endif.
    *      ls_proc_item-group_1 = lv_group_counter.
    *      modify ct_proc_item from ls_proc_item
    *             transporting group_1.
    *    ENDLOOP.
    * !!!! set flag that BADI was processed
    * .. ==> no SAP Standard grouping will be processed
        cv_method_active = lc_on.
    endmethod.
    Hope this will help.
    Please reward suitable points, incase it suits your requirements.
    Regards
    - Atul

  • 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

  • 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.

  • Number range "PO" does not exists *****Classic

    Hi Friends,
    We are in SRM 5.5 and classic mode is on and we require backend PO to be created. We have replicated all data from backend and trying to create a PO (ECDP Direct Material) and when we click the create button in 'Process Pur Order' it does not allow to create a PO and gives error "No range PO does not exist". The same error is thrown while we convert an accepted Bid into a PO from Bidding engine. We have made the following settings.
    Classic mode is on.
    internal No Range "PO" created in SRM under shopping cart and follow on document.
    Defined trnsc type ECDP and assigned this no range PO to it. It is Active.
    Defined External no range "PO" in ECC B/E client with matching range. (Marked external)
    Defined Doc Type ECDP in ECC and assigned this no range to it.
    In SRM under "Define Number Ranges per Backend System for Follow-on Documents" Maintained Log Sys as ECC Backend client and "PO" in PO number range.
    Also all relavent attributes are maintained including BSA.
    Is there any sttings which are missing how can we locate the problem. Any help in this would be highly appreciated.
    Also post this are there any special tips for PO Creation and transfer from Bidding Engine in Classic Mode? where can I find the links?
    Answers will be surely rewarded. Thanks
    Hussain

    Hi Guys,
    appologies to reply late. Actually the resolution is taken from the SDN itself with little changes.
    What we resolved is to fool the system by passing an ACC with a dummy cost centre.
    use ECC BADI u2018BBP_BADI_EXTREQ_OUTu2019 to assign a standard ACC but with a dummy cost centre.
    the SRM process for direct material is hardcoded hence this converts the direct procurement into indirect. The SRM SHC will contain the cost assignment tab.
    Now when you process this document and generate a PO the document type should be ECPO and then it will pick up the number range defined under "Shopping Cart and follow-on documents".
    **For a Direct Material system is hardcoded to look for a local number range irrespective of your scenario.
    Now while creating a PO from SRM use BADI BBP_CREATE_BE_PO_NEW  to check if the dummy cost centre exists then remove the CC and the ACC before creating the backend PO. The ECC PO will be that of direct material type.
    Thanks
    Hussain

Maybe you are looking for

  • Partner Application Definition

    I want to register a partner application to portal. (Oracle Exchange) I registered it as partner application and registered the web provider also. But clicking the link still dismisses me to the login page on the partner application side. What am I m

  • Bmp image in ALV report

    Hi,           I upload two bmp images in se78. I maintained the image name  in zreport. Using select qry i fetch the name and i want to diaplay those images  one of the column in my alv report. Need Source Code for this. plz assist , Thanks. Edited b

  • Cannot send large pictures mms/iMessage for 1 week now

    For over a week now I had problems sending pictures, I had my iPhone for about 3 months (iPhone 4s) and it worked fine before. After doing some testing of my own I came to the conclusion that large pictures, for example taken with the iPhone camera,

  • Can iPad mini connect to tv

    Can iPad mini connect to tv

  • Local mode update in bdc -Call transaction method

    what is LOCAL MODE UPDATE in BDC- Call transaction methods ?