Lines are getting overridden while generating JSON response.
Hi Team,
I need to generate response in JSON format. I am getting the response in XML format. So I was trying it with JSON builder . With below code i am getting json response but when Requisition has more than one req_line then it generates JSON for last req line and corresponding Ship line and dist line. Can you suggest that what i am missing out because of which it is overriding .
Code :
Local Rowset &rs_hdr, &rs_line, &rs_ship_line, &rs_dist, &rs_po_addr;
&rs_po_addr = CreateRowset(Record.PO_ADDR_REQ_VW);
&rs_dist = CreateRowset(Record.REQ_LN_DISTRIB);