on 04-23-2014 6:35 AM
Hi,
i created a document and linked it to the materialmaster. (CV01N, MM02).
While creating a new sales order for the material i want that
sap creates a link between the document which is attached to the materialmaster
and the salesorder im creating.
Is this possible?
how? with customizing?
if not, does somebody has an idea how to solve this via userexits?
We need our product informations of the DVS in our order confirmation
and further in the deliverynote, attached as pdf.
help apprechiated!
thanks, regards.
Hi santosh,
thats what im doing:
ls_draw2-documenttype = 'Z01'.
ls_draw2-documentnumber = 'SZ7066'.
ls_draw2-documentversion = '01'.
ls_draw2-documentpart = '000'.
ls_draw2-description = 'Test'.
ls_drad-objecttype = 'VBAP'.
ls_drad-objectkey = '0000114312000020'.
APPEND ls_drad TO lt_drad.
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING
documentdata = ls_draw2
* HOSTNAME =
* DOCBOMCHANGENUMBER =
* DOCBOMVALIDFROM =
* DOCBOMREVISIONLEVEL =
* CAD_MODE = ' '
* PF_FTP_DEST = ' '
* PF_HTTP_DEST = ' '
IMPORTING
* DOCUMENTTYPE =
* DOCUMENTNUMBER =
* DOCUMENTPART =
* DOCUMENTVERSION =
return = ls_return
TABLES
* CHARACTERISTICVALUES =
* CLASSALLOCATIONS =
* DOCUMENTDESCRIPTIONS =
objectlinks = lt_drad
* DOCUMENTSTRUCTURE =
* DOCUMENTFILES =
* LONGTEXTS =
* COMPONENTS =
.
Unfortunately i get an entry in drad and draw with version 02.
documentdata is mandatory.
any ideas?
thx
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi santosh!
Perfect -its working,.... but:
can you advice me how to fill the parameters - only to create the object link?
unfortunately i created a new document version (at least its linked... )
-> i need only the link...
thanks in advance!
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
as already described i can attach documents (DMS) to the salesorder manually.
i need to attach the document automatically to the salesorder - via the materialnumber.
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please note that, to attach the document and to see/populate the same during order creation, we need to have DMS (Document management system) at place .Please get in touch with basis team and ask them to configure the DMS and later, once we attach the document to either any of the masters or transaction, the same can be verified/viewed at transaction.
Thanks,
Pasapula.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
10 | |
9 | |
6 | |
3 | |
3 | |
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.