Skip to Content
author's profile photo Former Member
Former Member

Adding new fileds to bupa search screen and Authorization

Hi Friends,

Good morning to All and Happy New Year in Advance.

I have two doubts. First one:

1) I need to create additional field in BUPA search screen. If I open BP in find tab we can see the search option like address, external no, Location no, name , number , search term etc. I need to add 1more option in that. How can I do?

Second Question:

2) What it the importance of Authorization group in BP Control tab. I know how to create the authorization group but why we have to use this field in BP?

Points will be rewarded.

Plz give me the specified answer.

Thanx in Advance

Saravana

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 28, 2007 at 07:03 AM

    Hi,saravana kumar

    your first question ,i can do it ,but i don't write it down as a document .

    if you want ,i will write it down ,but i must leave for home today and will back on 01/02/2008 .

    if urgent , you can add my msn :sap_whittle@hotmail.com

    Edited by: xiaoming cai on Dec 28, 2007 3:04 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 28, 2007 at 05:20 AM

    Hi Friends,

    Can anybody guide me on above questions? Plz.....

    Thanx

    Saravana

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 03, 2008 at 08:13 AM

    HI,

    1.Enhance the structure "BUS_JOEL_SEARCH" .

    There are some include structures ,"BUS_JOEL_SEARCH_FIELDS_ALL","BUS_JOEL_SEARCH_FIELDS_PERSON",

    "BUS_JOEL_SEARCH_FIELDS_ORG","BUS_JOEL_SEARCH_FIELDS_GROUP". because

    "BUS_JOEL_SEARCH_FIELDS_ALL","BUS_JOEL_SEARCH_FIELDS_PERSON" have been appended by structures ,

    we should append a structure in "BUS_JOEL_SEARCH_FIELDS_ORG" ,

    input the append name "ZBUS_JOEL_SEARCH_APP1" , add the fields we want to add ,

    like address, external no, Location no, name , number , search term etc. if the field exist,don't add it .

    2.Create a search help .

    Create a search help "Z_BUPA_BADI",copy from "BUPA_ALL_ADDRESS" .

    if you want to add a search in "PERSON" in FIND tab ,you should add "Z_BUPA_BADI" in Append search help

    "CRMPHA_BUPA_PERSON" .

    3.Create a function group .

    Create a function group "ZBP_LOCATOR_UI" , create two subscreen 2200(Columns 33), and 3200(Columns 68) .

    add the fields in the screens through the structure "BUS_JOEL_SEARCH" .

    and the flow logic is :

    PROCESS BEFORE OUTPUT.

    MODULE DYNPRO_PBO_ADDRV.

    PROCESS AFTER INPUT.

    MODULE DYNPRO_PAI.

    *----


    ***INCLUDE LZ_BP_LOCATOR_UIO01 .

    *----


    *&----


    **& Module dynpro_pbo_addrv OUTPUT

    *&----


    **text

    *----


    MODULE DYNPRO_PBO_ADDRV OUTPUT.

    **Global data.

    GS_DYNPRO_ID-PROGRAM_NAME = SY-REPID.

    GS_DYNPRO_ID-DYNPRO_NUMBER = SY-DYNNR.

    CALL METHOD CL_BUS_ABSTRACT_SCREEN=>DYNPRO_PBO

    EXPORTING

    IV_PROGRAM_NAME = GS_DYNPRO_ID-PROGRAM_NAME

    IV_DYNPRO_NUMBER = GS_DYNPRO_ID-DYNPRO_NUMBER.

    ENDMODULE. " dynpro_pbo_addrv OUTPUT

    *&----


    **& Module dynpro_pai INPUT

    *&----


    **text

    *----


    MODULE DYNPRO_PAI INPUT.

    GS_DYNPRO_ID-PROGRAM_NAME = SY-REPID.

    GS_DYNPRO_ID-DYNPRO_NUMBER = SY-DYNNR.

    CALL METHOD CL_BUS_ABSTRACT_SCREEN=>DYNPRO_PAI

    EXPORTING

    IV_PROGRAM_NAME = GS_DYNPRO_ID-PROGRAM_NAME

    IV_DYNPRO_NUMBER = GS_DYNPRO_ID-DYNPRO_NUMBER.

    ENDMODULE. " dynpro_pai INPUT

    the screen 3200 is the same as the screen 2200 .

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 03, 2008 at 08:22 AM

    4.Create a function "Z_BP_DIALOG_SEARCH"

    Create a function "Z_BP_DIALOG_SEARCH" copy from "BUPA_DIALOG_SEARCH" ,pls just copy the parameters .

    the source code :

    **Local data.

    DATA: LS_SEARCH_FIELDS TYPE BUS_JOEL_SEARCH,

    LV_MC_NAME1 TYPE BU_MCNAME1,

    LV_MC_NAME2 TYPE BU_MCNAME2.

    BREAK-POINT .

    **Convert generic container into specific fields.

    LS_SEARCH_FIELDS = IV_SEARCH->GV_SEARCH_FIELDS. "#EC ENHOK

    **Choose the select.

    CASE IV_SEARCH->GV_SEARCH_ID.

    **The empty search?

    WHEN SPACE.

    CALL METHOD LCL_SEARCHER=>SELECT_BY_NOTHING

    EXPORTING

    IV_SEARCH = IV_SEARCH.

    WHEN LCL_SEARCHER=>GC_SEARCH_ID-COMMUNICATION.

    CALL METHOD LCL_SEARCHER=>SELECT_BY_COMMU

    EXPORTING

    IV_SEARCH = IV_SEARCH

    IV_SMTP_ADDR = LS_SEARCH_FIELDS-SMTP_ADDR

    IV_TEL_NUMBER = LS_SEARCH_FIELDS-TEL_NUMBER

    IV_TEL_EXTENS = LS_SEARCH_FIELDS-TEL_EXTENS

    IV_FAX_NUMBER = LS_SEARCH_FIELDS-FAX_NUMBER

    EXCEPTIONS

    SEARCH_VALUES_MISSING = 1.

    ENDCASE .

    CASE SY-SUBRC.

    WHEN 1.

    RAISE SEARCH_VALUES_MISSING.

    ENDCASE.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 03, 2008 at 08:28 AM

    5.Create a class "LCL_SEARCH" .

    we should add some types in the function group top .

    FUNCTION-POOL Z_BP_LOCATOR_UI MESSAGE-ID BUPA_JOELS_DIALOG. "MESSAGE-ID ..

    TABLES bus_joel_search.

    **Forward declarations for global classes.

    CLASS CL_BUPA_DIALOG_SEARCHER DEFINITION LOAD.

    DATA GS_DYNPRO_ID TYPE BUS_SCREEN-AREA.

    *----


    **

    **GENERAL Section

    **

    *----


    **

    CONSTANTS: GC_X TYPE BU_BOOLEAN VALUE 'X',

    GC_ADRV_ELEMENT TYPE AD_DTEL VALUE 'BU_ADDRVERS_MAP',

    GC_TZONE TYPE TIMEZONE VALUE 'UTC',

    GC_OBJ_BUPA TYPE BU_DEV_OBJECT VALUE 'BUPA',

    GC_DEV_BUT000TD TYPE BU_DEVELOPMENT VALUE 'BUT000'.

    **Search for Address versions active ?

    DATA: GV_ADDRV_ACTIVE TYPE BU_BOOLEAN,

    GV_ADDRV_CHECKED TYPE BU_BOOLEAN VALUE SPACE,

    GV_LOGON_NATION TYPE AD_NATION VALUE SPACE.

    *&----


    **& Class LCL_SEARCHER

    *&----


    **Text

    *----


    CLASS LCL_SEARCHER DEFINITION.

    PUBLIC SECTION.

    **CLASS-DATA:

    **gv_addrv_checked TYPE bu_boolean VALUE space.

    CONSTANTS:

    **The search id.

    BEGIN OF GC_SEARCH_ID,

    **For all partner types.

    PARTNER_NUMBER TYPE BUS_LOCATOR-SEARCH_ID

    VALUE 'BUPA_ALL_PARTNER_NUMBER',

    SEARCH_TERM TYPE BUS_LOCATOR-SEARCH_ID

    VALUE 'BUPA_ALL_SEARCH_TERM',

    EXTERNAL_NUMBER TYPE BUS_LOCATOR-SEARCH_ID

    VALUE 'BUPA_ALL_EXTERNAL_NUMBER',

    ALL_ADDRESS TYPE BUS_LOCATOR-SEARCH_ID

    VALUE 'BUPA_ALL_ADDRESS',

    PARTNER_NAME TYPE BUS_LOCATOR-SEARCH_ID

    VALUE 'BUPA_ALL_PARTNER_NAME',

    **For organiztions only.

    ORGANIZATION_NAME TYPE BUS_LOCATOR-SEARCH_ID

    VALUE 'BUPA_ORGANIZATION_NAME',

    LOCATION_NUMBER TYPE BUS_LOCATOR-SEARCH_ID

    VALUE 'BUPA_ORGANIZATION_ILN',

    **For persons only.

    PERSON_NAME TYPE BUS_LOCATOR-SEARCH_ID

    VALUE 'BUPA_PERSON_NAME',

    BIRTH TYPE BUS_LOCATOR-SEARCH_ID

    VALUE 'BUPA_PERSON_BIRTH',

    **For groups only.

    GROUP_NAME TYPE BUS_LOCATOR-SEARCH_ID

    VALUE 'BUPA_GROUP_NAME',

    " add by caixiaoming 20070801 begin

    COMMUNICATION TYPE BUS_LOCATOR-SEARCH_ID

    VALUE 'ZBUPA_BADI',

    " add by caixiaoming 20070801 end

    END OF GC_SEARCH_ID.

    **

    CLASS-METHODS:

    SELECT_BY_NOTHING

    IMPORTING IV_SEARCH TYPE REF TO CL_BUS_LOCATOR_SEARCH,

    SELECT_BY_PARTNER_NUMBER

    IMPORTING IV_SEARCH TYPE REF TO CL_BUS_LOCATOR_SEARCH

    IV_PARTNER_NUMBER TYPE BUS_JOEL_SEARCH-PARTNER_NUMBER

    EXCEPTIONS SEARCH_VALUES_MISSING,

    SELECT_BY_SEARCH_TERM

    IMPORTING IV_SEARCH TYPE REF TO CL_BUS_LOCATOR_SEARCH

    IV_SEARCH1 TYPE BUS_JOEL_SEARCH-SEARCH1

    IV_SEARCH2 TYPE BUS_JOEL_SEARCH-SEARCH2

    EXCEPTIONS SEARCH_VALUES_MISSING,

    SELECT_BY_EXTERNAL_NUMBER

    IMPORTING IV_SEARCH TYPE REF TO CL_BUS_LOCATOR_SEARCH

    IV_EXTERNAL_NUMBER TYPE BUS_JOEL_SEARCH-EXTERNAL_NUMBER

    EXCEPTIONS SEARCH_VALUES_MISSING,

    SELECT_BY_NAMES

    IMPORTING IV_SEARCH TYPE REF TO CL_BUS_LOCATOR_SEARCH

    IV_MC_NAME1 TYPE BU_MCNAME1

    IV_MC_NAME2 TYPE BU_MCNAME2

    EXCEPTIONS SEARCH_VALUES_MISSING,

    SELECT_BY_LOCATION_NUMBER

    IMPORTING IV_SEARCH TYPE REF TO CL_BUS_LOCATOR_SEARCH

    IV_LOCATION1 TYPE BUS_JOEL_SEARCH-LOCATION1

    IV_LOCATION2 TYPE BUS_JOEL_SEARCH-LOCATION2

    IV_LOCATION3 TYPE BUS_JOEL_SEARCH-LOCATION3

    EXCEPTIONS SEARCH_VALUES_MISSING,

    SELECT_BY_BIRTH

    IMPORTING IV_SEARCH TYPE REF TO CL_BUS_LOCATOR_SEARCH

    IV_BIRTH_DATE TYPE BUS_JOEL_SEARCH-BIRTH_DATE

    IV_BIRTH_PLACE TYPE BUS_JOEL_SEARCH-BIRTH_PLACE

    EXCEPTIONS SEARCH_VALUES_MISSING,

    SELECT_BY_ADDRESS

    IMPORTING IV_SEARCH TYPE REF TO CL_BUS_LOCATOR_SEARCH

    IV_ADDRESSVERS TYPE BOOLE-BOOLE

    IV_CITY TYPE BUS_JOEL_SEARCH-CITY_MC

    IV_POST_CODE1 TYPE BUS_JOEL_SEARCH-POST_CODE1

    IV_STREET TYPE BUS_JOEL_SEARCH-STREET_MC

    IV_HOUSE_NUMBER TYPE BUS_JOEL_SEARCH-HOUSE_NUMBER

    IV_NATION TYPE BUS_JOEL_SEARCH-NATION

    IV_COUNTRY TYPE BUS_JOEL_SEARCH-COUNTRY

    EXCEPTIONS SEARCH_VALUES_MISSING

    SPECIFY_SEARCH,

    " add by caixiaoming 20070801 begin

    SELECT_BY_COMMU

    IMPORTING IV_SEARCH TYPE REF TO CL_BUS_LOCATOR_SEARCH

    IV_SMTP_ADDR TYPE BUS_JOEL_SEARCH-SMTP_ADDR

    IV_TEL_NUMBER TYPE BUS_JOEL_SEARCH-TEL_NUMBER

    IV_TEL_EXTENS TYPE BUS_JOEL_SEARCH-TEL_EXTENS

    IV_FAX_NUMBER TYPE BUS_JOEL_SEARCH-FAX_NUMBER

    EXCEPTIONS SEARCH_VALUES_MISSING

    SPECIFY_SEARCH,

    " add by caixiaoming 20070801 end

    DETERMINE_ADDRV_ACTIVE.

    ENDCLASS. "LCL_SEARCHER

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi, saravana kumar

      There are some configuration must to do .

      8.CONFIG

      SPROCRMInteraction Center WinClientvisible components-Navigation area-Define Search in Locator

      select the "Search IDs" ,click "New Entries"

      Locator SearchID : "ZBUPA_BADI"

      Screen Text : "CUSTOMER SEARCH" (The name you want to display in the FIND TAB)

      Function Module : "Z_BP_DIALOG_SEARCH"

      Program Name : "SAPLZ_BP_LOCATOR_UI"

      Screen number :2200

      Large screen : 3200

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.