Field in PCUI

Hi,
I have added a field to opportunity transaction through EEWB. I want to populate this field in PCUI and not in SAP GUI.
So i have made Z_ class as a subclass of CL_CRM_BSP_AM_HEADFM_1o. In this i have redefined the READ method, and have called mapping modules in that to download and upload the structure ET_SCREEN_STRUCTURE.
The mapping method is cl_bsp_bp_global_service=>table_mapping.
My doubt is can i use this mapping method in READ method or it should be in some other method of the class. Because in READ method it throws me an ERROR.
Any suggestions about this?
Thanks & Regards,
Karthik.

Hello Karthik,
I just noticed a sentence in your previous reply : 'I dont want to store the contents of this field in database.'
If this is the case, you should not generate this field via EEWB because this is creating entries in the DB.
Just add an append to your screen structure, add the field in a field group for display in PCUI and put some logic in the READ method of your MAC to show the value.
The method CL_BSP_BP_GLOBAL_SERVICE-TABLE_MAPPING should work, even if it is normally intended for BP. What is exactly the error?
If you have created a Z MAC with subclass CL_CRM_BSP_AM_HEADFM_1o, redefine the READ method.
In the redefined read method, call first the READ method from the super class, then add your logic to add the value in your Z field.
As the table et_screen_structure has no structure (type any), you can always transfer it to a local table with the correct structure.
You know the correct structure which is used in your PCUI screen.
Some possible code (read it as a logic and not a syntax correct code):
Data :
lt_screen_structure type table of screen_structure,
ls_screen_structure type screen_structure.
If iv_screen_structure_name = ‘screen_structure’.
Move et_screen_structure to lt_screen_structure.
Loop at lt_screen_sturcture into ls_screen_structure.
… logic to fill the Z field…
Endloop.
Move lt_screen_structure to et_screen_structure.
Endif.
Hope this will help you,
Regards,
Frédéric

Similar Messages

  • How to delete a field in pcui

    hi,
    i am new in pcui.
    can i one tell me how to delete ( label and input field ) a field in pcui.
    thnx in advance

    Hi Amit,
    You can delete or hide the fields u want in  PCUI application refer below steps:
    1) Tcode CRMC_PCUITOOLS in Analysis Tools enter u r application and Ziview and execute (make sure u r changing the zivew, which will not affect standard ivews)
    2) in Window u'll see the all technical details i.e.Structure, field group, Access class, Toolbar Group etc.
    3) Tcode CRMC_BLUEPRINT_C in Application Element u can Customize Toolbar, Tab Page Group, Field Group etc u r Zivew.
    Note : You can get the PCUI cookbook from the service market place which will help you in making changes specific to PCUI applications.
    Hope it'll help u.
    Thanks,
    Dipesh.
    Edited by: DD's on Nov 10, 2008 6:30 AM

  • Adding new field in PCUI

    Hi All,
    Can anybody tell me how to add new field in PCUI screen which is already present in database?
    As per my understanding,I need to create a Zstructure which will be copy of my standard structure. To this Z structure I will add my new field. Then I will replace standard structure against my fieldgroup with my Z structure.Activate it. Then in Application set defination I will replace std structure and class with my Z structure and std class.
    By this way fields gets display on PCUI screen. But its value is not saved in database?
    Is there any step I am missing?
    Regards,
    Vikas

    Hello Vikas,
    The following will be best approach to Add new Field in PCUI:
    (1) Get Information in which Screen area of application new field is requried to shown i.e. details like screen structure, field group and model access class.
    (2) Check the new field is available the corresponding screen structure ..
    (3) If Yes, then add to field group and generate field group layout, i this case, the field value will be stored in DB by standard Model class.
    (4) If No, then create Custom structure and add to field group in order to expose to screen.
        in this case, you have to assign this structure correspoding screen details in CRMC_BLUEPRINT_C->application layout. Create Model class inheriting standard on MAC impliment modify and read method to write logic of saving...reading fielf value and Assign it new structure in application set of corresponding application,
    Regards,
    Arjun

  • Creation of Dropdown "custom" field in PCUI

    Hello
    I have created a new field through EEWB and want to place it in both form view and list view of Accounts transaction (crmm_account) in PCUI. This field should be come as a drop down field and should have specific values to be picked from the domain associated with its data element.
    Problem is
    1. When I converted it into a drop down field through Blueprint tables, it is showing properly in form view but "not" in list view. In list view It creates a "drop down list" but without any option values.
    2. If I dont create a dropdown field then it gets displayed as a Input Field with "F4" option list. However, it lets a user enter ANY value in the Input field. (Ideally it should allow user to put only the values being shown in F4 options list like Country Field)
    Any input to resolve the issue is welcome.
    Regards

    Mani,
    You may want to look at IMG and check your entries for the respective fields.
    If you dont want users to enter any value, check and mark the respective control attributes for those fields.
    Hope that helps.
    Bala Nair

  • EEWB Fields in PCUI Screen

    Hi All
    I am facing a weird problem for a long time and have not got any documentation to refer.
    I have created a new field through EEWB and want to see it in both Form & List View of Accounts transaction(CRMM_ACCOUNT) in PCUI.
    I realised that extended field through EEWB are created in a Field Group(FG) "CI_EEW_BUT000".  However the "Search Result Area" Field Group  (ACC_SRES_01) contains a 32 Digit Number Field Group in it. Example (4A934616C4104543B9A972B516D6C4E9) . This Field Group in turn contains Field Group "CI_EEW_BUT000".
    However what I have realised is that this dynamic field group number keeps on getting changed.
    But today I can not locate this dynamic field group in the main field group table (Transaction: CRM_BSP_VCLS_FLDGRP) but to my surprise I still find it included in the Field Group "ACC_SRES_01".
    Now the implication is that, I can not see my extended field properly in List View of accounts transaction(crmm_account). I have tried umpteen times to include this field in List view through CRM designer but it is not working. However field is visible in FORM View.
    Does anybody have any idea that how can extended field groups be controlled and how can I display my extended field in List View ?
    Thanks in advance<b></b><b></b>

    Hi Vishal,
    The naming convention sometimes is wrong although it has been created by a standard SAP function or program. Don't worry about this. Many standard PCUI applications are wrong in name conventions terms. Don't care.
    However, naming convention is not the problem with your layout generation (100%), but I'm not sure what's the problem.
    The option you have is to create a new field group, based on the same screen structure than CI_EEW_BUT000 with the same fields. Try to follow the name convention but this is not very important. Regenerate your new field group (with the correspondant view) and try it.
    If not, perhaps the perhaps the Weblog PC-UI and Easy Enhancement Workbench (EEW) Integration helps you.
    Here's the link : <a href="/people/tiest.vangool/blog/2005/07/24/pc-ui-and-easy-enhancement-workbench-eew-integration">/people/tiest.vangool/blog/2005/07/24/pc-ui-and-easy-enhancement-workbench-eew-integration</a>
    Regards
    Message was edited by: Javier Merino Vivar

  • Length of Input field in PCUI ???

    Hello Expert,
    Is there anyway to change the length of input field ?
    I created a input field of lenght 1 in GUI. and added this field PCUI also. In pcui this field is accepting only one char but the field visiable on screen is too long for a single char.I want to change this visiable length of the field on the screen.
    Please Guide me!!!
    Thanks
    Amit

    Thanks Thirumala for ur reply
    Dear visiable length is not taken from DDIC structure field
    length, that also control length of input value.
    Visiable length is controled by layout Algo. only this much i know.How can we change that, No idea.
    Thanks
    Amit

  • "F4" search-help for custom field in PCUI

    Hello all,
    Does anyone know how I can create my own simple F4-help for a custom field I have added to a custom Tab Page in the PCUI? It should show a selection from a custom table.
    I couldn't find an useable example in the PCUI-cookbook.
    Any ideas anyone?
    Kind regards,
    Martijn de Jong.

    Hi Manuel,
    I saw that paragraph but didn't know how to implement it. Maybe you or someone else can explain/translate in steps what I have to do, according to the text underneath, i want to use a combobox:
    "If you want the application to specify the values for selection (within popup or dropdown list box or
    combobox (COBX respectively TIME)) at runtime instead of using predefined domain values, data
    must be provided by the application via the method FILL_DROPDOWN_LISTBOX. That scenario
    works if the field type is "Input Field" and the F4 application is set to "VALUE_TABLE". With these
    customizing settings, the method FILL_DROPDOWN_LISTBOX of the interaction layer is called at
    runtime and the actual field values will be passed to the application via importing parameter
    IT_SCREEN_STRUCTURE. Thus the application can provide context-sensitive help values within a
    popup or a dropdown list box respectively combobox (COBX respectively TIME). Within the popup
    more than one column of values can be displayed."
    How/where do I (re)define method FILL_DROPDOWN_LISTBOX? Do i have to maintain an own class? and how do i ensure that more columns are shown?
    Kind regards,
    Martijn de Jong.

  • Security using custom field in PCUI

    We would like to create a custom field on the header of the business partner to store information that would then be used in the security roles.
    For example, we want to create a branch field on the header of the business partner and then use this field to restrict access to specific accounts within the sytem using a CRM Security role.
    Does anyone know if you can use a custom field in the CRM system to restrict security within the PCUI application?
    If anyone has any information, I would greatly appreciate it as we are on a crunch to get this implemented!
    Thanks!

    Hi Darcie,
    If you add custom field and maintain value in it, i'm not sure if you can restrict access by CRM Security role.
    If your users are going to be entirely based only on portal/pcui (i.e. they would not use SAP-GUI log-in) then you can consider the option of tweaking your Accounts advanced search and not letting users see certain accounts (based on the value in EEWB / custom field)
    Hope this helps.
    Regards,
    Raviraj

  • Additional field in PCUI

    Hello,
    in the table BUT000 exists a field with the name BIRTHDATE. I want to integrate this field in the PCUI for contact person so that the user can maintain this field.
    Which steps are required that this field appears in the PCUI and can be edited?
    Regards
    Philipp

    Pseduo  codee
    Provideddd BIRTHDATE this field should be appended in the structure CRMT_BSP_SEARES_CONTACT.
    This code is just to give an idea ....
    *********in the read method***********************
    DATA:  ls_object_key       TYPE crmt_bsp_objectkey,
            lt_screen_structure TYPE TABLE OF CRMT_BSP_SEARES_CONTACT,
            ls_screen_structure TYPE CRMT_BSP_SEARES_CONTACT,
            ls_data_person      TYPE BAPIBUS1006_CENTRAL_PERSON.
    *to read the Birth date value......
    lt_screen_structure = et_screen_structure.
    loop at lt_screen_structure into ls_screen_structure.
    Get the value of Birthdate by passing the Partner Number.
        CALL FUNCTION 'BUPA_CENTRAL_GET_DETAIL'
          EXPORTING
            IV_PARTNER = ls_screen_structure-PARTNER2
          IMPORTING
            ES_DATA_PERSON    = ls_data_person.
    IF ls_data_person-BIRTHDATE IS NOT INITIAL.
          ls_screen_structure-BIRTHDATE = ls_data_person-BIRTHDATE.
        ENDIF.
        modify lt_screen_structure from ls_screen_structure TRANSPORTING BIRTHDATE.
    endloop.
    et_screen_structure = lt_screen_structure.
      DATA: ls_central_data       TYPE  bapibus1006_central,
              ls_central_data_x   TYPE  bapibus1006_central_x,
              lt_return           TYPE  STANDARD TABLE OF bapiret2 ,
              ls_return           TYPE  bapiret2.
      IF NOT ls_screen_structure-BIRTHDATE IS INITIAL.
    Fill the ls_central_data and pass it to the FM.
        ls_central_data-BIRTHDATE       = ls_screen_structure-BIRTHDATE.
        ls_central_data_x-BIRTHDATE     = 'X'.
      ENDIF.
         CALL FUNCTION 'BAPI_BUPA_CENTRAL_CHANGE'
            EXPORTING
              businesspartner = ls_screen_structure-partner2
              centraldata     = ls_central_data
              centraldata_x   = ls_central_data_x
            TABLES
              return          = lt_return.
          if lt_return is initial    .
            CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
              EXPORTING
                wait = 'X'.
          endif.
    *********end of the read method***********************
    ********modify Method******************
      DATA: lt_screen_structure TYPE  TABLE OF CRMT_BSP_SEARES_CONTACT,
            ls_screen_structure TYPE  CRMT_BSP_SEARES_CONTACT.
      DATA: ls_central_data     TYPE  bapibus1006_central,
            ls_central_data_x   TYPE  bapibus1006_central_x,
            lt_return           TYPE  STANDARD TABLE OF bapiret2 ,
            ls_return           TYPE  bapiret2.
    Move the main structure to a temporary structure to modify the main structure.
      lt_screen_structure = it_screen_structure.
      CLEAR ls_screen_structure.
      READ TABLE lt_screen_structure into ls_screen_structure index 1.
      if sy-subrc = 0.
        IF NOT ls_screen_structure-BIRTHDATE IS INITIAL.
          ls_central_data-BIRTHDATE       = ls_screen_structure-BIRTHDATE.
          ls_central_data_x-BIRTHDATE     = 'X'.
        ENDIF.
    Save the value of BIRTHDATE.
          CALL FUNCTION 'BAPI_BUPA_CENTRAL_CHANGE'
            EXPORTING
              businesspartner = ls_screen_structure-partner2
              centraldata     = ls_central_data
              centraldata_x   = ls_central_data_x
            TABLES
              return          = lt_return.
          if lt_return is initial    .
            CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
              EXPORTING
                wait = 'X'.
          endif.
        endif.
      ENDIF.
    ********end of modify Method******************
    Thanks,
    Anil

  • Assign search help to a field in PCUI

    Hi Friends,
    Here is my requirement. I have designed a PCUI application which searches the address based on the post code entered. Now the standard method to assign this application as search help is to specify the name of the application in the "input help" property of a field in the field group.
    I have implemented the same for the field POST_CODE1 of the field group ADR_DETAIL_POSTAL which is a part of service order application in PCUI. Now when i try to use the same thing in street field, it does not work. the F4 help just does not come. It works fine for STR_SUPPL2 field, House_num1 field and all other fields in the field group except for the Street field. ANd the client wants in only on the street field.
    I am not able to understand that what might be the possible mistake. Any help in this matter will be highly appreciated.
    Thanks in advance,
    Karan

    Check the FM: HELP_VALUES_GET_WITH_TABLE_EXT
    Check the documentation for example code.
    regards,
    Ravi

  • **urgent** customer grp field in pcui

    Hi SDN,
    we are using CRM 5.0 and also deplOyed CRM 5.0 bp in portal(2004s).
    In CRM GUI in BP under Sales area I can find Customer grp1, Customer Grp2 etc.
    But where as in Portal I can see only option Customer Grp1.
    Our requirement is to have all Customer Grp1 to Grp5 fields  in Portal screen.
    So, if we have the required fields in CRM GUI, how to get them in PCUI application.
    I even got the technical details of the application also:
    Application Name: COMM_BUPA
    Field group: ACC_SALES_AREA
    Structure: CRMT_BSP_SALES_AREA_BP
    I have gone thorugh forum, but bit confused whether to go for EEW or anyother way.
    Please help me in regard to this.
    Appreciate your help.
    With Regards,
    Ravi.D
    Message was edited by: Ravi

    hi,
    the fields are in the structure CRMT_BSP_SALES_AREA_BP.
    Start transaction crmc_blueprint_c -> Application Element -> Field Group -> Field group structure for Field Group.
    You have to copy Fieldgroups "ACC_SALES_AREA_ODC21" and and "ACC_SALES_AREA_ODC2_1" from crmc_blueprint.
    In "ACC_SALES_AREA_ODC2_1" you find CUSTOMER_GROUP1. Just add ..2, ..3, ...
    Afterwards generate the fieldgroup (crmc_blueprint_c -> Application Element -> Field Group -> Layout Generation).
    that should work!
    yours michael

  • Hiding a field in PCUI

    Dear Gurus,
    I am asked to do hide some fileds, add some new tabs,  rename some of the labels etc in CRM Portal 4.0 running on EP 6.20. Here is my approach to hide one of the fields Quality(Auto) in the lead management screen  for Lead Manager.
    I have identified my Field group. it is LEA_BD_QL. I have executed the transaction code CRMC_BLUEPRINT_C and selected the Application Element -> Field Group Structure. There were no entries for this field group. I have made an entry
    SCREENPOSITION : 20
    FIELDNAME : QUAL_LEVEL_AUTO
    FIELDTYPE : DropdownListBox
    Not In List : Yes
    Not in Detail : Yes
    and saved the entry.
    Then went to Application Element -> Layout Generation
    selected the field group as LEA_BD_QL and my View as : MKT_LEAD_M
    The Only Check Field Groups check box is checked and executed, I got the message : "No field group was selected in the blueprint table"
    When I try to generate the lay out for LEA_BD(which contains LEA_BD_QL), I get the message : Layout for field group LEA_BD contains no fields
    and once I goto the portal, the field is not hided.
    Can you pls suggest me if I am generating the field group properly and did I miss any of the step or not following the steps properly.
    Thanks!
    Vivek

    Raj,
       There are 2 field groups in the field structure with same name "9DA12CF6F564DB4997234924C02885B5" one for blank BLVIEW and another for MKT_LEAD_Q. When I delete these 2 entries and generate the layout, I get the message "Correct Field Groups LEA_BD MKT_LEAD_Q". I tried generating the layout with both blank view and also with the role MKT_LEAD_Q and I get the same message. What is the message that I get if the layout is generated proprely. Do I have to create any ZView or Zapplication, import any field groups here into the zapplications? I have not created any Zapplication or ZView. I am trying to modify CRMD_BUS200108. Looks like I am missing a vital piece here. If you any detailed document for this process, can you pls pass it on to me.
    Thanks!
    Vivek.

  • Editable field in PCUI

    Hello,
    I want to make a field editable, by code, if a condition is true. Haw can I make that ?
    Thank you,
    Mll Mat

    Hi,
    In the method 'IF_CRM_BSP_MODEL_ACCESS_IL~READ', there is one parameter 'ET_FIELD_ATTRIBUTE' .
    We need to modify this parameter to show the field as editable.
    We need to set 'Not Changeable' flag in the field 'FIELD_PROPERTY' (structure CRMT_BSP_FIELDATTRIBUTE).
    Please let me know in case of any issues.
    Regards,
    Darshana

  • How to modify state of fields on screen in PCUI through BADI

    Hi,
    Is there any way to modify the state of screen fields(such as greying out the fields) in PCUI, when a SAP backend BADI is being triggered??
    Appreciate if sample codes or programming guides can be given if you have.
    Thanks a lot!!!

    I guess the links below should help in your problem ..
    http://www.saptechies.com/how-to-create-table-maintenance-generator/
    Window size on SM30
    If these do not please tell ..
    Regards,
    Manthan

  • Changing label on PCUI field

    Hi All.
    I'm trying to change a label for a field in PCUI (CRM 5.0) Application CRMD_BUS2000112. The field (ORDERED_PROD) is in a field group SRC_GDT_ITEM and this field group is in the field group SRC_DISPLAY_GDT_ITEM. The label displayed must change depending of the Business Transaction type, my idea was encapsulate the field ORDERED_PROD in a new field group ZYYYY with a variant and then use customizing for changing the Text but when i'm generating layout for the field group SRC_DISPLAY_GDT_ITEM the following error is displayed "Field Group Could not be read completely". Did i miss something ? a better solution for this ?
    Thanks and best regards.

    Hi All.
    The idea of encapsulate the field in a field group didn't work. Any idea about changing the field label depending of the Transaction Type ?
    Thanks

Maybe you are looking for

  • Trouble with animated gif

    I have an image and and I want to paste an animated gif on top of the image. When do an image preview or export the the file the animation works but the screen turns checkerboard and the underlying image is only visible when the gif isn't animated. 

  • How do I transfer a website without building a new one?

    how do I transfer a website without building a new one?

  • ADF-BC Adapter

    Hello friends, How can I perform CrUD operations by using ADF-BC Adapter. I tried it and created the Model Application of ADF-BC but don't know how to deploy it on web logic to get it's WSDL location which will later used in ADF-BC Web service? I am

  • Audio dropping in CS6

    Hi Guys, I have a strange problem with Audio dropping in Premier Pro CS6. The original MPEG file plays fine from start to finish – in Premier Pro the audio also plays fine up until the last 2 minutes of footage, then drops completely. I tried transco

  • Is it possible to copy entire database when update from 32 bit to 64 bit?

    Just want to update the os from 32bit to 64bit with Oracle9i. Sinece the data amount is very large, to export and import is quite time consuming, so Is it possible to copy entire database? Or any other suggestion?