php - How to write XML tags of GRPO which has more than one document rows, SAP B1? -
i have question related xml. i'm not in xml, according example of tags , screenshots can write xml tags have cardcode , dates of grpo. problem have know how can include document rows in tags example of tags
<?xml version="1.0" encoding="utf-8"?> <grpo> <goods> <cardcode>v10000</cardcode> <docdate>07/11/2016</docdate> <docduedate>07/11/2016</docduedate> <taxdate>07/11/2016</taxdate> </goods> <goods> <cardcode>v1010</cardcode> <docdate>07/11/2016</docdate> <docduedate>07/11/2016</docduedate> <taxdate>07/11/2016</taxdate> </goods> </grpo>
i want have above data in xml, how can include document rows data in xml tags?
please can me.
if understand question correctly, you're unsure how configure lines in custom xml layout, correct?
if that's question can this:
<?xml version="1.0" encoding="utf-8"?> <grpo> <goods> <cardcode>v10000</cardcode> <docdate>07/11/2016</docdate> <docduedate>07/11/2016</docduedate> <taxdate>07/11/2016</taxdate> <goodslines> <line> <linenum>0</linenum> <itemno>a00003</itemno> <itemdesc>j.b officeprint 1186</itemdesc> <quantity>4</quantity> </line> <line> <linenum>1</linenum> <itemno>a00004</itemno> <itemdesc>rainbow color printer 5.0</itemdesc> <quantity>5</quantity> </line> </goodslines> </goods> </grpo>
another alternative use attributes instead of elements line definitions, same above, this:
... <goodslines> <line linenum="0" itemno="a00003" itemdesc="j.b. officeprint 1186" quantity="4" /> <line linenum="1" itemno="a00004" itemdesc="rainbow color printer 5.0" quantity="5" /> </goodslines> ...
Comments
Post a Comment