Hi Mary,
Thank you so much for your help! I was able to append those records to documentlist, then map the documentlist to JDE BSSV.
Now I have a different issue and see if you could provide some guidance.
Here is what I want to achieve:
For each detail record, I will always map the following:
GL_AMT_AMOUNT_DOMESTIC => amountDomestic
GL_AMT_BUSI_UNIT => businessUnit
GL_AMT_OBJ_ACCT => objectAccount
GL_AMT_SUBSIDIARY => subsidiary
GL_AMT_NAME_EXPLANATION => nameExplanationRemark
GL_AMT_REFERENCE => reference
For each detail record, if the flag field has value, I will map the following:
GL_VAT_GROSS_AMT => amountDomestic
GL_VAT_BUSI_UNIT => businessUnit
GL_VAT_OBJ_ACCT => objectAccount
GL_VAT_SUBSIDIARY => subsidiary
GL_AMT_NAME_EXPLANATION => nameExplanationRemark
GL_AMT_REFERENCE => reference
So the source fields are different but the target fields are the same.
My idea is to use branch and check the flag field value = ‘Y’.
If ‘Y’, I will append documentlist temp to documentlist temp2. I will append the new document Detail2 to
documentlist temp2. If ‘N’, I will append documentlist temp to documentlist temp2.
After the branch, I will append documentlist temp2 to documentlist temp3.
Then I will map temp3 to my target documentReference, which is imported from JD Edwards Business Service.
But my attempt is not working. Attached are the related screenshots.
Loop Append To Documentlist Screenshots 000.docx (736 KB)
#webMethods#Flow-and-Java-services#Integration-Server-and-ESB