Hello Experts,
I have a scenario where a server update step is failing.
Background of the issue.
We have MaterialDocument collection and each MaterialDocument has multiple items(MaterialDocumentItem)
We have the functionality with an option to upload attachments for the each MaterialDocumentItem (External Data field in Agentry to select and upload a file from device storage) merged using multiple transactions into the MaterialDocumentItem Object which is not Mandatory.
Posting back to SAP happens with below condition
- MaterialDocument (ZMatDocActualPost transaction) is posted only when isEdited property in MaterialDocument is set to True(condition to check if needs to be posted back to SAP or not, we do not want to post unedited MaterialDocument and its corresponding items to be posted).
- This will be set to true in ZMaterialDocumentItemEdit_103 transaction when any of of the items(MaterialDocumentItem) under this MaterialDocument is edited.
- ZMatDocActualPost transaction(in Transmit Action) has a update step which calls the java steplet > StepHandler > BAPI for posting
Note: Posting is done at MaterialDocument level
Scenario
- Pass Scenario 1: Attachments uploaded for Item 1 and Item 2 - Works fine, Posting back to SAP (can see the update in server logs)
- Pass Scenario 2: Attachments uploaded for Item 1 and only Quantity for item 2 - Works fine, Posting back to SAP (can see the update in server logs)
- Pass Scenario 3: Attachments uploaded for Item 1, not posting for item 2 - Works fine, Posting back to SAP (can see the update in server logs)
- Pass Scenario 4: No attachments for Item 2(just quantity data updated),not editing item 1- Works fine, Posting back to SAP (can see the update in server logs)
- Fail Scenario 1: Attachments uploaded for Item 2, not editing item 1 - Steplet not triggered (but giving error, communication error 13, No logs are updated, not even constructor of the steplet getting triggered, we are using Agentry on Cloud Edition)
- Fail Scenario 2: Attachments uploaded for Item 2 and only Quantity for item 1 - Steplet not triggered (but giving error, communication error 13, No logs are updated, not even constructor of the steplet getting triggered, we are using Agentry on Cloud Edition)
Issue is, although in any scenario for the edited MaterialDocument we are using the same update step(calling a java steplet), the update step is not called for above mentioned failure scenarios by which we are not able to proceed to debug.
Request your kind help.
Regards,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.