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

SAP functional module question.

Former Member
0 Likes
858

Hi,

I have a question on functional module.

I have Developement and Quality.

I am passing a Material number with padding zeros in development and I get returned values..

If I am passing a material number with padding zeros in quality and it does'nt return values but if I remove the padding zeros it works...

What could be different ..I thank you for help..

Thanks,

Mark

1 ACCEPTED SOLUTION
Read only

custodio_deoliveira
Active Contributor
0 Likes
816

Hi Mark,

Are you testing this FM in SE37/SE80 or in a program? If in a programa, do as Ravi says. If in SE37/Se80, go to menu utilities->settings, then go to Function Builder tab. Make sure the checkbox "Switch off conversion exits while testing" is the same (either checked or unchecked) in both systems

Cheers,

Custodio

6 REPLIES 6
Read only

Former Member
0 Likes
816

HI,

What function module you are using did any changes made in development system to that particular FM,Compare version management. This is because of conversion routine " CONVERSION_EXIT_MATN1_INPUT" " CONVERSION_EXIT_MATN1_OUTPUT" used before passing this input value to the function module. It automatically removes or adds zero before the material number.

Go to se11->type matnr in database table,click display=>Double click on data type it will shows the Domain,Double click it again you will get the convertion routines MATN1 for MATNR now double click it you can get the FM.

Use this 2 FM in SE37,Pass material number with zero and without zero you will get the difference.

Regards,

Ravi Shankar L

Read only

custodio_deoliveira
Active Contributor
0 Likes
817

Hi Mark,

Are you testing this FM in SE37/SE80 or in a program? If in a programa, do as Ravi says. If in SE37/Se80, go to menu utilities->settings, then go to Function Builder tab. Make sure the checkbox "Switch off conversion exits while testing" is the same (either checked or unchecked) in both systems

Cheers,

Custodio

Read only

0 Likes
816

I tried doing it..but still has the same issue..

It dint fix the issue..I tried both checking in and checking out...

Read only

0 Likes
816

Were you able to resolve the issue?

Read only

arindam_m
Active Contributor
0 Likes
816

Hi,

Yes just as suggested, Just switch on/off your conversion exits which ever suits you.

Cheers,

Arindam

Read only

Former Member
0 Likes
816

Hi Mark,

Go to transaction OMSL.

Make sure the settings are same in Development and Quality.

(Most probably Lexicographical will be checked in one system and unchecked in other. )

To explain what each setting does,

The Material Number is the Maximum length of the material number that can be entered or displayed. That would usually be10 or 18. That should be same for both.

Lexicographical indicator defines the way numeric material numbers are stored in database. If this is not set, material number will be padded with zeroes acc to the max length defined above. If it is set, material number is stored as entered, left justified.

If leading zeroes is set, the material number will be displayed with leading zeroes till the defined length.

This will solve the issue.