cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

create PO at backend from SRM

Former Member
0 Likes
735

Hi

I have below scenario to create PO at backend from SRM

1)SRM Shopping cart(assign contract number) ->Create PO at ERP

2)SRM Shopping cart ->RFx-> RFx Response -> Create PO at ERP.

Can you pls confirm below doubts.

1) Does the BAPI(BAPI_PO_CREATE1) is called for both above scenario?

2) Also I want to know how the attachment transfer is carried out from SRM to Backend.

I found note to implement BADI BBP_CREATE_BE_PO_NEW at SRM for backend transfer.

I implemented as follows including setting at ERP DC10,DC20,DC30.

method IF_EX_BBP_CREATE_BE_PO_NEW~FILL_PO_INTERFACE1.

  • Enable transfer of attachments in classic scenario

cs_ctrl_att-BE_DOC_TYPE = 'SRM'.

cs_ctrl_att-BE_STORAGE_CAT = 'ZDMS_CT_CT'.

cs_ctrl_att-TRANSFER_ACTIVE = 'X'.

endmethod.

But i could not understand the general flow how the file attachment at SRM Portal is transferred to ERP DMS.

can you please explain.

Regards

Chandra

Accepted Solutions (1)

Accepted Solutions (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi,

What is your SRM version and ERP version with Enhancement Package?

If it is SRM 7.0 with ERP 6.0 EhP4, interface is ESOA.

Regards,

Masa

Former Member
0 Likes

Hi Masa

Thanks for your reply.

yes, we are working on SRM7.0 EHP4.0.

As you said, I can see in PI SXMB_MONI messages the PO is created in ERP backend.

But why its going thru ESOA? Why its not taking above BAPIs and RFC to transfer the PO datas?

Also again the attachment is missing in PO created. its not transferred in ESOA standard?

Addon possible to solve the problem?

For your information.

We transferred ERP PR file attachment as URL from ERP to SRM using BBP_TRANSFER program.

Now after attaching file in SRM portal at RFX ,how PO is transffered to ERP?

Pls guide me what should be done?

Regards

handra

Former Member
0 Likes

Hi

I am thinking of managing the attachment in ABAP side instead of PI ESOA.

Thinking of managing the attachment using URL path, attach file storing in Content server.

Can you pls give me idea about how to solve this problem

No use of above BAPI and BADI to solve this problem?

Regards

Chandra

masa_139
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi,

Can you test this in your landscape?

1. Create a SC with attachment

2. Check PO is created from SC

3. Check the XML. Is there any attachment?

Regards,

Masa

Former Member
0 Likes

Hi Masa

I have checked my landscape.

I created SC in SRM and attached files then Created RFx. RFx responses then Posted to PO.

SRM XML message does not hold XML attachment. XML document is not picking the attachment.

Why xml payload does not have attachment tag to hold the attachment.

pls advice how should i go.

Regards

Chandra

masa_139
Product and Topic Expert
Product and Topic Expert
0 Likes

How about SC -> PO scenario(without RFx)? Does it also has the issue?

Former Member
0 Likes

Hi Masa

Yes, SRM SC -> PO also has same issue.

Inside SRM attachment is working fine. SRM to ERP is not working with attachment.

BADI BBP_CREATE_BE_PO_NEW will not be triggered in any scenario(Classic/Extended classic) at SRM7.0?

When does the above BADI will be triggered.?

Regards

Chandra

masa_139
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi,

Because your ERP is EhP4 the BADI is not called. ESOA is called if backend is EhP4.

If you do'nt want to use ESOA, you can change the backend to ERP_3.0 in the Define System landscape customizing.

Regards,

Masa

Former Member
0 Likes

Hi Masa

Thanks for your reply.

Ok i understand above badi will not be called in my case because of EHP4.

but customer is using already ESOA for transfer ...i cant change due to attachament transfer.

But why attachment is not picked up in ESOA? any setting is missing or has to be handled in ABAP program.

Can u just give clue of how to fix this by addon ....if standard is not supported.

regards

Chandra

masa_139
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi,

If ther is attachment in SC, set breakpoint at MAP_ITEM method in /SAPSRM/CL_CH_SOA_DO_PO_ITEM Class.

You need to find what is the root cause.

Regards,

Masa

Former Member
0 Likes

Hi Masa

While sending attachment from SRM to ERP using ESOA, I found ERP PO attachment list has created with

new DMS document number. But the attachment is missing in DMS document number.

do i miss any setting for converting SRM to ERP attachment?

Any badi needs to be active to convert SRM to ERP attachment and attach wtih DMS?

Pls guide

Regards

Chandra

0 Likes

Hi Masa/Chandra,

We are also using ESOA and having issues in ERP PO attachment, not able to see the attachment in backend. I can see the attachment binary content in the SXMB_MONI but the attachment document is not getting created in DMS and hence not shown at the PO.

I tried to debug the scenario but not able to,  /SAPSRM/CL_CH_SOA_DO_PO_ITEM method MAP_ITEMS is not getting called, how to debug this? I understand that BADI implementation is not required but do we need DC10/DC20/DC30 customizing, I guess these customizings are for DMS so we should do them, pls confirm.

Can you please guide me what all are neccessary steps I have to check in the system for this so I can check them in my system.

Thanks,

Puran.

Former Member
0 Likes

Hi Puran,

Go to CV01N and create a document(attachment) with the document type configured for PO in ECC and see if you are able to create.

Authorization could be one of the reasons for attachment not getting created in ECC.

Regards,

Naveen

0 Likes

Hi Naveen,

Thanks for the reply!! I was on vacation so could not reply back with the update.

You were right, the problem seems to be with DMS only, I did try creating a document in CV01N and there are issues in that. It is dumping at the loop statement. I did some missing confiurations but still it has not resolved the issue. If you have detailed steps of DMS configuration, can you please share that with me.

Thanks,

Puran Khoeval.

Former Member
0 Likes

Hi Puran,

There are a lot of configurations that happens in DMS such as storage category(storage type), document type, number ranges(internal and external), content repository etc.

These are just a few , if there is a specific issue that you are facing you need to attach screenshots but I am not sure if it will be here in the SRM space or in DMS space.

regards,

Naveen

Answers (0)