Hallo zusammen,
ich möchte mit dem Baustein BAPI_NETWORK_MAINTAIN einen bestehenden Netzplan ändern: ein einer Position möchte ich einen Text setzen und ein Datum (User-Felder). Mit dem folgenden Code bekomme ich dies nicht hin. SY-SUBRC = 0 und die Tabelle Z_RETURN bleibt leer.
Kann jemand helfen?
REPORT Z_NETZPLAN_WORKFLOW.
DATA: Z_NETWORK TYPE TABLE OF BAPI_NETWORK with header line.
DATA: Z_ACTIVITY TYPE TABLE OF BAPI_NETWORK_ACTIVITY with header line.
DATA: Z_ACTIVITY_UPDATE TYPE TABLE OF BAPI_NETWORK_ACTIVITY_UP with header line.
DATA: Z_METHOD_PROJECT TYPE TABLE OF BAPI_METHOD_PROJECT with header line.
DATA: Z_RETURN TYPE TABLE OF BAPIRETURN1 WITH HEADER LINE.
z_method_project-objecttype = 'NETWORKACTIVITY' .
z_method_project-method = 'UPDATE'.
z_method_project-objectkey = '000004005000'.
z_method_project-refnumber = '000001' .
APPEND z_method_project.
z_method_project-objecttype = ' ' .
z_method_project-method = 'SAVE'.
z_method_project-objectkey = '000004005000'.
z_method_project-refnumber = '000001' .
APPEND z_method_project.
z_activity-network = '000004005000'.
z_activity-activity = '0020'.
z_activity-USER_FIELD_CHAR10_1 = 'Test'.
z_activity-USER_FIELD_DATE1 = sy-datum.
APPEND z_activity.
z_activity_update-network = '000004005000'.
z_activity_update-activity = '0020'.
z_activity_update-USER_FIELD_CHAR10_1 = 'X'.
z_activity_update-USER_FIELD_DATE1 = 'X'.
APPEND z_activity_update.
z_network-network = '000004005000'.
APPEND z_network.
CALL FUNCTION 'BAPI_NETWORK_MAINTAIN'
IMPORTING
RETURN = Z_RETURN
TABLES
I_METHOD_PROJECT = Z_METHOD_PROJECT
I_NETWORK = Z_NETWORK
* I_NETWORK_UPDATE =
I_ACTIVITY = Z_ACTIVITY
I_ACTIVITY_UPDATE = Z_ACTIVITY_UPDATE
* I_RELATION =
* I_RELATION_UPDATE =
* E_MESSAGE_TABLE =
* I_ACTIVITY_ELEMENT =
* I_ACTIVITY_ELEMENT_UPDATE =
* I_ACTIVITY_MILESTONE =
* I_ACTIVITY_MILESTONE_UPDATE =
.
Mit freundlichen Grüßen
Matthias Alpmann