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: 

How do get internal table via remote FM from crm to r3 ?

gerd_hotz
Contributor
0 Kudos

Hello experts,

we have a report in R3 and in this report we have to go via FM to crm-system,

start there a report and then transfer the intern table to r3.

But when I define the table parameter in fm in crm I get error:

reference table not possible.

I just want to define my internal table as table parameter for transfering it

via the fm.

Does anybody what I have to do here ?

Thanks Gerd

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Create a table type in SE11 for your internal table. ZTable type.

On the export tab of your function module, I_tab type Ztable_type is the definition. Make sure the pass value is checked.

3 REPLIES 3

Former Member
0 Kudos

How did you define your internal table? If it was with a table control then make sure the pass value checkbox is checked.

Good luck!

Michelle

0 Kudos

Hi,

here is the definition:

data: begin of line,

jahrmonat(6) type n, "Jahr/Monat

kvgr1 like smovbak-kvgr1,

erdat like smovbak-erdat,

ernam like smovbak-ernam,

auart like smovbak-auart,

vbeln like smovbak-vbeln,

vkorg like smovbak-vkorg,

vtweg like smovbak-vtweg,

spart like smovbak-spart,

vbtyp like smovbak-vbtyp,

kunnr like smovbak-kunnr,

land1 like smokna1sht-country,

netwr(6) type p decimals 2,

anzahl type i value '1', " immer 1

waehr like smovbak-waerk,

kvgr1_bez like smotvv1t-bezei,

arktx like smovbap-arktx,

end of line.

data itab like table of line with header line.

How do I get this itab parameter into tab table of the fm ?

BR Gerd

Former Member
0 Kudos

Create a table type in SE11 for your internal table. ZTable type.

On the export tab of your function module, I_tab type Ztable_type is the definition. Make sure the pass value is checked.