Skip to Content
0
Former Member
Dec 14, 2006 at 11:04 AM

Call FD05?

18 Views

Hello,

my code:

SELECT * FROM knb1 WHERE kunnr IN pa_kunnr.

IF sy-subrc EQ 0.

SELECT single * FROM knc1 WHERE kunnr eq knb1-kunnr.

IF sy-subrc EQ 0.

*do nothing

ELSE.

*found, block.

SELECT single * FROM kna1 WHERE kunnr eq knc1-kunnr.

IF sy-subrc EQ 0.

SET PARAMETER ID: 'KUN' FIELD knb1-kunnr.

SET PARAMETER ID: 'BUK' FIELD knb1-bukrs.

CALL TRANSACTION 'FD05' AND SKIP FIRST SCREEN.

WRITE:/ knb1-kunnr,

knb1-bukrs,

kna1-name1,

kna1-name2,

kna1-ort01,

kna1-land1.

ENDIF.

ENDIF.

ENDIF.

ENDSELECT.

When I call transaction:

CALL TRANSACTION 'FD05'

Field KNB1-SPERR has to be ckecked automatic and can I CALL TRANSACTION 'FD05' in background..?

Can someone help?

Adibo..thanks