cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Tables in Characteristics Created for DMS Module

Former Member
0 Kudos

Hi Experts

Please advice, how can I use Data from Tables as input to End user while creating a Characteristics.

II have tried using "Values - Other Values Check" Tab while creating characteristics, but everytime while choosing table, system is throwing an Error that "Check Table xxxxx has too may key fields".

I want to provide option of selecting Cost Centre and Profit Centre to end user. I have tried to use Table (m_PRCTN, M_KOSTN,CSKT). Please help !! .

Regards

Prashant

Accepted Solutions (1)

Accepted Solutions (1)

amit_maheshwari2
Contributor
0 Kudos

Hi Prashant,

You cannot assign check table to the characteristics which have multiple primary key. You can achieve your requirement by implementing the check using function module.

Refer to the below link abouy how to include function module for value check.

Cheers

Amit

Former Member
0 Kudos

Hi Amit

Thanks for providing inputs to my query and sharing the information.

Its realy useful.

I'm able to validate the input using Function Module but not able to fetch list using FM.

I need to provide list to end user for selecting Data, the option provided in the link was tried but was not working.

I have provided all inputs as given in the Documentation but nor F4 was working not it is fetching any Data in Tables.

If I use Table in FM and make it mandatory it gives a Dump while accessing the same from CV01N, I tried to use structure (VALUES) IN parameter, but application was not appending records in structure. (giving syntax Error)

Please advice if I have skipped some step and need to do anything else.

Regards

amit_maheshwari2
Contributor
0 Kudos

Sorry Prashant. I will not be able to help technically. Wait for other experts comments.

Otherwise, check with an abaper in your team if he can help.

Regards

Amit

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks, it works. Actually i was providing differnet varaible names in import and export parameters. SAP has provided some specific table and field names for these activities.

Former Member
0 Kudos

Create the same function you created the check values but ad the following "_F4".

Example: Z_CHECK_VALUE

Z_CHECK_VALUE_F4 -> in this you can then call or create screen

Phillip

Former Member
0 Kudos

Hi Philip

thanks for the information.

I have tried the same. Searched lots of codes even and tried with those one also.

But everytime it gives ABAP Dump.

Could you please help me and provide correct code for this.

Regards

Error Pasted below -

Error analysis

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_DYN_CALL_PARAM_MISSING', was

not caught in

procedure "CTHE_FUNCTION_F4" "(FUNCTION)", nor was it propagated by a RAISING

clause.

Since the caller of the procedure could not have anticipated that the

exception would occur, the current program is terminated.

The reason for the exception is:

When calling the function module "Z_GET_COST_CENTRE_F4", one of the parameters

needed according to the interface description was not specified.

This parameter was "RETURN_TAB".