Application Development and Automation 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: 
Read only

Function module enhancement giving error?

Former Member
0 Likes
523

Hi All,

I need to enhance the standard FM for that first i enhanced parameter interface and added a field for exporting parameters.

and i enhanced the source code and added that field to the internal table which is in an include .but its throwing a error "data object employee_wa does not have a component called 'plans'."

please go through the code and give me a solution?

TYPES:

BEGIN OF step_obj_data_type,

step_obj TYPE asr_guid,

isr_scenario TYPE qscenario,

END OF step_obj_data_type.

TYPES:

BEGIN OF employee_tab,

pernr TYPE pernr_d,

ename TYPE emnam,

""*""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1 ) Typ EMPLOYEE_TAB, End S

$$-Start: (1 )----


$$

ENHANCEMENT 2 ZZGET_CAND_POSITION. "inactive version

types : position type plans.

ENDENHANCEMENT.

$$-End: (1 )----


$$

END OF employee_tab.

TYPES:

BEGIN OF ename_tab,

ename TYPE emnam,

END OF ename_tab.

DATA indx_wa TYPE indx.

DATA employee_wa TYPE employee_tab.

DATA employee_tab TYPE STANDARD TABLE OF employee_tab.

DATA ename_wa TYPE ename_tab.

DATA ename_tab TYPE STANDARD TABLE OF ename_tab.

DATA step_isr_tab TYPE TABLE OF step_obj_data_type.

DATA step_isr_wa TYPE step_obj_data_type.

DATA edit_dpf_allowed_store TYPE boole_d.

DATA pernr_mem_id_int TYPE text5.

DATA pobj_tab TYPE STANDARD TABLE OF hrasr00consumer_attributes.

DATA pobj_wa TYPE hrasr00consumer_attributes.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
480

Hi

change the structure -

TYPES:

BEGIN OF employee_tab,

pernr TYPE pernr_d,

plans type <<type>>

ename TYPE emnam,

end of employee_tab.

Reward if helpful.

Best Wishes,

Chandralekha

2 REPLIES 2
Read only

Former Member
0 Likes
480

Hi,

In this EMPLOYEE_TAB structure you dont have field Called "PLANS' if you want to include

that fields. Thats why it is throwing error. If you want that PLANS to be used in further processing then include in EMPLOYEE_TAB struture and try to run the function module.

Reply if u need more help on this.

Reward if helpful.

Best Wishes,

Chandralekha

Read only

Former Member
0 Likes
481

Hi

change the structure -

TYPES:

BEGIN OF employee_tab,

pernr TYPE pernr_d,

plans type <<type>>

ename TYPE emnam,

end of employee_tab.

Reward if helpful.

Best Wishes,

Chandralekha