skwong
Member
I am preparing an orchestration to report which sales orders are created today and send an email (message) to a designated person. I am using a database connector with jruby to execute a select statement to return a list of sales order document company, document type, order number, customer, customer name.
"SELECT SHKCOO, SHDCTO, SHDOCO, SHAN8, ABALPH FROM F4201 INNER JOIN F0101 ON SHAN8 = ABAN8
WHERE SHTRDJ = TO_NUMBER(to_char(sysdate, 'YYYYDDD')) - 1900000"
I want to save the result into a message body like below:
These are the sales orders created today:
00001 SO 3450 10001 CUSTOMER 1
00001 SO 3451 10002 CUSTOMER 2
00001 SO 3452 10003 CUSTOMER 3
Is there a simple jruby codes to generate the text like the above list table? I am new to jruby development.
"SELECT SHKCOO, SHDCTO, SHDOCO, SHAN8, ABALPH FROM F4201 INNER JOIN F0101 ON SHAN8 = ABAN8
WHERE SHTRDJ = TO_NUMBER(to_char(sysdate, 'YYYYDDD')) - 1900000"
I want to save the result into a message body like below:
These are the sales orders created today:
00001 SO 3450 10001 CUSTOMER 1
00001 SO 3451 10002 CUSTOMER 2
00001 SO 3452 10003 CUSTOMER 3
Is there a simple jruby codes to generate the text like the above list table? I am new to jruby development.