Skip to Content
0
Former Member
Jun 25, 2008 at 08:49 PM

BDCDATA Table

17 Views

Hi Everybody,

how to populate BDCDATA table without using the form .

FORM DYNPRO_PROCESS2 USING DYNBEGIN FLD1 FLD2. "#EC *

IF DYNBEGIN = 'X' .

CLEAR WA_BDCDATA .

MOVE: DYNBEGIN TO WA_BDCDATA-DYNBEGIN ,

FLD1 TO WA_BDCDATA-PROGRAM ,

FLD2 TO WA_BDCDATA-DYNPRO.

APPEND WA_BDCDATA TO TB_BDCDATA.

ELSE.

CLEAR WA_BDCDATA .

MOVE: FLD1 TO WA_BDCDATA-FNAM ,

FLD2 TO WA_BDCDATA-FVAL .

APPEND WA_BDCDATA TO TB_BDCDATA.

ENDIF.

ENDFORM. "DYNPRO_PROCESS

Please help.

Thank you.