SAP Articles

Page 43 of 91

Assign image source dynamically in XML View in Fiori app in SAP UI5

seetha
seetha
Updated on 13-Feb-2020 1K+ Views

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 More

Specified cast not valid for datetime while using SAP RFC

Prabhas
Prabhas
Updated on 13-Feb-2020 242 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);

Read More

Creating a Radio button group in ABAP Screen Painter

Akshaya Akki
Akshaya Akki
Updated on 13-Feb-2020 6K+ Views

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 More

Converting date type SYDATUM in a format like MM/DD/YY in SAP ABAP

Alankritha Ammu
Alankritha Ammu
Updated on 13-Feb-2020 6K+ Views

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 More

Using an Angular app as SAP Fiori application

Anjana
Anjana
Updated on 13-Feb-2020 774 Views

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 More

Ending a connection with SAP Instance and stop scripting

Hayat Azam
Hayat Azam
Updated on 13-Feb-2020 2K+ Views

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 More

Connecting system with SAP system using a Web Service

Shahyan Ali
Shahyan Ali
Updated on 13-Feb-2020 757 Views

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 More

In SAP Crystal Reports XI, return records that match multiple conditions

Raja Ali
Raja Ali
Updated on 13-Feb-2020 257 Views

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 More

Creating a variable with dynamic variable type in SAP ABAP

Fendadis John
Fendadis John
Updated on 13-Feb-2020 3K+ Views

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 More

Using constants in ABAP OO method

V Jyothi
V Jyothi
Updated on 13-Feb-2020 415 Views

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
Showing 421–430 of 902 articles
« Prev 1 41 42 43 44 45 91 Next »
Advertisements