Sei sulla pagina 1di 6

/SAPAPO/OO_TS_PAREA – To get all FM related to Time series of planning area

/SAPAPO/PBMLKEY - Table which stores the Key figures in a planning book.


/SAPAPO/PBDVWLK - Assigned Key Figures on the X or Y Dimension

Check this function group /SAPAPO/MSDP_PB - It has all the planning book related functions.

/SAPAPO/TS_PAREA_VERSIO_GET - To get storage bucket profile or To get time


series for planning area

Important SAP APO Function


Modules!
These are some of the SAP APO functional modules I have
worked with. If you need any help with parameters please drop
a line.

Order
/ Get the 22 char GUID of planned
SAPAPO/DM_ORDER_GET_ORD order
ID
BAPI_MOSRVAPS_CREATESNP Create planned order. Table
ORDER parameter “mapping_data” will
return the created planed order
number.
BAPI_POSRVAPS_SAVEMULTI3 Create orders
/ Get planned order details
SAPAPO/OM_ORDER_GET_DAT
A
/ Create fix pegging for purchase
SAPAPO/CTM_LC_FIXPEG_CHA order and planed order
NGE

Resource
OWN_LOGICAL_SYSTEM_GE Get current logical system
T
BAPI_RSSRVAPS_GETLIST Get resource header
/ Read Resource
SAPAPO/CRES_RESOURCE_
READ
/ Save resource set for update
SAPAPO/CRES_SAVE_FROM
_BT
/ Set resource for edit. Pass 'EDITQUAN'
SAPAPO/CRES_OBJECT_UPD to “iv_object_type” to edit quantity.
ATE

Planning Object Related


/ Get grouping conditions for
SAPAPO/TS_PSTRU_SINGLE_GE planning object
T
/ Get structure of CVC combination
SAPAPO/TS_PSTRU_TAB_NAME of planning object
S_GET
/SAPAPO/TS_PLOB_LIST_GET Get CVC combinations
SLS_MISC_GET_LAST_DAY_OF_ Get last day of the month
MONTH
FIRST_DAY_IN_PERIOD_GET Get first day in the period
LAST_DAY_IN_PERIOD_GET Get last day of the period

Quota Management
BAPI_QTASRVAPS_SAVEMU Modify quota arrangement
LTI2
BAPI_QTASRVAPS_DELMUL Delete Quota arrangement
TI
Transport Lanes
BAPI_TRLSRVAPS_SAVEMU Save transport lanes
LTI
BAPI_TRLSRVAPS_GETLIST Get transport lane detail

BAPI_POSRVAPS_SAVEMULTI3 Delivery ATP Category BR in APO DRP


Input Parameters
Planningbook, Data_view,
Planning_Version,
Period_Type Values (as in the
Planning
BAPI_PBSRVAPS_GETDETAIL2 domain
Book data
/SAPAPO/CPDS_PERIOD_TYPE
e.g. 'B' Week 'C' Month),
Date_From and Date_To
(format e.g. ww.yyyy)
Pegging For pegging relationship across
/SAPAPO/EFPL_ORD_NET_GET
relationship the entire strucuture
EXIT_/SAPAPO/SAPMMCP6_005 User exit
Add code in ZXDMUSERU05
ZXDMUSERU05 macro
to get the data from live
cache. Pass the pegid to the
/ MRP Data export parameter 'it_pegarea'.
SAPAPO/RRP_LC_PEGID_GET_I from Live Determine pegid by using the
O Cache function module
'/SAPAPO/DM_MATERIAL_GET
_PEGID'
To get data
from LC at
matches the You will just have to specify
PEGID (= the ATP-categories that match
/
plant, the MRP elements you would
SAPAPO/OM_PEG_CAT_GET_OR
material, like to retrieve - LC doesn't
DERS
storage store the names of the MRP
location) elements
and ATP-
category
To retrieve all information of
an order from LC that
corresponds to an order id.
You just have to use the field
IS_GEN_PARAMS-SIMVERSION
= '000' and fill the table
Order IT_ORDER with your order id.
/
details from If you only want to have the
SAPAPO/OM_ORDER_GET_DATA
liveCache OUTPUT_FIXED indicator it
would be faster if you use the
FM I suggested and then only
request ET_ORDKEY as an
output table - this table
contains the OUTPUT_FIXED
indicator
/ GUID of
Need to provide Order No. and
SAPAPO/DM_ORDKEY_SELECT_ Order from
SIMID
ORDNO liveCache
EXPORTING iv_heur_id =
heur_id iv_langu = sy-langu
/ IMPORTING ev_heur_text =
Heuristic
SAPAPO/RRP_HEURISTIC_GET_ lv_heur_text EXCEPTIONS
details
DATA heur_id_not_valid = 1
package_id_not_valid = 2
OTHERS = 3.
To load a KF
BAPI_PBSRVAPS_CHANGEKEYFI
of planning
GVAL
book
To create
BAPI_STSRVAPS_SAVEMULTI2 stocks in Parameter for Version
SNP
/ quantitiy, GUID and Pegging
Sales Order
SAPAPO/RRP_LC_PEGID_GET_I Area id but the sales order
Fetch in APO
O number
RRP_USEX_COLS_GET_TEXT_
Additional 01 method
Columns in APPEND 'column1' to
BAPI /SAPAPO/RRP_IO_COL
Product CT_COLS_TEXT.
View APPEND 'Column2' to
CT_COLS_TEXT
/SAPAPO/TS_DM_LOCK User Pass Values for GUI Id of
Change/Dis Planning Area, Data Selection,
play Mode in Group By parameter
Interactive
Planning
Generate
/SAPAPO/ADV_ALERT_SET
Alert
Write notes
/SAPAPO/MSDP_NOTE_WRITE
in SDP
Pass Plob ID and Selection
/SAPAPO/TS_PLOB_CREATE Creates CVC
Conditions for Characteristics
After all
char combos
/
have been
SAPAPO/TS_LCM_PLOB_DELTA_ Pass Plob ID
created call
SYNC
the sync
function.
CVC Pass Plob ID and Selection
/SAPAPO/TS_PLOB_DELETE
Deletion Conditions for Characteristics
Pass Infocube, List of
RSDRC_CUBE_DATA_GET
Read Infocube
Characteristics and key Figues

Logical System fo current logged-on


OWN_LOGICAL_SYSTEM_GET
system
Checking RFC connection to the partner
RFC_TRUSTED_CHECK
system
GUID_CONVERT To convert between 16, 22 and 32 digits
/
Quantity conversion based on Product
SAPAPO/FOT_CONVERT_QUANTIT
master
Y
Function modules related to Selection
profiles
/SAPAPO/MCPSH_SELECTION_*
(save,Change,Delete,Get,Rename,Show,D
escr)
USer Change/Display mode in Interactive
/SAPAPO/TS_DM_LOCK
Planning
/SAPAPO/TS_PLOB_CREATE Create CVCs
/SAPAPO/TS_PLOB_DELETE Delete CVCs
/SAPAPO/DPBW_CUBE_READ Infocube Data read
/
SAPAPO/DM_ACCID_GET_ORDER
S
/SAPAPO/EFPL_ORD_NET_GET For pegging relationship across entire
strucuture
/
SAPAPO/DM_MATERIAL_GET_PEG Determine PEGID for Material
ID
/SAPAPO/RRP_LC_PEGID_GET_IO Fetching MRP related data from liveCache
/
SAPAPO/OM_PEG_CAT_GET_ORD Fetch Order elements by ATP Categories
ERS
/
SAPAPO/RRP_HEURISTIC_GET_D Heuristic Related Data
ATA
/SAPAPO/RRP_LC_PEGID_GET_IO Fetch Sales Ooder from liveCache

Planned Independent
BAPI_PIRSRVAPS_GETLIST
Requirement i.e. Forecast
Procurement Order (Purchase
BAPI_POSRVAPS_GETLIST3 Requisition / Stock Transfer
Requisition)
Planned / Production Order I.e.
BAPI_MOSRVAPS_GETLIST2
Manufacturing Order
BAPI_SLSRVAPS_GETLIST2 Sales Order / Deliveries
BAPI_STSRVAPS_GETLIST2 Stocks
BAPI_LOCSRVAPS_GETLIST2 Locations
BAPI_PRDSRVAPS_GETLIST2 Products
BAPI_RSSRVAPS_GETLIST Resources
BAPI_TRLSRVAPS_GETLIST Transportation Lane
Procurement Relationship
BAPI_PROCRELATION_GETLIST2
BAPI_PPMSRVAPS_DELMULTI_PPM;
PPM Deletion
BAPI_PPMSRVAPS_DELMULTI_PLAN
BAPI_PRDSRVAPS_GETCLASSES Product Classes / classifications

Potrebbero piacerti anche