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 with Table Type IMPORT

Former Member
0 Likes
7,529

Hi,

I have a FM which has a IMPORT parameter which is of a table type say CRMT_OBJECT_GUID_TAB.

I am trying to test run the FM but I am not able to give the test data.

Can someone help regarding this issue.

Regards,

Adithi

13 REPLIES 13
Read only

venkateswaran_k
Active Contributor
0 Likes
5,335

Hi Aditi

Are you trying it through SE37

Also what is the Function module?

Regards,

Venkat

Read only

0 Likes
5,335

Hi,

The function module name is CRM_ORDER_READ_OW.

Added screenshots showing the same:

There must be a simple way of adding the lines to it. But I am not aware of it.

Thanks,

Adithi

Read only

0 Likes
5,335

Hi Aditi

Click on the Icon table  ( ie left side of the 0 entries)

You will get the entry window

Read only

0 Likes
5,335

Hey,

Which icon are you referring to?

I tried clicking on the Metadata button and still was not able to fill with entries.

Regards,

Adithi

Read only

0 Likes
5,335

Yes, the same Icon you highlighted.

Or,

Go to toolbar Goto  --> Table Entries

Regards,

Venkat

Read only

0 Likes
5,335

Yes, the same Icon you highlighted.

Or,

Go to toolbar Goto  --> Table Entries

Regards,

Venkat

Read only

0 Likes
5,335

Hey,

Now I understood why what you are showing is not seen in my case.

Because you are showing a TABLES parameter or a CHANGING parameter. But in this FM CRM_ORDER_OW the IMPORTING parameter is of Table type.

If you have a FM which has IMPORTING parameter which is a TABLE TYPE then kindly share. Maybe seeing it I might get an idea.

Regards,

Adithi

Read only

0 Likes
5,335

Hi Adithi

Even if it is of IMPORT parameter also it will work.  I tested.

As long as the Data type is of Table type it should work  (whether it is of import or table )

One thing I found in your screen shot, it is showing as Display Structure.. 

It should come as Change Structure.  Please verify in your second screen shot you attached

regards,

Venkat

Read only

0 Likes
5,335

Hi Adithi,

Please refer to the screen shot  DISPLAY Structure IT_HEADER_GUID

It should come as Change structure IT_HEADER_GUID.

That is the reason you are not getting the option to insert/delete rows

I have retested that whether it is a IMPORT or TABLE,  As long as the data type is of table type it will

Regards,

Venkat

Read only

0 Likes
5,335

Hi Venkat,

I have added the screenshots of the IMPORTING values which shows it is of TABLE TYPE.

Is there something like you cannot test run a Function module directly?

Regards,

Adithi

Read only

0 Likes
5,335

Hi Venkatesh,

I found the answer for the query.

You can't populate Import Table with GUIDs...or better: with RAW (Hex) Fields

And  CRMT_OBJECT_GUID_TAB contains only RAW GUIDs, Only way to do this is to create a dummy test Report.

Thanks for all the help.

Regards,

Adithi

Read only

0 Likes
5,335

I tried with GOS_EXECUTE_SERVICE which has a TABLE TYPE IMPORT parameter,

No problem

click on 

is displayed, even I pressed back immediately i got a record...

Maybe your "RAW" type does not allow manual "input" and "append", so you may be required to write a small report ?

Regards,

Raymond

Read only

Former Member
0 Likes
5,335

Hi Adithi,

Could you try using report program CRM_ORDER_READ and test it in SE38, where in you can pass the Header GUID ?

Also please do pass the requested objects for a better performance.

Regards

Jagathshree