635 BAPI_SAG_CHANGE
‘This FM Is used to change the details of the
scheduling agicement. A scheduling agree
ment is similar to a contract, which contains
the quantity of the article to be ordered from
the vendor and the price. A schedule agree
‘ment Item Is entered for each arice you want
to procure, Authorization objects M_RAHM.
BSA (document type in outline agreement,
‘M_RAHM_EKG (purchasing group in outline
agreement), M_RAHM_EKO (purchasing. of
ganization in outline agreemend, and M_
RAHM_EKG (plant in outline agreement) for
activity 02 are checked,
‘Example: You want to purchase an item fom
a vendor, and you've created the schedule
agreement, Now, you want to change some
detail of the Ktems of the scheduling agree
rment, First you need to get the details of the
schedule agreement via FM BAPLSAG_GET
DETAIL (FM 637). Then pass the schedule
agreement details and other details you want
to change in this FM to change a schedule
agreement
[4] Import
PURCHASINGDOCUMENT
Purchasing document number. Type:
BAPIMEOUTHEADER-NUMBER.
HEADER
Header data of the outline schedule agree
ment. Type: BAPIMEOUTHEADER,
HEADERK
Header data change parameter ofthe outline
agreement. Type: BAPIMEOUTHEADERX.
BAPL_SAG.CHANGE | 635
VENDOR ADDRESS
Vendor address that differs from the master
record. Type: BAPIMEOUTADDRVENDOR.
HEAD_EXPORT_IMPORT
‘The parameter contains the data fields for
foreign trade processing at the header level
‘of the scheduling agreement instance. Type:
BAPLMEOUTEIKP..
HEAD EXPORT IMPORTX
‘The parameter contains the change parame-
ter forthe foreign trade data ofa scheduling
agreement. Type: BAPIMEOUTEIKPX.
‘TESTRUN
‘Value X defines the simulation mode, and
‘changes aren't saved to the database. Type:
BAPIFLAG-BAPIFLAG.
‘TECHNICAL DATA
Technical parameters for the outline agree
‘ment. The following fields can be populated:
> MESSAGING_AP?L: Selection of applica
tion for message output.
> NO_MESSAGING: No message determ!-
nation.
> NO_MESSAGE REQ: Without message
output.
> NO_AUTHORITY CHECK: Don't perform
authorization check,
‘Type: BAPIMEOUTTECH,
829xiv | sari
[4] Export
EXP_HEADER.
Header data of schedule outline agreement
returned. Type: BAPIMEOUTHEADER,
EXP_HEAD_EXPORT IMPORT
‘The parameter contains the foreign trade
date ofa scheduling agreement. Type:
BAPIMEOUTEIK?.
EH Tables
RETURN,
Retuen table, Type: BAPIRET2
em
tiem data for scheduling the outline agree
ment, Type: BAPIMEQUTTTEM.
iTeMx
Change parameter for item data outline
agreement. Lype: BAPIMEOUITIEMX,
ACCOUNT
‘The parameter contains the account assign:
ment data for scheduling agreement items.
‘Type: BAPLMEOUTACCOUNT.
ACCOUNTPROFITSEGMENT
‘he parameter contains the data on the basis
of which a new profitability segment (CO-
PA) is created for the account assignment.
‘Type: BAPIMEOUTPROFITSEGMENT.
ACCOUNTX
‘The parameter contains the change parame.
ter for the account assignment data for
830
scheduling agreement items. Type
BAPIMEOUTACCOUNTE.
‘SCHEDULE
‘The parameter contains the delivery sched
ule Lines of a scheduling agreement. Type:
BAPIMEOUTSCHEDULE.
‘SCHEDULEX
‘The parameter contains the change parame-
ter forthe delivery cchedule lines ofa eched
ling agreement. Type:
BAPIMEOUTSCHEDULEX.
‘5¢_cOMPONENT
‘Subcontracting components. the CHANGE
ID field can have the following instances:
> [Add new component,
> U: Change existing component.
> D:Delete existing component. In the cise
ofan
leted. The deletion of assembly compo:
nents isnt possible.
> R: The existing subcontracting compa-
nents are to be deleted, and the compo
nents belonging to the chedulelline from
the BAPL interface are to be added.
‘Type: BAPIMEOUTCOMPONENT.
sembly, the entire assembly Is de
‘SC_COMPONENTX
‘Change parameter for subcontracting com:
ponents, Type:
‘BAPIMEOUTCOMPONENTX.
SHIPPING
Shipping data scheduling agreement. In the
case of stock transfer item, the parameter
contains the shipping data information
AEKPY), which can also be changed in the
transaction. Type: BAPIMEOUTSHIPP,SHIPPINGX,
Change parameter shipping data scheduling
agreement. Type: BAPIMEOUTSHIPPX.
SHIPPING EXP
Export structure for shipping data. Type:
BAPLAMEPOSHIPPEX?.
DELIVERY ADDRESS
Delivery address in the outline agreement.
Type: BAPIMEOUTADDRDELIVERY.
ITEM_COND VALIDITY
Validity period of conditions in agreement.
Type: BAPLMEOUTVALIDITY.
ITEM. COND VALIDITYx
CChange parameter of validity petiod of con.
dition. Type: BAPLMEOUTVALIDITYX.
ITEM CONDITION
‘This parameter contains data such as the
condition amount and condition currency.
‘Type: BAFIMEOUTCONDITION,
ITEM_CONDITIONX
CChange parameter for conditions in outline
agreement. Type:
BAPIMEOUTCONDITIONX,
ITEM_COND SCALE VALUE
‘This parameter contains the value scales for
‘condition of an outline agreement iter,
‘Type: BAPIMEOUTITEMSCALEVAL.
BAPLSAG.CHANGE | 635
EM _COND_SCALE_ QUAN
‘This parameter contains the quantity scales
foracondivion ofan outline agreement tern.
“Type: BAPLMEQUTITEMSCALEQUAN.
EXPORT IMPORT
Foreign trade data: outline agreement item.
‘Type: BAPLMEQUTEIPO.
EXPORT_IMPORTX
Change parameter for foreign trade item.
‘Type: BAPLMEOUTEIPOX.
ITEM TEXT
‘The parameter contains the long texts for a
scheduling agreement itera. Type:
BAPIMEOUTITEMTERT,
HEADER TEXT
This parameter contains the long texts of the
scheduling agreement header. Type
BAPIMEQUTTEXT.
HEAD_COND_VALIDITY
‘This parameter contains the validity periods
for conditions for the document header.
‘Type: BAPLMEOUTHEADVALIDITY,
HEAD_COND_VALIDITYX
‘Change parameter for header condition va-
lidity outine agreement. Type:
BAPIMEOUTHEADVALIDITYX,
HEAD_CONDITION,
‘This parameter contains data such as condi-
tion amount and condition currency for the
header. Type: BAPIMEOUTHEADERCOND.
831xiv | vari
HEAD_CONDITIONK
‘Change parameter header conditions outline
agreement. Type:
BAPIMEOUTHEADERCONDX,
HEAD_COND_SCALE VAL
‘This parameter contains the value scales for
aheader condition. Type:
BAPIMEOUTSCALEVALUE
HEAD_COND SCALE QUAN
‘This parameter contains the quantity scales
for a header condition, Type:
BAPIMLOUISCALE,
PARTNER
“The parameter contains the partner data for
ascheduling agreement. You can specify the
partners at the following levels:
> Purchasing organization
636 BAPI_SAG_CREATE
‘This FM is sed to create a scheduling agree-
iment. Scheduling agreements are similar 10
contracts, which contain the quantity of the
ticle that isto be ordered from the vendor
and the price. A schedule agreement iter Is
entered for each article you want to procure
Authorization objects 1M RAHM BSA. (ocu-
ment type in outline agreement), M_RAHML,
EKG (purchasing group in outline agreement,
‘M.RAHM_EKO (purchasing organization in
832
» Purchasing organization and plant
» Purchasing organization, plant, and ven-
dor subrange
“Type: BAPIMEOUTPARTNER.
PARTNERX.
Change parameter for partner outline agree:
‘ment. Type: BAPIMEOUTPARTNERX,
EXTENSIONIN
‘With the parameters EXTENSIONIN and
EXTENSIONOUT, i's possible o enhance
the interface of a BAPI without modification
to achieve the automatic processing of cus-
tomer specific data. Type: BAPIPAREX.
EXTENSIONOUT
‘With the parameters EXTENSIONIN and.
EXTENSIONOUT, It's possible to enhance
‘the interface ofa BAPI without modification
to achieve the automatic processing of cu:
tomer specific data. Type: BAPIPAREX.
outline agreement), and M_RAHM_EKG
(plant in outline agreement for activity 02 are
checked,
Example: If you want to purchase an item
from the vendor, you can create the schedule
agreement ofthe items you want to procure
‘meludting all ofthe details. YoU can pass the
relevant parameter inthis FM and cll this FM,
to create a schedule agreement.[4] import
HEADER
Header data of the outline schedule agree
‘ment. Type: BAPIMEOUTHEADER.
HEADERX
Header data change parameter ofthe outline
agreement. Type: BAPIMEOUTHEADERX.
VENDOR ADDRESS
Vendor address that difers from the master
record, Type: BAPIMEOUTADDRVENDOR.
HEAD_EXPORT IMPORT
‘The parameter contains the data fields for
foreign trade processing at the header level
of the scheduling agreement instance. Type
BAPIMEOUTEIKP.
HEAD_EXPORT IMPORTX
‘The parameter contains the change parame-
ter for the foreign trade data ofa scheduling
agreement. Type: BAPIMEOUTEIKPX.
TESTRUN
Value X defines the simulation mode, and
changes aren’t saved to database. Type:
BAPIFLAG-BAPIFLAG,
TECHNICAL DATA
‘Technical parameters for outline agreement.
‘The following fields can be populated:
> MESSAGING APPL: Selection of applica
tion for message output.
> NO_MESSAGIN
nation,
> NO_MESSAGE REQ: Without message
output.
10 message determi
BaP sac create | 636
> NO_AITHORITY_CHECK: Nan’ peste
authorization check.
‘Type: BAPIMEOUTTECH,
[+] Export
PURCHASINGDOCUMENT
Purchasing document number. Type:
‘BAPIMEOUTHEADER-NUMBER.
EXP_HEADER
Header data of schedule outine agreement
returned, Type: BAPIMEOUTHEADER.
& Tables
RETURN
Return able. Type: BAPIRET2.
em.
Item data for scheduling outline agreement
“Type: BAPIMEOUTITEM,
ITEM
‘Change parameter for item data outline
agreement. Type: BAPIMEOUTITEMX.
‘ACCOUNT
‘The parameter contains the account assign-
ment data for scheduling agreement items,
‘Type: BAPLMEOUTACCOUNT.
ACCOUNTPROFITSEGMENT
‘The parameter contains the data on the basis
‘of which « new profitability segment (CO.
PA) created for the account assignment,
‘Type: BAPIMEOUTPROFITSEGMENT.
833wart
‘ACCOUNT
‘The parameter contains the change parame:
ter for the account assignment data for
scheduling agreement items. Type
BAPIMEOUTACCOUNTX.
SCHEDULE
‘The parameter contains the delivery sched-
ule lines of a scheduling agreement. Type:
BAPIMEOUTSCHEDULE.
SCHEDULEX
The parameter contains the change parame
ter forthe delivery schedule lines ofa sched:
uling agreement. Type:
BAPIMEOUTSCHEDULEX
‘SC_COMPONENT
Subcontracting components. the CHANGE
ID field can have the following instances:
» [:Add new component.
> U: Change existing component.
» D:Delete existing component. In the case
of am assembly, the entire assembly 1s de-
leted, The deletion of assembly compo
‘ents isn’t possible
> Ri The existing subcontracting compo-
nents are tobe deleted, and the compo-
nents belonging tothe schedule ine from
the BAPI interface are to he added.
‘Type: BAPIMEOUTCOMPONENT.
‘SC_COMPONENTX
change parameter for subcontracting com
ponents. Type:
BAPIMEOUTCOMPONENTX,
834,
SHIPPING
Shipping data scheduling agreement. In the
case of stock transfer item, the parameter
contains the shipping data information
AEKPY), which can also be changed in the
tuansaction. Type: BAPIMEOUTSHIPP,
SHIPPINGX
Change parameter shipping data scheduling
agreement. Type: BAPIMEOUTSHIPPX,
SHIPPING EXP
Export structure for shipping data. Ty
BAPIMEFUSHIPF EXE.
DELIVERY ADDRESS
Delivery address in the outline agreement.
‘Type: BAPIMEOUTADDRDELIVERY,
ITEM_COND VALIDITY
Validity period of conditions in agreement.
‘Type: BAPIMEOUTVALIDITY.
ITEM_COND_VALIDITYX
‘Change parameter of validity period of con-
dition. Type: BAPMEOUTVALIDITYX.
ITEM_CONDITION
‘This parameter contains data such as the
condition amount and condition currency.
‘Type: BAPIMEOUTCONDITION.
ITem_connimionx
‘Change parameter for conditions in the out
line agreement. Type:
BAPIMEOUTCONDITIONX.ITEM_COND_SCALE_ VALUE
‘This parameter contains the value scales for
2 condition of an outline agreement item,
“Type: BAPIMEOUTITEMSCALEVAL.
ITEM_COND SCALE QUAN
‘ins parameter contains the quantity scales
fora condition of an outline agreement item.
Type: BAPIMEOUTITEMSCALEQUAN.
EXPORT_IMPORT
Foreign trade data: oudline agreement item,
‘Type: BAPIMEOUTEIPO,
EXPORT IMMPORTX
CChange parameter for foreign trade item.
‘Type: BAPIMEOUTEIPOX,
ITEM TEXT
‘The parameter contains the long texts for a
scheduling agreement item. Type:
BAPIMEOUTITEMTEXT.
HEADER TEXT
‘This parameter contains the ong texts of the
Scheduling agreement header. Type:
BAPIMEOUTTEXT,
HEAD_COND_ VALIDITY
‘This parameter contains the validity periods
for conditions for the document header.
‘Type: BAPIMEOUTHEADVALIDITY.
HEAD_COND_VALIDITYX
Change parameter for header condition va-
lidity outline agreement. Type
BAPIMEOUTHEADVALIDITYX.
BAPL_SAG.CREATE | 636
HEAD_CONDITION
‘This parameter contains data such as condi
tion amount and condition currency for the
Iheules. Type: BAPIMEOUTHEADERCOND.
HEAD_CONDITIONX
Change parameter header conditions outline
agreement. Type:
BAPLMEOUTHEADERCONDX,
HEAD_COND_SCALE_VAL
‘This parameter contains the value scales for
‘a header condition. Type:
BAPIMEQUTSCALEVALUE.
HEAD_COND_SCALE_QUAN
‘This parameter contains the quantity scales
for a header condition. Type:
BAPLMEQUTSCALE.
PARTNER
‘The parameter contain the parner data for
scheduling agreement, You can specify the
partners a the following levels:
> Purchasing organization
» Purchasing organization and plant
> Purchasing organization, plant, and ven
dor subrange.
‘Type: BAPIMEOUTPARTNER
PARTNERX
‘Change parameter for partner outline agree-
‘ment. Type: BAPIMEOUTPARTNERX.
EXTENSIONIN
‘With the parameters EXTENSIONIN and.
EXTENSIONOUT, it's possible to enhance
the interface ofa BAPI without modification
835xiv | vari
to achieve the automatic processing of cus
tomer-specific data. Type: BAPIPAREX.
EXTENSIONOUT
‘With the parameters EXTENSIONIN and.
EXTENSIONOUT, it's possible to enhance
the Interface of a BAPI without modification
to achieve the automatic processing of cus-
tomer specific data. Type: BAPIPAREX.
637 BAPI_SAG_GETDETAIL
‘This FM is used to view the scheduling agree-
ment details. Authorization objects M_
RAHM_BSA (document type in outline agree-
ment), M_RAHM_EKG (purchasing group in
outline agreement), M_RAHM_EKO (purchas:
ing organization in outline agreement), and
M.RAHM_EKG (plant in outline agreement)
for activity 02 are checked,
Example: You've created a scheduling agree-
‘ment fr the items you want to order fom the
vendor. You want to view the scheduling
agreement and its details such as agreement
‘number, company code, agreement type, dis
count if agreed on, and s0 on. See FM BAL
SAG_CHANGE (FM 635),
[4] Import
PURCHASINGDOCUMENT
Purchasing document number. Type:
BAPIMEOUTHEADER-NUMBER.
ITEM DATA
‘tem data that you want to read. Type:
BAPIFLAG-BAPIFLAG.
836
ACCOUNT DATA
‘Account assignment data. Possible values:
> X:The account assignment data forall
items is read out.
he account assignment data
isn’t read.
‘Type: BAPIFLAG-BAPIFLAG.
'SCHEDULE_DATA
Schedule line data, Possible vahues:
> X:The scheduling data for allitemsis read
out.
> (Giaee): The scheduling data isn't passed
(on tothe invoker.
“Type: BAPIFLAG-BAPIFLAG.
SHIPPING DATA
Shipping data, Possible values:
> X: The shipping data forall tems is read
out
Ss ‘The shipping data isn't passed on
to the invoker.
‘Type: BAPIFLAG-BAPIFLAG,