Skip to Content
author's profile photo Former Member
Former Member

Pass parameters to a BADI

Hi gurus,

I have some problems here when i tried to pass parameters to a BADI

I'm working in SAP BPC 7.0 NW SP4

I've the following code in my script which i execute with a package.

*START_BADI ZBPC_ABC1010

QUERY=ON

WRITE=ON

NUM_EMP=$NUM_EMP$

TIP_MOV=$TIP_MOV$

CANT_EMP=$CANT_EMP$

PERIODO=%TIEMPO_SET%

L_CATEGORY=%C_CATEGORY_SET%

AREA_PERS=%AREAS_PERS_SET%

*END_BADI

The lines in between $ $ are free parameters that aren't in BPC. I filled in the prompt with a text box.

But the lines with % % are dimension in the prompt i select a dimension member.

The problem is that if i tried to validate the script above it doesn't work but if i enter any character in front the % in these lines it works.

(PERIODO=q*%TIEMPO_SET% --> if i write a q, or whatever it works)

But if i write any sign it pass the parameter q2011.MAY and the BADI crashes, cause doesn't exist q2011.MAY.

Any suggestion.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 04, 2011 at 04:45 PM

    Hi Jose,

    Have you tried to filter data using XDIM_MEMBERSET and get these values thru the internal table it_cv?

    I think it could be a way.

    Regards,

    Silvio Messias.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.