07-05-2013 4:01 PM
Dear Experts,
I have a requirement where we need to gray out Project Definition in tcode CJ01/CJ06/CJ20N. For input only one can choose from pop up. Could anyone please let me know where to write the code for this. Any standard exit/badi is available?
Thanks.
07-07-2013 2:51 PM
Given below is the step-by-step procedure in implementing the Screen Exit for CJ01 transaction that is provided in SAP Technical site:
First create a project in CMOD and attach the enhancement CNEX0006 to the project.
Since you dont have to add new fields, you wont have to do steps 1 and 2.
Implement your screen logic for greying out the field in the PBO enhancement.
07-05-2013 7:16 PM
hello,
The field PSPID has a search help, you could see if you can create a new search help and assign it. Or else you could do a enhancement to the search help exit VS_HP_PSPID_SEARCH (FM - VS_HP_PSPID_SEARCH). Restrict the values based on conditions or user etc.
best regards,
swanand
07-06-2013 3:55 PM
07-06-2013 7:29 AM
Hi Prachi,
I do not understand part of your question related to F4 since these are all create transactions so user can enter any valid ( number or character or combination ) values. Greying out part can be easily achieved via screen/ transaction variant.
How to is here -
BR.
07-06-2013 3:57 PM
Hi ankit,
My requirement is in tcode CJ20N.CJ01.CJ06 the field Project Definition number should come as in grey-out mode and secondly user can enter the value only using F4.
Through transaction variant it will not be achieved.
Please let me know what else i can do.
BR,
Prachi.
07-07-2013 2:51 PM
Given below is the step-by-step procedure in implementing the Screen Exit for CJ01 transaction that is provided in SAP Technical site:
First create a project in CMOD and attach the enhancement CNEX0006 to the project.
Since you dont have to add new fields, you wont have to do steps 1 and 2.
Implement your screen logic for greying out the field in the PBO enhancement.
07-07-2013 5:01 PM
Hi sushmita,
Thanks for the reply. But my problem is not solved as after greying out the field , when I am pressing F4 to select value for that field it is not coming on screen.
I have written the logic in PBO like this:
LOOP AT SCREEN.
IF SCREEN-NAME = 'PROJ-PSPID'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Do let me know where I need to modify.
Regards,
Prachi
07-08-2013 10:58 AM
Yes you are right, when the field is greyed, its very complicated, if not impossible, to move values to the field from search help. Specially as an enhancement.
I would suggest another enhancement. Let the field remain as input enabled.
But perform a validation on the inputted project ID if it is one of the existing projects.
The search help is taking values from table proj , field pspnr (Project definition (internal), PSPID (Project Definition).
So you can add the validation (might have to be in PAI), to see if the inputted value PSPID exists in table proj. And if it does not exist, exit after giving the message.