cancel
Showing results for 
Search instead for 
Did you mean: 

Redirect HAP_DOCUMENT BSP using HRHAP00_BSP_TMPL BADI

Former Member
0 Kudos

Hi all!

I am trying to redirect the HAP_DOCUMENT BSPusing the HRHAP00_BSP_TMPL badi. Below are the steps i followed for this:

1)I created a BAdI implementation based on definition HRHAP00_BSP_TMPL.

2)In the method ‘BSP_APPLICATION_GET’ i assigned the custom BSP application.

<i>METHOD if_ex_hrhap00_bsp_tmpl~bsp_application_get.

application = ‘CUSTOM_BSP_APPLICATION_NAME'.

ENDMETHOD.</i>

3)After i activated the implementation, went to the basic setting of OSA (transaction OOHAP_BASIC) and register the new implementation in exit area ‘AW – Web Layout’.

4)Now set for a template on the layout tab writer the WEB layout to the custom layout.

5)I called the HAP_DOCUMENT BSP in the web.

Now when i open the documents, i am getting a dump as below: The current program, "SAPLRHAC", had to be terminated because a capacity limit

has been reached.

The method is being executed infinite times and hence the memory limit is exceeded and i get the dump.

Please let me know if i am doing anything wrong in using the badi.

Any suggestions are highly appreciated and points would be awarded accordingly.

Thanks in advance,

manasa

Message was edited by:

manasa

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I got it solved by myself!

Thanks,

manasa

Former Member
0 Kudos

Could you provide more details on the solution?

Former Member
0 Kudos

Luk,

What is the problem you are having? Are you using the same BSP or a different one?

thanks,

manasa

Former Member
0 Kudos

Hi manasa,

We have copied the existing HAP_DOCUMENT application, and implemented the BAdI to refer to the copied application Z_HAP_DOC.

When we open the web preview in the appraisal catalog, the system starts loading. In SM04 we can see that the memory used by the HTTP session goes up to two gigabyte. So no document is shown.

When we use the documents_todo page of our own application Z_HAP_DOC and we do not use the BAdI in the template, we get the correct layout.

However, we would like to use the BAdI in combination with the standard documents_todo list.

Is there something special we need to do in the BAdI implementation?

METHOD if_ex_hrhap00_bsp_tmpl~bsp_application_get.

  application = 'Z_HAP_DOC'.

ENDMETHOD.

Thanks,

Luk

Former Member
0 Kudos

Please create a new topic(with the same questions) as this one is already closed. I will answer your questions in that topic.

I read somewhere that solved topics should be 'closed' as we cannot assign points. sorry about this.

Thanks,

manasa

former_member220448
Participant
0 Kudos

Hi manasa

I'm having the exactly same problem.

Can you please tell how did you solve it?

Beside this problem I'm not been able to see the web layout of my form through the PHAP_CATALOG_PA transaction.

It seems to try to open the HAP_DOCUMENT insted my ZHAP_DOCUMENT.

Can you please help me with this too?.

Thanks.

Nico.-