Application Development and Automation 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: 
Read only

BAPI : BAPI_DOCUMENT_CHANGE2 ?

Former Member
0 Likes
731

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 ?

1 REPLY 1
Read only

rahul_kamble2
Participant
0 Likes
464

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.