Account Creation - Badi for Default values for BP Role and Sales Area
Hi all,
my requirement regards the possibility to create a new prospect (a link should be available in the navigation bar or create section).
Logically, a bp role as "Prospect" and particoular sales area should be created automatically.
I created an implementation for the BADI definition "BADI_CRM_BP_UIU_DEFAULTS". But don't know how to create the default values for BP role and Sales area:
In my code
assign cr_me->('VIEW') to <lv_view_name>.
if sy-subrc ne 0.
exit.
endif.
lv_viewname = <lv_view_name>.
case lv_viewname.
when 'AccountDetails.htm'.
I obtain the viewname "AccountDetails" , the related context "Header". After I don't know how to proceed to obtain the related entities through the relationship BuilRolesRel and BuilSalesArrangementRel.
Am I following the right way? Is there another solution to prepare the output for default values?
Any kind of suggestion will be appreciated.
Regards, Roberto
go to spro>cross-application components>sap busines partner>business partner> basic settings>field groupings>Configure Field Attributes per BP Role
Double click the business role which you want to customaze (e.g. 'A') and change the proper settings.
Regards.
Similar Messages
-
How to set default value for Zfeild using statusprofile
hi experts,
I need to set a default value for a zfeild using status profile.Although we can default the values,using getter and setter methods,but in my requirement,the feild will be defaulted when the page is locked,also in display mode,which will require me to write code to unlock then set the value and then write a commit,as there wont be any user action performed.
I have created a zstatus profile and have set the required status to inital,but no luck
please suggest if this canbe achived through status profile.
Regards
Anu.Hi,
You can check in the getter if the Page is locked and then display the value to want to display. Note that this will be just Displaying the default value for the Zfield and it will not set the default value into the Zfield in DB, because when the document is locked ( means locked for editing - mostly when system status is completed ) , setters are not called and so you can display the value but cant set it. This is fine if the value you want to display in Z field is just for user's informations and its not required to save this default value.
The best approach would be to set the value in the Zfield before the page is locking. For example, If you wat to set the zfield value when status is set to "Completed" , then you can configure an action that is 1) triggered during saving of the document with 2) start condition "When status is completed" ( both 1 and 2 you can mention in action defination ), then Implement this action badi in which you can set the Zfield to default value.
This will ensure that default value is always set whenever the page is getting locked for editing ( i assumed that page lock means status completed ).
Thanks & Regards
Suchita -
How to set a default value for particular field in SRM PO Portal
Dear Gurus,
Im desparetly need a help in web dynpro on how to set a default value for a field(flag) in PO header tab in portal.
My requirement is whenever the user press the edit button in PO screen,automatically a flag field should be set as abap_false.
I dont think this will handle in check badi or change badi. i tried this part in onbuttonpressed overwriteexit in CNR_VIEW views,i can get the function EDIT in debugging mode,but dont know how to proceed further.....
Many of them suggested to go with get attribute and set attribute for changing any particular field in web dynpro,but im not very familiar in using those get and set attributes.I request you people can give me sample code on how to identify my target field in the node and set the values while pressing EDIT Button.
Thanks in advance...
Regards,
SathishDear Laurent,
Thanks for your response,
But i searched in enhancement spot of WD_BADI, but couldnt get the exact way to change the coding,
My real requirement is, that particular flag should be enable and disable dynamically by checking a condition in my header values.So in that case i dont know how to proceed further to handle in the PO screen.
Kinly guide me how to get the particular node of field in the Purchase order screen.
Thanks you in advance,
Sorry for the inconvenience if any
Regards,
sathish -
Default value for Read-Only Picklist Field
Hi, all--
I would like to have a default value ("Undetermined") for the "Associated Account" read-only picklist value. I have an account record of this value for this purpose. This is because if there is no value in the field, the record will not be included in a report that includes the field. I do not want to make the field required at this point.
Field management doesn't appear to allow any default value for read-only picklists. Does anyone know how to get around this, either at the lead record stage or at the lead report stage (without resorting to an analytic, which won't work for what we are doing)?
Thanks.That's a great question. It doesn't appear as though you can select it from the typical method of Admin | Application Customization | Lead | Lead Field Setup | Associated Account.
Have you tried creating a workflow to populate the field using Before Modified Record Saved? -
Default value for attribute "COUNTRY" in BP_HEAD_SEARCH/MainSearch
Hi Gurus,
Requirement is to set default value for attribute "COUNTRY" in BP_HEAD_SEARCH/MainSearch when user clicks on Corporate Account.
Below is code that i have written in DO_PREPARE_OUTPUT.
Code is working fine and in the debug also i can see the value of COUNTRY is set to DE, but it is not showing on the screen for first time but when i load component second time(Refresh the screen), it shows me value.
Any help would be appreciated. If somebody has otheralternative kindly share.
CALL METHOD super->do_prepare_output( iv_first_time = iv_first_time ).
Calling Super Method
CALL METHOD super->do_prepare_output
EXPORTING
iv_first_time = abap_true.
Data Declatation
DATA :lr_col TYPE REF TO if_bol_bo_col,
lr_current TYPE REF TO if_bol_bo_property_access,
lr_param TYPE REF TO if_bol_bo_property_access,
lr_qs TYPE REF TO cl_crm_bol_dquery_service,
lv_attr_name TYPE name_komp,
lv_sign TYPE bapisign,
lv_option TYPE bapioption,
w_country_exist TYPE c,
w_param TYPE string,
w_value TYPE string,
w_flag TYPE c.
Getting SEARCH Context Node
lr_qs ?= me->typed_context->search->collection_wrapper->get_current( ).
Get Selection Parameters
lr_col ?= lr_qs->get_selection_params( ).
Start from first parmaters
lr_current = lr_col->get_first( ).
Clearing Variables
CLEAR : w_country_exist, w_flag, w_param, w_value.
Loop till we have selection paramters
WHILE lr_current IS BOUND. " While loop 1
checking attribute name is COUNTRY then setting some variable
w_param = lr_current->get_property_as_string( 'ATTR_NAME' ).
CASE w_param.
WHEN 'COUNTRY'.
If country is filled then setting variable
w_value = lr_current->get_property_as_string( 'LOW' ).
IF w_value IS NOT INITIAL.
w_country_exist = abap_true.
ENDIF.
When we got COUNTRY attribute then setting flag
w_flag = abap_true.
ENDCASE.
Calling next parameter
lr_current = lr_col->get_next( ).
ENDWHILE. " While loop 1
In below block we are checking is COUNTRY attribute is blank and
we have found COUNTRY attribute in current selection paramters
IF lr_qs IS BOUND. " SEACRCH CONTEXT BOUND
If vairable is blank means DE or any other value is not filled in COUNTRY Attribute
IF w_country_exist IS INITIAL. " w_contry_exist
We have to add selection attribute if we come accross COUNTRY attribute during our search
IF w_flag EQ abap_true. " w_flag
Adding COUNTRY attribute with default value 'DE'
lr_qs->add_selection_param( EXPORTING iv_attr_name = 'COUNTRY'
iv_sign = 'I'
iv_option = 'EQ'
iv_low = 'DE' ).
ENDIF. " w_flag
ENDIF. " w_contry_exist
ENDIF. " SEACRCH CONTEXT BOUND
In below block we will remove COUNTRY attribute when it has blank value
IF lr_qs IS BOUND AND w_country_exist IS INITIAL.
lr_current = lr_col->get_first( ).
WHILE lr_current IS BOUND.
w_param = lr_current->get_property_as_string( 'ATTR_NAME' ).
CASE w_param.
WHEN 'COUNTRY'.
w_value = lr_current->get_property_as_string( 'LOW' ).
IF w_value IS INITIAL.
lr_col->remove( iv_bo = lr_current ).
ENDIF.
ENDCASE.
lr_current = lr_col->get_next( ).
ENDWHILE.
ENDIF.
Edited by: Harsharandeep Singh on Apr 28, 2011 3:44 PMHi,
Try it like this:
DATA:
lr_bo TYPE REF TO if_bol_bo_property_access ,
lv_attr_name TYPE name_komp.
FIELD-SYMBOLS:
<ls_param> TYPE crms_thtmlb_search_criterion.
READ TABLE parameters
ASSIGNING <ls_param>
WITH KEY field = 'COUNTRY'.
IF ( sy-subrc = 0 ).
<ls_param>-value1 = ip_pfct.
ENDIF.
CHECK ( me->parameter_collection IS NOT INITIAL ).
lr_bo = me->parameter_collection->get_first( ).
WHILE lr_bo IS BOUND.
CALL METHOD lr_bo->get_property_as_value
EXPORTING
iv_attr_name = 'ATTR_NAME'
IMPORTING
ev_result = lv_attr_name.
IF lv_attr_name EQ 'COUNTRY' .
CALL METHOD lr_bo->set_property
EXPORTING
iv_attr_name = 'LOW'
iv_value = 'DE'.
EXIT.
ELSE.
lr_bo = me->parameter_collection->get_next( ) .
ENDIF.
ENDWHILE .
Kind regards,
Micha -
Default Value for Order Type based on Company Code in ME21N
Hi,
Using ME21N, I want to make the PO type defaulted to a certain company code, say for instance Company code XYZ should have a PO type XYZ Purchase Order, ..company ABC should have a PO type ABC Purchase Order, and so on...I'm just puzzled how to implement it. I know that we can set a Default value for PO Headers in Personal Settings but its doesnt give the result I want coz it will only have one Default Value. What I wanted is when a certain company code is chosen, automatically, the corresponding PO type for that Company code will be displayed in the Order Type drop-down menu (so there's no need to choose on the drop down list what Order type) Is this possible in ABAP? Hope i made myself clear.
Thanks in Advance.Use BADI IF IF_EX_ME_PROCESS_PO_CUST - method OPEN
View the interface documentation in transaction SE19 and you will see the method OPEN can be used :
2. Opening of a purchase order (OPEN method)
The system opens a new document to create, change or display a purchase order. With the OPEN method,
<b>you can import your own data and prepare it for further processing.</b>
This is available in 4.7 Enterprise but not sure how far back.....
hope this helps
Colin. -
Default values for the controlling area and language
Hello
I have a query.
I need to set default values for the controlling area and language in the screen
"find account assignment data 1"
Is it possible to do so?
Thanks.
Jayawant GokhaleHello
To clarify,
This is the search used ,when I go for shopping.For the Cost assignment,the fields controlling area and language should be default for a user.
Could someone throw a light on this.
Thanks. -
Default values for creating vendor master data
Hi.
Is it possible to set default value for payment term and planning group when creating vendor master data of a specific account group?
Thanks in advance.HI,
1, Create a vendor in your Account group as the reference vendor account
2, By t-code:XK01, create new vendor with reference vendor of step 1,
then the system will transfer the value from your reference vendor.
Regards
Ravinagh Boni -
Can you set default values for person/group picker fields? To current user?
Two-part question/issue . . .
Part 1:
In InfoPath 2013 in use with SharePoint 2013, how do you set a Default Value for Person/Group Picker fields? Other field types like Text Boxes have a Default Value section in the Data tab of Properties. There doesn't appear to be any equivalent for
the Person/Group Picker field type in Properties. I'd like to set a default person for a few fields in a form I've created. Is this possible?
Part 2:
The default user I want to set for one of those Person/Group fields is the "current user." I want a user to log into our SharePoint 2013 intranet, load a new form for edit/creation, and have one of the Person/Group fields in that form to
automatically populate this particular user. Is this possible?Hi Stephen,
You can auto populate your InfoPath farm with current user Name and all other property that you have in your User profile, you have couple of options.
First you can make a secondary connection in your InfoPath form with user profile and can use the UserProfileService.asmx and call the GetUserProfileByName method. Here is the steps you can follow.
http://blogs.technet.com/b/anneste/archive/2011/11/02/how-to-create-an-infopath-form-to-auto-populate-data-in-sharepoint-2010.aspx
Secondly you can use JQuery and SPServices ,
$().SPServices.SPGetCurrentUser function to populate the values with script to achieve the same in this case you no need to use InfoPath form just create simple text type column in SharePoint
list and auto populate it with getting the current user Name from User Profile here is the scripts
<script language="javascript" type="text/javascript" src="../../jQuery%20Libraries/jquery-1.4.2.min.js"></script>
<script language="javascript" type="text/javascript" src="../../jQuery%20Libraries/jquery.SPServices-0.5.4.min.js"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function() {
var userCurrentName = $().SPServices.SPGetCurrentUser({
fieldName: "CurrentUser"
$("input[Title='CurrentUser']").val(userCurrentName);
var userPhone = $().SPServices.SPGetCurrentUser({
fieldName: "WorkPhone"
$("input[Title='Phone']").val(userPhone);
</script>
Krishana Kumar http://www.mosstechnet-kk.com -
Import and default values for columns
Hi guys
I have a table in which there are default values for some columns. I take export of this table.
I go to another database where this table structure is already there (but default values are not set). I run the import of table with ignore=Y. It does all...import the data...create the indexes and all...but doesn't set the default values for the columns.
Shouldn't it do that also ? ignore=Y means that ignore the object creation errors and proceed with the rest of the stuff ? Or there is some problem in my understanding ?
Version 10gR2 on AIX 5.3 and using traditional export/import.
Thanks
Amardeep SidhuHanji Sidhu Sahib.
Mein Tuhade liye eh example try kita hai.
SQL> conn simar/simar
Connected.
SQL> SQL> create table orders (
dept varchar2(20) primary key,
place varchar2(20),
intcol integer default 12
2 3 4 5
Table created.
SQL>
Inserted few values ...........+ commit.
SQL> conn simar/simar
Connected.
SQL> select * from orders;
DEPT PLACE INTCOL
SALES TORONTO 12
HR LA 12
BILLING FLORIDA 12
IT HALIFAX 5
exp simar/simar@RACDB file=exptest.dmp log=exptest.log
rac01:/software/backup>exptest.dmp log=exptest.log <
Export: Release 10.2.0.3.0 - Production on Tue May 6 23:35:58 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
Export done in WE8ISO8859P1 character set and AL16UTF16 NCHAR character set
About to export specified users ...
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user SIMAR
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user SIMAR
About to export SIMAR's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export SIMAR's tables via Conventional Path ...
. . exporting table ABC 12 rows exported
. . exporting table ORDERS 4 rows exported
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting referential integrity constraints
. exporting triggers
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting materialized views
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
. exporting statistics
Export terminated successfully without warnings.
rac01:/software/backup>strings exptest.dmp |grep -i 'create'
CREATE TABLE "ABC" ("A" VARCHAR2(10), "B" VARCHAR2(10)) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "USERS" LOGGING NOCOMPRESS
CREATE TABLE "ORDERS" ("DEPT" VARCHAR2(20), "PLACE" VARCHAR2(20), "INTCOL" NUMBER(*,0)) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "USERS" LOGGING NOCOMPRESS
rac01:/software/backup>strings exptest.dmp |grep -i 'alter'
ALTER TABLE "ORDERS" MODIFY DEFAULT
ALTER TABLE "ORDERS" MODIFY ("INTCOL" DEFAULT 12
ALTER TABLE "ORDERS" ADD PRIMARY KEY ("DEPT") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "USERS" LOGGING ENABLE
SQL> conn simar/simar
Connected.
SQL> drop table orders;
Table dropped.
imp simar/simar@RACDB file=exptest.dmp log=imp_exptest_1.log tables='ORDERS'
rac01:/software/backup>exptest.dmp log=imp_exptest_1.log tables='ORDERS' <
Import: Release 10.2.0.3.0 - Production on Tue May 6 23:46:48 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
Export file created by EXPORT:V10.02.01 via conventional path
import done in WE8ISO8859P1 character set and AL16UTF16 NCHAR character set
. importing SIMAR's objects into SIMAR
. importing SIMAR's objects into SIMAR
. . importing table "ORDERS" 4 rows imported
Import terminated successfully without warnings.
SQL> conn / as sysdba
Connected.
SQL> set heading off;
set echo off;
Set pages 999;
set long 90000;
SQL> SQL> SQL> SQL> SQL>
SQL> select dbms_metadata.get_ddl('TABLE','ORDERS','SIMAR') from dual;
CREATE TABLE "SIMAR"."ORDERS"
( "DEPT" VARCHAR2(20),
"PLACE" VARCHAR2(20),
"INTCOL" NUMBER(*,0) DEFAULT 12,
PRIMARY KEY ("DEPT")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "USERS" ENABLE
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "USERS"
SQL>
Here the alter table statement is in the dmp file as well as in the imported table.
Regards -
Setting default values for item in opportunity mgmt(crmd_bus2000111)
Hi All,
I need to set default values for the field Fiscal Quarter in item level using BADI CRM_CUSTOMER_I_BADI .This Field is created using EEW. The default value is like if the date is nov-2007 the value for this fiscal period is FQ4-2007 .
Any clue would be great help..Why don't you try setting the default value in the List next to the Matrix - item 107
Item 107 is a matrix (a transposed one), I have no idea what list you mean... I am using item 107, not 112. Item 112 is used only to detect a click on the "Add Record" button, which is the last row of the matrix 112.
I don't see the gender column in the grid and I'm also unsure of the id you have for it "12" - are you sure it's correct ( i usually use Item("columnName") )?
Sorry for the confusion. "12" is the name of the standard column "Password" which we have renamed to store the gender.
Anton -
User Exit for default values in IW51
Hi All,
Can any suggest User Exit or BADI for default values like Cause code in IW51 Tcode.
Regards,
Samatha.Hi,
Please check these
Exits
IWO10026 User check on setting status 'Do not perform'
IWO10027 User exit: Generate user-defined settlement rule
IWOC0001 Create PM/SM notification: Determine reference object
IWOC0002 PM/SM notification: Check whether status change is allowed
IWOC0003 PM/SM authorization check of ref. object and planner group
IWOC0004 Change single-level list editing PM/QM/SM ALV settings
Business Add-in
IQS_MASS_CHANGE BadI for Mass Changes to Notifications
IQS0_STATUS_MAINTAIN Control of Changeability of User Status
NOTIF_AUTHORITY_01 Additional Authorization Checks for the Notification
WOC_FL_DETERMINE Determine Date for Determining Installation Loc. Equi.
IWOC_OBJECTINFO_CHNG Changes to Data of Object Info Screen
IWOC_LIST_TUNING Performance Tuning for Lists in PM/CS
IWO1_SUBSCREEN_0170 Display Additional Data on Object Screen 0170 PhysicalSample -
Default value for Subject catalog in CRMD_ORDER
Hello,
In a change request creation -CHARM t-code CRMD_ORDER-, is it possible to set a default value for the field "Subject Catalog"?
Using SM 7.0 SPS12.
Thks,
FrançoisHi,
yes this is possible.
For example you can create an own transaction variant (TA: SHD0). Here you can assign a default value to several fields (you need to maintain the Key with blanks).
Then asssign this variant to your transaction type: IMG -> CRM -> Transactions -> Basic settings -> User Interface Settings -> Assign Transaction Types to Transaction Variants
regards,
Andy -
Default values for standard quote fields?
Hi all,
Is it possible to pass a default value for the quote screen/document, to be more specific, the payment terms field?
Can i use the BBP_DOC_CHANGE_BADI~BBP_QUOT_CHANGE? I have reviewed the signature but i can't find the payment term field...
How can i achieve this?
Best regards,
Gerardo.Hello Gerardo,
When do you want to set the default value ? If you need it in the initial screen please try BBP_F4_SAVE_DB BADI.
Regards,
Masa -
Default value for plant in QP02.
Helloe Friends,
My users what when ever ther go to T code QP01 , Qp02 or Qp03, they want there default value for plant to be populated automatically say for e.g if plant is ABC then by default this ABC should be there in all above T code.
Please give your valuable inputs.
Regards,
Amit Shirsath.Hi Amit,
Please check transaction OP8B for task list Q. Field 'Take get/set parameter into account for material field' (V_TCA35-PID_MAT) should be checked. This should ensure that the last maintained material number and plant is defaulted in QP01.
Hope this helps!
Maybe you are looking for
-
I need to edit text in a jpeg file. How do I do that?
I need to edit text in a jpeg file. How do I do that?
-
KDE 4.3 and superkaramba plasmoids
Hello! I have just 1 issue with KDE 4.3: I can't seem to be able to install superkaramba-widgets as plasmoids. They don't seem to be installed at all, although I complete the setup-process via right-click on desktop -> install new mini-program from f
-
Hi, one of my keys has broken off my keyboard and will not go back on, would it be covered under warrenty, where do I need to take it to get it fixed I bought the laptop from Argos. Also its very slow when I'm on the internet an I have full signal wi
-
What is the best Wireless USB Dongle on the market that is compatible with the BT Home Hub 20.0? - I have a remote desktop PC in a beroom upstairs and the HH2.0 Iis downstairs.
-
MacBook Air as Primary Computer: Offline Storage Options
Today I have my MacBook Air configured (via MobileMe) to store/access files on my Mac Pro. This works very well. In particular, I can pull Aperture Libraries and work with them on my Air, and can also access all of my iTunes content stored on my Pro