‎2006 Jun 21 9:54 PM
I am trying to update the ECN number of a document with BAPI : BAPI_DOCUMENT_CHANGE2. I have few queries :
1)If through a tcode say for this eg CV02 (change document ) we cannot change the ECN ( as it comes as a disabled field ) , then does the BAPI Bypass that setting and can update the table directly ?? Am i going towards the right solution ?
2) When i fill in the structure and call the bapi and do a commit work / bapi_transaction_commit , and see whats in the BAPIRET2 : it gives : 'W' The user record is not present in the user master . And , then when i go and see the record in the Table (DRAW) , it is not changed ?
Can anyone analyse this and let me know any feasible solution ?
‎2007 Jul 18 8:23 AM
Hi,
1. The ECN field should be available for modification in CV02 then u can try out.
2. The user which has created the document which ur changing through BAPI
must be deleted from the SAP R/3 User data Base, Check the user of the document. search in su01 enter the name of the user and click display button. if u find the user then there is no problem but if the user does not exits then it will through an Warning message as per your query.