on 02-10-2015 8:11 AM
Dear All,
I am working SRM 7.02, Classic scnerio, Transferring the PR to SRM SC thr' PI (ESOA).
1. I want to transfer the PR Header attachment (i.e attached using the attachment list thr' GOS), these attachment need to be transfer to SRM SC .
So kindly help me to achieve this..
If any body done this ..kindly share your input..
Hi,
In system design, this is not supported:
==
he attachment transfer should work with DMS using ESOA., since source code in ECC doesn't handle GOS type, and PR and SC does not have header concept.
==
In order to realize this, you can add enhance code in the following place:
SRM FM BBP_BD_PDDOC_FROM_BAPI_MAPS
* RFC to get the file contents.
CALL FUNCTION 'BBP_RFC_CON_GETATTACH' DESTINATION lv_destination
EXPORTING
iv_parentguid = wa_attach-parent_guid
iv_objectkey = wa_attach-objkey
iv_documentnum = wa_attach-doc_id
iv_documentver = wa_attach-doc_ver_no
IMPORTING
ev_fdescription = lv_fdescription
ev_fmimetype = lv_fmimetype
ev_ffilesize = lv_ffilesize
ev_ffilename = lv_ffilename
ev_sdescription = lv_sdescription
ev_smimetype = lv_smimetype
ev_sfilesize = lv_sfilesize
ev_sfilename = lv_sfilename
TABLES
et_bindata_first = et_fir_bindata
et_bindata_sec = et_sec_bindata.
in ECC FM BBP_RFC_CON_GETATTACH
*to get the MIME type of the document
CALL FUNCTION 'CV120_GET_MIME_TYPE'
EXPORTING
pf_dappl = lt_docdata-wsapplication2
pf_file = lt_docdata-savedocfile2
IMPORTING
pfx_mimetype = ev_smimetype.
You can make a judge in SRM FM, and call a different ECC FM to handle GOS document.
One more place is that SC doesn't have attachment in header level, and you have to add Z-tab in SC header to store attachment.
Best regards,
ivy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Sorry, FM BBP_BD_PDDOC_FROM_BAPI_MAPS is used in report transfer not SOA.
For SOA, you may check the following method:
METH
/SAPSRM/CL_CH_SOA_DO_MAP_ATCHF
/SAPSRM/IF_CH_SOA_DO_MAP_ATCHF~CREATE
For SOA, it is transferred with XML. You can try to transfer PR by adding attachment GOS in header to see if outbound XML can be generated. If so, you can check SRM side to see where the restriction is.
best regards,
Ivy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.