cancel
Showing results for 
Search instead for 
Did you mean: 

Attachment of Purchase Requisition from ECC to SRM7.0

Former Member
0 Kudos

Hi

I want transfer the file attachment of Purchase Requisition from ECC to Shopping cart of SRM 7.0.

I am attaching the file using GOS method, does SRM7.0 support this functionality. wondering how the header and item level attachments from ECC will be transfered to SRM system.

does function BBP_ATTACH_CONTENT_WEBGET solve this problem.?

I refferred the below link. but not clear.

Regards

Ckumar

Accepted Solutions (1)

Accepted Solutions (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

If you use ERP 6.0 EHP4, please check this.

Transfer attachment from ECC PR to SRM SHC

Regards,

Masa

Former Member
0 Kudos

Hi

we are using BBP_EXTREQ_TRANSFER to transfer the PR from ERP to SRM SC.

PR document is created in SRM but GOS attachment is missing.

we are following Classic scenario and basically when you transfer the attachment from ERP to SRP or SRM To ERP i

the attachment is always missing regardless of file attached. To add with we are using PI -IDOC transfer for few scenarios.

Pls help me where to start analysing the problem.

Regards

ckumar

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

What is ERP version? ERP 6.0 EhP4?

Former Member
0 Kudos

Hi

Yes, ERP6.0 EHP4 and SRM7.0

Regards

ckumar

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Please try with new ESOA interface with DMS attachment.

Regards,

Masa

Former Member
0 Kudos

Hi

In our environment, we are not using DMS. and

the expected attachement to be sent is only at Header level only not at item level.

Can i know why you recommend ESOA any SAP notes recommend us to go for it.?

Pls suggest.

No idea about ESOA.?..does all customers are following ESOA for this kind of problem....?

appreciate if you give more ideas on this.

Regards

Chandra

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

I just thought customers who select ERP 6.0 EhP4 use CPPR function. CPPR sends PR via ESOA.

If you do not use CPPR and wnat to use old RFC, please check followings.

I think your issue is in sender side. Application gets attachments from dokar doknr dokvr doktl objky tables.

Set a break point and make sure attachment is passed.

Sourcing Cockpit handles item level. If you want to pass header attachment to all items, you may need to enhance the code.

Program: LBBP_EXTREQF18

FORM send_pr_to_procsystem

...

**to get the object key for all items.

LOOP AT it_item INTO wa_item.

MOVE : wa_item-item_guid TO wa_objectkey-item_guid.

CONCATENATE wa_item-parent wa_item-item_guid INTO

wa_objectkey-objectkey.

APPEND wa_objectkey TO lt_objectkey.

ENDLOOP.

*to get the attachment documents for all items.

SELECT dokar doknr dokvr doktl objky INTO

TABLE lt_drad

FROM drad

FOR ALL ENTRIES IN lt_objectkey

WHERE dokob = lc_eban AND

objky = lt_objectkey-objectkey.

Regards,

Masa

Former Member
0 Kudos

Hi Masa

It was great reply.

I will check with BBP_EXTREQ_TRANSFER by debugging the PR transfer.

I guess FM BBP_BC_EXTREQ_INB is called in SRM and recieving attachment for SC

but not sure how to debugg BBP_BC_EXTREQ_INB from ECC.

Also FM BBP_EXTREQ_INBOUND in BBP_BC_EXTREQ_INB seems to be receiving header attachment ...was it not?

Pls correct me if i am wrong.

Regards

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Attachment structure has parent GUID pointing to header or item. So it depends on how sender side fill attachment structure.

Please share your test result and findings in SDN.

PARENT_GUID BBP_ER_PARENT

LOGICAL_SYSTEM BDS_LOGSYS

CLASSNAME BDS_CLSNAM

CLASSTYPE BDS_CLSTYP

OBJKEY BDS_TYPEID

DOC_ID BDS_DOCID

DOC_VER_NO BDS_DVERNO

DOC_VAR_ID BDS_DVARID

DESCRIPTION BDS_PROPVA

URL BBP_ER_ATT_URL

TYPE BBP_ER_ATT_TYPE

INTERNAL_IND BBP_ER_ATT_INTERNAL

CATEG BBP_ER_ATT_CATEG

Regards,

Masa

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Here are my findings.

- GOS attachment is not transfered from ERP in standard. I think this is OK because PR and SC does not have header concept. Sourcing cockpit handles item level. If you need to transfer GOS attachment to item level, you can enhance the code.

- For receiver side, you can set breakpoint at BBP_BC_EXTREQ_INB.

- Attachment information is transfered to SRM and SRM calls BBP_RFC_CON_GETATTACH to get attachment body from ERP.

Regards,

Masa

Former Member
0 Kudos

Hi Masa

>> Do you have any SAP note or document mentioning this particularly? just a proof kind of.

GOS attachment is not transfered from ERP in standard. I think this is OK because PR and SC does not have header concept.

>> this is again converting Header level attachment to item level right...but my requirement is Header level needs to be transferred to SRM only as Header level not in item level.

So finally things are like GOS attachment in header level cannot be passed from ERP to SRM or SRM to ERP.

now looking for any SAP statement confirming about this...because...customer need proof whether it can be done or not.

Sourcing cockpit handles item level. If you need to transfer GOS attachment to item level, you can enhance the code. 
- For receiver side, you can set breakpoint at BBP_BC_EXTREQ_INB. 
- Attachment information is transfered to SRM and SRM calls BBP_RFC_CON_GETATTACH to get attachment body from ERP.

Regards

ckumar

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

It is clear from source code in my previous post. Header and item concept is also clear.

How do you want to use attachment in header?

When/Where do you want to display attachment?

SC does not has header concept. How do you want to manage?

RFx and PO will be created from several PR items or SC items. How do you wont to manage the header level attachment?

You can enhance function based on your business requirement.

Regards,

Masa

Former Member
0 Kudos

Hi Masa

Thanks for your feedback.

Yes, Seems only attachment at Item level can be done.

So the best approach could be DMS and document type configuration with respect to item level.

Anyways Let me close this thread and give points.

Thanks for your support masa.

Regards

ckumar

Former Member
0 Kudos

Hi Chandra,

I am also using BBP_EXTREQ_TRANSFER to transfer the PR data to SRM. By this i am not able to transfer attachments. Could you kindly tell me how you were able to achieve the transfer of attachments (DMS only)?

Your ideas / inputs would be of great help.

Thanks

Balaji

Answers (0)