Data updation problem?
Hi All,
I have two buttons, submit and save. in submit i am calling FM through service call to get data. data is coming correctly.
In save i am trying to save any changed data. but changed data is not saving, i checked through debug in table showing changed data, but in database it is not updating.
code i am using in SAVE button.
DATA lo_nd_it_vttk TYPE REF TO if_wd_context_node.
DATA lo_el_it_vttk TYPE REF TO if_wd_context_element.
DATA ls_it_vttk TYPE wd_this->Element_it_vttk.
DATA lt_it_vttk TYPE wd_this->Elements_it_vttk.
Data lt_it_vttk type STANDARD TABLE OF if_main=>Element_it_vttk.
DATA lt_it_vttk TYPE STANDARD TABLE OF vttk.
DATA wa_vttk TYPE vttk.
navigate from <CONTEXT> to <IT_VTTK> via lead selection
lo_nd_it_vttk = wd_context->path_get_node( path = `ZSHIPMENT_CHANGE.CHANGING.IT_VTTK` ).
get element via lead selection
lo_el_it_vttk = lo_nd_it_vttk->get_element( ).
get all declared attributes
lo_el_it_vttk->get_static_attributes(
IMPORTING
static_attributes = ls_it_vttk ).
******Changing DATA ************
WA_VTTK-EXTI1 = LS_IT_VTTK-EXTI1.
WA_VTTK-DTDIS = LS_IT_VTTK-DTDIS.
WA_VTTK-UZDIS = LS_IT_VTTK-UZDIS.
WA_VTTK-DPREG = LS_IT_VTTK-DPREG.
WA_VTTK-UPREG = LS_IT_VTTK-UPREG.
append WA_VTTK to lt_it_vttk .
MODIFIED DATA IS COMING TO lt_it_vttk TABLE. BUT NOT UPDATING DB
lock the table
CALL FUNCTION 'ENQUEUE_E_TABLE'
EXPORTING
MODE_RSTABLE = 'E'
TABNAME = 'VTTK'
EXCEPTIONS
FOREIGN_LOCK = 1
SYSTEM_FAILURE = 2
OTHERS = 3.
MODIFY VTTK from table lt_it_vttk.
if sy-subrc is initial.
COMMIT WORK .
else.
ROLLBACK work.
endif.
CALL FUNCTION 'DEQUEUE_E_TABLE'
EXPORTING
MODE_RSTABLE = 'E'
TABNAME = 'VTTK' .
In this i am missing anything? Please Help.
Thanks,
Madan.
I guess the problem is here.
******Changing DATA ************
WA_VTTK-EXTI1 = LS_IT_VTTK-EXTI1.
WA_VTTK-DTDIS = LS_IT_VTTK-DTDIS.
WA_VTTK-UZDIS = LS_IT_VTTK-UZDIS.
WA_VTTK-DPREG = LS_IT_VTTK-DPREG.
WA_VTTK-UPREG = LS_IT_VTTK-UPREG.
you are not passing any key fields value here.
i guess you need to pass the value of
WA_VTTK-TKNUM field also.
SO ADD
WA-VTTK-TKNUM = LS_IT_VTTK-TKNUM.
Thanks
sarbjeet singh
Similar Messages
-
IDOC segment Data updation problem
I have done the Idoc extention for ORDERS05.I have written a code to insert data for my z segments in IDOC_INPUT_ORDERS.But when I run the program its not updating data to z segements as well as other segments
What may be the problem..
READ TABLE dedidd INTO wa_edidd WITH KEY segnam = c-e1edka1
sdata(3) = 'AG'.
IF sy-subrc = 0.
CLEAR w-index.
w-index = sy-tabix.
wa_e1edka1 = wa_edidd-sdata.
CLEAR : wa_e1edka1-parvw,
wa_e1edka1-partn.
wa_e1edka1-parvw = w-parvw.
wa_e1edka1-partn = w-inpnr_ag.
wa_edidd-sdata = wa_e1edka1.
MODIFY dedidd FROM wa_edidd INDEX w-index TRANSPORTING sdata.
ENDIF.
Thanks
UmeshHi,
Use Comparing fields addition in MODIFY Statement...
MODIFY ........ COMPARING <key fields>
Hope this would help you.
Regards
Narin Nandivada. -
I have a temprary table with 5 million rows (A)
which needs to be appended with 90 million row table (B).
60% of the rows of the 5mil rows already exist in the big table
i need to update/merge the table A data with table B
Oracle version is 8.1.7
Please advice which method is the fastesthi raghu,
this is the portal content management forum. please post your database related question in the following forum:
General Database Discussions
this is the appropriate place to post database related questions.
thanks,
christian -
IChart Date updation problem in version 12.1
Hi,
I have created a Line iChart for a TagQuery in which I am passing the Tags ,start date, end date and server (simulator) through the following script
var chart = document.iChart;
var qryObj = chart.getQueryObject();
qryObj.setServer("simulator");
qryObj.setStartDate("01/14/2011 07:00:00");
qryObj.setEndDate("01/14/2011 07:01:00");
qryObj.setDuration(60);
chart.refresh();
I am getting the Line Chart but it is always displaying the StartDate as system current date and EndDate as StartDate +60 min (in setDuration) but I need Line Chart for the date's which I am passing through the script
Thank you for the answers in advance..Use: updateChart(true) instead of refresh()
Your query is time based, so it will 'refresh' the chart to the most recent duration.
http://help.sap.com/saphelp_mii122/helpdata/EN/44/b305d64c7914e6e10000000a114e5d/frameset.htm -
Hi All,
We are facing a very peculiar problem while data updating in BW. Data for GL, AR gets updated evryday twice through process chain. But sometimes even after normal load data does not gets updated properly and changed data comes after 2-3 loads though it sould have come before. Can you pls provide possible suggestion for this behaviour.
Thanks in advance,
SanandaHi Sananda,
Please got through the below article
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a00ae8f2-03ad-2d10-71b7-962915661a93?quicklink=index&overridelayout=true
and can you tell me the type of delta update you are using
This should be because of your delta update mode
Hope this helps
Regards,
Venkatesh -
when the apple review team review our app,they point out that our app uses a background mode but does not include functionality that requires that mode to run persistently。but in fact,when the app in background ,the app need data update to make the function of trajectory replay come ture。in fact, we have added function when the app is in background mode。we have point out the point to them by email。but they still have question on the background mode,we are confused,does anyone can help me,i still don't know why do review team can't find the data update when the app is in background and how do i modify the app,or what is the really problem they refered,do i misunderstand them?
the blow is the content of the review team email:
We found that your app uses a background mode but does not include functionality that requires that mode to run persistently. This behavior is not in compliance with the App Store Review Guidelines.
We noticed your app declares support for location in the UIBackgroundModes key in your Info.plist but does not include features that require persistent location.
It would be appropriate to add features that require persistent use of real-time location updates while the app is in the background or remove the "location" setting from the UIBackgroundModes key. If your application does not require persistent, real-time location updates, we recommend using the significant-change location service or the region monitoring location service.
For more information on these options, please see the "Starting the Significant-Change Location Service" and "Monitoring Shape-Based Regions" sections in the Location Awareness Programming Guide.
If you choose to add features that use the Location Background Mode, please include the following battery use disclaimer in your Application Description:
"Continued use of GPS running in the background can dramatically decrease battery life."
Additionally, at your earliest opportunity, please review the following question/s and provide as detailed information as you can in response. The more information you can provide upfront, the sooner we can complete your review.
We are unable to access the app in use in "http://www.wayding.com/waydingweb/article/12/139". Please provide us a valid demo video to show your app in use.
For discrete code-level questions, you may wish to consult with Apple Developer Technical Support. When the DTS engineer follows up with you, please be ready to provide:
- complete details of your rejection issue(s)
- screenshots
- steps to reproduce the issue(s)
- symbolicated crash logs - if your issue results in a crash log
If you have difficulty reproducing a reported issue, please try testing the workflow as described in <https://developer.apple.com/library/ios/qa/qa1764/>Technical Q&A QA1764: How to reproduce a crash or bug that only App Review or users are seeing.Unfortunately, these forums here are all user to user; you might try the developer forums or get in touch with the team that you are working with.
-
Date preferences problem - Photoshop CS2 and OS X 10.4.6
I am running Photoshop CS2 9.0.1 on two Mac G5s (Mac OS X 10.4.6) and Photoshop CS 8.0 on a Mac G4 (Mac OS X 10.4.6) but now have a problem with the correct display of dates in File Info on the pair of G5s running CS2 9.0.1.
However I configure the date display preferences in International in System Preferences (UK prefs - DD/MM/YYYY) File Info will now only display the date as 'short', i.e. 1/6/06, for example. Naturally this presents a major problem with all my pre-2000 dates. By contrast, with exactly identical System Preferences on the G4 with Photoshop CS, the dates display correctly, i.e. 01/06/2006 or 06/06/1944. One of the G5s also has Photoshop CS 8.0 and also exhibits the same problem.
Is this an OS X 10.4.6 update problem, as I believe, or a combination of flaws between Apple and Adobe? Is there a cure? With a vast number of images in a picture library it is essential to have accurate, pre-2000, dates embedded in the File Info metadata. Can anyone offer an answer, a solution or a workaround?After much trial and error I eventually discovered a fix. When customizing the Date Format Preferences (UK) (in System Preferences/International) select 'Short' and then drag the day of the week from the list below as the first item in the displayed date; i.e. Thursday 08/06/2006
Then modify the DD, MM and YYYY by highlighting the numbers and selecting the full 2 or 4 number digit from the drop-down menus. This is something that seemed to be fine in 10.4.5 but has changed in 10.4.6! -
LabVIEW 8.5.1
Sweep Chart Problem
The x scale values do not update until after the 2nd sweep. The red line cursor gets to the end of the sweep and starts the next, but the scale numbers do not update until the next sweep starts.
It appears to be a problem with the chart, since it happens with any vi with a sweep chart. I've used versions 6 through 7 for years and never seen this. I've only recently moved to a new job with a new machine and version 8.5.1., so I'm not sure what to try.
I've included a simple example.
Thanks much,
JSC321
Attachments:
Chart Sweep Scale Update Problem.vi 32 KBYou have a typical race condition!
There is no data dependency between the property node and the while loop, so in your case the loop starts executing first and the property node starts slightly later, immediately erasing the first point. Execution order is not defined.
All you need to do is add a data dependency, e.g. as with the error cluster in the image. This forces the property node to complete before the loop is allowed to start.
(Execution order is enforced even if the wire value is not even used inside the loop )
Try it!
Message Edited by altenbach on 12-23-2008 11:08 PM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
HistoryRace.png 10 KB -
Date Format problem...
Hi users,
Forte version : 2.e.2 and ForteWebSDK
Datacase : Oracle
We have a problem with a simple HTML text field which acccepts
a date. When we try to update the record with some date, the following
exception occurs:
24-Jun-1998 04:32:28 : XV01086 : Execute failed for SQL statement in
project Rap
tServices, class RaptSqlMethods, method updateActivity, methodId 104,
line 51, e
rror from database is:
ORA-01830: date format picture ends before converting entire input
string
The Oracle manual says that the above exception occurs when there are
some extra characters on that field, which is not the case. In fact,
we raise our own exception for the cases like : o1-Apr-1997,
01-apr-97 etc. The correct format is 01-apr-1998.
Same date soemtimes is added to the database successfully. Waht I mean
to say that the exception deos not occur consistently.
We just conevert the String taken from the HTML field into a Forte
DateTimeData Object and send it to database. May be, the conversion
part is causing the problem. But, once again the problem is not
consistent.
Any ideas in this will be appreciated.
Thanx in advance
-Rajeev Talwar
Get Your Private, Free Email at http://www.hotmail.com
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>We had the same problem when our application first went live. The
default date format for our Oracle database is 'dd-mmm-yy' without the
time component. The default format for datatype DateTimeData is
'dd-mmm-yyyy hh:mm:ss'. Since we did not want to change the default date
format for the Database, we included in our service partitions an Alter
Session statement to change the NLS_Date_format attribute in Oracle to
conform to the Forte DateTimeData format. It worked.
Kam Chow
Mazda Australia
-----Original Message-----
From: Gary F Giger [mailto:[email protected]]
Sent: Thursday, June 25, 1998 4:11 AM
To: Rajeev Talwar
Cc: [email protected]
Subject: Re: Date Format problem...
I was having the same problem a few weeks back when I would
read/write
dates to Oracle. I was using objects of type DateTimeData and I would
occasionally get errors like you said you were. I found discovered my
problem. Sometimes I would process a null date and would get an error.
So to
resolve this issue, I simply changes my objects of type DateTimeData to
type
DateTimeNullable. This enabled my Forte Application to handle regular
dates
as well as null dates. I have not gotten any oracle errors since then
with
regards to dates. Hope this helps.
Rajeev Talwar wrote:
Hi users,
Forte version : 2.e.2 and ForteWebSDK
Datacase : Oracle
We have a problem with a simple HTML text field which acccepts
a date. When we try to update the record with some date, the following
exception occurs:
24-Jun-1998 04:32:28 : XV01086 : Execute failed for SQL statement in
project Rap
tServices, class RaptSqlMethods, method updateActivity, methodId 104,
line 51, e
rror from database is:
ORA-01830: date format picture ends before converting entire input
string
The Oracle manual says that the above exception occurs when there are
some extra characters on that field, which is not the case. In fact,
we raise our own exception for the cases like : o1-Apr-1997,
01-apr-97 etc. The correct format is 01-apr-1998.
Same date soemtimes is added to the database successfully. Waht I mean
to say that the exception deos not occur consistently.
We just conevert the String taken from the HTML field into a Forte
DateTimeData Object and send it to database. May be, the conversion
part is causing the problem. But, once again the problem is not
consistent.
Any ideas in this will be appreciated.
Thanx in advance
-Rajeev Talwar
Get Your Private, Free Email at http://www.hotmail.com
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive<URL:http://pinehurst.sageit.com/listarchive/>
Gary Giger
Raytheon Systems Company
300 Science Park Road
State College, PA. 16804
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
This message has successfully passed virus checking.
Mazda Australia takes every precaution to ensure email messages are virus free. For complete protection, you should virus test this message.
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/> -
Data Mismatch problem in Production system
Dear Experts,
We have been encountering serious data mismatch problems with our source system since 29th Dec 2010.
We have realized this mismatch only on 11th Jan 2011. So, we have deleted entire data from 29th Dec 2010 onwards to 11th Jan 2011. Then we tried to load delta again as per our Process Chain sequence. Since then, our production system has become very inconsistent. We found that the entire data from 29th Dec 2010 to till date is started giving mismatch.
Our system got damaged in terms of data drastically. If I delete any bad requests from our Cubes & Data Store Objects, the next time when we try to load data, cube & Data Store Objects is showing the deleted request no. is not updated properly. Because of this, our Process chain is daily failing to complete and giving so many technical errors. We are totally confused to restore our data from 29th Dec 2010 to till date.
Can any one please help us to restore our data fully and Process Chain to run successfully...............?
Thanks in Advance,
SumanHi Suman,
I understood that you are using 3.x version of BW
such kind of issues occurs if you distrub the delta sequence by deleting the requests without making them red.
you can resolve this two ways......
1) Go to reconstruction tab of the DSO and CUBE, select all the req from 29th Dec 2010 thru 11th Jan 2011 and reconstruct them. once they appear in the request tab. make all the requests to red (set the QM status to RED) one by one and delete them from the CUBE and DSO.
This should set the delta status back to 29th and you will be able to run a repeat delta from then in your next delta.
2) Go to RSRQ and give the SID or the Request ID one by one that it is giving you ( request no. which is not updated properly)
Mke the QM status as RED for all of them.
Since you have already deleted them from the targets, just changing the QM status to RED will be sufficinet.
You have make the QM status to RED inorder to inform the system that the requset is incorrect one and has been deleted.
Once it is set to RED, system will not prompt any req and say "request no.# not updated properly".
i suggest you the second option.
Once you resume the delta load, it should run successfully.....and if you feel some data is still missing from 29th Dec 2010 thru 11th Jan 2011, just run a full repair load the get the data back.
If your Datasource is of LO extraction u may need to fill the setup tables to perform full repair.
Please let me know if the Datasource is of LO extraction. Also let me know once the issue is resolved.
Regards,
Sudheer.
Edited by: Sudheer Kumar Kurra on Jan 22, 2011 7:58 AM
Edited by: Sudheer Kumar Kurra on Jan 22, 2011 8:03 AM -
Cache update problem in Integration Directory
Hi all,
We have a cache update problem in our PI development server.
If we try to edit, save and activate any of the ID objects, under Cache notifications>Central Adapter Engine> all these objects are displayed as gray items.
We have tried:
1. Clearing the SLD Data Cache.
2. Did SXI_CACHE complete refresh.
3. Did CPA cache refresh.
4. Did a complete cache refresh of the server.
5. Restarted the server.
But still the problem has not bee resolved. Could you pls provide your inputs and resolution points.
Thank you very much.
regards,
Jack NusonHI Jack ,
first try to manually update the cache from ID select on your cache notifiaction and click on delta cache refresh button and refresh button .IF it does not yied any result then
Perform a full cache refresh using the URL
http://<host>:<port>/CPACache/refresh?mode=full . If the cache refresh happens properly then your problem will get resolved other wise you have to see the cache log to view why it failed there it will show you the exact reason . You might need to restart your java server also if the problem persist .
Regards,
Saurabh -
Urgent :data packet problem
data packet problem
Posted: May 24, 2006 1:20 AM Reply E-mail this post
Hi All,
Record 1 :Time conversion from 0CALDAY to 0FISCPER (fiscal year ) failed with value 20051212
This problem from 0PP_C05 Datasource assign : 2LIS_04_P_COMP
THANKS IN ADVANCE
REGARDS
SANGRAMHi Sangram,
Goto the update rules of the cube 0PP_C05 and click on any of the Key Figure -> Time Characteristic tab -> For FISCPER select the calenday day info-object and make sure the "automatic time conversion" option is checked.
Bye
Dinesh -
Dynamical Call of ALV - No data update
Hi,
I tried to use use the ALV dynamically. With dynamically I mean that I that I have diffrent data structures, depending what was selected by the user. The first call of the program is always correct. The data is displayed correctly. But when the data structure is changing, the ALV display is not updated. For a better understanding I post a extract of my coding:
<b>1. Creation of Container</b>
CREATE OBJECT g_custom_container
EXPORTING
container_name = 'PARENT_CONT'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
IF sy-subrc <> 0.
ASSERT 1 = 2.
ENDIF.
<b>2.Creation of splitter container</b>
CREATE OBJECT splitter
EXPORTING
parent = g_custom_container
rows = 2
columns = 2
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
ASSERT 1 = 2.
ENDIF.
container_2 = splitter->get_container(
row = 1
column = 2 ).
<b>3.Dynamic Creation of alv object</b>
CREATE OBJECT go_grid
EXPORTING
i_parent = container_2.
<b>4. Get Fieldcatalogue</b>
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = lv_structure_name
CHANGING
ct_fieldcat = lt_fieldcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
ASSERT 1 = 2.
ENDIF.
<b>5. Set table for first display</b>
CALL METHOD go_grid->set_table_for_first_display
* EXPORTING
* i_structure_name = lv_structure_name
CHANGING
it_fieldcatalog = lt_fieldcat
it_outtab = <lt_out_data>.
CALL METHOD ls_alv_ref-alv_ref->refresh_table_display.
CALL METHOD cl_gui_cfw=>flush.
Perhaps someone could help.....
Best Regards, EdgarHello Edgar
The following sample report <b>ZUS_SDN_TWO_ALV_GRIDS_8</b> shows how to solve your problem. Please note that for the sake of simplicity I replaced the tree containing the structure names with an ALV list. However, the switch between the different structures is triggered by the <b>DOUBLE_CLICK</b> event.
I like to add that the integration of the first displayed ALV list (DD02L) into GT_OUTTAB is not really elegant. In addition, with <b>$TMP</b> I marked a problematic part of the coding with respect to your requirement to have the right layout for each displayed ALV list:
If you have a <b>fixed </b>assignment of <i>tabname -> 4-digit handle</i> then it is ok. I my sample report the layouts only work if you select the tabnames in the very same order.
Before showing the entire coding I describe crucial parts of the coding:
[code]TYPES: BEGIN OF ty_s_outtab.
TYPES: tabname TYPE tabname.
TYPES: layout TYPE lvc_s_layo.
TYPES: variant TYPE disvariant.
TYPES: fcat TYPE lvc_t_fcat.
TYPES: data TYPE REF TO data.
TYPES: END OF ty_s_outtab.[/code]
Every time a new structure is selected the corresponding ALV data are stored as new record in GT_OUTTAB which is of line type TY_S_OUTTAB.
[code] READ TABLE gt_outtab INTO gs_outtab INDEX 2.
ASSIGN gs_outtab-fcat TO <gt_fcat>.
ASSIGN gs_outtab-data->* TO <gt_outtab>.[/code]
Since the ALV list data and the fieldcatalog are fully dynamic I use global field-symbols for these data.
[code]&----
*& Module STATUS_0100 OUTPUT
text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'STATUS_0100'. " contains push button "DETAIL"
SET TITLEBAR 'xxx'.
CALL METHOD go_grid2->set_table_for_first_display
EXPORTING
i_structure_name = gs_outtab-tabname
is_layout = gs_outtab-layout
is_variant = gs_outtab-variant
i_save = 'A'
CHANGING
it_outtab = <gt_outtab>
it_fieldcatalog = <gt_fcat>
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT[/code]
The second ALV list which displays the table records is always newly displayed in the PBO module.
In the event handler method <b>HANDLE_DOUBLE_CLICK</b> we need to do two things:
- store the current fieldcatalog back to GT_OUTTAB
- store the name of the new selected table/structure -> trigger PAI
In routine <b>HANDLE_DB_CLICK</b> we create a new entry for GT_OUTTAB if it does not yet exist. Next we select this entry and display it again as second ALV list.
[code]
*& Report ZUS_SDN_TWO_ALV_GRIDS_8
*& Description: Display two ALV lists in splitter container (left/right)
*& Left ALV list contains DB table names,
*& right ALV list displays entries of selected DB table
*& SDN thread: Dynamical Call of ALV - No data update
*& Link: https:||Dynamical Call of ALV - No data update
*& Screen '0100' contains no elements.
*& ok_code -> assigned to GD_OKCODE
*& Flow logic:
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
REPORT zus_sdn_two_alv_grids_8.
TYPE-POOLS: abap.
DATA:
gd_repid TYPE syst-repid,
gd_okcode TYPE ui_func,
go_docking TYPE REF TO cl_gui_docking_container,
go_splitter TYPE REF TO cl_gui_splitter_container,
go_cell_left TYPE REF TO cl_gui_container,
go_cell_right TYPE REF TO cl_gui_container,
go_grid1 TYPE REF TO cl_gui_alv_grid,
go_grid2 TYPE REF TO cl_gui_alv_grid,
gs_layout TYPE lvc_s_layo.
TYPES: BEGIN OF ty_s_outtab.
TYPES: tabname TYPE tabname.
TYPES: layout TYPE lvc_s_layo.
TYPES: variant TYPE disvariant.
TYPES: fcat TYPE lvc_t_fcat.
TYPES: data TYPE REF TO data.
TYPES: END OF ty_s_outtab.
TYPES: ty_t_outtab TYPE STANDARD TABLE OF ty_s_outtab
WITH DEFAULT KEY.
DATA:
gt_dd02l TYPE STANDARD TABLE OF dd02l,
gs_outtab TYPE ty_s_outtab,
gt_outtab TYPE ty_t_outtab.
FIELD-SYMBOLS:
<gt_fcat> TYPE lvc_t_fcat,
<gt_outtab> TYPE table.
CLASS lcl_eventhandler DEFINITION
CLASS lcl_eventhandler DEFINITION.
PUBLIC SECTION.
CLASS-DATA:
md_tabname_selected TYPE tabname READ-ONLY.
CLASS-METHODS:
handle_double_click FOR EVENT double_click OF cl_gui_alv_grid
IMPORTING
e_row
e_column
es_row_no
sender.
ENDCLASS. "lcl_eventhandler DEFINITION
CLASS lcl_eventhandler IMPLEMENTATION
CLASS lcl_eventhandler IMPLEMENTATION.
METHOD handle_double_click.
define local data
DATA:
ls_dd02l TYPE dd02l,
ls_outtab TYPE ty_s_outtab.
CHECK ( sender = go_grid1 ).
READ TABLE gt_dd02l INTO ls_dd02l INDEX e_row-index.
" Store data of currently displayed ALV list (except for DD02L)
IF ( md_tabname_selected = space ).
ELSE.
READ TABLE gt_outtab INTO ls_outtab
WITH KEY tabname = md_tabname_selected. " old
CALL METHOD go_grid2->get_frontend_fieldcatalog
IMPORTING
et_fieldcatalog = ls_outtab-fcat.
MODIFY gt_outtab FROM ls_outtab INDEX syst-tabix.
ENDIF.
md_tabname_selected = ls_dd02l-tabname. " new selected DB table
Triggers PAI of the dynpro with the specified ok-code
cl_gui_cfw=>set_new_ok_code( 'HANDLE_DB_CLICK' ). " not 4.6c
CALL METHOD cl_gui_cfw=>set_new_ok_code
EXPORTING
new_code = 'HANDLE_DB_CLICK'
IMPORTING
RC =
ENDMETHOD. "handle_double_click
ENDCLASS. "lcl_eventhandler IMPLEMENTATION
START-OF-SELECTION.
gd_repid = syst-repid.
SELECT * FROM dd02l INTO TABLE gt_dd02l
WHERE tabname LIKE 'KN%1' OR
tabname LIKE 'LF%1' OR
tabname LIKE 'VB%' OR
tabname LIKE 'MAR%' OR
tabname LIKE 'E07%'
AND tabclass = 'TRANSP'. " transparent table
SORT gt_dd02l BY tabname.
PERFORM init_controls.
PERFORM add_first_table.
Set event handler
SET HANDLER:
lcl_eventhandler=>handle_double_click FOR go_grid1.
READ TABLE gt_outtab INTO gs_outtab INDEX 1.
Display data
CALL METHOD go_grid1->set_table_for_first_display
EXPORTING
i_structure_name = gs_outtab-tabname
is_layout = gs_outtab-layout
CHANGING
it_outtab = gt_dd02l
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE gt_outtab INTO gs_outtab INDEX 2.
ASSIGN gs_outtab-fcat TO <gt_fcat>.
ASSIGN gs_outtab-data->* TO <gt_outtab>.
NOTE: method called in PBO module
CALL METHOD go_grid2->set_table_for_first_display
EXPORTING
i_structure_name = gs_outtab-tabname
is_layout = gs_outtab-layout
is_variant = gs_outtab-variant
i_save = 'A'
CHANGING
it_outtab = <gt_outtab>
it_fieldcatalog = <gt_fcat>
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Link the docking container to the target dynpro
CALL METHOD go_docking->link
EXPORTING
repid = gd_repid
dynnr = '0100'
CONTAINER =
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
NOTE: dynpro does not contain any elements
CALL SCREEN '0100'.
Flow logic of dynpro (does not contain any dynpro elements):
*PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
*PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
END-OF-SELECTION.
*& Module STATUS_0100 OUTPUT
text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'STATUS_0100'. " contains push button "DETAIL"
SET TITLEBAR 'xxx'.
CALL METHOD go_grid2->set_table_for_first_display
EXPORTING
i_structure_name = gs_outtab-tabname
is_layout = gs_outtab-layout
is_variant = gs_outtab-variant
i_save = 'A'
CHANGING
it_outtab = <gt_outtab>
it_fieldcatalog = <gt_fcat>
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
text
MODULE user_command_0100 INPUT.
CASE gd_okcode.
WHEN 'BACK' OR
'END' OR
'CANC'.
SET SCREEN 0. LEAVE SCREEN.
User has pushed button "Display Details"
WHEN 'HANDLE_DB_CLICK'.
PERFORM handle_db_click.
WHEN OTHERS.
ENDCASE.
CLEAR: gd_okcode.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Form HANDLE_DB_CLICK
text
--> p1 text
<-- p2 text
FORM handle_db_click.
define local data
DATA:
ld_handle(4) TYPE n,
ls_outtab TYPE ty_s_outtab.
READ TABLE gt_outtab INTO ls_outtab
WITH KEY tabname = lcl_eventhandler=>md_tabname_selected.
IF ( syst-subrc NE 0 ).
CLEAR: ls_outtab.
ls_outtab-tabname = lcl_eventhandler=>md_tabname_selected.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
I_BUFFER_ACTIVE =
i_structure_name = ls_outtab-tabname
I_CLIENT_NEVER_DISPLAY = 'X'
I_BYPASSING_BUFFER =
I_INTERNAL_TABNAME =
CHANGING
ct_fieldcat = ls_outtab-fcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CREATE DATA ls_outtab-data TYPE TABLE OF (ls_outtab-tabname).
ASSIGN ls_outtab-data->* TO <gt_outtab>.
SELECT * FROM (ls_outtab-tabname) UP TO 50 ROWS
INTO TABLE <gt_outtab>.
ls_outtab-layout-no_toolbar = abap_false.
ls_outtab-layout-zebra = abap_true.
ls_outtab-layout-smalltitle = abap_true.
CONCATENATE ls_outtab-tabname ':'
INTO ls_outtab-layout-grid_title.
CONCATENATE ls_outtab-layout-grid_title 'Table Records'
INTO ls_outtab-layout-grid_title
SEPARATED BY space.
ls_outtab-variant-report = gd_repid.
DESCRIBE TABLE gt_outtab.
ld_handle = syst-tfill + 1.
WRITE ld_handle TO ls_outtab-variant-handle. " $TMP: Problem!!!
APPEND ls_outtab TO gt_outtab.
ENDIF.
" NOTE: read into GLOBAL variable gs_outtab !!!!
READ TABLE gt_outtab INTO gs_outtab
WITH KEY tabname = lcl_eventhandler=>md_tabname_selected.
ASSIGN gs_outtab-fcat TO <gt_fcat>.
ASSIGN gs_outtab-data->* TO <gt_outtab>.
ENDFORM. " HANDLE_DB_CLICK
*& Form INIT_CONTROLS
text
--> p1 text
<-- p2 text
FORM init_controls .
Create docking container
CREATE OBJECT go_docking
EXPORTING
parent = cl_gui_container=>screen0
ratio = 90
EXCEPTIONS
OTHERS = 6.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD go_docking->set_extension
EXPORTING
extension = 99999 " full-size screen
EXCEPTIONS
cntl_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Create splitter container
CREATE OBJECT go_splitter
EXPORTING
parent = go_docking
rows = 1
columns = 2
NO_AUTODEF_PROGID_DYNNR =
NAME =
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Get cell container
CALL METHOD go_splitter->get_container
EXPORTING
row = 1
column = 1
RECEIVING
container = go_cell_left.
CALL METHOD go_splitter->get_container
EXPORTING
row = 1
column = 2
RECEIVING
container = go_cell_right.
CALL METHOD go_splitter->set_column_mode
EXPORTING
mode = cl_gui_splitter_container=>mode_relative
IMPORTING
RESULT =
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD go_splitter->set_column_width
EXPORTING
id = 1
width = 25
IMPORTING
RESULT =
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD go_splitter->set_column_sash
EXPORTING
id = 1
type = cl_gui_splitter_container=>type_movable
value = cl_gui_splitter_container=>false
IMPORTING
RESULT =
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Create ALV grids
CREATE OBJECT go_grid1
EXPORTING
i_parent = go_cell_left
EXCEPTIONS
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CREATE OBJECT go_grid2
EXPORTING
i_parent = go_cell_right
EXCEPTIONS
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " INIT_CONTROLS
*& Form ADD_FIRST_TABLE
text
--> p1 text
<-- p2 text
FORM add_first_table .
define local data
DATA:
ls_outtab TYPE ty_s_outtab.
ls_outtab-tabname = 'DD02L'.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
I_BUFFER_ACTIVE =
i_structure_name = ls_outtab-tabname
I_CLIENT_NEVER_DISPLAY = 'X'
I_BYPASSING_BUFFER =
I_INTERNAL_TABNAME =
CHANGING
ct_fieldcat = ls_outtab-fcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
*MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
GET REFERENCE OF gt_dd02l INTO ls_outtab-data.
ls_outtab-layout-no_toolbar = abap_false.
ls_outtab-layout-zebra = abap_true.
ls_outtab-layout-smalltitle = abap_true.
CONCATENATE ls_outtab-tabname ':'
INTO ls_outtab-layout-grid_title.
CONCATENATE ls_outtab-layout-grid_title 'Table Records'
INTO ls_outtab-layout-grid_title
SEPARATED BY space.
ls_outtab-variant-report = gd_repid.
ls_outtab-variant-handle = '0002'.
INSERT ls_outtab INTO gt_outtab INDEX 1.
ls_outtab-layout-no_toolbar = abap_true.
ls_outtab-layout-zebra = abap_true.
ls_outtab-layout-smalltitle = abap_true.
ls_outtab-layout-grid_title = 'DB Tables'.
ls_outtab-variant-report = gd_repid.
ls_outtab-variant-handle = '0001'.
DELETE ls_outtab-fcat WHERE ( fieldname NE 'TABNAME' ).
INSERT ls_outtab INTO gt_outtab INDEX 1.
ENDFORM. " ADD_FIRST_TABLE[/code]
Regards,
Uwe -
Data Roaming Problems with Lumia 610 and 710 phone...
Data Roaming problem with Lumia Wndows 7.5 phones. We have a Lumia 710 and also 610 phones on Virgin pay monthly sim cards. We cannot get data raoming to work on either phone. We have tried in a number of locations in France and Switzerland. Virgin confirm roaming and data roaming are set up on our account.
- I have purchased Data Passes.
- Settings>Mobile Network active network shows current operator
- Data Connection is on,
- Data roaming option shows "roam",
- highest connection speed is 3G,
- network selection is automatic.
- Flight mode is off.
- Account settings are ok because everything works on Wifi.
- Connection has been full bars showing 3G.
- I have tried hard resets of phone, manual network selection, deleted browsing history,
- phone software reports that it is up to date,
- I have run Network Setup which confirms phone has been updated network settings for relevant operator.
- Telephone calls to Virgin from Switzerland could not resolve the problem.
- Discussions with Virgin since returning home have not been able to solve the problem. It seems to be an issue with Lumia phones.
Can anyone help please? Nokia - why doesn't this work on your phones?I'm like what an OS this phone has. All I can say is that if you own MS stock dump it fast as the OS on this phone is so bad its not even funny.
I think what they are trying to do here is a last ditch attempt to capture the online services market but it isn't going to work, because they have made this OS to weird.
I'm a pretty seasoned user and I generally am able to get gadgets to work but dudes this puppy is something else. I have 14 days to exchange it so Im going to give it my best shot for another couple of days and see where it goes.
The phone itself is pretty decent otherwise I would have returned on the 2nd day. Its pretty fast and the screen is nice and bright and if not some major concerns I wouldn't be a complaining.
1st} There is no way to import your bookmarks into the phone without using a online service.
2nd} I haven't been able to successfully export my old contact list from my LG P500 Android.
The 710 seems to only use contacts that are stored on online services even though I have imported my contacts using the Contact transfer function on the phone.
3rd)The phone won't shut off while charging even if you shut the phone down , plug it in and it turns on no matter what you do.
The Zune software is all glitter and no meat too unfortunately.
I really wanted an alternative and the phone is such good value and a local new Provider has a 27 $ a month unlimited everything, but luckily they have a 14 day phone exchange policy.
I'm going to keep for a few more days and see if I can get it to work the way i want it to.
Moderator's notes: Profanity removed, such language is not tolerated on the forums, please read the forum guidelines. -
HT4623 iPad software update problem....help!!
My iPad does not have a "software update" icon in the General Settings. So, how do I accomplish a software update?
Use your computer and iTunes:
See the chart below to determine whether you can upgrade your device and what you can upgrade to.
IPhone, iPod Touch, and iPad iOS Compatibility Chart
Device iOS Verson
iPhone 1 iOS 3.1.3
iPhone 3G iOS 4.2.1
iPhone 3GS iOS 6.1.x
iPhone 4 iOS 6.1.x
iPhone 4S iOS 6.1.x
iPhone 5 iOS 6.1.x
iPod Touch 1 iOS 3.1.3
iPod Touch 2 iOS 4.2.1
iPod Touch 3 iOS 5.1.1
iPod Touch 4 iOS 6.1.x
iPod Touch 5 iOS 6.1.x
iPad 1 iOS 5.1.1
iPad 2 iOS 6.1.x
iPad 3 iOS 6.1.x
iPad 4 iOS 6.1.x
iPad Mini iOS 6.1.x
=====================================
Select the method most appropriate for your situation.
Upgrading iOS
1. How to update your iPhone, iPad, or iPod Touch
2. iPhone Support
3. iPod Touch Support
4. iPad Support
a. Updating Your iOS to Version 6.0.x from iOS 5
Tap Settings > General > Software Update
If an update is available there will be an active Update button. If you are current,
then you will see a gray screen with a message saying your are up to date.
b. If you are still using iOS 4 — Updating your device to iOS 5 or later.
c. Resolving update problems
1. iOS - Unable to update or restore
2. iOS- Resolving update and restore alert messages
Maybe you are looking for
-
Printing from LR has a different color cast.
I have Windows Vista and the latest version of LR and everytime I print using LR the print preview shows a different color and so does the print. When i use the same picture and print using PSCS3 or any other application it looks good. I have tried c
-
Active tab appears inactive after switching to Safari
Hi, I've had this problem since I updated to Leopard. When I switch to Safari, e.g. with command+tab or change space, the active tab of Safari seem inactive while the rest of the application seems active (the tab has a lighter gray). Here is a screen
-
Hi, I've create 2 vlan in a cisco SG500X-24 and a DHCP server on vlan 2. I just want to dhcp server assign ip to devices on vlan 3. I've configured the vlan and dhcp server relay commands. ip dhcp relay address 192.168.1.11 ip dhcp relay enable ip d
-
Time Machine: Case Sensitivity?
On a mission of relative innocence, i ran into a (COPY) Error Message that made me wonder if more serious problems lay down the road. I don't have Time Machine on, or my external drive connected, all the time, I prefer to back up about once a week. T
-
I'm working with another designer that keeps updating graphics that I've linked within my InDesign CS3 document. He's working in AI CS3. When he updates a file I cannot find an easier way than opening and closing my entire document to update the link