cancel
Showing results for 
Search instead for 
Did you mean: 

PR Header attachement to SRM SC

Former Member
0 Kudos

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..


Accepted Solutions (0)

Answers (1)

Answers (1)

ivy_li
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Dear Lvy,

Thank you..

This FM BBP_BD_PDDOC_FROM_BAPI_MAPS in SRM is called when we transfer the PR to SRM thr' PI(ESOA).? if yes, then where to put an enhancement...

Normally the enhancement can be put at the begging or end of the function module..

Plz clear me...

ivy_li
Active Contributor
0 Kudos

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

Former Member
0 Kudos

HI ivy,

Thanks for the information.

i have seen the above class and method...and tried some enchancement..but it is not creating the attachment...

Can u tell me, whether DOC_CHECK BAdi will be triggered while creating the SC from PR thr' PI..

Regards,

Tamil.