cancel
Showing results for 
Search instead for 
Did you mean: 

SUS iterator - add partner

Former Member
0 Kudos

Hello,

Currently, our SUS PO "Item View" BSP page shows the partner information through an iterator.IO_PARTNER_ITERATOR. It shows the "Sold-to Party" and the "Delivery Point". I'd like to have it display the "Ship-From Party" as well.

Is there a IMG setting relating to which partner fuctions appear on each iterator or is it coded somewhere?

Thanks,

Matt

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I've got this working now.

In the class CL_SUS_M_DETAIL method SET_PARTNER_LIST you will need to add the following code under the IF looking at SUS POs and PCOs.


  IF business_obj EQ c_suspo OR business_obj EQ c_suspco.

*{   INSERT         
*  Add Ship From Party Role to the iterator.
    CLEAR ls_partner_list_control.
    ls_partner_list_control-partner_pft          = c_ship_from.
    ls_partner_list_control-partner_display_only = c_on.
    ls_partner_list_control-address_display_only = c_on.
    ls_partner_list_control-order_number         = 1.
    ls_partner_list_control-partner_level        = gc_partner_on_item.
    APPEND ls_partner_list_control TO me->pt_partner_list_control.
*}   INSERT

Now the Ship From Party will appear in the Partners list on the SUS PO.

Thanks,

Matt

Former Member
0 Kudos

Looking at the instance of CO_MODEL I can see that PT_Partner has the partner I need to add but the PT_Partner_Screen_List does not. Also, PT_Partner_List_Control has a field for "No Display".

It looks like I need to get the partner added to the screen list and then make sure it is not set to "No Display". I'd rather not hard code this if there is a better way to do this.

Anything in IMG or an exit?

Thanks,

Matt