on 05-06-2008 10:38 AM
Hi experts,
we have linked documents to our material master data. The document has attached original with a small preview picture of the material.
Now I want to print a list of material master data with the picture via smartforms. How can I do that?
I already saw some FMs (selekted wich original) which loads a original, but how is it possible to receive the picture information?
best regards
Steffen Fröhlich
Timestamp: 20080807 - closing this thread --> reference thread in ABAP Dev forum:
Edited by: Steffen Fröhlich on Aug 7, 2008 10:07 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
well, maybe now I've got a solution for this problem, but I currently just used this to get the binary data for an original and display this file in a Web Dynpro (for ABAP) program:
Use FM: BAPI_DOCUMENT_GETDETAIL2 to get the table "documentfiles". In documentfiles you'll find the object id for the requested file in column "file_id". Use the file_id and fill the importing parameter "doc_id" in FM SCMS_DOC_READ. In table "content_bin" this FM will return you the binary code.
There is also an FM called SCMS_BINARY_TO_XSTRING to transform the binary code into an xstring variable.
regards
Steffen Froehlich
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.