cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic update of text field in transaction

0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

mark_pe
Active Contributor
0 Kudos

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

0 Kudos

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

mark_pe
Active Contributor
0 Kudos

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

sravanthi_polu
Contributor
0 Kudos

Hi Shankar,

Try with enable rule for the text field.

Regards,

Sravanthi Polu