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

BAPI and Filter

Former Member
0 Likes
1,024

Hi,

I would like to have a filter assigned to a BAPI (AcctngEmplyeeExpnses for example). Firstable I tried to create a new filter base on REF_DOC_NO by BD95 and BD96. But when the Bapi is executed, I have an error because this filter is not authorized for this Bapi.

how can I know the authorized filter for a BAPI ?

Thanks a lot for your help.

5 REPLIES 5
Read only

Former Member
0 Likes
871

Hi,

Just a small doubt?

r u talkin about BAPI's or BADI's?

Read only

Former Member
0 Likes
871

Hi Pascal,

First of all have u created a model view for ur BAPI in BD64?? If not create model view in BD64 and add ur BAPI to that. Try this and check out.

Regards,

savitha

Read only

Former Member
0 Likes
871

hi,

I speak about BAPI.

I have a model wiew (bd64) with the message HRPAYP and some BAPI like AcctngEmplyeeExpnses.Check and Post.

The problem is, in the same model wiew, i would like to have two message HRPAYP, one to post in the system XX and one to post in an other system. I think it's possible but it's necessary to use filter to define wich message is used. I can't used the company code as filter.

Thanks

Read only

0 Likes
871

Hi pascal,

Use this function module ALE_BAPI_GET_FILTEROBJECTS for knowing the SAP defined filter objects for the BAPI .

<b>Input Parameters:</b>

Parameter Reference Field/Structure Description

OBJECT BDI_BAPI-OBJECT BOR object of the BAPI

METHOD BDI_BAPI-METHOD BOR method of the BAPI

RECEIVER_INPUT BDI_LOGSYS Default logical receiving system

<b>Output Parameters:</b>

Parameter Reference Field/Structure Description

FILTEROBJECTS BDI_FLTTYP Filter objects and values

<b>Exceptions</b>

Parameter Description

ERROR_IN_ALE_CUSTOMIZING Error in ALE Customizing

Hope this is useful.

Read only

0 Likes
871

Hi Savitha,

Thanks for your answer, I try the function, but this function give me the result of BD96 and i can put all the field i want in this transaction.