cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe forms

Former Member
0 Kudos

Hi,

How to make a field(variable ) mandatory based on the other field (when selecting a particular filed from drop down ) in SAP ADOBE FORMS for MSS.

For Example if Contract type ' Fixed Term ' is selected from drop down, make Contract End Date field Mandatory.

In Adobe forms What is the code we have to add using Java script for the above example.

Thanks & Regards,

B. Thulasi.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

last line of the code is false..

this.CTEDT_CURR = "Mandatory". change this to this.CTEDT_CURR = this.manditory

Thanks,

Madhukar

Former Member
0 Kudos

Hi,

I have changed last line of the code ..

this.CTEDT_CURR = "Mandatory". change this to this.CTEDT_CURR = this.mandatory

Eventhough iam not getting the output.

is there any false in BADI code.

Can u please help me.

Thanks & Regards,

B. Thualsi.

Former Member
0 Kudos

Hi bheema,

U can do like..

if contract type = "fixed term" then

this.rawvalue = this.manditory

thanks,

Madhukar

Former Member
0 Kudos

Hi,

if we select contract type is 'Fixed term' from drop down in Adobform make Contract type mandatory.

For this i have written code in BADI user command method like

WHEN 'NEW_CONTRACT_TYPE'.

READ TABLE special_data INTO ls_special_data

WITH KEY fieldname = 'CTTYP_NEW'.

g_CTTYP = ls_special_data-fieldvalue+0(2).

IF g_CTTYP = text-001 .

READ TABLE special_data INTO ls_special_data

WITH KEY fieldname = 'CTEDT_CURR'.

IF sy-subrc EQ 0.

IF ls_special_data-fieldvalue IS INITIAL.

return-type = 'E'.

return-id = 'ZPTR'.

return-number = '001'.

EXIT.

ENDIF.

ENDIF.

ENDIF.

and i have add code inAdobe form javascript as

if($record.CTTYP_NEW.DATA[*].FIELD == "13 Fixed Term Contract".|

then

this.CTEDT_CURR = "Mandatory".

endif

but iam not getting the output.can u please help me

Thnaks & Regards,

B. Thulasi.