Application Development 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: 

IN CJ20N transaction need to enhance on some condition .

0 Kudos


Hello Experts,

        my requirment is

  1. Grey out the Network ending xxx13 in project builder, if the user is not Finance controller (OR)
  2. Error message in project builder for changes in Amount field, if Network ending xxx13 and user
    is not Finance controller.

as shown in pics
 
 
  my question is there any exit or badi to achive this functionality

please help me.....

Tanks in advance.
 
 
 
 
 
 
 





1 ACCEPTED SOLUTION

former_member202818
Active Contributor
0 Kudos

Hi Avinash,

To grey out the field, You can write code at form modify_fields in include LCONWF0H using implicit enhancement.

To validate Amount field. I couldn't find any suitable enhancement option.

But you can add the validation at PAI of screen 1550 in function group CONW by getting access key.

Regards

Sreekanth

13 REPLIES 13

Former Member
0 Kudos

Hi Avinash,

please go thru below link. Hope it could help you..

scn.sap.com/thread/1450337

former_member202818
Active Contributor
0 Kudos

Hi Avinash,

To grey out the field, You can write code at form modify_fields in include LCONWF0H using implicit enhancement.

To validate Amount field. I couldn't find any suitable enhancement option.

But you can add the validation at PAI of screen 1550 in function group CONW by getting access key.

Regards

Sreekanth

0 Kudos

Hi

0 Kudos

Thanks

  Sujeet and Sreekanth.

i'll check for possibilities.......

0 Kudos

Hi

0 Kudos

1.Press f1 on any field of screen costs

2.Press F9

u will get the screen number(In Screen data). Double click on it.

3.In PBO double click on module MODIFY_FIELDS_FOR_FLEX_DET

4.here u can find a form routine  modify_fields which is in include LCONWF0H.

Still if u r confused, put a break point and run.

Regards

Sreekanth

0 Kudos

Hi sreekanth.

      in include LCONWFH0H   when i'm trying to impliment implicit enhancement it will ask me access key....

is there any way to achive this requierment.

0 Kudos

Must create a new implementation using create new button.

Choose the newly created implementation name.

0 Kudos

Hi sreekanth,

enhancement point created but its not working.

could you please provide me example to greyout any field from cj20n txn,

lets take field network number for gryout with any condition.

  let me show how it will work with screen shot.

regards,

Avinash.

0 Kudos

Hi,

Here is the code to grey out field Amount.

Insert this code in implementation.

loop at screen.

  if screen-name = 'AFVGD-PRKST'.

    screen-input = 0.

    modify screen.

    exit.

  endif.

endloop.

Regards

Sreekanth

0 Kudos

Hi sreekanth,

    thanks for reply  but i dont want to greyout amount field. i want to gry out network number whos ending with 13(xxxxxx13).

     for amount field.

Error message in project builder for changes in Amount field, if Network ending xxx13
and user is not Finance controller.

     to gry out network no where i can put the logic.... and what about amount field

please help me.

0 Kudos

I couldn't find network number field.

In which screen? Or simply u can find it by press F1 on field and then F9.

Then change AFVGD-PRKST with its screen field name.

0 Kudos

Thanks sreekanth,

          as u suggest logic it works.........

thanks once again.....