on 06-13-2011 10:10 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
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.
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.
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
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.