cancel
Showing results for 
Search instead for 
Did you mean: 

Attachment in SRM

Former Member
0 Kudos

Hello

IN function BBP_PD_SC_GETDETAIL I can see the path were my attachment is stored.

Do you know where we can modify this path, and If we can just modify the url to access it for one backend?

Thanks,

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

Sorry i didn't get you. What is the exact requirement ?

Do you want to send attachements with the Shopping cart ?

Please explain in detail.

Regards

- Atul

yann_bouillut
Active Contributor
0 Kudos

Hi,

Could you please explain why you want to modify it ?

It looks strange... )

Kidn regards,

Yann

Former Member
0 Kudos

Because, One backend can't access to this url...

In fact our SRM url is for exemple : http://serverprod:50/.

but them they use http://serverprod.df/.

so in the structure I write http://serverprod.df/.

but for the attachement I don't know where it is...

Former Member
0 Kudos

Hi

<u>Inside the BBP_PD_SC_GETDETAIL Function module ->The following area holds the attachment path

BBPT_PDS_ATT_T -> " KW Attachments Including Document

BBP_PDS_ATT_T " Structure for Attachments

BBP_PDS_ATT_T-URL " URL Case-Sensitive</u>

Inside various BADIs, this attachment structure is passed

<b>BBP_CREATE_PO_BACK

BBP_TARGET_OBJECTS

BBP_DETERMINE_LOGSYS

BBP_PD_SDLN_BADI

BBP_PGRP_ASSIGN_BADI

BBP_RESERVATION_GRP</b>

Inside  BBP_CREATE_PO_BACK BADI,

CT_ATTACH_BE -> "KW Attachments Including Document 
CV_ATTACH_BE_DOC_TYPE ->"Document Type for DMS in the Backend System
CV_ATTACH_BE_STORAGE_CAT
CV_ATTACH_TRANSFER_ACTIVE -> "Activate Transfer of Attachments
CV_ATTACH_USE_URL -> "Transfer URL Instead of the File
CV_INTERNAL_ATTACH_NO_TRANSFER ->"Do not Transfer Internal Attachments 
CV_INTERNAL_ATTACH_BE_DOC_TYPE ->"Individual Document Type in DMS for Internal Attachments

You can change it accordingly depending on your requirements.

Let me know incase you need any other information.

Hope this will help.

Please reward suitable points, incase it suits your requirements.

Regards

- Atul

Former Member
0 Kudos

Hi Eileen,

Maybe better way is to use BADI BBP_CHANGE_URL ?

In method Change_url try write something like this:


if iv_url cs '/docserver/'.
  replace 'serverprod:50' in ev_url with 'serverprod.df'. 
endif.

Regards,

Marcin

Former Member
0 Kudos

Thank you Marcin;,

Can you tell me in spro where I can find this BADI.

Former Member
0 Kudos

Eileen,

Use transaction SE19 to implement this BADI like this:

Go to SE19 and type badi name (example: ZBBP_CHANGE_URL) and hit on button create.

In definition name use BBP_CHANGE_URL. Write the code in method CHANGE_URL, activate method and activate implementation.

Regards,

Marcin

Former Member
0 Kudos

Hi

As Marcin told

Go to Transaction - SE18 , give the BADI name as BBP_CHANGE_URL there and then on tha application toolbar Select Enahancement Implemenetation -> Create.

Then follow the steps told by Marcin,

Give any name of the Implemntation starting with either Y or Z character name

(say, ZBBP_CHANGE_URL) and so on...

<u>Here is another sample code of this BADI Implementation using SE19 Transaction.</u>



METHOD if_ex_bbp_change_url~change_url .

  DATA:
    lv_prottype    TYPE syindex VALUE 1,
    lv_prot        TYPE plg_name,
    lv_host        TYPE plg_host,
    lv_port        TYPE plg_srv.

* this is a implementatopmj that deals with the behaviour
* of an application server, where in ICM HTTP is configured
* but HTTPS not. In that case attachments are not displayed
* if you logon to seperate ITS with HTTPS.

  IF iv_url IS INITIAL.
    CALL FUNCTION 'TH_GET_PLUGIN_INFO'
      EXPORTING
        protocol         = lv_prottype
      IMPORTING
        name             = lv_prot
        host             = lv_host
        service          = lv_port
      EXCEPTIONS
        no_plugin_active = 1
        internal_error   = 2
        OTHERS           = 3.

    IF sy-subrc = 0.
*   http://host:port
      CONCATENATE lv_prot
                  bbpoa_http_colon
                  bbpoa_http_slash
                  bbpoa_http_slash
                  lv_host
                  bbpoa_http_colon
                  lv_port
        INTO ev_url.
*   add /srm/docserver
      CONCATENATE ev_url
                  bbpoa_http_slash
                  bbpoa_http_path_sap
                  bbpoa_http_slash
                  bbpoa_http_path_ebp
                  bbpoa_http_slash
                  bbpoa_http_path_docserver
                  bbpoa_http_slash
                  sy-mandt
              INTO ev_url.
    ENDIF.
  ENDIF.

ENDMETHOD.

Let me know incase you face any issues.

Hope this will help.

Please reward suitable points, incase it suits your requirements.

Regards

- Atul

Former Member
0 Kudos

Hi Eileen lee,

If we change the URL in BADI BBP_CHANGE_URL. Is that going to store the attachments in required location.

Thanks in advance.......

Chandra

Former Member
0 Kudos

Hello Atul and all,

My question in this regard hence asking on this thread.

We are aiming at standard attachment transfer from SRM SC item to backend ECC PO item.

We are on SRM server 5.5 SP9 CLASSIC scenario.

Service docserver is active for SRM.

In BADI for back end PO method FILL_PO_INTERFACE1 , we have specified

cs_ctrl_att-TRANSFER_ACTIVE = 'X'.

In ECC DC10 we have doc <b>SRM</b> set as per config guide.

In ECC DC30 all file types have been defined.

In ECC the document storage path is defined under ECC SPRO ->Cross-Application Components->Document Management->General Data->Define Data Carrier->Define mount points / logical drive->as

data carrier=<b>ZSRM</b>

Type=<b>PC</b>

Prefix for access path =
10.20.11.200\egat$\srm_share_doc

But when I create attachment to my SC item and study BBP_PD.

if I check the table BBP_PDATT --> I can not see any entry in the URL field.

also if I check BBP_PD_SC_GETDETAIL for this SC as you had said

go to export parameter <b>ET_ATTACH</b> I can see 1 entry

but if I check <b>DISP_URL</b> i get

http://erpdevsrci.egat.co.th:8010/sap/ebp/docserver/Storage%20location%20not%20available%20for%20ind...

I feel some correction is needed for Doc server path in our ECC system.

Please help.

BR

Dinesh