Skip to Content
author's profile photo
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 comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo
    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 comment
    10|10000 characters needed characters exceeded