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

inserting blob data into external database through abap code

Former Member
0 Likes
429

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.

1 REPLY 1
Read only

Former Member
0 Likes
321

After writing insert statement, always check if sy-subrc = 0.

commit work.

endif.