cancel
Showing results for 
Search instead for 
Did you mean: 

Can we create a new version with bapi_document_create2.

03-27-2012 10:13 PM
834 views 2 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Hi,

Can we create a new version with bapi_document_craete2? If it is possible please tellme where to pass parameters?

Shilpa

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

former_member585060
Active Contributor
0 Likes

Hi,

    yes you create a new version Document with BAPI 'BAPI_DOCUMENT_CREATE2' also. The BAPI has an importing parameter DOCUMENTDATA, pass the document values here.

DOCUMENTDATA-DOCUMENTTYPE     =  'SPE'.

DOCUMENTDATA-DOCUMENTNUMBER   =  ' ' "any existing document number

DOCUMENTDATA-DOCUMENTVERSION  =  'C'  "new version

DOCUMENTDATA-DOCUMENTPART     =  '000'

DOCUMENTDATA-DESCRIPTION      =  'Test DIR'.

Pass with above values into the BAPI in SE37 and test it. Call BAPI_TRANSACTION_COMMIT after the above BAPI in sequence.

Thanks & regards

Bala Krishna

Former Member
0 Likes

Thanks a lot....

Shilpa

Answers (0)