Skip to Content
0
Former Member
Nov 14, 2008 at 07:57 AM

How to generate an address to different tables like LFA1 and ADRC.

30 Views

HI to all,

I have quick question, I'm trying to generate an address from different data to LFA1 and ADRC.

how can I generate a fields of street2, street3, street4 and location to ADRC table

This my code

ELSE.

ITAB-LOCC = 'VEND'.

PERFORM 1800_GET_VEND_ADDR.

ITAB-TOBUSAR = LFA1-NAME1. "CUSTOMER

ENDIF.

APPEND ITAB.

CLEAR ITAB.

ENDSELECT.

ENDFORM.

-


----


FORM 1800_GET_VEND_ADDR.

SELECT SINGLE * FROM LFA1

WHERE LIFNR = ITAB-GLAC.

MOVE-CORRESPONDING LFA1 TO ITAB.

ENDFORM. " 1800_GET_VEND_ADDR