Ansicht
Dokumentation

BAPI_EXPENDITUREPROGTREE_CHG - Change Program Sub-Tree

BAPI_EXPENDITUREPROGTREE_CHG - Change Program Sub-Tree

BAL_S_LOG - Application Log: Log header data   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

Function

Using this method, you can change the master data of program positions of the sub-tree entered. It is not possible to change the hierarchy of the sub-tree itself.

The system only considers those fields that have different entries. That is, you only have to enter the field to be changed in the table records of the sub-tree position, while the other fields remain empty.

Before making the change to the program positions, the system automatically checks the consistency of the data in the local and external systems. If there are no errors, the changes are made. The system changes either all positions or no positions.

Set the TEST_RUN indicator to have the system check if changing the data is possible without errors. You receive a list showing any errors. In this way, you avoid the situation in which multiple errors cause the change of data to be interruped each time. The change itself is not made when this indicator is set.

Notes

You specify the subtree by entering these parameters:

The transfer of the data to be changed takes place using the PROGPOS_OLD and PROGPOS_NEW tables. PROGPOS_OLD contains the unchanged data, as it was in the external system before the change. Table PROGPOS_NEW contains the changed data.

During the consistency check, the unchanged data of the fields to be changed contained in the PROGPOS_OLD table is compared with the data in the local system. The change is allowed only if the data is the same.

The PROGPOS_OLD and PROGPOS_NEW tables only need to contain the program positions that are to be changed. It is not necessary to transfer the complete sub-tree with all of its positions. The sequence of the positions to be changed within the tables does not matter, but the positions have to belong to the sub-tree entered.





Parameters

APPROVALYEAR
LANGUAGE
LANGUAGE_ISO
POSITION
PROGPOS_NEW
PROGPOS_OLD
PROGRAM
RETURN
TEST_RUN

Exceptions

Function Group

1158

TXBHW - Original Tax Base Amount in Local Currency   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 3465 Date: 20240523 Time: 084932     sap01-206 ( 58 ms )