Sie sind auf Seite 1von 5

Community WIKI SAP Community

 Welcome, Guest
 Login

 Register

 Getting Started

 Store

 Skip to content
 Skip to breadcrumbs
 Skip to header menu
 Skip to action menu
 Skip to quick search

 Spaces

 Browse



Quick Search



1. Supplier Relationship Management


2. …
3. External Requirement

Transferring ECC requisition Purchase Group to


SRM
Skip to end of metadata
 Created by Former Member, last modified by Gergo Domjan on Mar 25, 2016
Go to start of metadata

Transferring ECC requisition Purchase Group to SRM


Overview
This document provides details how to transfer ECC requisition Purchase Group to SRM

Standard Behavior
In SAP, when external requirements are transferred from ECC to SRM always a new determination of the purchase
organization takes place in SRM. That means the backend purchasing group value is changed to a default value SRM
system.

Solution
To over come the above standard behavior we can use BADI BBP_PGRP_ASSIGN_BADI.

The BAdI interface provides specific methods for four SRM business documents. Based on the document we can
choose specific method of the BAdI, i.e. for shopping cart BBP_SC_PRGP_ASSIGN. BBP_PGRP_ASSIGN_BADI is
filter dependent BADI.

We have to use filter value EXTREQ_INB so that the external requirement is assigned to the purchasing group or
purchasing organization. This happens when the requirement from the backend system arrives in the SRM system
before sourcing.
To Fetch Purchase requisition details use 'META_REQUISITION_GETDETAIL'. Now update parameter CT_PD_PRGP
in BAdI with Purchasing group fetched from 'META_REQUISITION_GETDETAIL'
 srm-ebp-exr
 srm-badi

1 Comment

1.
Former Member
Can you check the sample code you provided in the PDF, it does not compile

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/304d0e4f-97af-2e10-d59b-
e7e910c19106?QuickLink=index&overridelayout=true

Also, calling the FM META_REQUISITION_GETDETAIL in method was not


possible, META_REQUISITION_GETDETAIL table parameter requisition_items expects an internal table with header
and you can not declare internal tables with header in OO context.

Can you check this if possible?


data: lt_ITEM type STANDARD TABLE OF BBP_PDS_SC_ITEM_D,
lt_eban type table of BAPIEBAN,
lt_PGRP_TAB_EXT TYPE BBPT_OM_PGR_LIGHT,
lc_true(1) type C VALUE 'X'.

DATA: ls_scitem TYPE BBPS_SC_ITEM_ICU_PA_BADI .

CALL FUNCTION 'BBP_PD_SC_GETDETAIL'


EXPORTING
i_guid = is_sc_header-guid
TABLES
e_item = lt_item.

* Read item data table details of SC

READ TABLE IT_SC_ITEM INTO ls_scitem INDEX 1.


if sy-subrc = 0.
CALL FUNCTION 'META_REQUISITION_GETDETAIL'
EXPORTING
number = ls_scitem-ext_demid
LOGICAL_SYSTEM = ls_scitem-ext_dem_logsys
tables
requisition_items = lt_eban.
endif.

* Fetch details of Purchase Organization and Purchase Groups.


CALL FUNCTION 'BBP_OM_FIND_PURCH_GRPS_BEI'
EXPORTING
read_purch_org = lc_true
IMPORTING
pgrp_tab_ext = lt_PGRP_TAB_EXT " purch. groupss
EXCEPTIONS
internal_error = 1 "purch. org details
no_authority = 2
nothing_found = 3
OTHERS = 4.
o Sep 07, 2011

 Follow SCN

 Contact Us

 SAP Help Portal

 Privacy
 Terms of Use

 Legal Disclosure

 Copyright

 Cookie Preferences

Das könnte Ihnen auch gefallen