cancel
Showing results for 
Search instead for 
Did you mean: 

function module Table contains empty rows

Former Member
0 Kudos

Hi,

i am execting function module through code and when i am able to retrieve 'Table'(exportparameter) iam getting 0 records.

but when execute the same function module inthe sap logon screen the table contains 5 rows. what may be the problem in my code.did any body have idea

Regards

Pavan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Set a break-point at the start of the FM and check the input/table parameters and see it for yourself if they match in both the instances.

Answers (2)

Answers (2)

Former Member
0 Kudos

answered

Former Member
0 Kudos

Hi Pavan,

There could be a problem with the parameters being passed to the function module as input.

For example, if you are executing a function module which has product id of type CRMT_PRODUCT_ID (CHAR 40) as input from SE37 transaction, then you enter 1234567890 as input or 0000000000000000000000000000001234567890 as input, it doesn't matter as conversion exits are applied when executed from the se37 transaction.

But if the same needs to be called from another program, you need to check if the expected input is

1234567890 OR

0000000000000000000000000000001234567890.

Your input impacts the output.

Hope this helps.

Best Regards,

Kris.