Question and FDF Requiremnt

MiscTrans1.jpeg

MiscTrans.jpeg

Hello gurus - when the user selected 'various reception' and when they choose a particular reason ( only contractor spare parts ) ,, this field must be a field mandatory only when the 'entrepreneur Spare Parts' reason was selected.for Misc other Trans a reason I want to leave this class as usual. Can someone help me how to do this?

MiscTrans3.jpeg

I tried with FND_DESCR_FLEX. Concept of UPDATE_DEFINITION is not training for my particular requirement, so I make it very simple to CUSTOM help. Code of the PLL as described below. and see my Final screenshot.

I want to just share so get capitalized other users.

-Add this piece of code in the CUSTOM. PLL (case of PROCEDURE (event_name VARCHAR2)

form_name VARCHAR2 (30): = NAME_IN ("system.current_form");

block_name VARCHAR2 (30): = NAME_IN ("system.cursor_block");

param_to_pass2 VARCHAR2 (255);

L_TRANSACTION_TYPE VARCHAR2 (255);

L_ATTRIBUTE4 VARCHAR2 (255);

Event_name IF = "WHEN-VALIDATE-RECORD.

THEN

-At end of test debugging messages

/ * IF form_name = 'INVTTMTX' AND block_name = 'MISC_TRX. '

THEN

-fnd_message.set_string ('Header...) ');

-fnd_message.show ();

l_TRANSACTION_TYPE: = NAME_IN ('MISC_TRX.) TRANSACTION_TYPE');

END IF; * /

IF (form_name = 'INVTTMTX' AND block_name = 'MTL_TRX_LINE')

THEN

-Debug for test purpose messages-

-fnd_message.set_string (' lines...) ');

-fnd_message.show ();

param_to_pass2: = NAME_IN ("MTL_TRX_LINE.reason");

l_TRANSACTION_TYPE: = NAME_IN ("MISC_TRX.transaction_type");

IF param_to_pass2 = 'PIECES OF SPARE of ENTREPRENEUR' AND l_TRANSACTION_TYPE = 'Réception' various

THEN

L_ATTRIBUTE4: = NAME_IN ('MTL_TRX_LINE.) ATTRIBUTE4');

IF L_ATTRIBUTE4 IS NULL

THEN

fnd_message.set_string ("when you have selected"PIECES OF SPARE of ENTREPRENEUR"Transaction reason Code, you must enter project to the FDF LOV number is required");

fnd_message. Show ();

RAISE form_trigger_failure;

END IF;

END IF;

END IF;

END IF;

-Result

When we get this Message users can't "Save" until they enter the FDF value.

Thank you all.

Tags: Oracle Applications

Similar Questions

Maybe you are looking for