Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

PS:BAPI question for BAPI_NETWORK_MAINTAIN.

Former Member
0 Kudos

When i use the BAPI-BAPI_NETWORK_MAINTAIN to create network like CN21.There are 2 parameter like BAPI_NETWORK-START_DATE and BAPI_NETWORK-FINISH_DATE.Even i fill vaule to they but they still "Dates copied from project definition GCXXXXXXXXXX".

How can i make they become what i want ? Do not copy from project definition ?Thanks!

3 REPLIES 3

NTeunckens
Active Contributor
0 Kudos

Hello

Although not mentioned for this specific BAPI, SAP-KBA's on other PS-BAPI's mention this Message (CN 731) and how the input dates are not used, rather the Project-based dates :


Check these, (have you implemented these KBA's yet?) as the codechanges might also touch the Network-BAPI? If not, you could raise this as an issue with SAP Support?

0 Kudos

thanks your help!i have read the note,but it can not solve my problem。It shows that "If only one date is entered for project definition (either start or finish), the dates entered with the network are used while creating the network",but now ,there are both STAR_DATA and FINISH_DATA in WBS,so it will still copy data from wbs.

0 Kudos

OK, could you please verify SAP-KBA 666476 for BAPI "BAPI_PROJECT_MAINTAIN" for a suggested approach ...

Extract :

"Symptom
While creating project definition and network using BAPI_PROJECT_MAINTAIN, the start and finish dates entered for the network are ignored. Instead the dates are copied from the project definition.

Reason and Prerequisites
While creating project definition and network using BAPI_PROJECT_MAINTAIN, the start and finish dates entered for the network are ignored. Instead the dates are copied from the project definition. Information message CN 731 'Dates copied from project definition ' is displayed. This happens only if both start and finish dates are entered for the project definition. If only one date is entered for project definition (either start or finish), the dates entered with the network are used while creating the network. This behaviour is caused by program error."

The above sound suspiciously like your issue, be it for another PS-BAPI ...

So you should tinker around with your BAPI and Project-input to see if this matches the above description? If so, you should implement a bunch of SAP-KBA's because this is a very old symptom that will probably fix your BAPI-execution ...

If not, why not raise a Ticket to SAP Support by now? => There's evidence enough that the SAP-PS-BAPI's have some Date-related issues ... So, state your case to SAP Support and they will help. You can easily simulate the system behaviour I suppose, so the Support Team can verify this also.


Kind regards

Nic T.