Skip to Content
0
Oct 16, 2008 at 10:35 AM

Setting flag account assignment element in PS within BADI doesn't work

163 Views

Hello,

I would like to set the flag for account assignement element and billing element in PS depending on some fields of cProjects. Hint 993642 says that can be done in GCC_PS_PROJECT_LABEL. Unfortunately I don't know how to pass some parameters from cProjects to the relevant method.

For transfering the standard fields I am using (thanks to Matthias) the BADI DPR_FIN_GECCO_ATTR.

There are several blocks with fields I set. Each block looks similar to (except the field and the value)

ls_attribute-data_element     = space.
      ls_attribute-value            = space.
      ls_attribute-field_name_orext = 'WBS_ACCOUNT_ASSIGNMENT_ELEMENT'.
      ls_attribute-fldname_receiver = space.
      ls_attribute-struc_name_copa  = space.
      ls_attribute-field_name_copa  = space.
      ls_attribute-ext_attr_name    = space.
      ls_attribute-ext_attr_value   = space.
      INSERT ls_attribute INTO TABLE ct_attributes.

In the default method the WBS_ACCOUNT_ASSIGNMENT_ELEMENT and WBS_BILLING_ELEMENT are overridden constant to 'X' like hint 993642 describes. But at least I have no glue how to pass my relevant parameters to the method to be able to set the values in my own implementation of this method.

So, does someone knows how to pass values to this method?

Thx,

Vanessa

Edited by: Vanessa Martinez on Oct 28, 2008 9:23 AM