sap

In ABAP Workbench, how do I make the program return multiple table fields in a table when a button is clicked?

元气小坏坏 提交于 2019-12-01 22:22:00
I am new to SAP/ABAP Workbench and I am trying to create a program that allows a user to input a foodCode in order to receive the Item and Description after the press of a button. Is there a way the results can be put in a table on the same screen? How? report demo. tables food. SELECTION-SCREEN: SELECTION-SCREEN BEGIN OF BLOCK SEGMENTVALUE WITH FRAME TITLE A1TITLE. SELECTION SCREEN BEGIN OF LINE. PARAMETERS P_INPUT(10) TYPE C OBLIGATORY. SELECTION-SCREEN END OF LINE. SELECTION-SCREEN BEGIN OF LINE. SELECTION-SCREEN PUSHBUTTON /2(40) B_RESULT USER-COMMAND BUT1. SELECTION-SCREEN END OF LINE.

Add/Change Column Name on Internal Table ALV

半腔热情 提交于 2019-12-01 21:34:01
问题 What I need is to add titles to these two columns (highlighted in yellow) and I don't know how to do that. FORM display_alv. DATA: gr_functions TYPE REF TO cl_salv_functions. DATA: gr_display TYPE REF TO cl_salv_display_settings. DATA: gr_columns TYPE REF TO cl_salv_columns_table. DATA: gr_column TYPE REF TO cl_salv_column_table. DATA: gr_sorts TYPE REF TO cl_salv_sorts. DATA: gr_agg TYPE REF TO cl_salv_aggregations. DATA: gr_selections TYPE REF TO cl_salv_selections. gr_functions = alv->get

Parsing json into data structures with lower case field names

岁酱吖の 提交于 2019-12-01 19:09:41
I am parsing JSON into ABAP structures, and it works: DATA cl_oops TYPE REF TO cx_dynamic_check. DATA(text) = `{"TEXT":"Hello ABAP, I'm JSON!","CODE":"123"}`. TYPES: BEGIN OF ty_structure, text TYPE string, code TYPE char3, END OF ty_structure. DATA : wa_structure TYPE ty_structure. TRY. text = |\{"DATA":{ text }\}|. CALL TRANSFORMATION id OPTIONS clear = 'all' SOURCE XML text RESULT data = wa_structure. WRITE: wa_structure-text , wa_structure-code. CATCH cx_transformation_error INTO cl_oops. WRITE cl_oops->get_longtext( ). ENDTRY. The interesting part is that the CODE and TEXT are case

Add/Change Column Name on Internal Table ALV

风格不统一 提交于 2019-12-01 19:07:35
What I need is to add titles to these two columns (highlighted in yellow) and I don't know how to do that. FORM display_alv. DATA: gr_functions TYPE REF TO cl_salv_functions. DATA: gr_display TYPE REF TO cl_salv_display_settings. DATA: gr_columns TYPE REF TO cl_salv_columns_table. DATA: gr_column TYPE REF TO cl_salv_column_table. DATA: gr_sorts TYPE REF TO cl_salv_sorts. DATA: gr_agg TYPE REF TO cl_salv_aggregations. DATA: gr_selections TYPE REF TO cl_salv_selections. gr_functions = alv->get_functions( ). gr_functions->set_all( abap_true ). gr_display = alv->get_display_settings( ). gr_display

ALV Grid missing toolbar

我的梦境 提交于 2019-12-01 18:29:14
I'm creating a simple ALV grid in SAP. So far i've been able to populate the grid with my data and display the grid after the selection screen no problem. I'm not adding the grid to a custom container on a custom screen. Just viewing the grid full screen. My question is - is there a property of the alv grid object that I need to set in order to view the tool bar that is normally on top of the grid with buttons for filter, sort etc? So far this is what I have: TRY. cl_salv_table=>factory( IMPORTING r_salv_table = gr_alv CHANGING t_table = tbl_data ). CATCH cx_salv_msg. ENDTRY. * initialize the

SAP HANA学习资料大全 Simple Finane + Simple Logisitic [非常完善的学习资料汇总]

无人久伴 提交于 2019-12-01 17:01:38
Check out this SDN blog if you plan to write HANA Certification exam http://scn.sap.com/community/hana-in-memory/blog/2012/08/27/my-experience-on-hana-certification Videos available at HANA Academy http://www.saphana.com/community/resources/hana-academy http://help.sap.com/hana/hana1_model_en.pdf Google Custom search for SCN and SAP websites http://www.google.com/cse/home?cx=013447253335410278659:k8ob9ipscwg Site Search for SAP Community Network powered by Google. Find discussions (forums), blogs, documents, videos, topic spaces and the latest news found on SCN. searches sites including: http:

UiPath -Error {“message”:\"Click Text 'SAPTreeList': Cannot find the UI element corresponding to this selector: <wnd ctrlid='90279688' />

冷暖自知 提交于 2019-12-01 16:48:28
I am following the video SAP Automation with UiPath to automate login as a user with valid credentials within a SAP Server. SAP Information : IDES ECC 6.0 incl. EhP7 System Information : I am not using a VM. I use a Intel Core i3 CPU with 64 bit - Windows 8 system. The login process as per the tutorial basically works for an hour or so since it's creation. But whenever I am trying to execute the workflow after long intervals (example, next day), the robot won't start and I am facing an error as: Studio.log: 13:12:54.1664 => [ERROR] [UiPath.Studio.exe] [7] $LoadAssembly: UiPath.Vision, Version

DATA_BUFFER_EXCEEDED error when calling RFC_READ_TABLE?

别等时光非礼了梦想. 提交于 2019-12-01 16:48:15
My java/groovy program receives table names and table fields from the user input, it queries the tables in SAP and returns its contents. The user input may concern the tables CDPOS and CDHDR . After reading the SAP documentations and googling, I found these are tables storing change document logs. But I did not find any remote call functions that can be used in java to perform this kind of queries. Then I used the deprecated RFC Function Module RFC_READ_TABLE and tried to build up customized queries only depending on this RFC. However, I found if the number of desired fields I passed to this

DATA_BUFFER_EXCEEDED error when calling RFC_READ_TABLE?

故事扮演 提交于 2019-12-01 14:47:56
问题 My java/groovy program receives table names and table fields from the user input, it queries the tables in SAP and returns its contents. The user input may concern the tables CDPOS and CDHDR . After reading the SAP documentations and googling, I found these are tables storing change document logs. But I did not find any remote call functions that can be used in java to perform this kind of queries. Then I used the deprecated RFC Function Module RFC_READ_TABLE and tried to build up customized

SAP .Net Connector 3.0 - How can I send an idoc from a non-SAP system?

孤街浪徒 提交于 2019-12-01 12:43:42
I am trying to use the .Net connector to send data to an SAP system. I have been able to send calls to RFC function module quite easily but there doesn't seem to be any way to send a standard Idoc directly. This is quite weird because Idocs are supposed to be the standard communication tool to talk with SAP. Has anyone found if/how it's possible to do it? As far as I know there is currently no development library offered by SAP for the .NET Connector (NCo) for dealing with IDocs. If you would like to use the NCo, you have to code this IDoc handling stuff on your own. It's possible because also