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

needd logic

Former Member
0 Likes
593

Hi,

LOOP AT IT_BKPF_BSEG WHERE HKONT IN S_HKONT

AND BUKRS IN S_BUKRS

AND PRCTR IN S_PRCTR

AND ( BLART IN S_DOC_IN AND NOT BLART IN S_DOC_EX ).

here the field s_doc_in is empty . thats y i am not getting data.

but if it is empty the field it_bkpf_bseg-blart also fill withn empty . how can i change the code.

regards,

Ajay reddy

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
571

LOOP AT IT_BKPF_BSEG WHERE HKONT IN S_HKONT

AND BUKRS IN S_BUKRS

AND PRCTR IN S_PRCTR

AND ( BLART IN S_DOC_IN <b>OR</b> NOT BLART IN S_DOC_EX ).

Do the above cahnges or:

LOOP AT IT_BKPF_BSEG WHERE HKONT IN S_HKONT

AND BUKRS IN S_BUKRS

AND PRCTR IN S_PRCTR

AND BLART IN S_DOC_IN

AND NOT BLART IN S_DOC_EX .

regards,

Anju

Hi,

LOOP AT IT_BKPF_BSEG WHERE HKONT IN S_HKONT

AND BUKRS IN S_BUKRS

AND PRCTR IN S_PRCTR

AND ( BLART IN S_DOC_IN AND NOT BLART IN S_DOC_EX ).

here the field s_doc_in is empty . thats y i am not getting data.

but if it is empty the field it_bkpf_bseg-blart also fill withn empty . how can i change the code.

regards,

Ajay reddy

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
571

Add an empty value to this select-option.

S_DOC_IN-sign = 'I'.
S_DOC_IN-option = 'EQ'.
S_DOC_IN-low = space.
append S_DOC_IN.

Regards,

RIch Heilman

Read only

0 Likes
571

Hi Rich,

Already i did the same.

but i am comparing the BLART from it_BKPF_BSEG, this field contains the data.

How can i make this filed empty when s_doc_in is initail.

regards,

Ajay reddy

Read only

Former Member
0 Likes
572

LOOP AT IT_BKPF_BSEG WHERE HKONT IN S_HKONT

AND BUKRS IN S_BUKRS

AND PRCTR IN S_PRCTR

AND ( BLART IN S_DOC_IN <b>OR</b> NOT BLART IN S_DOC_EX ).

Do the above cahnges or:

LOOP AT IT_BKPF_BSEG WHERE HKONT IN S_HKONT

AND BUKRS IN S_BUKRS

AND PRCTR IN S_PRCTR

AND BLART IN S_DOC_IN

AND NOT BLART IN S_DOC_EX .

regards,

Anju