cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding fields in an SAP Adobe Form using ABAP code

former_member198834
Participant
0 Kudos

I have an SAP Adobe Form that is being executed from an ABAP program.  I am passing a group a data fields to this form from the program.  In order to display the data from these input data fields, I have created a corresponding field on the form for each input field and bound it to each input data field.  My problem is this: if the input data field value is empty (spaces or zeros), I do not want to display the corresponding form field.  Once the field is hidden, I would like to be able to compress the lines and next field dynamically move to upward

  Thank you in advance for any sugesstions I receive.

Suresh

Accepted Solutions (0)

Answers (1)

Answers (1)

konchada_saikrishna
Active Participant
0 Kudos

Hi,

Its quite simple.

Design your form in folwable subforms for auto rollup.

One every field form ready event have the below code.

this.presence = (this.rawValue == null) ? "hidden" : "visible";

let me know if you have more queries,

Cheers,

Sai

former_member198834
Participant
0 Kudos

Hi Sai.

Thank you for the very helpful information.  I will spent some time looking at the Scripting Basics document that you linked to - hopefully this will be exactly what I need to hide and compress the forms fields.

It is very much appreciated.

Suresh

konchada_saikrishna
Active Participant
0 Kudos

Cheers mate,

let me know if you stuck in somewhere.

Sai

former_member198834
Participant
0 Kudos

hi sai pls find attached screen shot w with regards suresh

konchada_saikrishna
Active Participant
0 Kudos

I couldn't figure out whats the issue with the form..can you explan the problem in the form so as to explain it ...?

konchada_saikrishna
Active Participant