Application Development 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: 

WBS Conversion FM using RFC Causing Short Dumps

dean_hinson2
Active Contributor
0 Kudos

Hello,

I have been trying to validate WBS element entries by using an RFC call to a FM on the back-end. However, I keep getting short dumps on the back-end system with 'Statement "MESSAGE E" is not allowed in this form.' message. The custom back-end FM calls one of the CPJN FMs like CONVERSION_EXIT* that deal with WBS elements.

So, I tried changing the custom FM to use the data element that does a the conversion instead of the FM. Now, I get a short dumps on the front-end with CALL_FUNCTION_REMOTE_ERROR with 'Key does not correspond to mask: B/0000-XXXXXXX.0.0.0' message.

Has anyone been successful without duplicating the CONVERSION_EXIT* FMs in order to validate a WBS element entry remotely?

Thank you in advance for any assistance.

Regards, Dean.

1 ACCEPTED SOLUTION

uwe_schieferstein
Active Contributor
0 Kudos

Hello Dean

On ERP 6.0 (IDES) there is the RFC-enabled fm /SPE/WBS_ELEM_CONV_INT_EXT available.

If you feed the fm with an external ID it tries to convert it into the corresponding internal ID and vice versa. Perhaps this fm might be useful for you.

Probably the BAPI BAPI_PROJECT_EXISTENCECHECK is more useful (can be feed either with internal or external ID).

Regards

Uwe

2 REPLIES 2

uwe_schieferstein
Active Contributor
0 Kudos

Hello Dean

On ERP 6.0 (IDES) there is the RFC-enabled fm /SPE/WBS_ELEM_CONV_INT_EXT available.

If you feed the fm with an external ID it tries to convert it into the corresponding internal ID and vice versa. Perhaps this fm might be useful for you.

Probably the BAPI BAPI_PROJECT_EXISTENCECHECK is more useful (can be feed either with internal or external ID).

Regards

Uwe

dean_hinson2
Active Contributor
0 Kudos

Ok, after research and an OSS message to SAP, it was a one-two punch...

an OSS Note 986683 RPERF_ILLEGAL_STATEMENT error during conversion exit call

and usage of FM CONVERSION_EXIT_PRCOR_INPUT that fixed the problem.

Thanks for all the correspondence.