‎2015 Sep 25 9:06 AM
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
‎2015 Sep 25 10:21 AM
‎2015 Sep 25 9:20 AM
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
‎2015 Sep 25 9:54 AM
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.
‎2015 Sep 25 9:21 AM
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
‎2015 Sep 25 9:29 AM
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
‎2015 Sep 25 10:14 AM
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.
‎2015 Sep 25 10:21 AM
‎2015 Sep 25 10:32 AM
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!