Quantcast
Channel: SCN: Message List
Viewing all 8594 articles
Browse latest View live

Exposing utility FMs with complex interface in SAP Gateway

$
0
0

Hello everyone

 

This is about exposing utility functions which have somewhat complex interfaces in SAP Gateway.

 

Think of a utility ABAP function module e.g. for bill simulation. There are a number of importing parameters such as:

  • a structure data for a prospect (which we do not need to persist)
  • a table data for prospect's historical billing-relevant activities (again not to be persisted)
  • Other simple data parameters

 

Coming to how (or whether) this FM can be exposed directly in the OData layer, I am aware that there are quite a few discussions around this. Bear in mind that the main issue here is providing a complex input to a request; not about reading complex data. From what I have read, the following options have mainly been discussed:

 

1. I know many will raise an eyebrow to this option but it is possible to pass complex parameters by converting them into a string which can then be deciphered in the DPC before making the call to the FM. I can see how this approach does not comply with the OData principles. Yet, it is practically a working(!?) solution.

 

2. An OData compliant option is to model a series of interlinked entities for the complex data set that needs to be provided to the FM and use a batch operation like a deep insert (in our example there is nothing to be persisted in the DB though). As the import data for the FM does not correspond to business entities which we would normally like to persist, it just sounds a bit strange just because these would be like "virtual" entities as we do not need their persistence and the metadata here pertains only to the specific use of this FM.

 

I believe a similar restriction is valid for GenIL where the EXECUTE/EXECUTE2 methods only accept name-value pairs as parameters and passing a table parameter without a workaround is not possible. I believe the practicality level of the solution which is necessitated -although understandable- by the principles is an "unwanted" element on the trade-off seesaw.

 

All said, for the sake of robustness and compliance with the OData principles, the second option is much more favourableand should be used* although the first option is quite tempting and -in principle- should be avoided.

 

Finally, I would really like to see if anyone could share a practical example where Option 2 is utilised and let us know their experience on how it looks. Alternative solutions (in or out SAP Gateway [considering why we are leveraging SAP Gateway in the first place] are also welcome.

 

Kind Regards

 

*--Serdar

 

 

*Check outRon Sargeant 's blog Improved Inside-Out Modelling on how to "entityise", e.g. TripContext in his example.


Similar discussions:

GW Function Imports

Odata function import - input as complex type

odata function import - structure as import parameter

GW Function Import: pass parameter table (e.g. multiple parameters of same type)


Re: CAT2 screen

Employee Lookup App

$
0
0

Hi

 

I have configured the Employee Lookup app. The back-end SAP_HCM_EMPLOYEE_APPS is assigned but the employee lookup is not showing anything in the search.  When I assign user SAP_ALL the search is showing data. Please help which more roles need to be assigned to the Backend

Re: Material Determination Analysis

$
0
0

Hi

Looking at the screen, I feel that the field "Material" might not have been correctly generated in the condition table within the access sequence. Can you please check the condition table within the access sequence and ensure that this condition table is completely generated. If not please generate the condition table.

 

 

Else just to ensure that this is the problem, try maintaining your condition record for another table and check if record is fetched for that condition record.

Re: DCP boxi3.1 sp7

$
0
0

hi simone,

 

no patch...

client is BOXI3.1sp7 + BI4.1sp5

thanks

Re: Running Sum

BI 4.1 upgrade

$
0
0

Hi ,

 

We have done an in place upgrade from  BI 4.0 SP2  to BI 4.1 SP5, we are  facing below issue on Webi.

 

In the existing webi report, the mandatory prompts from Bex are populated with values are disabled using the set variable option on Webi query panel.

 

After migration, if we go to the set variable option, The option “use bex query defined default values at run time” is ticked & Set as prompt is ticked for all the variables, including the one which is disabled on BI4.0.

 

The set variable are not hidden on the initial refresh, but the subsequent refresh the set variable got hidden. I understand this is due to the difference on the workflow followed for the  Bex -> Webi between 4.0 & 4.1. The first refresh creates the transient universe then the set variables are enabled. It looks like we need to open up each report refresh and save so that the trasient unvierse will be created.

 

Is there any option/tool to update the Webi document metadata in one shot along with the upgrade from 4.0 to 4.1.

 

Thanks

Jino.

Error addline/invoke action on UDO matrix

$
0
0

Hi all,

 

we are facing a strange error :

 

We have create a new UDO with master date and master data rows.

 

We have change the order of the folders.

 

And now we are facing this message when we select a field in the first line of the first folder:

 

Error in Invoke action


And if we try to add a new line (right click add line) we get this message:

 

Failed to AutoAddLine


The strange think is that if we select a other folders there is no error and if we come back to the first folder there is no error anymore.

 

Can Someone help us to avoid this error?

 

We are working on SQL SERVER 2014, SAP B1 9.1 pl 5.

 

Mathieu Malmendier


Re: Communication Channel External Control Error

$
0
0

Hi Iñaki,

 

Maybe you're right, it may be because of PI version, it is 7.11.

 

I've also checked services you mentioned, but there is no IChannelAdmin service.

 

I found these two services and I'm able to consume them, but I can only get channel status with these.

 

I need to change channel status (stop/start).

Screen Shot 2015-07-09 at 13.25.36.png

 

Regards,

Ridvan Polat

Re: Makeing Reject note mandatory in Approve Travel Expense application

$
0
0

Hello Trilochan,

 

just extend the S3 controller where buttons are defined like Reject Button.

 

And add :-

noteMandatory : true, line

below shownote=true.

 

Regards

Harshal

Re: Assigning back standard Dimension to existing model

$
0
0

Hi Venkata,

 

For sure you can add standard Audittrail dimension. All data will be linked to the single base member... Then you can transform it somehow. Just test yourself on the environment copy...

 

Vadim

 

P.S. Another option is to create a new model replacing user defined dimension with a standard one. Then move data (different ways).

SAP FIORI my inbox Forward Possible agents

$
0
0

Hello,

 

We are implementing the SAP Fiori My inbox App and we have a problem with the forward button for PO approval and PR approval.

 

When I click on forward, I only get the list of users which are potential owners of the WF item.

 

However, I would like to have the list of possible agents instead.

 

Indeed, if I test the http request for possible agents, I have all agents defined in the Agent determination in the back end system.

If I test the http request for potenial owners, I do receive the list of agents which received the WF item by configuration of the workflow for PO/PR.

 

 

In SAP back-end, we can forward a work item to any possible agent.

I would like to be able to do the same in SAP FIORI.

 

 

Regards,

 

 

Olivier

Re: Disable/enable dynamically a WD Enhancement @ runtime

$
0
0

Hi Matteo,

 

In this scenario, it is better to handle through coding, rather than enabling/disabling the enhancement..

 

Regards,

Harsha

Re: Sales Order Blocking

$
0
0

Hi Yousuf,

 

Check now and let me know result.

 

 

If @object_type='17' and @transaction_type IN ('A','U')

BEGIN

If Exists (Select T0.DocEntry from ORDR T0

Where T0.CardCode IN (SELECT CardCode FROM OCRD WHERE CardType = 'L')

And T0.DocEntry = @list_of_cols_val_tab_del)

Begin

Select @error = 17, @error_message = 'Lead is not allowed for Sales Order'

End

END

 

 

Hope this helps

 

Thanks

--

--

Regards::::

Atul Chakraborty

Re: How to set one default Tax code in PIR .


Re: Required control & Block Earlier Posting Date in Production Order

$
0
0

Hi Yousuf,

 

Check now and let me know result.

 

 

 

IF @transaction_type IN ('A', 'U') AND (@Object_type = '202')

Begin

 

 

declare @dtdiff int

 

 

Set @dtdiff = ( Select datediff(day, getdate(), T0.PostDate) from OWOR T0 where T0.docentry = @list_of_cols_val_tab_del)

 

if @dtdiff < 0

 

begin

    

select @error = 1, @error_message = 'You are not allowed to enter in earliar posting date'

 

 

End

End

 

 

Hope this helps

 

Thanks'

--

--

Regards::::

Atul Chakraborty

Re: I am building app using non odata backend but getting error failed to load sap/m/lable.js

Open Text Archiving 10.1 Installation, Upgrade and Configuration guides

$
0
0

Hi,

 

Can anyone let me know the Open Text Archiving 10.1 Installation, Upgrade and Configuration(to ECC/ERP) guides.

 

I need to install the OT Archiving server 10.1 installation and then upgrade to 10.5.

 

Atleast I need the document names to get the guides from OpenText site.

 

Thanks for your help.

 

Cheers,

Prasad

Task List - Services for object

$
0
0

Hi Experts,

 

While attaching any document / hyperlink in General Task List >> Services for Object, it remains in Task List only.

While Customer requirement is "it should flow to Maintenance Order after Task List assignment as other Operation details are flowing from TL to Order".

 

Kindly suggest if there is any assignment which can do this. Screen shot is attached for the attachment in TL header under Service Objects.

 

Thanks

Mona

Re: Image is not displaying in approval lane of UI5

$
0
0

Dear Siddharth,

 

Greetings!

 

I saw that you suggested in many posts on the same issue, to implement the BADI.  I have followed the same, but i am not able to build the correct logic in the method.

 

I tried with many different logics, but i didnt work.  I have 2 problems.

 

1.  Problem is with creating filters. in the link, it asks us to Select the PROVIDER_ID and the TASK_DEF_ID rows, but i could see only PROVIDER_ID.

 

2. in the method, i am not able to pass the image value to the parameter.

 

 

Please help me, if you got the solution.

 

 

Regards,

Shankar

Viewing all 8594 articles
Browse latest View live




Latest Images