Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
SAP Articles
Page 43 of 91
Assign image source dynamically in XML View in Fiori app in SAP UI5
Yes, it can be done but you need to compute the dynamic field.Firstly, you need to mention that the binding is complex so change the flag −“data-sap-ui-bindingSyntax="complex" ”. Then have a helper function which can be used for formatting.fnImageFmtr: function(value) { var imgSrc = "Image" + value; return imgSrc; }And lastly, use the function in the image tag in the XML view.
Read MoreSpecified cast not valid for datetime while using SAP RFC
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);
Read MoreCreating a Radio button group in ABAP Screen Painter
Screen Painter is known as an ABAP editor tool that can be used to create a screen. Screen Painter is used to create and manage all the elements in a screen.Transaction Code SE51There are various ways you can insert a Radio button to ABAP Screen Painter. First is by clicking on the radio button symbol on the left, then click on the canvas on the right to insert a radio button. You can repeat this for each button.Another option is that you open the dictionary window (blue rectangle with a smaller red rectangle inside). Type the variable name you used ...
Read MoreConverting date type SYDATUM in a format like MM/DD/YY in SAP ABAP
It depends if you want to write it to a list screen or you want to convert it to a text variable. To write it to a list screen, you can use below code −WRITE I_my_dateMM/DD/YYYYTo convert it to a text variable, you can use below command −WRITE l_my_dateTO l_my_text MM/DD/YYYYIf you want to set the date in SAPscript form, you can use SET DATE MASK command. You can specify date fields to be printed in specified format −/: SET DATE MASK= 'date_mask'In the date mask, you can use the following codes −DD: day (two digits) DDD: day name - ...
Read MoreUsing an Angular app as SAP Fiori application
As you mentioned, you are moving to SAP so it means you are moving to SAP HANA Cloud platform or backend SAP system. You can continue with just HTML Angular application that can connect to the backend via an OData service. Angular JS is JavaScript library that adds lot of features to your application. One thing to note here that if you are planning to use Fiori Launchpad, it could be an issue.Following are the advantages/disadvantages of using angular framework:AdvantagesUsing Angular, you can develop complex High interactive rich internet web application.Angular application can be easily integrated with third-party library like Kendo ...
Read MoreEnding a connection with SAP Instance and stop scripting
This can be resolved by ensuring that you destroy all reference to public objects at the end of your script.In Excel VBA, you can use the following to do this −Set session = NothingIn C#, you should be using below −obj = Null;
Read MoreConnecting system with SAP system using a Web Service
The best solution of this is to regenerate web service code the client system. Navigate to Add Service Reference in Visual Studio and regenerate WSDL code.
Read MoreIn SAP Crystal Reports XI, return records that match multiple conditions
It is advisable to use functions to pass such filter conditions in CR. Also try changing the order of your condition like −({PR.cov} = "A" and {PR.cov}="B") or {PR.cov} = "A" Try using function like this: {@A}:if {PR.cov} = "A" then 1 else 0To create custom functions in Crystal Report, navigate to Report Menu → Formula Expert → Right Click on Custom Functions → NewIt is advisable to use custom functions when you have multiple parameters to pass in the condition. You can also use the following when you have two string parameters −( 'A' IN {?cov} OR {PR.cov} IN ...
Read MoreCreating a variable with dynamic variable type in SAP ABAP
You can use RTTS related API to create a Standard table like RANGE which has components like 'LOW', 'HIGH', 'EQ' and 'OPTION'data: rr_data type ref to data, rt_range_string type range of string, rs_range_string like line of rt_range_string, rt_component type abap_component_tab, rs_component type line of abap_component_tab, rt_range_components type abap_component_tab, ro_struc_descr type ref to cl_abap_structdescr, ro_table_descr type ref to cl_abap_tabledescr, ro_data_descr type ref to cl_abap_datadescr.field-symbols type ...
Read MoreUsing constants in ABAP OO method
Your INCLUDE should only contain definitions of constants nothing else and then the answer is straightforward.Select Goto → Class - whichever local definition and then add an INCLUDE statement. This will expose all the constants “INCLUDE” in your implementation.
Read More