cancel
Showing results for 
Search instead for 
Did you mean: 

To auto populate the values in characteristics in CG02BD transaction

former_member608850
Discoverer
0 Kudos

cg02bd.pngI have a requirement where in I have to auto populate the values in characteristics in CG02BD transaction.

In the attached picture you can see in property tree > Procurement > Vendor/Supplier .I have given F4 help and trying to auto populate the other characteristics. But getting the error mentioned in the file attached.

To auto populate the values I have done an enhancement in Class CL_EHSB_VAI_DEFAULT_USEX

Method - IF_EHSB_VAI~ON_F4 (Post exit)

I get the following error 'No values are available for the key specified.' from FM CALL FUNCTION 'C1F5_SPECIFICATIONS_MODIFY'

I am unable to find why this standard error is thrown.

Any inputs on the error or any other way to achieve this requirement.

Thanks in advance

Accepted Solutions (0)

Answers (3)

Answers (3)

christoph_bergemann
Active Contributor
0 Kudos

Hello

I did not specify a special BADi so I do not hnow which you have used now.

Short story is: we have implemented something "similar", but the specific requirement must be known to decide: either use this "exit" or "this" Badi.

But there is a solution (in our case). BUt i can not share here the details. Sorry

C.B.

former_member608850
Discoverer
0 Kudos

Hi,

Thanks for replying .

I have tried the BADIs you suggested but it dint help

Can you please provide some more information or insight on the same.

Our requirement is to give F4 help on vendor field and to populate other fields based on the F4 value selected.

Attaching some screen shots for your reference hope this helps you a bit.

1.png 2.png 3.png

Thanks in advance

former_member758078
Participant
0 Kudos

Hi,

Did you manage to succeed on implementing this?

christoph_bergemann
Active Contributor
0 Kudos

Hello

according to my knowledge: you will not succeed using your approach. But there are alternatives. Without knowledge of the specific Business Requerement: No further help possible.

As a starting point; may be this blog might help a little bit...

https://blogs.sap.com/2013/05/18/customer-exits-in-sap-ehs-management/

Please check "IMG" for EHS you will find some "enhancement" options (which are linked to CG02/CG02BD)

Some of them are "Exits"; some other are "BADIs". If i have understood your requirement: there is a good chance that you will find a solution using the "Exits" or the "Badis"

C.B.