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

problem in as02

Former Member
0 Likes
473

HI!

I have problem in as02 transaction. My task is to implement a batch input in this transacion. The problem is the field anla-deakt which doesnt take the space value. if i put another value (not space) it works fine.

CLEAR itab.

LOOP AT itab.

CLEAR: bdc_data[], bdc_data,

messtab[], messtab.

PERFORM bdc_dynpro USING 'SAPLAIST' '0100'.

PERFORM bdc_field USING 'ANLA-ANLN1' itab-anln1.

PERFORM bdc_field USING 'ANLA-ANLN2' itab-anln2.

PERFORM bdc_field USING 'ANLA-BUKRS' itab-bukrs.

PERFORM bdc_field USING 'BDC_OKCODE' '/00'.

PERFORM bdc_dynpro USING 'SAPLAIST' '1000'.

PERFORM bdc_field using 'ANLA-DEAKT' SPACE.

  • PERFORM bdc_field using 'ANLA-DEAKT' ' '.

PERFORM bdc_field USING 'BDC_OKCODE' '=BUCH'.

CALL TRANSACTION 'AS02' USING bdc_data

MODE 'A'

UPDATE 'S'

MESSAGES INTO messtab.

ENDLOOP.

3 REPLIES 3
Read only

Former Member
0 Likes
429

Hi,

remove this line PERFORM bdc_field using 'ANLA-DEAKT' SPACE.

Cheers.

...Reward if useful.

Read only

0 Likes
429

hey man this is not the solution. it's actually the same with the one below ( anla-deakt '').

Read only

Former Member
0 Likes
429

problem solved