cancel
Showing results for 
Search instead for 
Did you mean: 

Calling the function NUMBER_GET_NEXT from an XI User Defined Function

Former Member
0 Kudos

Hi there,

A number range object has been created on our XI server, called, ZBC_BKSTMT.

I need to call the function NUMBER_GET_NEXT (standard SAP function for number range objects) with the parameters:

NR_RANGE_NR = 01

OBJECT = ZBC_BKSTMT

Calling the NUMBER_GET_NEXT function will return a unique integer. However, i need to call it from a User Defined Function because I need to make use of the returned integer in my message mapping.

Thanks,

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

And also...

just take a ABAP Mapping. This is a quite normal method of a normal class and of course u can call a RFC.

Former Member
0 Kudos

Hello,

If you have SP13, SAP provides a RFC API which can be called during the mapping. Refer to this document:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples...

Also check this weblog :

/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler

For pre-SP13 systems, refer to this How-To

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guide...

***************Reward points,if found useful

prateek
Active Contributor
0 Kudos

U can make ur function NUMBER_GET_NEXT remote enabled. Then call this RFC in UDF using RFC lookup. A sample is used here

/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i

Regards,

Prateek