Found 1044 Articles for SAP

Getting error- Hard-coded logon parameters not allowed when using a Destination Configuration while connecting to SAP server dynamically

Priya Pallavi
Updated on 14-Feb-2020 04:50:55

353 Views

You can try below sample code. I would suggest you to try using this:public class Program {    static void Main(string[] args) {       SapConnection con = new SapConnection();       RfcDestinationManager.RegisterDestinationConfiguration(con);       RfcDestination dest = RfcDestinationManager.GetDestination("NSP");       RfcRepository repo = dest.Repository;       IRfcFunction fReadTable = repo.CreateFunction("ZSOMA");       fReadTable.SetValue("I_NRO1", 1);       fReadTable.SetValue("I_NRO2", 2);       fReadTable.Invoke(dest);             var result = fReadTable.GetValue("E_RESULT");       Console.WriteLine(result.ToString());       Console.ReadLine();     } } public class SapConnection : IDestinationConfiguration { ... Read More

Specified cast not valid for datetime while using SAP RFC

Prabhas
Updated on 13-Feb-2020 11:16:35

155 Views

I think you better use the ParseExact method available over DateTime type. It should work.Please find the code snippet for reference −string dateFormat = "dd.mm.yyyy hh:mm:tt"; DateTime finalDate = DateTime.ParseExact(argumentDate, dateFormat, CultureInfo.InvariantCulture);

Change leaves duration from hours to days in SAP Fiori app

varun
Updated on 30-Jul-2019 22:30:20

123 Views

In general, customizing Fiori applications involves customizing the parent SAP application. So, if in the application, it defaults to hours then the Fiori app will also inherit the default behavior and show it in hours.Go ahead and change it to days, it will impact your Fiori app and the app will also start showing in days.In case you cannot afford to make a change in SAP application, then you need to handle it in a custom manner which will require you to have a custom implementation in place.

Alter SAP standard code not working

Sreemaha
Updated on 30-Jul-2019 22:30:20

147 Views

As you have mentioned you require access key for the change to be complete, but this key is mapped to SAP specific installation. In short, you need to retrieve this key from the SAP.I would still suggest not to go for the change. You can seek other alternatives for this. You can analyze the feasibility of implicit enhancements usage. The reason I am recommending alternatives is whenever you would have an upgrade in SAP, you would require a change which is cumbersome.

Implementing tree structure in Sapui5 and restricting parent property

Nikitha N
Updated on 17-Dec-2019 06:51:18

403 Views

Note that “sap.ui.model.ClientTreeBinding” which is used by TreeTable in JSONModel or XMLModel supports the parameter arrayNames. You need to pass an array of the model property names to create a sublevel. I would suggest to try below:In XML view:      ... In JSON view:treeTable.bindRows({path: '/pathToData', parameters: { arrayNames: ['children'] }});For more details about SAPui5 tree structure, you can navigate to following link:https://sapui5.netweaver.ondemand.com/sdk/test-resources/sap/ui/table/TreeTable.html?sap-ui-debug=true&sap-ui-language=en-US&sap-ui-theme=sap_bluecrystal&sap-ui-accessibility=true&sap-ui-jqueryversion=1.10.2

While using SAP .NET connector, I am an getting error: Could not load file or assembly 'sapnco' or one of its dependencies.

Srinivas Gorla
Updated on 14-Feb-2020 04:47:22

1K+ Views

You can try any of the below fixes −Go to Run > RegeditOpen “HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\1X.0\WebProjects” and change Use64BitIISExpress from 0 → 1Next is to restart Visual Studio and IISExpress.Other solution would be to try configuring IIS service, and set appPool .Net 4.0. You can try this to fix sapnco dll issue.Go to IIS Manager → Application PoolsOther fix would be to navigate to Project/Properties → Set platform target from “any” to “x86”.

ABAP constants with %_ as prefix

Nancy Den
Updated on 30-Jul-2019 22:30:20

243 Views

The constants with a value of %_ as prefix are defined in ABAP for its internal use of the system. These needs to be used as such and cannot be modified by the user.

Truncating multiple strings after 100 characters in ABAP

Daniol Thomas
Updated on 18-Dec-2019 07:41:29

311 Views

You can just define a character of 100 bytes and move your variable to that character. Please find the below code as example.Example  

Writing at the end of report without clearing current screen in SAP ABAP

Krantik Chavan
Updated on 30-Jul-2019 22:30:20

95 Views

Yes, it is possible. You would require using MODIFY LINE

Getting error- is not an internal table “OCCURS n” specification is missing in SAP method

Abhinanda Shri
Updated on 13-Jun-2020 06:08:18

2K+ Views

You need to define the et_flights parameter as of type SFLIGHT. As per method defined, you have this type as structure type and also declare transparent table SFLIGHT at the same time.You should use an already available dictionary table type with row structure of SFLIGHT for et_flight.You should declare et_flights inside the method in class definition as a private member or as a return value of the method.class myclass definition.    public section.    types ty_mytable type standard table of sflight.    methods mymethod exporting mydata type ty_mytable. endclass. class myclass implementation.     method mymethod.       ... Read More

Advertisements