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

Strange problem with function module

Former Member
0 Likes
2,483

Hello,

I recently stumbled over a strange problem within a function module.

The FF does have an import parameter of the type PS_INTNR from the domain PS_PSPNR.

The data element is NUMC (8).

Now to my problem, every time I'm trying to test my function module and upon entering

a VALID internal project number in the format 12345678 the system says it's not valid and has a wrong format.

This is a problem for me, cause my programs won't work now for some specific

routines.

The PS_PSPNR does have a conversion routine for internal and external output. But I'm pretty sure

this should not trigger as I'm not using any write nor output etc.

Did anyone else face this problem or do you have any ideas?

Below some screenshots:

Thanks in advance for everyone who does invest a few minutes into my problem!

Best regards

Florian

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,354

Just check the length of field in the SE37 test screen, it is clearly adapted to external format...

So deactivate conversion-exit (or use external format)

NB: if Conversion exit active, the CONVERSION_EXIT_KONPD_INPUT may return exception NOT_FOUND if project doesn't exist.

Regards,

Raymond

7 REPLIES 7
Read only

former_member185613
Contributor
0 Likes
2,354

Hi Florian,

If there is valid project number (you can cross check the value by querying table PROJ) present in the system, you may have to debug the function module and see where it is failing. I can see that domain PS_PSPNR has conversion routines assigned to it.

Hope it helps,

~Athreya

Read only

0 Likes
2,354

But the conversion routine shouldn't trigger withint se37 test mode, right?

Cite from Help Portal:

"

When is a Conversion Routine Executed?

If a screen field refers to a domain with a conversion routine, this conversion routine is executed automatically when entries are saved in this screen field or when values are displayed in this screen field. The conversion routine of the domain is also triggered when the field contents are output with the WRITE statement."

Not doing anything of it, just selecting from it.

Read only

Former Member
0 Likes
2,354

Hi,

for there is a conversion exit for this type, please try it in SE37 test mode with the the POSID found in table PROJ for this project.

Regards,

Klaus

Read only

nishantbansal91
Active Contributor
0 Likes
2,354

Dear Florian,

The value table for domain is PROJ.

Go to table press f8, you will find two different value one is with conversion exit and second without exit.

Please check both values at once.

Go to Setting->user_Paramters->Check conversion exits check the value.

Go to Setting->user_Paramters->Check conversion exits uncheck conversion exit.

Thanks

Nishant Bansal

Read only

0 Likes
2,354

Thanks, I tried it.

But why does it matter? I can't enter both either the external or internal format.

It has to be another problem and I really don't know why.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,355

Just check the length of field in the SE37 test screen, it is clearly adapted to external format...

So deactivate conversion-exit (or use external format)

NB: if Conversion exit active, the CONVERSION_EXIT_KONPD_INPUT may return exception NOT_FOUND if project doesn't exist.

Regards,

Raymond

Read only

0 Likes
2,354

YES YES YES!

That's it, thank you for this. I'm now able to to test correctly and could

adapt my program.

Have a nice day all of you!