Skip to Content
0
Former Member
Dec 09, 2011 at 04:36 AM

inserting blob data into external database through abap code

108 Views

Hi friends,

i have a requirement to insert a binary data in the database table which is not created from sap application ( not from se11 i.e the table is directly created in the database through abap code) from SAP through ABAP code. Please guide me how can i achieve this.

i can able to insert other then blob data through below code,

TYPES: BEGIN OF wa,

clit1(3) ,

ar1(3) ,

ar2(3) ,

fun1(10) ,

END OF wa.

DATA: git TYPE TABLE OF wa,

gs TYPE wa.

BREAK-POINT.

gs-clit1 = '000'.

gs-ar1 = '29'.

gs-ar2 = '32'.

gs-fun1 = '2434'.

EXEC SQL.

INSERT INTO ZTABLE123( CLIENT, ARG1, ARG2, FUNCTION )

VALUES( :GS-CLIT1, :GS-AR1, :GS-AR2, :GS-FUN1 )

ENDEXEC.