Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Module pool program error in abap

raviram_jk
Explorer
0 Likes
618

Hi everyone,

I have an requirement that in modulepool I have. Created one screen, in that 6fields are there. I gave 3fields as required field. Remaining 3 fields are thr. But I need to populate depending on 1 field remaing two field would come. But while populating the depending fields it is not populating,after fill in required entries only it is populating and validatng other.can any one tel how to resolve this.

Regards

Ravi.

3 REPLIES 3
Read only

rajkumarnarasimman
Active Contributor
0 Likes
597

raviram jk wrote:

But while populating the depending fields it is not populating,after fill in required entries only it is populating and validatng other.can any one tel how to resolve this.

Can you please explain what is the problem you are facing using screenshots

Regards

Rajkumar Narasimman

Read only

rajkumarnarasimman
Active Contributor
0 Likes
597

Hi Ravi,

I understood the question now. Here the 3 Field kept as mandatory and 3 fields are non mandatory.

  • Field1 - MANDATORY
  • Field2 - Dependent Fields
  • Field3 - Dependent Fields
  • Field4 - MANDATORY
  • Field5 - MANDATORY
  • Field6

Based on Field1 we are filling the remaining dependent fields.

In that case, Field4 and Field5 is not allowing to fill the value since it kept as mandatory one. After Field4 and Field5 is filled, the value showing in dependent fields.

For this problem, instead of giving obligatory condition for the fields, the same you can check in validation part too. Remove the obligatory conditons. Check the conditions as shown below.


MODULE USER_COMMAND INPUT.

IF FIELD1 IS INITIAL.

MESSAGE 'Field 1 is Mandatory' TYPE 'E'.

ENDIF.

IF FIELD4 IS INITIAL.

MESSAGE 'Field 4 is Mandatory' TYPE 'E'.

ENDIF.

IF FIELD5 IS INITIAL.

MESSAGE 'Field 5 is Mandatory' TYPE 'E'.

ENDIF.

ENDMODULE.

Regards

Rajkumar Narasimman

Read only

naveen1241
Participant
0 Likes
597

Can't the mandatory check be removed for the dependent fields and ensure it's filled by appropriate value using CHAIN..ENDCHAIN or FIELD MODULE check validations ? Just keep the first field alone mandatory and make others mandatory by the aforesaid validations.

Thanks

Naveen