cancel
Showing results for 
Search instead for 
Did you mean: 

Java Heap Space with aRFC Call

Joseph_BERTHE
Active Contributor
0 Kudos

Hi,

I got an issue here.

My scenario is : RFC --> PI --> SOAP

PI Version : 7.0

I want to send my material catalog to PI. I have broadly 66 000 Materials. When I send it via RFC call here is my error (SM58 into the SAP HR system):

Java heap space

When I send only one material everything is good

So here is how I send my material :


CALL FUNCTION 'Z3P_MATERIAL_GETLIST'
  TABLES
    return = it_return
    RESULT = it_RESULT.
IF p_send = 'X'.
  CALL FUNCTION 'Z3P_MATERIAL_GETLIST'
    IN BACKGROUND TASK AS SEPARATE UNIT DESTINATION p_rfc
    TABLES
      return = it_return
      RESULT = it_RESULT.
  COMMIT WORK.
ENDIF.

Do I reach the limit of RFC call ? What should I do ?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Joseph_BERTHE
Active Contributor
0 Kudos

Thanks,

So you opinion is to increase the Java Heap Size into PI.

To be clear of something, is the error message (in sm58) comes from PI serveur or SAP ECC Server ?

I know it is probably stupid question but I want to be sure

Thanks

former_member200962
Active Contributor
0 Kudos

JAVA heap size related to XI/PI.....you cannot increase it beyond a certain % of the RAM size....also if possible try splitting the message into smaller clusters and then process instead of going for 66000.....if not permitted then you can consider increase heap size....have a due permission from your technical architect before you do any change...

Edited by: abhishek salvi on May 28, 2009 1:07 PM

Answers (1)

Answers (1)

former_member200962
Active Contributor
0 Kudos
I want to send my material catalog to PI. I have broadly 66 000 Materials. When I send it via RFC call here is my error (SM58 into the SAP HR system): 
Java heap space
When I send only one material everything is good 🙂

For processing a message you are allocated some space and i think that processing 66000 materials at a time you are overshooting this space-limit....however when you are processing only one material it is well within the limit.....

Check these two discussions...it will give you a good insight of what you need to do...

Regards,

Abhishek.