on 06-15-2016 11:05 AM
Hi Everyone,
I have a standard Custom BO from that I am trying to create an Opportunity.I am successfully able to call the Standard QC of Opportunity.
But my actual requirement is to pass my Custom BO's alternative key to the Opportunity Object while creating and also few fields like Account ,Owner needs to be picked up automatically while calling the QC of Opportunity.
I dont have any idea on how to extend the inport of Opportunity QC to add these parameters.
Kindly provide me an approach to handle this scenario.
Thanks in advance.
Regards,
Navin
Hello Navin,
Sorry, you can not enhance the inport of a SAP UI direct.
But: You may add an extension field to the Opportunity and place it on the UI (you can still hide it later). This will create a new Inport / Outport which can be used.
HTH,
Horst
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Horst,
As you mentioned I have an Extension field in the Opportunity and I enhanced it to the QC of Opportunity.
But Everytime when I call the QC of Opportunity from my Custom BO I need to Manually fill the
Extension Field.In some cases if I failed to fill the field means the newly created opportunity will be no way related to my Custom BO instance.
To avoid such scenarios only am looking for a work around to fill that extension field with the Custom BO Alternative key everytime when I call the QC of Opportunity.
Regards,
Navin
Hi horst.schaude
I am facing the same problem while navigating from custom button inside custom EC on Installation Point TI screen navigating to opportunity quick create and need to pass the installation Point ID to IT.
I have extended the Opportunity object with an installation point ID extension field and then added another EC carrying that extension field to the opportunity quick create and created the inport but it is never catched.
Thanks a lot Navin.
Let me try this and update.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Navin,
I think you're not able to do it.
1) You could create an action in your BO that creates an opportunity by code and save the Opp ID in your custom BO.
2) Create a buttom on your list to call this action and refresh the list.
3) Create a column in your list with the opportunity ID you created and link "Opp_TI" to this ID.
It makes sense?
Best regards,
Alexandre.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Navin,
Well, then I think you'll only be able to achieve such automation if what Horst said is true, that if you add an extension field to opportunity then an inport will automatically appears. I'm sure it happens with outports, but inports I'm not.
Otherwise, what you're trying to do may be not possible without user interaction in Opp_QC.
Regards,
Alexandre.
Hello Navin,
Apparently, when you add an extension field to QC only an "ExtensionFieldsOutport" is created. Considering that, I think you can't pass values to the standard QC.Opp_QC
You should fill the extension field in QC (customBO ID) manually, make it mandatory to save and load all other info by code (aftermodify or beforesave). I don't see any other option.
Best regards,
Alexandre.
Hi Alexandre,
Yes, I face this problem in COD_Appointment_QC, I have an extension field which is an ID field that need to be passed.
But since the Inport extensibility is missing, I'm unable to pass, and again requesting the user to fill the ID is not a real good idea.
Is there any other ideas.
Thanks
Gayathri
Hi Gayathri,
1.Create an EC in the QC of Appointment
2.Create a custom action to write your logic for filling the extension field.
3.Create an Event handler in the EC for initializing the EC by mapping the alternative key (Appointment ID)
4.Add one more event under the initialize event handler of type BO Action to call your action.
5.Hide the EC in the UI designer.
Now whenever you open the QC_Appointment your custom action will fill the extension field.
Hope this helps.
Regards,
Navin
Hi navin,
I couldn't follow the point 2 &
2.Create a custom action to write your logic for filling the extension field.
<< Do you mean adding action to the Activity extension BO ?>>
3.Create an Event handler in the EC for initializing the EC by mapping the alternative key (Appointment ID)
<< Can you please elaborate. I couldn't get in completely >>
Thanks in Advance
Gayathri
Hi Gayathri,
Create a custom action under appointment ROOT node.In that action write your logic to fill the extension field.
This action now will fill your extension field without any user interruption.In order to call this action you need to create an EC in the QC of Appointment. Map the public outport of QC_Appointment with the new EC's inport.
Now come to EC's inport and under the Onfire property call an event handler.And also make sure Request Autofire and AutoRefire to TRUE.
Now under the event handler of EC create a BO read operation to read the Appointment using the Inport Parameter.
Under the same event handler call your BOAction.
Now whenever QC loads your EC will also be loaded and the custom action under the EC will also be called which will fill the extension field.
Finally hide the EC in the UI designer.Kindly let me know if you need any details.
Regards
Navin
Thanks for your response Navin,
This is my Extension BO - that has an extension field to link to the custom BO.( QN.BO )
The relation is One QN will have 0-* Appointments.
In the QN - TI screen, I have a facet called Activities.
The Appointment QC has the Extension field enabled.
Please let me know if this helps you to identify.
Thanks
Gayathri
Hi Gayathri,
Now I understood your requirement.In this scenario you cannot go with the above approach.
What you can do is create a node to store the appointment details in your custom BO and for that node create a list modification form.Design your list modification form similar to the standard QC of Appointment and also place QN number as a part of that form.
Pass the QN number to that form using assign operation in the UI designer.
While saving that in the event before save of your appointment node in custom bo call the create action of appointment and fill the mandatory parameters for creation along with the QN number.
Once the appointment instance is created create an association with the standard Appointment BO .
If create function does not work call the webservice of appointment inside that event before save.
In this way whenever you can achieve this requirement.
Regards
Navin
User | Count |
---|---|
80 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.