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

Type conflict in function module parameters

Former Member
0 Likes
435

Hi All,

i hve to pass dynamic field <dyn_field> into function module parameters but it's giving a dump for type conflict.

where VALUE2 data type in 'AUTHORITY_CHECK' is UST12-VON but if i define <dyn_field> type UST12-VON . then it'll give dump in *ASSIGN COMPONENT SECURITY_TABLE-FIELDNAME of structure <wa> to <dyn_field> *.

SECURITY_TABLE-FIELDNAME data type is different with UST12-VON .

pls guide me how to pass *<dyn_field> in fm parameters.

FIELD-SYMBOLS: <dyn_field> type any.

LOOP AT <DYN_TABLE_IN> INTO <WA>.

ASSIGN COMPONENT SECURITY_TABLE-FIELDNAME of structure

<wa> to <dyn_field> .

CALL FUNCTION 'AUTHORITY_CHECK'

EXPORTING

USER = QUSER

OBJECT = SECURITY_TABLE-AUTHOBJCT

FIELD1 = 'ACTVT'

VALUE1 = '03'

FIELD2 = SECURITY_TABLE-FIELDNAME

VALUE2 = <dyn_field>

2 REPLIES 2
Read only

Former Member
0 Likes
396

SOLVED MYSELF!!!

Read only

0 Likes
396

Hi anuj ,,

Can you explauin the solution ..

Regards