cancel
Showing results for 
Search instead for 
Did you mean: 

plant determination in CRM sales order

former_member270678
Participant
0 Kudos

Hi

I have a partner determination in CRM.

I have Vendor partner function included in the list of partner functions in the partner Det Proc.

I am unable to determine which 'Access Sequence' should I assign to CRM (Vendor).

I tried all the options that were available but was of no use.

I need the Vendor(Plant) to popuate on an order create in CRM using partner det proc.

Should I create a new access sequence or is there anything default that SAP provides that I can use. i thought this value will be populated by default.

Please provide steps for thse

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

robert_kunstelj
Active Contributor

In access sequence use as source CRM_PROD_SALES_A option.

Regards.

former_member270678
Participant
0 Kudos

I did try using "Vendor From Place Of Goods Issue In Product " in the new access seq that I had created but it is still not working.

I do have Vendor/Delivery Loc in the product master in CRM Master data.

Any pointers would be appreciated.

robert_kunstelj
Active Contributor
0 Kudos

It works for me. But be sure to use it on item level and not headr level of order.

former_member270678
Participant
0 Kudos

I am using on Item level and not at header. Thanks anyway. I will double check my config once again and post the results

former_member270678
Participant
0 Kudos

I have the value populated in CRM.

But when I create the order in CRM and the order flows to ECC through the middleware, I am adding a new line in ECC. On the new line in ECC I can see the plant value. But when the new line item flows from ECC to CRM the new line in CRM is not having the plant (vendor) value populated. Can someone please tell me why?

Thanks

robert_kunstelj
Active Contributor
0 Kudos

I don't use such scenario, but my approach would be to define plant on ecc side also as vendor and it would then get replicated back to crm. Other possible solution could be to code this logic in badi CRM_DATAEXCHG_BADI where you would read plant value and pass it in method CRM_DATAEXCH_R3D_MBDOC_FILL to fill vendor.

vanessa_donegan
Active Participant
0 Kudos

Hi there,

Please use note 493947 to ensure all the manual configuration is in place. Also the item category for the plant item must be ATP relevant, the following code check this:

FILL_BTM_PARTNER_PLANT SAPLCRM_DOWNLOAD_MAP

  • check if item type is relevant for ATP

check not ls_item_type-atp_profile is initial.

  • map plant to business partner

lv_loc_number = <ls_bapisdit>-plant.

lv_loc_type = gc_atploctype-plant.

call function 'CRM_CONFIRM_MAP_LOC_TO_BP'

exporting

iv_loc_number = lv_loc_number

iv_loc_type = lv_loc_type

importing

ev_partner = lv_partner_no

exceptions

no_mapping_found = 1

others = 2.

check sy-subrc = 0.

If this still doesnt resolve the issue then you will have to debug the transfer queue stopping at function CRM_SALESDOC_MAP_BAPI2MBDOC to see why the data is not mapped.

I hope this helps,

Kind regards,

Vanessa.

former_member270678
Participant
0 Kudos

Hi Vanessa

Thanks very much for your inputs. I forgot to mention in the message that we trying out NON-ATP orders.

We are trying 3rd party orders.

The issue we are having is for Item Cat TAS.

Thanks

Former Member
0 Kudos

Hi,

Is your CRMM_LOCMAP table mapped on CRM system?!?

Thanks.

SM

vanessa_donegan
Active Participant
0 Kudos

Hi Again,

Then I believe this is the issue - plant mapping to partner in CRM only happens for items that are ATP relevant, you can see the code below. You would need to modify this in order to get it to work:

FILL_BTM_PARTNER_PLANT SAPLCRM_DOWNLOAD_MAP

  • check if item type is relevant for ATP

check not ls_item_type-atp_profile is initial. <<<<

There are quite a few restrictions with third party orders unfortunately.

Kind regards,

Vanessa.

former_member270678
Participant
0 Kudos

I found this note that solved the issue 1493513 which resolved the issue.

Answers (1)

Answers (1)

former_member270678
Participant
0 Kudos

sap note 1493513 fixed the issue.