Skip to Content
0

Dynamic update of text field in transaction

Feb 09, 2017 at 06:02 AM

94

avatar image

Hi,

We have a transaction with two fields:

  1. Complex table drop down
  2. Text field

Is it possible to enable/disable the text field dynamically depending on the selection made on complex table drop down?

Regards,

Shankar

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Sravanthi Polu Feb 09, 2017 at 06:45 AM
0

Hi Shankar,

Try with enable rule for the text field.

Regards,

Sravanthi Polu

Share
10 |10000 characters needed characters left characters exceeded
Mark Pe
Feb 10, 2017 at 03:58 PM
0

Shankar,

Hi. You have two fields: Complex Table Drop Down and a Text field.

Field1 - Complex Table Drop Down (Points to a Complex Table - Name)

Field2 - Text Field (make an enable rule) - Example: Need to use a combination of ComplexTable and/or ScreenFieldValue perhaps for your enable rule. So when the field 1 is populated by X your enable rule will try to disable Field 2 based on your answer. This depends on how complicated you want your rule to be or your workflow. If it is a hard constant then by simply using the ScreenFieldValue will work.

Due to you stated that it is a transaction field, sometimes you need to work with your ATE (Agentry Test Environment) to see if you have properly saved or commit or "apply" the values to the transaction in order for your rule to work. You have the option in the ATE to check each value before apply or commit so you can also check the rules to see (rule log) how it returns if it enables or disables.

Reference:
  1. http://help.sap.com/saphelp_smp307sdk/helpdata/en/7c/1754d57006101483248f25ed0b4890/content.htm (@COMPLEXTABLE)
  2. http://help.sap.com/saphelp_smp3012sdk/helpdata/en/7c/1696bd70061014823581318658ca68/content.htm (@SCREENFIELDVALUE)

Regards,

Mark Pe

SAP Product Support

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Mark,

Thanks a lot for the update.

We have already tried this approach i.e.writing an enable rule for the text field.

However, enable rule works only once when the screen is loaded initially. It will not solve my purpose. Is there any other way to dynamically enabling/disabling the field, after the screen is loaded.

Regards,

Shankar

0

Shankar,

The Agentry rules has a special requirement for updating it.

To read about it please refer to: https://launchpad.support.sap.com/#/notes/2189279 - Agentry Update rules refresh issue.

Hope this article helps you out.

Best Regards,

Mark Pe

SAP Product Support

0