Ansicht
Dokumentation

BAPI_FORMULA_CHANGEMULTIPLE - Writing Formula Data

BAPI_FORMULA_CHANGEMULTIPLE - Writing Formula Data

General Material Data   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This method allows objects or subobjects of the formula to be changed or created. When you create these objects you specify artificial keys in order to notify the system that the subobjects are dependent on one another in a hierarchy. You do not need the artificial keys to change existing data records.

Example

Notes

  • In order to write the data (create and change it), all formula header data of all subobjects must be included in the corresponding table parameter. The artificial keys are written to auxiliary key fields. The system generates the record numbers for the records that are to be created itself. The auxiliary key fields are:
PRIMARYKEY
FLGPRIMKEY
FOREIGNKEY
FLGFRGKEY

  • Take the following possibilities into account when filling the fields:
a) New data record for existing parent record:
PRIMARYKEY = new primary key value
FLGPRIMKEY = 'X'
FOREIGNKEY = key value of parent record
FLGFRGKEY = ' '
b) New data record for new parent record
PRIMARYKEY = new primary key value
FLGPRIMKEY = 'X'
FOREIGNKEY = new foreign key value
FLGRFGKEY = 'X'

  • Each table that contains change data has a corresponding change table. For example, table INPUT_SUBX belongs to table INPUT_SUB. In change table SUBX, the field that is to be changed must be marked for each data record, and the data records are identified by the same record numbers. This means, for example, that the field COMP_TARGET_QTY of the data structure from the SUB_HEADER table is only changed if the field with the same name is marked with X in the INPUT_SUBX change table.
  • Messages are returned in the return parameter.




Parameters

APPLICATION_SCOPE
APPLICATION_SCOPEX
CHANGE_NO
CHARACTERISTICS
CHARACTERISTICSX
CHAR_CAT_ALLOC
CHAR_CAT_ALLOCX
CHAR_USAGE
CHAR_USAGEX
CHAR_VALUE
CHAR_VALUEX
COMPONENT
COMPONENTX
COMPOSITION
COMPOSITIONX
ENTITIES
FLG_ABORT_ON_ERROR
FLG_TESTRUN
HEADER
HEADERX
IDENTIFIER
IDENTIFIERX
IDENT_LONGTEXT
IDENT_LONGTEXTX
INPUT_ALT
INPUT_ALTX
INPUT_MAT
INPUT_MATX
INPUT_POS
INPUT_POSX
INPUT_STR
INPUT_STRX
INPUT_SUB
INPUT_SUBX
OUTPUT_ALT
OUTPUT_ALTX
OUTPUT_MAT
OUTPUT_MATX
OUTPUT_POS
OUTPUT_POSX
OUTPUT_STR
OUTPUT_STRX
OUTPUT_STR_TEXT
OUTPUT_STR_TEXTX
OUTPUT_SUB
OUTPUT_SUBX
RETURN
VALID_DATE

Exceptions

Function Group

FRML991

TXBHW - Original Tax Base Amount in Local Currency   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 7343 Date: 20240523 Time: 120933     sap01-206 ( 71 ms )