New DMS document attachment to order header - can it also be done to a task list?
With business function LOG_EAM_CI_6, you can now attach DMS documents to the order header or operation level in the 'Additional Data' tab.
Since a lot of clients use documents to list complex preventive maintenance instructions, is it also possible to attach a DMS document to a task list header (or operation) and have it show up in the new 'Additional Data' screen area of the resulting order (using a maintenance item/plan to generate the order)? Or do we still have to use the task list operation PRT functionality and have it show up in the order's operation PRT?
Hi Arthur,
I have configured Task list as per the SAP note 1821916 & activated DOC_TL_GUI. This allowed me to attach documents to the Operation &/or Header of the Task Lists. The problem I am facing is when I assign the task list to the work order the documents are not transferred . You have stated that they have transferred to the work order so I am wondering if there is something I missed.
Arthur Balajthy wrote:
And I checked that by adding documents to a task list header or operation, the work order generated from a maintenance plan/item referencing that task list does have those documents attached also.
I haven't tried from a Plan but will do that now.
I assumed if they were attached to the Task List Operation they would transfer to the Work Order like everything else on the Task List
Thanks in advance
Similar Messages
-
To attach DMS document in sales order at item level
Hi gurus,
My requirement is whenever sales order is changed, I need pull off a particular DMS document and attach it to sales order at item level in background.
This is different from GOS concept of attachement.
Please give your thoughts on this.
Regards,
ThiyaguThis functionality is not available in Standard SAP. PDF will have to be attached outside SAP system, but you can certaionly maintain a text as 'PDF attached with Sales order'
Regards,
Rajesh Banka -
DMS document attachment to Service Entry sheet
Hi All,
One requirement, need to attach DMS document with Service entry sheet (t-code ML81N), any possibilites with object linking as in standard there is no object linking (ESSR object) available.
Thank You,
Manojhi,
1. I think u could use services for objects is the best way to fulfil requirement.
note: a. If u want to use ESSR as business document. u need to go for Archive linking and store document as business
document in Services for objects.
2. If u going to use standard object linking from DMS for 'ESSR' object so for not exist.
Note:reason is not required any DMS object linking here as i guess. Coz u will be creating Entry sheet agianst Purchase
orders and vendors too.
IN PLM, u can maintain DIR in purchase order or u can maintain in vendor masters. any how u r filling WBS nor also in
basic data sheeet of ML81N.
So datacan be easily tracable due to all are interconnected each other.
3. If u want to use ESSR as object link from DMS u need go for development. but this is not required as i guess.
Benakaraj
??P -
Hi,
DMS document is attached to PO .The requirement is that the attachment should be outputted with PO to the vendor.
Also ,I am able to see the attachment in ME 22/ME 23 but unable to see in ME22N/ ME23N.
Please advice.
Regards,
PratapHello,
In standard system, It is not possible to print attachment via the message output. Please refer Question 30 of attached
note 457497.
457497 FAQ: Message processing in purchasing
"Can documents that are linked to a purchase order also be output in the message output? " And the answer is: No."
There is no posibility to print attached documents from ME9F. Printing the PO from ME9F and print the document from ME22N by
selecting the document and pressing print button. You will only be able to see the screen linked documents when an item in the po (or position) has been selected.
Regards, -
Link DMS document to Sales Order
Hello -
Currenlty, our Quality Department manually opens each applicable sales order and manually attaches a required document via the "Extras/Documents" path from within VA02 menu bar. It is extremely time consuming.
I want to know if it is possible to automatically attach a "linked document" to a sales order after it has been saved? I'd like to create/run a batch job that loops through these sales orders, and if applicable, attaches the "linked document". DMS is setup and working and the document that I need to attach is ready. I don't know where I need to put the record of this "link". I can see all of the "links" via CV03N (Object Links/Sales Document Item), but I don't know how they get there.
Any advice or link to documentation would be greatly appreciated.
Thanks,
BryanBenakaraj ES -
A few more questions with BAPI_DOCUMENT_CREATE2.
Here is the FM. Can you assist in helping me establish which parameters I need to provide?
Example:
Sales Order: 2142342 with one line item.
Document:
TYPE: ZQN (DRAW-DOKAR)
DOC: QZ6 (DRAW-DOKNR)
PART: 000 (DRAW-DOKTL)
VER: 00 (DRAW-DOKVR)
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING
documentdata = ls_doc
HOSTNAME =
DOCBOMCHANGENUMBER =
DOCBOMVALIDFROM =
DOCBOMREVISIONLEVEL =
CAD_MODE = ' '
PF_FTP_DEST = ' '
PF_HTTP_DEST = ' '
IMPORTING
documenttype = lf_doctype
documentnumber = lf_docnumber
documentpart = lf_docpart
documentversion = lf_docversion
return = ls_return
TABLES
CHARACTERISTICVALUES =
CLASSALLOCATIONS =
DOCUMENTDESCRIPTIONS =
OBJECTLINKS = lt_drad
DOCUMENTSTRUCTURE =
DOCUMENTFILES =
LONGTEXTS =
COMPONENTS =
I see that there is an objectlinks table which I assume is used to create the link between the document and VA02/VA03. The underlying structure for the objectlinks table is BAPI_DOC_DRAD. I'm not clear on what values I need to add to this table when calling the BAPI_DOCUMENT_CREATE2. FM.??
Any advice on how to fill stucture BAPI_DOC_DRAD?
Also, I don't want to create any documents. The document already exists. I just want to establish a link. Can I do that without creating a document that already exists?
Thanks,
Bryan -
DMS document attachment with Incoming Invoice
Hi All,
We are creating one DMS document and want to attach it to an Incoming Invoice (MIRO).
We are using the bapi BAPI_DOCUMENT_CREATE. What are the fields to pass in Objectlink.
Please help us to achieving it.
ThanksWe have created an Incoming Invoice already using 'BAPI_INCOMINGINVOICE_CREATE'. We are now creating a DMS document using 'BAPI_DOCUMENT_CREATE' and want it to be linked to the existing Invoice. For this we are trying to use the 'OBJECTLINKS' table.
The linked document should be visible in T-Code FBL1N. Can you please throw some light on how to do this?
Edited by: Himansu.P on Jun 14, 2011 3:06 PM -
DMS Document Attachment for Z Transactions
Dear All,
I have a Z transaction ( Module Pool ) , its getting used for some customer business process which is not mapped in sap. now my user requirement is that he wants to attach some documents ( diff types ) to that ztransaction like DMS functionality for normal business transactions.
Please help me to achieve this..
Regards
GeeWhat do you mean by DMS type document attachment to the t-code powered by a Z-program? Can you elaborate on the requirement?
What type of module pool is this? Are you trying to build a report using it? -
How to add a new output type in sales order header via ABAP program
Hi All,
I have to add new output type (ex Z001) in sales order header via an ABAP program. please let me know how to do this.
Thank you all in advance.Hi,
You can use the FM ..RV_MESSAGE_UPDATE..
Thanks
Naren -
Can We Add a Target System Once Task List is Open and Active?
Has anyone been able to add a system to an existing project (i.e., task list)? We have a pre-existing project that we created when we recently upgraded to ECC 5.0. At the time of the upgrade, we didn't upgrade one system (MNT) in the event we had to look back at how the old version operated or looked. We've since upgraded the MNT system and want to add it as a target system for the pre-existing project.
Is anyone aware of a method to add this system as a target without creating a new project?Hello Bob,
I've find your question. It's been a while since you've asked it, but did you already found a solution to adding a system to an existing maintenance project?
I've got that problem now.
And I would appreciate it if you could forward me the solution.
(you can also mail it to [email protected])
kind regards,
David De Boel -
Hi,
I am new to DMS & I have to attached scanned images of invoices through MIRO transaction to SAP object. How should I go with it?
Anyone has worked on DMS???
kindly help...Hi,
Try using this function module mentioned below:
CALL FUNCTION 'CV120_KPRO_MASTER_DATA_GET' " Checking whether the document already have any originals
" attached on it or not
EXPORTING
pf_dokar = i_data_final-doc_type "document type uploaded into an internal table from the external file
pf_doknr = i_data_final-doc_no "document number uploaded into an internal table from the external file
pf_dokvr = i_data_final-doc_ver "document version uploaded into an internal table from the external file
pf_doktl = i_data_final-doc_part "document part uploaded into an internal table from the external file
pf_active_only = ' '
pf_comp_get = ' '
TABLES
ptx_data = i_data
EXCEPTIONS
not_found = 1
error = 2
OTHERS = 3.
if i_data[] is initial.
*- Documentdata
doc_data-documenttype = i_data_final1-doc_type.
doc_data-documentnumber = i_data_final1-doc_no.
doc_data-documentversion = i_data_final1-doc_ver.
doc_data-documentpart = i_data_final1-doc_part.
doc_data-statusintern = i_data_final1-doc_stat.
doc_data-username = i_data_final1-drwng_creator.
IF NOT i_data_final1-doc_desc IS INITIAL.
doc_data-description = i_data_final1-doc_desc.
ENDIF.
APPEND doc_data.
*- ClassAllocations
doc_class_alloc-classtype = c_classtype.
doc_class_alloc-classname = c_classname.
doc_class_alloc-standardclass = 'X'.
APPEND doc_class_alloc.
Adding Primary, SUBtye and Design Project Characteristics to the DRAWING Class
CLEAR it_char_val.
it_char_val-classtype = c_classtype.
it_char_val-classname = c_classname.
it_char_val-charname = 'PRIMARYTYPE' .
it_char_val-charvalue = i_data_final1-prim_type.
APPEND it_char_val.
CLEAR it_char_val.
it_char_val-classtype = c_classtype.
it_char_val-classname = c_classname.
it_char_val-charname = 'SUBTYPE' .
it_char_val-charvalue = i_data_final1-sub_type.
APPEND it_char_val.
CLEAR it_char_val.
it_char_val-classtype = c_classtype.
it_char_val-classname = c_classname.
it_char_val-charname = 'DESIGN_PROJECT' .
it_char_val-charvalue = i_data_final1-design_proj.
APPEND it_char_val.
CLEAR it_char_val.
*Bapi called to create the document using tcode CV01N
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING
documentdata = doc_data
hostname = gv_hostname
pf_http_dest = 'SAPHTTPA'
pf_ftp_dest = 'SAPFTPA'
IMPORTING
documenttype = i_data_final1-doc_type
documentnumber = i_data_final1-doc_no
documentpart = i_data_final1-doc_part
documentversion = i_data_final1-doc_ver
return = ls_return
TABLES
characteristicvalues = it_char_val
classallocations = doc_class_alloc
endif.
Hope it helps
Regards
Mansi
Edited by: MANSI ASNANI on Oct 15, 2009 7:09 AM -
Malerial List With DMS document attached to it
Hi
Can any one have idea from where i can get Material list to which Documents are attached.Hello,
In standard system, It is not possible to print attachment via the message output. Please refer Question 30 of attached
note 457497.
457497 FAQ: Message processing in purchasing
"Can documents that are linked to a purchase order also be output in the message output? " And the answer is: No."
There is no posibility to print attached documents from ME9F. Printing the PO from ME9F and print the document from ME22N by
selecting the document and pressing print button. You will only be able to see the screen linked documents when an item in the po (or position) has been selected.
Regards, -
DMS-Document attachment in MIRO
Dear All,
Can we attach documents in MIRO and FB60 transactions.
Regards,
Venkat.Hi Venkat,
From dms point of view,you want to display (attach)the documents to perticular screen means object link needs to be given.
In standard environment there is no MIRO or MIGO transaction as onject link.You can link to Material Master(MARA).I hope this you already know.
If you want to see dms screen in MIRO or MIGO transaction,you have to go for z-deveploment which can be programe writen by abap consultant.
I hope this will resolve the query.
Regards,
Ravindra -
Can FCP Beep When Done With A Task?
I used to use this feature in Photoshop when I had to work late, in case I fell asleep at the wheel. Can FCP play a sound when it finishes rendering something? Thanks.
--AlexNot aware of any preferences or setting to do that.
AE, of course, can and does. -
Sending DMS Document as Attachment thru e-mail
Hi,
I am attaching the DMS document in purchase order & I am sending the PO thru email to vendor.But while doing so the attached document shuld be sent as attachment But in my present config setting it is not doing so.
Pl suggest
RgdsHi,
With my solution you will be able to send the PO and all link document in a mail at the same time you print it.
First Step
Create a new message with transaction NACE , this message will use support 8 ( external program) . The print program should be a copy the same as for printing your PO but add a new form entry inside.
Second step .
In the print program , create the new form entry and add the code . bellow a sample code i wrote . Some object are specific so you have to create it . If you need i can give you te detail of thoses objects.
DATA : bin_file TYPE xstring ,
bin_filesize TYPE i ,
w_objky TYPE objky,
my_sender TYPE zcl_send_mail=>ty_sender,
mail_line TYPE LINE OF soli_tab,
w_attsub TYPE so_obj_des.
DATA: l_druvo TYPE t166k-druvo,
l_nast TYPE nast,
l_from_memory,
l_doc TYPE meein_purchase_doc_print.
DATA : v_parvw2 TYPE nast-parvw,
v_parnr2 TYPE nast-parnr,
v_lifnr TYPE konv-lifnr,
v_adrnr TYPE lfa1-adrnr,
st_address TYPE addr1_sel,
st_sadr TYPE sadr.
* definition des tables internes
DATA : it_otf TYPE STANDARD TABLE OF itcoo ,
it_line TYPE STANDARD TABLE OF tline ,
it_fill TYPE STANDARD TABLE OF drad,
it_new TYPE STANDARD TABLE OF drad ,
itb_xtkomv TYPE STANDARD TABLE OF komv WITH HEADER LINE,
itb_xekpo TYPE STANDARD TABLE OF ekpo WITH HEADER LINE,
it_ekpo TYPE HASHED TABLE OF ekpo WITH UNIQUE KEY ebeln ebelp ,
it_draw TYPE HASHED TABLE OF draw WITH UNIQUE KEY dokar
doknr
dokvr
doktl ,
it_drat TYPE HASHED TABLE OF drat WITH UNIQUE KEY dokar
doknr
dokvr
doktl
langu,
my_attachement_list TYPE zcl_send_mail=>attachement_list,
my_recipient_list TYPE zcl_send_mail=>recipient_list ,
it_hexa TYPE solix_tab ,
it_body TYPE soli_tab.
CONSTANTS : c_object TYPE dokob VALUE 'EKPO' .
FIELD-SYMBOLS : <ekpo> TYPE ekpo,
<drad> TYPE drad ,
<draw> TYPE draw,
<drat> TYPE drat .
DATA : my_mail TYPE REF TO zcl_send_mail . => Specific object
** Here write your own code like you print the PO form in order to be able to retrieve it from memory
** don't send it to the printer only in spool .
* Get OTF from Memory.
CALL FUNCTION 'READ_OTF_FROM_MEMORY'
EXPORTING
memory_key = nast-objky
TABLES
otf = it_otf
EXCEPTIONS
memory_empty = 1.
CHECK sy-subrc EQ 0.
* Transform OTF into PDF
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = bin_filesize
bin_file = bin_file
TABLES
otf = it_otf
lines = it_line
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4.
* Transform PDF as Binary Table
it_hexa = cl_document_bcs=>xstring_to_solix( ip_xstring = bin_file ).
* Add PO as PDF file to the mail
zcl_send_mail=>add_attachement_to_list(
EXPORTING
type = 'PDF'
subject = 'PO'
content_hexa = it_hexa
CHANGING
attachement_list = my_attachement_list
EXCEPTIONS
no_content_for_attachement = 1
no_application_type = 2 ).
* Get PO Item because DIR are link to item only.
SELECT * FROM ekpo
APPENDING CORRESPONDING FIELDS OF TABLE it_ekpo
WHERE ebeln = nast-objky.
* Search for DIR .
FREE : it_draw , it_drat .
LOOP AT it_ekpo ASSIGNING <ekpo>.
FREE : it_fill , it_new.
CONCATENATE <ekpo>-ebeln <ekpo>-ebelp INTO w_objky.
CALL FUNCTION 'CV140_SELECT_DRAD_DOCUMENTS'
EXPORTING
pf_key = w_objky
pf_object = c_object
TABLES
pt_fill_drad = it_fill
pt_new_drad = it_new
EXCEPTIONS
no_document = 1.
* For each DIR , retrieve physical content
LOOP AT it_fill ASSIGNING <drad>.
IF <draw> IS ASSIGNED.
UNASSIGN <draw>.
ENDIF.
READ TABLE it_draw ASSIGNING <draw>
WITH TABLE KEY dokar = <drad>-dokar
doknr = <drad>-doknr
dokvr = <drad>-dokvr
doktl = <drad>-doktl.
IF NOT <draw> IS ASSIGNED.
SELECT * FROM draw
APPENDING CORRESPONDING FIELDS OF TABLE it_draw
WHERE dokar = <drad>-dokar
AND doknr = <drad>-doknr
AND dokvr = <drad>-dokvr
AND doktl = <drad>-doktl.
SELECT * FROM drat
APPENDING CORRESPONDING FIELDS OF TABLE it_drat
WHERE dokar = <drad>-dokar
AND doknr = <drad>-doknr
AND dokvr = <drad>-dokvr
AND doktl = <drad>-doktl
AND langu = sy-langu.
READ TABLE it_draw ASSIGNING <draw>
WITH TABLE KEY dokar = <drad>-dokar
doknr = <drad>-doknr
dokvr = <drad>-dokvr
doktl = <drad>-doktl.
ENDIF.
CHECK <draw> IS ASSIGNED.
READ TABLE it_drat ASSIGNING <drat>
WITH TABLE KEY dokar = <drad>-dokar
doknr = <drad>-doknr
dokvr = <drad>-dokvr
doktl = <drad>-doktl
langu = sy-langu.
IF <drat> IS ASSIGNED.
w_attsub = <drat>-dktxt.
ELSE.
CONCATENATE <drad>-dokar <drad>-doknr <drad>-dokvr <drad>-doktl
INTO w_attsub SEPARATED BY '/'.
ENDIF.
PERFORM add_fid_to_attachement USING <draw>
w_attsub
CHANGING my_attachement_list.
CHECK <drat> IS ASSIGNED.
UNASSIGN <drat>.
ENDLOOP.
LOOP AT it_new ASSIGNING <drad>.
IF <draw> IS ASSIGNED.
UNASSIGN <draw>.
ENDIF.
READ TABLE it_draw ASSIGNING <draw>
WITH TABLE KEY dokar = <drad>-dokar
doknr = <drad>-doknr
dokvr = <drad>-dokvr
doktl = <drad>-doktl.
IF NOT <draw> IS ASSIGNED.
SELECT * FROM draw
APPENDING CORRESPONDING FIELDS OF TABLE it_draw
WHERE dokar = <drad>-dokar
AND doknr = <drad>-doknr
AND dokvr = <drad>-dokvr
AND doktl = <drad>-doktl.
SELECT * FROM drat
APPENDING CORRESPONDING FIELDS OF TABLE it_drat
WHERE dokar = <drad>-dokar
AND doknr = <drad>-doknr
AND dokvr = <drad>-dokvr
AND doktl = <drad>-doktl
AND langu = sy-langu.
READ TABLE it_draw ASSIGNING <draw>
WITH TABLE KEY dokar = <drad>-dokar
doknr = <drad>-doknr
dokvr = <drad>-dokvr
doktl = <drad>-doktl.
ENDIF.
CHECK <draw> IS ASSIGNED.
READ TABLE it_drat ASSIGNING <drat>
WITH TABLE KEY dokar = <drad>-dokar
doknr = <drad>-doknr
dokvr = <drad>-dokvr
doktl = <drad>-doktl
langu = sy-langu.
IF <drat> IS ASSIGNED.
w_attsub = <drat>-dktxt.
ELSE.
CONCATENATE <drad>-dokar <drad>-doknr <drad>-dokvr <drad>-doktl
INTO w_attsub SEPARATED BY '/'.
ENDIF.
PERFORM add_fid_to_attachement USING <draw>
w_attsub
CHANGING my_attachement_list.
CHECK <drat> IS ASSIGNED.
UNASSIGN <drat>.
ENDLOOP.
ENDLOOP.
* Send mail to PO creator
* Sender
my_sender-mail = '****' . => Set the sender mail adress
* Add Recipient
zcl_send_mail=>add_recipient_to_list(
EXPORTING
uname = sy-uname
CHANGING
recipient_list = my_recipient_list
EXCEPTIONS
no_recipient_to_add = 1 ).
* Mail body
mail_line = 'PO by mail with Attachment'.
APPEND mail_line TO it_body.
* Create send request
CREATE OBJECT my_mail.
* Send Mail
my_mail->send_mail(
sender = my_sender
mail_subject = 'E-mail PO'
mail_body = it_body
recipient_list = my_recipient_list
attachement_list = my_attachement_list ).
Bellow the code for the routine ADD_FID_TO_ATTACHEMENT
DATA : w_cout TYPE dms_checkout_def,
w_dttrg TYPE dttrg, "Name of data carrier
w_docfile TYPE dms_doc_file,
w_dappl TYPE dappl, "Application
w_tabix TYPE i ,
w_tdwa TYPE tdwa ,
w_phio TYPE dms_phio,
w_frontend TYPE dms_frontend_data.
DATA : it_drao TYPE STANDARD TABLE OF drao WITH HEADER LINE,
it_kpro TYPE dms_tbl_file .
CONSTANTS : "c_print_option TYPE apptp VALUE '3', "Print option
c_hostname TYPE ntadr VALUE 'DEFAULT', "Hostname
c_type TYPE typdt VALUE 'PC', "Type
c_system TYPE char4 VALUE 'WN32'. "System
FIELD-SYMBOLS : <kpro> TYPE LINE OF dms_tbl_file,
<phio> TYPE LINE OF dms_tbl_phio .
CLEAR : w_tdwa .
* Check if for DIR type KPRO is used
CALL FUNCTION 'CV200_DB_TDWA_SELECT'
EXPORTING
pf_dokar = in_draw-dokar
IMPORTING
psx_tdwa = w_tdwa
EXCEPTIONS
not_found = 1.
w_frontend-frontend_type = c_type. "'PC'.
w_frontend-hostname = c_hostname. "'DEFAULT'.
w_frontend-winsys = c_system. "'WN32'.
w_frontend-platform = 0.
w_cout-comp_get = abap_true.
w_cout-kpro_use = w_tdwa-kpro_use.
w_cout-batchmode = abap_true.
w_cout-content_provide = 'TBL'.
CALL FUNCTION 'CV120_KPRO_MASTER_DATA_GET'
EXPORTING
pf_dokar = in_draw-dokar
pf_doknr = in_draw-doknr
pf_dokvr = in_draw-dokvr
pf_doktl = in_draw-doktl
TABLES
ptx_data = it_kpro
EXCEPTIONS
not_found = 1
error = 2.
CASE w_tdwa-kpro_use.
WHEN abap_true.
CALL FUNCTION 'CV120_KPRO_MASTER_DATA_GET'
EXPORTING
pf_dokar = in_draw-dokar
pf_doknr = in_draw-doknr
pf_dokvr = in_draw-dokvr
pf_doktl = in_draw-doktl
TABLES
ptx_data = it_kpro
EXCEPTIONS
not_found = 1
error = 2.
w_frontend-frontend_type = 'KP'.
LOOP AT it_kpro ASSIGNING <kpro>.
FREE it_drao.
LOOP AT <kpro>-tbl_phios ASSIGNING <phio>.
MOVE-CORRESPONDING <phio> TO w_phio.
CALL FUNCTION 'CV120_DOC_CHECKOUT_VIEW'
EXPORTING
ps_cout_def = w_cout
ps_doc_file = w_docfile
ps_draw = in_draw
ps_phio = w_phio
ps_frontend = w_frontend
TABLES
ptx_content = it_drao
EXCEPTIONS
error = 1.
PERFORM transform_fid_to_binary TABLES it_drao
USING <kpro>-dappl
in_attsub
CHANGING attachement_list .
ENDLOOP.
ENDLOOP.
WHEN abap_false.
DO 2 TIMES.
CLEAR : w_docfile .
FREE : it_drao.
w_tabix = sy-index.
w_docfile-fileno = w_tabix.
CASE w_tabix.
WHEN 1.
w_dappl = in_draw-dappl.
w_dttrg = in_draw-dttrg.
WHEN 2.
w_dappl = in_draw-dappl1.
w_dttrg = in_draw-dttrg1.
ENDCASE.
w_docfile-dappl = w_dappl.
w_docfile-dttrg = w_dttrg.
CALL FUNCTION 'CV120_DOC_CHECKOUT'
EXPORTING
ps_cout_def = w_cout
ps_draw = in_draw
ps_doc_file = w_docfile
TABLES
ptx_drao = it_drao
EXCEPTIONS
error = 1
OTHERS = 2.
PERFORM transform_fid_to_binary TABLES it_drao
USING w_dappl
in_attsub
CHANGING attachement_list .
ENDDO.
ENDCASE.
Bellow the code for routine TRANSFORM_FID_TO_BINARY
FIELD-SYMBOLS : <drao> TYPE drao ,
<source> TYPE x ,
<dest> TYPE x,
<hexa> TYPE solix .
DATA : w_filelong TYPE i ,
w_long TYPE i,
w_longdes TYPE i .
DATA : it_hexa TYPE solix_tab .
CHECK it_drao[] IS NOT INITIAL.
* Transform Physical document into Binary
LOOP AT it_drao ASSIGNING <drao>.
IF w_filelong IS INITIAL.
w_filelong = <drao>-orln.
ENDIF.
ASSIGN <drao>-orblk TO <source>.
DESCRIBE FIELD <source> LENGTH w_long IN BYTE MODE.
CLEAR w_longdes.
WHILE w_long GT 0.
ASSIGN <source>+w_longdes(w_long) TO <source>.
APPEND INITIAL LINE TO it_hexa ASSIGNING <hexa>.
ASSIGN <hexa>-line TO <dest>.
DESCRIBE FIELD <dest> LENGTH w_longdes IN BYTE MODE.
MOVE <source> TO <dest>.
w_filelong = w_filelong - w_longdes.
w_long = w_long - w_longdes.
CHECK w_filelong LE w_longdes.
IF w_long NE 0.
w_long = w_filelong.
ENDIF.
CHECK w_long LE 0.
w_long = 0.
ENDWHILE.
ENDLOOP.
* Add file to list of attachment
CHECK NOT it_hexa[] IS INITIAL.
zcl_send_mail=>add_attachement_to_list(
EXPORTING
type = w_dappl
subject = in_attsub
content_hexa = it_hexa
CHANGING
attachement_list = attachement_list
EXCEPTIONS
no_content_for_attachement = 1
no_application_type = 2 ).
In my complete solution, an additionnal screen have been define in the header of PO to allow user managing recipient list . If you need so i can give you the code also .
Let me know.
Best regards -
Can freight be calculated at Sales order header
Hi
We have this business scenario where Freight is calculated at order header.
But we were checking the API for that
WSH_INTERFACE_GRP.Create_Update_Freight_Costs
This is done at Delivery or Delivery detail level.
So CANT we have freight costs at order header level???
Basically i have say 3 labels created for an order i need to generate freight for these 3 labels. Please not 3 labels DOES NOT correspond to 3 lines.
So can i create Freight lines for these 3 labels for that order header Id.
And also another question is for RETURN orders we wont have any deliveries then how are freight cost calculated
Regards
GibinRight Now I am populating if the order header is successful as below to capture freight info at header level.
PROCEDURE xx_freight_charges(l_amount IN NUMBER,
l_header_id IN NUMBER,
l_created_by IN NUMBER)
IS
v_seq NUMBER;
v_list_header_id_h NUMBER;
v_list_line_id_h NUMBER;
v_arithmatic_operator_h VARCHAR2(30);
v_list_line_no_h NUMBER;
v_program varchar2(80) :='XX_UTILLITY_PKG.XX_FREIGHT_CHARGES';
BEGIN
select oe_price_adjustments_s.nextval
into v_seq
from dual;
SELECT list_header_id
,list_line_id
,arithmetic_operator
,list_line_no
INTO v_list_header_id_h
,v_list_line_id_h
,v_arithmatic_operator_h
,v_list_line_no_h
FROM qp_list_lines ql
WHERE end_date_active IS NULL
AND modifier_level_code = 'ORDER'
AND list_header_id IN (SELECT list_header_id
FROM qp_secu_list_headers_vl
WHERE name = 'Freight Charge'
AND active_flag = 'Y'
insert into oe_price_adjustments
(price_adjustment_id,creation_date, created_by, last_updated_by,last_update_date, header_id, automatic_flag,
list_header_id,list_line_id, list_line_type_code, change_reason_code,change_reason_text, updated_flag,applied_flag,
operand, arithmetic_operator, charge_type_code,modifier_level_code, list_line_no)
values
(v_seq,SYSDATE,l_created_by,l_created_by,SYSDATE,l_header_id,'N',
v_list_header_id_h,v_list_line_id_h,'FREIGHT_CHARGE','MANUAL','Manually applied adjustment','Y','Y',
l_amount,v_arithmatic_operator_h,'FREIGHT','ORDER',v_list_line_no_h);
COMMIT;
EXCEPTION
WHEN OTHERS THEN
Xx_Xmldb_Pkg.xx_insert_errors ('Freight Charges', v_program,
l_header_id, l_amount, SYSDATE, l_created_by);
END;
I think you can do it using api, also but I was not successful.
Maybe you are looking for
-
I can't get app store on my old power book to download OS X, My macbook pro hard drive died and all I have is a windows hard drive, still has windows os on it, a 500 Gb USB drive and this power book. How can I get my macbook back up without spendi
-
When Soft Proofing in LR4 most of my loaded printer profiles are not visible
I am running LR4 and CS6 on an HP desktop with 4Gig Ram, Win 7 Home, Profiled Monitor using DataColor In CS6, all my loaded ICC printer profiles appear when setting up the soft proofing... In LR4, most of the profiles do not appear... The problem is
-
HP W2371d and Nvidia GForce 8500 GT not filling screen
Nvidia GForce 8500 GT came with my circa 2005 desktop. My original monitor finally died and I just bought an HP W2371d. I don't know if the issue is with the video card and/or the monitor itself so I'm posting both places. I've checked for newest dri
-
Adstpall.sh and adstrtal.sh scripts is giving error in R12
Team, I am trying to start and stop the services using adstpall.sh and adstrtal.sh but its giving error. -bash-3.00$ sh adstpall.sh You are running adstpall.sh version 120.10.12010000.4 Enter the APPS username: apps Enter the APPS password: adstpall.
-
PS cc 2014 folder does not have the photoshop.exe file
Updated CC photoshop yesterday and the folder "C:\Program Files (x86)\Adobe\Adobe Photoshop CC 2014" does not contain the Photoshop.exe for the new update. After doing a drive search for photoshop.exe files, the only app file that is found on any dri