cancel
Showing results for 
Search instead for 
Did you mean: 

Custom field Creation on User's Attributes

Former Member
0 Kudos

Hi Gurus,

Need your expert advice on below scenario.

We are checking the possibility of creating a "Z custom field" to be assigned on the user's attributes in PPOSA_BBP. These custom field should be reflected as default settings when user order shopping cart.

Please advice on the steps that should be done.

Thanks in advance.

Accepted Solutions (0)

Answers (8)

Answers (8)

Former Member
0 Kudos

Thanks

Former Member
0 Kudos

Thanks. I was able to create a custom field using transaction code OOATTRCUST.

Please advice if you know how to display the Z custom field under Default settings window on the portal.

We have need to add this under "Item basic data"

Thanks.

laurent_burtaire
Active Contributor
0 Kudos

Hello,

If you want to manage this new attribute as a default settings at Shopping Cart creation, you have to create a field extension.

Have a look at view V_SC_SO_DV_I_BD from WDC /SAPSRM/WD_SC_UI_SO_DEFV

Extension are managed with method WDDOMODIFYVIEW.

Regards.

Laurent.

Former Member
0 Kudos

Thanks for the help

MKusters
Explorer
0 Kudos

Hi Laurent,

Can you please explain me what to do in the WDDOMODIFYVIEW to save the customer fields in het user attributes. I added the attributes in transaction OOATTRCUST. So I can add the attributes manually in transaction PPOMA_BBP. I added the fields also in the view V_SC_SO_DV_I_BD of WDC /SAPSRM/WD_SC_UI_SO_DEFV. I can see them there and fill the fields. But when I click OK to save the attributes nothing is saved.

bruno_gameiro
Employee
Employee
0 Kudos

Hi, did you solve your issue?
I'm facing the same problem and dont know how to fix!

Regards,
Bruno.

Former Member
0 Kudos

Hi Neelima,

Entry Z_XXXX does not exist in T77OMATTR (check entry)

Message no. 00058

Diagnosis

Input values must be defined in Table T77OMATTR. The value or values 'Z_XXXX ' are not specified in this table.

Procedure

Check whether the input is correct and correct if necessary.

Procedure for System Administration

If this is not an incorrect entry, check the system settings and change them if necessary.

If there is a connection to the Customizing system, you can maintain the system settings by choosing Customizing in the Performance Assistant or Maintain Entries (F5) when displaying the help in a modal dialog box.

laurent_burtaire
Active Contributor
0 Kudos

Hello Joanna Marie,

Here are the steps to create a new attribute:

1) Create data elements for your new attribute,

2) Create structure append to table BBP_ATTR_F1,

3) Add your new attribute to structure append,

4) Create attribute via OOATTRCUST transaction (folder u201CAttributesu201D): this will update T77OMATTRT table,

5) If your specific attribute has specific properties, populate BBP_ATTR_PROP table (SM30),

6) If your specific attribute uses a search-help, populate its configuration in BBP_ATTR_F4CONF table (SM30)

7) Link your new attribute to scenario BBP via OOATTRCUST transaction (folders u201CScenariosu201D > u201CAttributes/Scenariosu201D),

8) Link your new attribute to object type u2018(u2018Ou2019 and/or u2018Su2019) via OOATTRCUST transaction (folders u201CScenariosu201D > u201CObject Typesu201D).

Regarding default settings for SRM user, you have to manage attribute access rights by role via SPRO:

SAP Implementation Guide > SAP Supplier Relationship Management > SRM Server > Cross-Application Basic Settings > Roles > Maintain Attribute Access Rights by Role

Regards.

Laurent.

Former Member
0 Kudos

Hi,

Can we request for the steps on maintaining the new custom entry? This is because we have encountered error "entry Z XXX does not exist in table T77OMATTRT" while inserting a new z entrry in the table.

Please advice if you also know the steps for transaction code OOATTRCUST since we also encountered the same error.

Thanks in advance,

Former Member
0 Kudos

Hello,

Is it error or warning.

click on enter twice.

Kindly try with your project specific namespace.

Regards,

Neelima

Former Member
0 Kudos

Thanks for the inputs.

Can you provide us with the steps on maintaining the Z entry in table T77OMATTR and T77OMATTR.

Thank in advance.

Former Member
0 Kudos

Hello,

Step:-

1, Goto Sm 30 T77OMATTR

2, select attributes and add

Attribute Z_custom

Description Custom attribute at Org Level

Table Name Z_CUSTOM_ATTR

Field Name Z_cust_field

Object type

Check multiplt value and default value.

3, select attibute/scenerio and give following

Scenario BBP

Attribute Z_custom

Inherit. type normal.

4, Select object type

Scenerio: BBP

Attibute : Z_custom

Object type O/S (as per your requirment)

Regards,

Neelima

Former Member
0 Kudos

Hello,

We can had the custom attribute using T77OMATTRT.

CLIENT 010

LANGU EN

ATTRIB Z_custom

ATEXT Custom attribute

In change badi use below code:-

First get the local currency from the Org Str

MOVE 'Z_custom' TO ls_attr_single-attr_id.

lv_uname = sy-uname.

  • Get the value from PPOMA_BBP

CALL FUNCTION 'BBP_READ_ATTRIBUTES'

EXPORTING

iv_user = lv_uname

iv_attr_single = ls_attr_single

IMPORTING

ev_attr_dft_single = ls_attr_dft_single

EXCEPTIONS

object_id_not_found = 1

no_attributes_requested = 2

attributes_read_error = 3

OTHERS = 4.

IF sy-subrc IS INITIAL.

lv_custom = ls_attr_dft_single-value.

ENDIF.

CLEAR : ls_attr_single , ls_attr_dft_single .

MOve lv_custom to custom field.

Regards,

Neelima

Former Member
0 Kudos

Hi,

You can maintain Custom Attributes through the table T77OMATTR.

Former Member
0 Kudos

Hi

You can set the Z field user attribute PPOMA_BBP after setting the values will be defaulted for shopping cart.

Thanks & Regards

Pradeep Kumar Dondeti