cancel
Showing results for 
Search instead for 
Did you mean: 

displaying ship to party id in web ui

venkata_bharath
Participant
0 Kudos

Hi All,

My query is that How to display Ship-to-party id in the bussiness role salespro?

path:

Select the business role -->salespro -->select the sales cycle in the navigation link > in the create work center click on salesorder>then a dialog box appears then select salesquotation -->in that u have ship-to-party --> that it is a F4 search help field --> if u select a id it will display name automically.

My query is that we can display the name & id togeather in that field only ? it is possible like that?

If not is there any other way to do it?

Regards,

Venkatabharath Voona

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member191572
Contributor
0 Kudos

Hi,

U can display the value in the UI. For that u need to redefine the GET method of the particular attribute .

In the get method write code as per ur logic and pass in the variable value. The details u r passing in the variable VALUE will be displayed in the UI level.

venkata_bharath
Participant
0 Kudos

can u explain in it.

former_member191572
Contributor
0 Kudos

Hi,

Provide some detailed information about the componet, view , attribut. i ll tell u the details

Edited by: gobi krishnan on Jun 13, 2011 11:36 AM

venkata_bharath
Participant
0 Kudos

HI,

The details are component/view name BT115H_SLSO/Details attribute name SHIPTO_NAME

former_member191572
Contributor
0 Kudos

HI,

In the method GET_SHIPTO_NAME in the varible value u ll have the partner ID , write the code to get the partner name based on the ID , then concatenate both the partner Id and parntename move in to the value.

lv_partner = value.

.....

......

concatenat lv_partner lv_partnername in to value.

venkata_bharath
Participant
0 Kudos

Hi Gobi,

Please tell me with the code.

former_member191572
Contributor
0 Kudos

Hi,

Redefine the method ( GET_SHIPTO_NAME ) and write the code,

data lr_current type ref to if_bol_bo_property_access.

lr_current ?= me->get_partner_entity( ir_iterator = iterator

iv_pft = '0002' ).

value = cl_crm_uiu_bt_partner=>get_partner2( lr_current ).

In the method after value = cl_crm_uiu_bt_partner=>get_partner2( lr_current ).

lv_partner = vlaue.

select single name from but000 into lv_partnername

where partner_id = lv_partner.

concatenate lv_partner lv_partnername into value.

venkata_bharath
Participant
0 Kudos

Hi gobi,

when i am trying to redefine the method GET_SHIPTO_NAME it s asking for Acess key (comoponent and view are already enhanced).

so what i can do?

venkata_bharath
Participant
0 Kudos

HI Gobi,

This code is showing the errors.

the errors are The type of "VALUE" cannot be converted to the type of "LV_PARTNER".

i had written the code like this.

METHOD get_shipto_name.

*CALL METHOD SUPER->GET_SHIPTO_NAME

  • EXPORTING

  • ATTRIBUTE_PATH =

    • iterator =

  • RECEIVING

  • VALUE =

  • .

DATA :lr_current TYPE REF TO if_bol_bo_property_access,

lv_partner TYPE REF TO cl_bsp_wd_collection_wrapper,

lv_partnername TYPE REF TO if_bol_bo_property_access.

  • value type string .

lr_current ?= me->get_partner_entity( ir_iterator = iterator

iv_pft = '0002' ).

value = cl_crm_uiu_bt_partner=>get_partner2( lr_current ).

  • in the method after

value = cl_crm_uiu_bt_partner=>get_partner2( lr_current ).

lv_partner = value.

SELECT SINGLE name FROM but000 INTO lv_partnername

WHERE partner_id = lv_partner.

CONCATENATE lv_partner lv_partnername INTO value.

ENDMETHOD.

Edited by: venkatabharathv on Jun 13, 2011 3:11 PM

Former Member
0 Kudos

As far as I know, this is like restriction for modifying methods.

You need to talk to your System administrator / BC support; He needs to get the key from http://service.sap.com -> SAP SUPPORT PORTAL -> Keys & Requests -> SCCR Keys -> Registration and gather you Access codes in order to change the system. He needs to register you as a DEVELOPER.

former_member191572
Contributor
0 Kudos

Hi,

Here i have provide a hint..

Change the lv_partner type into BU_PARTNER

Check the select syntax. Using select statement get ur required fields.

Change lv_partnername into correspondingfields...

venkata_bharath
Participant
0 Kudos

Hi gobi,

i cant get your statement.Please explain it.

In the method after value = cl_crm_uiu_bt_partner=>get_partner2( lr_current ).

Edited by: venkatabharathv on Jun 13, 2011 7:31 PM

former_member191572
Contributor
0 Kudos

Hi,

In the method after value = cl_crm_uiu_bt_partner=>get_partner2( lr_current ).

in the value u ll get the current sold to party partner number.

Based on the partner number get the sold to party name.

Concatenate both number and name pass into value

Becoz.. what ever entry which available in the VALUE will display in UI. u can check the by changing the vaue in the debugg mode also.

nisha_vinod
Advisor
Advisor
0 Kudos

Hi Venkat,

The issue is occuring because value is of type string. So there would be a type mismatch in the line:

lv_partner = value.

To resolve your issue do the following:

Define lv_partner & lv_partnername as type string.

Then assign value to lv_partner.

Then use your SQL statement to get the partner name.

Then do the concatenation.

Hope this helps.

Regards

Nisha