I need to copy a huge table in SAP ERP software. Usually I split the table up with modulo 100 and copy it step by step. This works only if I have a number field as primary field I can use.
But in the table COSS
there is no such field I can use. Is there a way to generate a number out of a string in SQL or is there another way to split a table in smaller pieces?
Thanks
Example:
method get_coep.
select * from coep using client @gv_client
where mod( cast( cast( belnr as numc( 10 ) ) as dec( 10, 0 ) ) , 100 ) = @iv_mod
into table @et_return
connection (gv_conn).
endmethod.