on 07-29-2016 7:06 AM
Hello Experts,
I have created my first Embedded Component on Contact TI screen and was able to fetch the Contact Internal ID into my element in my custom BO. However I am facing an issue while fetching the data from Contact BO using this incoming InternalID.
The Code that I have maintained in my AfterModify to fetch the Contact data fails since the value for the InternalID is not fetched until this code is executed. How to mitigate this situation? How can I fetch the data once the InternalID from Contact is brought into my custom BO?
Thanks in advance.
Regards,
Chandan
Hello Chandan,
You need an instance of your Custom BO with the Contact InternalID als Alternative Key for trigger a retrieve in the EC after it was called.
HTH,
Horst
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Horst,
Thanks for your reply.
I have already added the three Actions on the Event Handler-
1. BOOperation for Read
2. Condition for Creation of Instance and Write.
3. BOAction to call the custom logic to fetch data.
So I was expecting to have the Contact ID in step 2 above so that it will be available in BOAction.
Regards,
Chandan
Hello Pradeep,
Thanks for replying.
Under Condition, I am checking whether the Expression zcontactID is filled and under this I have also maintained Configure Condition to
1. Added BOOperation to Create BO instance.
2. DataOperation to Assign value from InPort to element on my custom BO.
Doing this I am getting the value from Contact TI into my EC, however the code to fetch further data from Contact fails since this value is filled in the element on Custom BO after the my ABSL code is executed.
I have my ABSL code in AfterModify while I have also tried adding BOAction as third Configure Condition to call my custom Action to fetch the data. But my debugger never stopped there.
Hope this gave good idea where I am stuck.
Regards,
Chandan
Hi Chandan,
Check this:http://scn.sap.com/thread/3849703
Hello Pradeep,
Thanks for providing me this helpful discussion. I have made some progress referring this. Now I am able to get the data from the standard BO into my custom BO, however seems like the data vanishes and error message is raised as "Business Partner ID missing."
Can you please help me point out what is missing? I can see the value getting assigned as expected while debugging my ABSL code. However at the end, nothing gets filled in the elements and so when the Save is triggered, I get the mentioned message. (Business Partner ID missing)
Regards,
Chandan
Hello DALJEET SINGH KOHLI,
Thanks for the suggestion.
As I can see data fetched from Contact BO into my custom BO, I feel my binding is working as expected. I can see it is getting executed on my ABSL as per my requirement(Even on BeforeSave). However it is getting initialized.
So I am really not sure what is wrong here. Yes I have referred to Stefan Hagen's video to bind my EC to Standard Contact TI. Referring discussion that Pradeep provided, now I have also added another Operation as below screenshot:
Both the Operation are now creating the instance for my BO and assigning the InPort value to element on my Custom BO. Doing this, the values persists even in my BeforeSave but later vanishes!!
Regards,
Chandan
Hello Daljeet,
The issue is solved. Everything that needs to be done is mentioned in the video that I referred from Stefan Hagen. Additionally I added the child node where I added my elements in my BO and bind it with ALP. (I was following wrong methodology )
Even the second Condition I added earlier is not required.
Regards,
Chandan
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.