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

Problem with system Function Call

Former Member
0 Likes
1,063

Hi,

We are using a FM 'NUMBER_GET_NEXT' to get the Report ID which assigns next free number. This FM has a system call THNOGET (given below) which gives sy-subrc equal to 4 if the client is 030 and sysubrc 0 if the client is 100. Apart from the client value, all the other parameters are same in the runtime.

call 'ThNoGet' id 'BNRIV' field bnriv

id 'NO' field g_noivbuffer

id 'QUAN' field p_quantity

id 'PERCENT' field tnro-percentage

id 'NONRSWAP' field tnro-nonrswap.

The input values for this call are same for both the clients i.e. ‘BNRIV’.

For BNRIV: 100 – works fine sy-subrc = 0

For BNRIV: 030 – raises a message sy-subrc = 4.

We want this call to work properly for the client 030 to create a report. Any pointers or reasons for this problem will be of great helpful.

Regards,

Lavanya.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
633

Hi,

The scenario what i can assess is you have created the Number Range Object and its Interval in Client 030 and the running number is getting generated in that client . now you have transported the Number Range to Client to 100 where the Running number is not getting generated.

If that is the case, you will have to created the Interval manually in each and every client and system that you transport because Intervals cannot be transported.

regards,

Mahesh

2 REPLIES 2
Read only

Former Member
0 Likes
634

Hi,

The scenario what i can assess is you have created the Number Range Object and its Interval in Client 030 and the running number is getting generated in that client . now you have transported the Number Range to Client to 100 where the Running number is not getting generated.

If that is the case, you will have to created the Interval manually in each and every client and system that you transport because Intervals cannot be transported.

regards,

Mahesh

Read only

0 Likes
633

Hello Ramakrishnan,

I need your help. i have the similar problem.

its like i am trying to attach some document from presentation server to some business object in client 390 but its not storing the attachment. its so because when the FM get_next_number is triggered its giving the next number which already exists because of which i am unable to insert the record in SOOD table.

this is happenning because some attachments were moved from client 290 to 390 which but not through the process but they moved the Transports of the attachments.

as you said we need to change the interval mannually can you please elobarate the Tcodes/Tables in which we need to change the interval.

Please help me.

Regards,

Ravi