Skip to Content

Dispute Management Export Parameter SCMG_ATTR_RETURN_VALUE

Hi All,

I must admit I'm stuck and feeling rather lame. We are on ECC 6, Basis release 701. I am making some requested customization in Dispute Case creation/change and have implemented BADI Customer-Specific Validation of Cases (class CL_IM_SCMG_VALIDATE_C).

Within the code I am validating several attributes; if they are invalid two export parameters must be populated and returned. The second one is EX_MESSAGES - type SCMG_T_ATTR_RETURN_VALUE. The first component of this structure is 'ATTR_VALUE' which is type IF_SRM_EDIT_ATTRIBUTE_VALUE. This is a reference type to class IF_SRM_EDIT_ATTRIBUTE_VALUE.

I am not as up to speed on OO techniques as I'd like to be, and do not know how to populate this field. Any help would be greatly appreciated; I've been banging my head on the wall for too long now; getting a headache.

Thanks much in advance,


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Mar 02, 2013 at 12:10 AM

    Hi All,

    I found the solution and will outline it in case it helps anyone else:

    * local structures:

    DATA: ls_messages TYPE scmg_attr_return_value.

    * local variables

    DATA: lv_srmadid TYPE srmadid,

    lv_att_val TYPE REF TO if_srm_edit_attribute_value.

    CALL METHOD im_case->get_single_attribute


    im_srmadid = lv_srmadid


    re_value_object = lv_att_val.

    MOVE: lv_att_val TO ls_messages-attr_value,


    APPEND ls_messages TO ex_messages.

    However, when an invalid entry is encountered, I get the proper message text but the type is 'A' even though I sent type 'E' which terminates the process. I am checking for SAP Notes but does anyone have any insight?



    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Mike,

      I am also having some what similar requirement.

      If there is any attachment exists in the folder under 'Linked Objects' then the latest date of the attached document that was created/updated should be updated to the custom field attribute which is appended to the table: UDMCASEATTR00.

      I implemented BADI SCMG_CHNG_BFR_STR_C & this is triggering during SAVE process of change document but not able to retrieve/fulfill the requirement as i am not familiar to OO Technics.

      And during creation of Case ID also the above requirement should work, may be i should implement the same logic using BADI: FDM_AR_DISP_COMPLETE.

      Please let me know how to achieve this requirement. Thanks in advance!!!



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.