on 01-10-2008 10:15 AM
hi...
wht is the BAPI to get active version of dir??
BAPI_DOCUMENT_GETACTVERSION
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sample program
************************************************************
***Data declaration
************************************************************
DATA:
lf_documenttype LIKE bapi_doc_aux-doctype,
lf_documentnumber LIKE bapi_doc_aux-docnumber,
lf_documentpart LIKE bapi_doc_aux-docpart,
lf_documentversion LIKE bapi_doc_aux-docversion,
lf_date LIKE sy-datum,
lf_releaseonly LIKE bapi_doc_aux-flag,
ls_return LIKE bapiret2,
lf_actualversion LIKE bapi_doc_aux-docversion.
************************************************************
*****Value assignments
************************************************************
lf_documenttype = 'DRW'.
lf_documentnumber = 'DOCUMENTNUMBER'.
lf_documentpart = '000'.
lf_documentversion = '00'.
lf_releaseonly = ''.
lf_date = sy-datum.
*********************************************************
******Call of the BAPI
************************************************************
CALL FUNCTION 'BAPI_DOCUMENT_GETACTVERSION'
EXPORTING:
documenttype = lf_documenttype
documentnumber = lf_documentnumber
documentpart = lf_documentpart
documentversion = lf_documentversion
date = lf_date
releaseonly = lf_releaseonly
IMPORTING:
return = ls_return
actualversion = lf_actualversion .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.