BP Transaction : Assign values to fields upon selection of BP role ?

Hi All,
I want to assign values to Grouping and Account Group fields in BP transaction in CRM.
Is there any BADI or Userexit to achive the same. If possible kindly explain the steps to be implemented to use the BADI.
Thanks & Regards,
Navneeth K.

Hi Navneeth,
There are 2 ways to approach this :
1. You can create an application transaction for the standard transaction BP. This will open the transaction in whichever role you require, default a groupng, and allow you to control some other initializaittion parameters. This is very similar the transaction variant mentioned above by Adil.
You can explore 'Application Transactions' through SPRO->Cross Application>SAP Business Partner-> Business Partner> BAsic Settings>Business Partner Roles>Define Application Transactions.
2. To default grouping , you can use BADI BUPA_NUMBER_GROUP. THe BADI will receive the list of groupings that will be shown in the dropdown .Write the implementation so as to remove unwanted groupins and keep only the number groupig you wish to default.
Hope this helps.
Cheers,
Rishu.

Similar Messages

  • BP Transaction - Default values upon selection of BP role ?

    Hi All,
    I want to assign values to Grouping and Account Group fields in BP transaction in CRM.
    Is there any BADI or Userexit to achive the same. If possible kindly explain the steps to be implemented to use the BADI.
    Thanks & Regards,
    Navneeth K.

    Hi Navneeth,
    There are 2 ways to approach this :
    1. You can create an application transaction for the standard transaction BP. This will open the transaction in whichever role you require, default a groupng, and allow you to control some other initializaittion parameters. This is very similar the transaction variant mentioned above by Adil.
    You can explore 'Application Transactions' through SPRO->Cross Application>SAP Business Partner-> Business Partner> BAsic Settings>Business Partner Roles>Define Application Transactions.
    2. To default grouping , you can use BADI BUPA_NUMBER_GROUP. THe BADI will receive the list of groupings that will be shown in the dropdown .Write the implementation so as to remove unwanted groupins and keep only the number groupig you wish to default.
    Hope this helps.
    Cheers,
    Rishu.

  • Assigning value to field in proxy report

    Hello,
    I am writing the abap report for sproxy.
    The link to the field in structure is very long.
    e.g. it-fault_message_mt-request-calldata-requester-gid = 'Z12345'.
    In the structure one field in calldata is ADDITIONAL_ATTRIBUTE which is of table type.
    I want to assign values to the fields of ADDITIONAL_ATTRIBUTE.
    When I click on field ADDITIONAL_ATTRIBUTE we can see line type ZFAULT_MESSAGE_ADDITIONAL_ATTR and this line type is having NAME as on of the field.
    I want to pass value to field NAME.
    Regards,
    Neelambari

    Hi,
    Create a work area as line type. and loop at table type into work area.
    *wa like line type
    *loop at table_type into wa.
    *wa-name = Value.
    *append wa to target table type.
    ****target table type structure should be  same as that of source table type. *****
    Sachin

  • Assigning value to Field - Symbol ( which is type of internal table field )

    Hi All,
      I am facing problem to assign the value to a field symbol. My requirement is creating a dynamic internal table and populate values into that internal table, so that i can display the values .
      I am having a structure with fields like status , Plant1 name , Plant2 name.....Plant n .
      So i declared an internal table it_tab with this structure.
      I am having one more table which having number of records for Plant1 ,Plant 2 ,....Plant n based on some condition.
      I need to count the number of records for Plant1 and i need to put in the internal table it_tab.
      For this i created field-symbol .
    Here, t_deployment table will have the plants 1,2,3...and
         t_devobject will have some records for these plants.
    LOOP AT T_DEPLOYMENT. 
    clear w_count.
    LOOP AT T_DEVOBJECT WHERE ZDEPLOYMENT = T_DEPLOYMENT-DOMVALUE_L AND
                              ZADSTATUS = '10'.
    w_count = w_count + 1.
    ENDLOOP.
    concatenate 'it_tab-' t_deployment-domvalue_l into var_bet_name.
    assign var_bet_name to <bet_var_name>.
    now my internal table field i.e. it_tab-plant1 came into <bet_var_name> . But i want to assign a value for it.
    at last what i need is it_tab-plant1 = w_count.
    whaterver the w_count has value that needs to assign to it_tab-plant1. But i don't want to assign directly it it_tab-plant1. I want to assign dynamically. Because tommorrow some more plants added to t_deployments , i don't want to make changes to my program. It should take care....w/o changing the program.
    I tried the following statement.
    (<bet_var_name>) = w_count. But its not working.
    Please let me know how i can get this.
    Thanks in Advance.
    Pavan.

    Hi pavan,
    As ur requirement is creating a dynamic internal table,
    try the following way,
    remember the fieldcat should be of type LVC not SLIS.
    BUILD LT_LVCFIELDCAT in a way that, the value from the internal table becomes the fieldname
    ex:-
    loop at it_models INTO WA_MODELS.
        LS_LVCFIELDCAT-FIELDNAME = WA_models-MODEL.
        LS_LVCFIELDCAT-SELTEXT = WA_models-MODEL.
    append ls_lvcfieldcat to lt_lvcfieldcat.
    endloop.
    DATA: DREF TYPE REF TO DATA,WA_REF TYPE REF TO DATA.
    FIELD-SYMBOLS: <TEMP_TAB> TYPE TABLE, <TEMP_WA> TYPE ANY.
    CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
        EXPORTING
          IT_FIELDCATALOG = LT_LVCFIELDCAT
        IMPORTING
          EP_TABLE        = DREF.
      ASSIGN dref->*  TO <TEMP_TAB>.
    now basing on the fieldcatalog <temp_tab> is build.
    NOW FILL <TEMP_TAB>.
    WHILE FILLING, ASSIGN COMPONENT IDX/NAME.....
    this statement will be very usefull.
    i hope this will be help full.
    pls reward the points if it helps u.
    regards
    Hyma

  • Assign value to field of table before calling function module

    hi,
    FM 'ABC' have some TABLES parameters.
    Before calling a function module 'ABC',i want to assign a value to one of the fields of the TABLES parameter.
    TAB1 is a name of parameter and field FLD1 is a name of the field of TAB1 which i want to update before calling 'ABC'.
    Thank you in advance.

    hi,
    1. store value in workarea
    tab1-fld1 = 'value'.
    2. append/modify the entry in tab1.
    append tab1.
    or
    modify tab1
    3. call your function module

  • How to assign values to a work area which is a Field Symbol?

    Hello Experts!
    I really need your help! this is the problem:
    I need to assign values to fields into a work area which is a field symbol. The values come from a flat file I uploaded and as I can't know the length I had to build the structure dynamically ( That's why I'm using FS). Each field comes from the file separated by ';', I tried using the SPLIT sentence:
    "SPLIT text AT ';' INTO TABLE <dyn_table>." but the values are assigned vertically into the same field instead of horizontally into each field of the table(field-symbol table).
    I know the name of the field dynamically
    (a TEXT + number) and I know I can't do this
    <dyn_wa>-TEXT1 or field_name = 'TEXT1' <dyn_wa>-(field_name).... ohhh I'm blocked, I don't seem to find the answer, please help!
    Thanks in advance!!
    Frinee

    Now that you have a table with the values, you can move them to the work area.
    data: begin of wa,
          fld1(20) type c,
          fld2(20) type c,
          fld3(20) type c,
    *     and so on
          end of wa.
    data: istr type table of string with header line.
    field-symbols: <fs>.
    split text at ';' into table istr.
    loop at istr.
    assign component sy-tabix of structure wa to <fs>.
    if sy-subrc <> 0.
    exit.
    endif.
    <fs> = istr.
    endloop.
    write:/ wa-fld1, wa-fld2, wa-fld3.
    Now, WA has the values in a horizontal fashion.
    Regards,
    Rich Heilman

  • How to make a column values as fields - Generic one needed -help me....!

    Hi,
    There are some data dictionary views to get the list of column names and their id.
    eg: all_tab_columns
    I am querying the fiels for EMP table..
    Select column_name,column_id from all_tab_columns where table_name='EMP' order by column_id;
    column Name column_id
    EMPNO 1
    ENAME 2
    SAL 3
    My reuuirement is nothing but the values of COLUMN_NAME should be displayed as an individual field that is..
    EMPNO,ENAME,SAL
    Likewise, it should react for all tables that is the values should transformed into fields..
    Please help me out in this regard..
    Thanks in advance...

    The reason why i need the generic query to frame the column values into individual fiels is , the explicit cursor can not be used for binding sql statments and moreover i want to create the record type based on the explicit cursor due to some requirement in creating generic procedure..
    So, I need a help for creating column values individual fields meaning
    select column_name from all_tab_columns where table_name='EMP'
    COLUMN_NAME
    EMPNO
    ENAME
    SAL
    the answer should be
    empno ename sal
    Pleaese help me ...

  • How can i assign value to the certain field in dynmic table ?

    i have created a dynmic table .now i want to assign value to the certain field,how can i do that?
    for eg,
    <dyn_table> contains fields of  name age ,now i want assign 'jack' to this internal talbe's field name ,

    Hi,
    try this:
    FIELD-SYMBOLS: <GT_ITAB>      TYPE TABLE,
                   <GS_ITAB>,
                   <FS>, <FS1>.
    DATA: GT_DATA   TYPE REF TO DATA.
    DATA: GS_DATA   TYPE REF TO DATA.
    START-OF-SELECTION.
      CREATE DATA GT_DATA TYPE TABLE OF PA0002.
      ASSIGN GT_DATA->*   TO <GT_ITAB>.
      CREATE DATA GS_DATA    LIKE LINE OF <GT_ITAB>.
      ASSIGN GS_DATA->*      TO <GS_ITAB>.
      ASSIGN COMPONENT 'NACHN' OF STRUCTURE <GS_ITAB> TO <FS>.
      <FS> = 'Smith'.
      ASSIGN COMPONENT 'VORNA' OF STRUCTURE <GS_ITAB> TO <FS>.
      <FS> = 'Paul'.
      APPEND <GS_ITAB> TO <GT_ITAB>.
      ASSIGN COMPONENT 'NACHN' OF STRUCTURE <GS_ITAB> TO <FS>.
      <FS> = 'Jones'.
      ASSIGN COMPONENT 'VORNA' OF STRUCTURE <GS_ITAB> TO <FS>.
      <FS> = 'Martin'.
      APPEND <GS_ITAB> TO <GT_ITAB>.
      LOOP AT <GT_ITAB> INTO <GS_ITAB>.
        ASSIGN COMPONENT 'NACHN' OF STRUCTURE <GS_ITAB> TO <FS>.
        ASSIGN COMPONENT 'VORNA' OF STRUCTURE <GS_ITAB> TO <FS1>.
        WRITE: / <FS>, <FS1>.
      ENDLOOP.
    Regards, Dieter

  • Assigning Transaction Code to each field in a report

    Hi,
    I have a query report which displays for example
    Purchase Order, Material etc
    Now via abap i want to assign a transaction code to both fields so when the the query runs and if the user double clicks Purchase Order it goes to ME23N if the user double clicks Material it goes to MM03 etc
    <REMOVED BY MODERATOR>
    Thanks
    Adeel
    Edited by: Alvaro Tejada Galindo on Mar 3, 2008 4:54 PM

    In ur report use the following code:
    DEFINE VARIABLES FOR GET CURSOR LOGIC.
    DATA: fname(10), fval(10).
    PROVIDE LOGIC TO MOVE THE CURSOR FROM REPORT TO TRANSACTION.
    GET CURSOR FIELD fname VALUE fval.
    PROVIDE THE MEMORY ID OF THE FIELD.
          SET PARAMETER ID 'XYZ' FIELD fval. " WHERE XYX IS THE PARAMETER I.D OF THE PURCHASE ORDER FIELD( FRST 3 LETTERS OF THE FIELD )
    PROVIDE LOGIC TO MOVE TO SCREEN.
          CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
      ENDCASE.
    Do the same for the Material Field.
    <REMOVED BY MODERATOR>
    Cheers,
    Chandra Sekhar.
    Edited by: Alvaro Tejada Galindo on Mar 3, 2008 4:55 PM

  • Assigning Values to a Field Depending on Other Field

    Hi,
    I'm creating a survey that is used to capture data on a yearly basis. We are attempting to make the survey as self-validating as possible to minimize workload. One section of the survey asks for a yearly change in the number of people in a program, asking for both the number of people entering the program and the number leaving the program. We need this section to self validate by checking that the number of people in the program at the beginning of the year, plus the number added to it, minus the number leaving it, equals the number of people in the program at the end of the year.
    The validation formula for this is easy. The difficult problem is automatically assigning a value to the beginning of year value. We will know what this value is due to collecting a response from the program the previous year. My plan is for this field to self-fill depending on an earlier response to the selection of the program name.
    Suppose there is a question earlier in the survey asking for the program name, I'll call it ProgramName. This is a drop down list that must be selected from a list. I need the export value of the drop down list to be the program name they selected. My plan is that for the field later in the survey to fill like this:
    switch(ProgramName.value)
         case "Program1":
              currentfield = "1"
         case "Program2":
              currentfield = "2"
         default:
              currentfield = "0"
    Unforunately I am very new to writing JavaScript and don't know the syntext to get this result. Any help would be appreciated!
    Thanks

    What you're proposing is a custom calucalte script for the beginning of year value field that gets set based on the dropdown selection. I'd suggest setting the field value in the validate event of the drop down instead, in which case the code would look like:
    // Set the beginning of year field value based on this field's selection
    // initialize variable
    var begin_num = 0;
    switch (event.value) {
    case "Program1":
        begin_num = "1";
        break;
    case "Program2":
        begin_num = "2";
        break;
    case "Program3":
        begin_num = "3";
        break;
    // Set be beginning number field value
    getField("begin_num").value = begin_num;
    Where "begin_num" is the name of the field that will contain the beginning number.

  • How to add Material type(MTART) field on Selection screen of MB5B transaction code.

    Hi All,
        Please let me know how to add material type field on selection screen of MB5B transaction
    For that i made copy ZMB5B_COPY of original report RM07MLBD.
    Thanks in adv .
    Samadhan

    Hi,
    Once you copied the standard report to Z report, you can MTART in selection screen like below.
    and in order to inlcude the same in programming logic, we have three option.
    1) Check all related select queries, and include MTART in SELECT query using inner join with MARA.
    2) In START-OF-SELECTION event fill MATNR as shown below.
    3) If user entered any value in MTART, then before displaying the report just check material type of each material in the final internal table(which is used to display report) delete enteries from internal table accordingly.
    START-OF-SELECTION.
    IF MTART[] IS NOT INITIAL AND MATNR[] IS INITIAL.
        SELECT MATNR FROM MARA INTO MATNR-LOW WHERE MTART IN MTART.
          MATNR-OPTION = 'EQ'.
          MATNR-SIGN = 'I'.
          APPEND MATNR.
          CLEAR MATNR.
        ENDSELECT.
    ENDIF.
    The above option has one limitation: The selection screen variables has some restriction, please read the below thread.
    Facing problem in select statement dump DBIF_RSQL_INVALID_RSQL CX_SY_OPEN_S
    Getting Dump in the select query has more than 2000 entries
    Hope this will work for you .
    regards,
    Rajesh Sadula.

  • How to make a value changed based upon values selected in dropdown menu

    Hi,
    I am making my first Dreamweaver website using Dreamweaver CS6 on a windows 8 PC.
    I am trying to make a website where the user selects different criteria; in this example an ipod's model, condition and size from three seperate dropdown selections (similar to www.itrado.co.uk) and then based upon these selections a value for their ipod is shown. However i cannot work out how to display a value which remains on the same page and changes based upon the values which have been selected from the dropdown boxes. I was planning on creating a database and then creating a simple code which retrieves the value from the database which corresponds to the three selected values, however i am not sure how to go about doing this.
    Any help would be greatly appreciated.
    Many Thanks,
    Henry

    You need scripts for this. Try this jQuery tutorial
    http://anthonygthomas.com/2010/03/14/display-form-fields-based-on-selection-using-jquery/
    Nancy O.

  • I have created a PDF form with multiple drop downs, all with the same drop down values. When I select a value from 1 of the drop down fields, it replicates in all of the others - which I do not want. How can I fix this?

    I have created a PDF form with multiple drop downs, all with the same drop down values. When I select a value from 1 of the drop down fields, it replicates in all of the others - which I do not want. Can I fix this?

    I'm fairly new to this, but I think it has to do with the way you have the drop downs named. Did you copy one then keep pasting it in each field? If so, that is the problem. You should rename each one with a different number: Dropdown1, Dropdown2, etc. I think that might solve the issue.

  • How can we read the screen field values from the report selection screen wi

    Hi expart,
    How can we read the screen field values from the report selection screen with out having an ENTER button pressed  .
    Regards
    Razz

    use this code...
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_posnr.
    **Read the Values of the SCREEN FIELDs
    CALL FUNCTION 'DYNP_VALUES_READ'

  • Assigning values to 2 fields using sql statement

    db11g , apex 4.0 and firefox 24 ,
    hi all ,
    i am trying to follow this tutorial to assign values to 2 items on a page using sql statement ,
    and i am using the same sql statement the tutorial uses
    select d.loc location, count(e.empno) num_employees from dept d, emp e where d.deptno = e.deptno(+) and d.deptno = :P3_DEPTNO group by d.loc -- btw , what does the "+" sign mean?
    after the e.deptno in the where condition .
    but i am facing this error
    1 error has occurred
    Wrong number of columns selected in the SQL query. See Help of attribute for details.
    and it does not work with two columns in the select statement under any conditions , i tried to remove the group function and the group clause ,
    it does not work unless i use only one column in the select statement ??
    thanks

    Pars
    And how exactly is this rewrite of the sql statement resolving the OP's issue.
    You are still using more than 1 column which will still result in the error message:
    Wrong number of columns selected in the SQL query.
    As mentioned in my earlier post APEX 4.0 (the version the OP is using) does not handle a sql statement with multiple columns for the dynamic action Set Value.
    Which means the fastest  and simplest solution is splitting up the dynamic action in multiple Set Value actions.
    Using this plugin or upgrade to a newer apex version would also be a possibility.
    Nicolette

Maybe you are looking for

  • In Acrobat Reader DC for Android, how do I prevent Verizon Cloud from launching when clicking the floating action button to retrieve files?

    I have a Verizon-branded Samsung Galaxy S5, which means a lot of Verizon apps were added from the factory install. Recently I upgraded Adobe Acrobat Reader to its most recent version. When I clicked on the floating action button to open a PDF, it lau

  • Open Search Results in client application

    Hi, I try to use the following post http://richardstk.com/2013/10/25/open-sharepoint-2013-search-results-in-the-client-application/ in order to open search results in client application. 1. Can someone help where should i add the statement ctx.Script

  • Display moves with my mouse.

    I've never seen this happen before and I can't seem to find this anywhere in the support pages.. when I log in my display is normal at first but then after everything on the desktop loads up, my display suddenly gets bigger and it moves in the opposi

  • On/off indicator?

    I'm new to blackberry. I have the Pearl 8100. Can anyone tell me if there is an way to have the phone indicate by a flashing led or something that it is on? I know it sounds a bit lame, but since the screen blanks when not in use, I find that there i

  • Why is iTunes very randomly showing items as played

    Since the 11.0 patch I have noticed and it's quite annoying, that iTunes is very randomly showing songs, TV shows and movies as having been played, but ironcally not watched. That part is true as I haven't watched the episodes yet, or listened to the