Skip to Content

09/06/2014 – fixed with the correct method to update in webdynpro.


Problem:

We need to make “component” field mandatory on message creation to avoid send any message without that information to SAP on message creation, it’s possible to use that trick on others workcenters / webdynpro fields; the solution propossed here don’t work on solution manager 7.1 inside ITSM crmwebui.

Solution:          

We will follow steps indicated on SAP help.:

                http://help.sap.com/saphelp_nw70/helpdata/en/46/98ce61f37d19ace10000000a11466f/frameset.htm

Process:

Transaction SE80 -> select object web object -> “AGS_WORK_INCIDENT_CREATE”

1.- Modification on Webdynpro View.

Before situation:

After modification:

Message creation process:

Display options before modification, the “component” field is not mandatory.

After

Noe, the field have the littler star that indicate that is mandatory

Co-lateral Problem:

Beside the field is supose to be mandatory, we can create the message anway.

We have to make a Little change on source code:

We have to un-comment that lines on method CHECK_REQUIRED:

——————————————————

* 2010-01-21 GM: Component is no longer obligatory

***    if ls_problem_descr-COMPONENT is INITIAL.

***      lv_text = WD_ASSIST->IF_WD_COMPONENT_ASSISTANCE~GET_TEXT( ‘E05’ ).

***

***      CALL METHOD lo_message_manager->REPORT_ATTRIBUTE_ERROR_MESSAGE

***        EXPORTING

***          MESSAGE_TEXT   = lv_text

***          ELEMENT        = lo_el_problem_descr

***          ATTRIBUTE_NAME = ‘COMPONENT’.

***    endif.

——————————————————

With:

After that we will get  anew result:

Now we can’t create the message if the field is not filled.

Regards,

Luis

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply