cancel
Showing results for 
Search instead for 
Did you mean: 

No component exists with the name "I_BKPF-LDGRP".

0 Kudos

I am receiving error if I implement like this OR ( i_bkpf-ldgrp IS INITIAL AND ldgrp = '*' )

, is there a alternative approach.
I need to implement that i_bkpf IS INITIAL and ldgrp = '*".

Eduardo-CE
Active Participant
0 Kudos

Hi,

You are looping control_exceptions, why are you using i_bkpf-ldgrp IS INITIAL?

matt
Active Contributor
0 Kudos

What is the data definition of i_bkpf and control_exceptions?

Accepted Solutions (0)

Answers (1)

Answers (1)

Sandra_Rossi
Active Contributor

You may indicate on the left side(s) only components of the internal table (control_exceptions)

NB: I guess the legibility is not very good, I would make it this way:

LOOP AT control_exceptions TRANSPORTING NO FIELDS
    WHERE substid  =  substitution_step->substid
      AND subseqnr =  substitution_step->subseqnr
      AND bukrs    IN VALUE range_bukrs( ( i_bkpf-bukrs ) ( '*' ) )
      AND glvor    IN VALUE range_glvor( ( i_bkpf-glvor ) ( '*' ) )
      AND ldgrp    IN VALUE range_ldgrp( ( i_bkpf-ldgrp ) ( '*' ) ).
raymond_giuseppi
Active Contributor

For reference - WHERE log_exp in LOOP AT itab, Basic Form - ' in which the first operand of each relational expression is a component of the internal table.'