cancel
Showing results for 
Search instead for 
Did you mean: 

SRM 7.02: Currency conversion for customer-specific object types

joerg_diehl
Discoverer
0 Kudos

Hello,

we have implemented SRM 5.0 in a "one-client-scenario" with ECC 6.0 four years ago. We have the special requirement, that there's the possibility to order things retrospectively in SRM, which will be transferred to MM as purchase orders but which should not be printed or sent to suppliers. For that we had implemented the object-type 'ZEC' for these purchase orders. So far so good, for 4 years.

In november we had an update to SRM 7.02 and ECC 6.0 EHP 6. Since this upgrade, we have the problem, that all ZEC purchase orders, where there's a difference between the currency in the shopping cart (e.g. GBP) and the currency of the fixed vendor (e.g. USD). The error in RZ 20 is "W5 107 Purchasing document &&& does not exist". In all other constellations (which are all send to MM as 'EC'), there are no problems.

Does anybody know, if there's a hard-coded query upon the object-types? It seems, that currency-check is only done when the object-type of POs is "EC".

Thanks in advance.

Joerg

Accepted Solutions (0)

Answers (1)

Answers (1)

vinita_kasliwal
Active Contributor
0 Kudos

Where did you make that change can you provide the exct location also could you comment that part and check if it works ?

joerg_diehl
Discoverer
0 Kudos

Hello Vinita,

I make the change from EC to ZEC in the method IF_EX_BBP_CREATE_BE_PO_NEW~FILL_PO_INTERFACE1.

In this badi we have the coding:

...

 

loop at is_sc_document-item into lh_item

where del_ind = space.

 

     lh_ebelp = lh_item-be_obj_item+5.

          read table cs_po1_document-it_poitem into lh_po_item

                              with key po_item = lh_ebelp.

         

          lh_tabix1 = sy-tabix.

          read table cs_po1_document-it_poitemx into lh_po_itemx

                              with key po_item = lh_ebelp.

          lh_tabix2 = sy-tabix.

 

* change object-type 

     if lh_item-zekrichtline = 'X'.

          cs_po1_document-is_poheader-doc_type = 'ZEC'.

     else.

          cs_po1_document-is_poheader-doc_type = 'EC'.

     endif.

     cs_po1_document-is_poheaderx-doc_type = 'X'.

....

It works fine unless you have a different currency between vendor master data and shopping cart.