Modify Ztable using ITAB
SORT gt_tabsum.
DESCRIBE TABLE gt_tabsum LINES gv_tabsum_entries.
MODIFY ztabsum FROM TABLE gt_tabsum.
IF SY_SUBRC = 0.
COMMIT WORK.
ENDIF.
Do i have any problem with my modify statement?
The issue is - the number of entries in internal table gv_tabsum_entries = 1630000
However after Modifying it to database table. I can see only 1140000 entries. Some entries are missing.
I am not sure if it has duplicate entries. Do you this it is becase of duplicates or something else.
Regds,
Senthil
Yes Senthil, You are right some of the entries must be already present there in the table so MODIFY just ignores them & updates only the new entries unless there is no change in the already present entries.
Hope this clears your dobut.
Regards
Abhii
Similar Messages
-
Dialogue program for modifying ztable
hi experts,
i want to create a ztable. After creating the ztable i want to create an dialogue program using that dialogue program i have to create/modify entries of that ztable using text box and push button options.
can anybody having sample coding pls send me.....
thanks in advance,
raviHI,
chek this sample code
data: begin of itab occurs 0.
include structure ZTESTVENKATESH.
data: end of itab.
call screen 100.
*& Module STATUS_0100 OUTPUT
text
module STATUS_0100 output.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
endmodule. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
text
module USER_COMMAND_0100 input.
if sy-ucomm = 'HAI'.
APPEND ITAB.
modify ZTESTVENKATESH from table itab.
ENDIF.
thanks & regards,
venkatesh -
How to update the Ztable using modulepool Tablecontrol...
Hi All,
could anyone help me how to update the Ztable using modulepool Tablecontrol...
if it is possible give me a example with code..
Many thanks in advance...!!
RajeshHi,
For that pls refer to the link:
http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbac3735c111d1829f0000e829fbfe/frameset.htm
Also refer the sample program:
RSDEMO02
Then for updating:
modify the internal table(which u used to populate the tabcntrl) from the table control.
Then update database table like:
update dbtab from table itab.
Regards,
Renjith Michael. -
How to MODIFY a dynamic ITAB...
Hi!!!
I wants to modify a dynamic itab in a Z-programme which takes inputs. But I can not use the normal itab modifying syntax for it. Therefore I needs to find out a way to modify this itab and it is really essential for my programme.
Please help me on this...
Thanking You,
Yohan.Thanks for the prompt replies.
Dear Amit,
I have already done the things mention in the link you sent me. This is ok for when I loop the dynamic itab step by step. So it will modify the itab, line by line. But, what I wants to do is modify an itab field which have the same key in multiple lines.
For an example say in my structure I have material #. I wants to update all the rows of column 'material description' which have the same material #.
This is where I have stucked...
Please help me...
Thanking you,
Yohan. -
Modify ztable from internal table
Hi,
I have a Ztable in which i have 4 diff fields....1 2 3 4
and an internal table in whch i have same number of fields...
Internal table :
1 2 3 4
a w x 9
a w x 10
a w x 11
a w x 13
a w x 12
When I am using Modify it only appends last record into ztable as below:
Ztable : 1 2 3 4
a w x 12
Internal table has 6 records and z table should be appended with 6 records too...
if varid-report = 'ZFINRR1001' and
varid-VARIANT = 'CITI - ZBA' or
varid-VARIANT = 'WACHOVIA - ZBA'.
Modify ZV12_SWEEP from t_data_new.
endif.
Any suggestions will be aprreciated!
Regards,
Kittu>
Kittu wrote:
> When I am using Modify it only appends last record into ztable
>
> Modify ZV12_SWEEP from t_data_new.
Hi,
You only get last record appended because your MODIFY statement uses t_data_new as a working area and not as a table.
To append the content of your internal table, use the FROM TABLE option as below :
MODIFY zv12_sweep FROM TABLE t_data_new.
Regards.
Nicolas -
Hi Guys
I need to update flag to X for all flag = I from my ztable. Ztable is a database table with many entries (10000's). I currently have code that implements this functionality but performance is very imp here so I need to fine tune the code, perhaps putting it in itab and modifying the entire table from it should work
This is what I have so far
update ztable
set flag = 'X'
where flag = 'I'.Hi,
Please try this.
loop at itab.
move 'X' to itab-flag.
modify itab.
endloop.
modify ztable from table itab.
OR
loop at itab.
update ztable
set flag = 'X'
where kunnr = itab-kunnr
and vbeln = itab-vbeln.
endloop.
Regards,
Ferry Lianto -
Saving Ztable using Module Pool
hi
I want to save the entries into a Ztable using Module pool programming.. I want the Module Pool Program to work like the SM30 table maintenance...
Right now.. I have 2 module pool screen on the screen... one which displays the entries of Ztable and the other which is an input enabled screen so that I can enter records into it..
When I save the records the Ztable should get updated and when the screen again comes to PBO the enetered records should be displayed in the first table control
Right now I am stuck here
PROCESS BEFORE OUTPUT.
* MODULE STATUS_0001.r45
MODULE FILL_TABLE.
LOOP AT TBL_ZTVM3 into wa_ztvm3 WITH CONTROL TC1 CURSOR TC1-TOP_LINE.
ENDLOOP.
LOOP AT TBL2_ZTVM3 into ztvm3 WITH CONTROL TC2 CURSOR TC2-TOP_LINE.
ENDLOOP.
PROCESS AFTER INPUT.
LOOP AT TBL_ZTVM3.
ENDLOOP.
LOOP AT TBL2_ZTVM3.
ENDLOOP.
MODULE USER_COMMAND_0001.
user command goes like this
*& Include YENTRIES_ZTABLE_I01
*& Module USER_COMMAND_0001 INPUT
* text
MODULE USER_COMMAND_0001 INPUT.
CASE SY-ucomm.
when 'SAVE'.
modify tbl2_ztvm3 from wa2_ztvm3 INDEX TC2-CURRENT_LINE.
ENDCASE.
ENDMODULE. " USER_COMMAND_0001 INPUT
SO quite a simple code.. but after 1 year I just lost touch with this.. I have defined the Selection Column check rows too for the table control
Can you please help me with this.. I <REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Mar 27, 2008 1:41 PMIN PAI of the Module flow logic
you need to modify the internal table with the modified content.
Like this
PROCESS AFTER INPUT.
MODULE EXIT AT EXIT-COMMAND.
MODULE CHECK_PAI.
LOOP WITH CONTROL TC.
MODULE MODIFY_DATA.
ENDLOOP.
IN side the MODIFY_DATA
You need to update the Internal table with the modified content. then your internal table will have the latest Information.
You save the latest information. -
hi
i m having itab with vbeln
and ztable with objnr and ordsent.
where objnr and vbeln are equal
so now when i find objnr EQ vbeln i have to modify the ztable-ordsent = ' '.
plz can any one can tell me can i modify the ztable directly if yes then how?hi neha,
1. do like this.
2.
LOOP AT ZTABLE.
READ TABLE ITAB WITH KEY VBLEN = ZTABLE-OBJNR.
<b> IF SY-SUBRC = 0.
ZTABLE-ORDSENT = ''.
MODIFY ZTABLE FROM ZTABLE.
ENDIF.</b>
ENDLOOP.
ENDLOOP.
3. Ztable (internal table)
and Actual ZTABLE should be same structure.
regards,
amit m. -
Hello all,
I can't open a PP project without this error message appearing:
"The preset used by one or more sequences in this project requires third-party components that could not be located. These sequences will be modified to use a custom sequence setting instead. To continue editing using the original preset, quit the application without saving the project, reinstall any third-party components that are required and reopen the project".
What I had been doing before this occurred was editing a PP project using ProRes sequences and multi-camera editing. Multi-camera was not working very well and after a few attempts to fix that I gave up and finished the job cutting 3 layers of video instead. AME refused to render the three finished sequences of over 1hr duration so rendered final videos from the PP sequences.
I tried deleting plists for AME, PP and QT, repairing disc permissions and rebooting but there was no improvement.
Client is satisfied for now but will want to come back to this job at a later date so decided to uninstall and re-install AME and PP in the hope both would be ready to work properly when needed again. AME works fine in conjunction with a different PP project but now I can't open the PP project in question without the above error message appearing.
Having searched the net it would seem that the problem may be caused by ProRes but I haven't been able to find a definitive solution for the problem. Does anyone know either:
1. How to fix this?
2. If I chose the "modified using a custom sequence setting", can I be sure that my sequences will look the same even if they don't use ProRes? The final deliverable format will be mp4 so as long as the overall look doesn't change then I can afford a change in the edit codec. It's just that with three sequences over an hour long, I don't want days of work to be ruined.
Other older PP projects of mine open and work fine.
Premiere Pro CC 8.2.0
Media Encoder CC 8.2.0.54
OSX 10.10.2
Any help would be greatly appreciated.
Duncan.Adobe web chat come up with a solution.
Open the PP project.
Export your sequence or project as a Final Cut Pro XML file.
Set up a new PP project.
Import the Final Cut Pro XML file.
This will get you back up an running.
Since getting back to editing this project I have found that some things will be lost or change in using XML:
You will lose position key framing, black video clips, dissolve fx, audio levels, audio dynamic fx, the ability to open a multi camera clip and change the camera view.
You will keep cut points, crop fx.
Not perfect but only took a couple of hours to save 3 days work. -
Unable to modify Report using JRC alone
Hi
I am trying to modify the report generated thru Crystal reports 2008 programmatically using JRC.
I dont see any API in com.crystaldecisions.reports.sdk.DataDefController to modify filters,groups,parameters,sort objects and summaries.
I could find Controller API to modify the above in com.crystaldecisions.sdk.occa.report.application package part of RAS SDK which requires RAS to be installed.
WIll it be possible to modify report using JRC alone?
because when i use com.crystaldecisions.sdk.occa.report.application.ReportClientDocument class to open a report, it thorws
ReportSDKServerException: There is no server specified exception.
and i am not sure what need to set for ReportClientDocument.setReportAppServer()
Pls help me .Hi,
Thanks for your help.
I am getting the below exception when I am trying to open a report programmatically using com.crystaldecisions.reports.sdk.ReportClientDocument.
oReportClientDocument.open(reportName, 0);
I am not sure how to resolve this issue.
I have even created a new rpt file. I am getting the same exception/
I could open this report directly thru Crystal Reports.
12/16/10 16:19:57:376 IST] 10c3f2a6 WebGroup E SRVE0026E: [Servlet Error]-[The document is being opened.]: com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: The document is being opened.---- Error code:-2147215349 Error code name:docNotReady
Error code:-2147215349 Error code name:docNotReady
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source)
at com.crystaldecisions.client.helper.ObjectState.a(Unknown Source)
at com.crystaldecisions.client.helper.ObjectState.if(Unknown Source)
at com.crystaldecisions.client.helper.ObjectState.stopping(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ClientDocument.close(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.close(Unknown Source)
at com.crystaldecisions.reports.sdk.ReportClientDocument.close(Unknown Source)
at org.apache.jsp._CrystalReportViewer._jspService(_CrystalReportViewer.java:389)
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:662)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(
Pls help me.
Edited by: D.Sangeetha on Dec 16, 2010 12:33 PM -
Hi,
I had 5 ZTABLES to be uploaded .
I want to Insert/update the records in ZTABLES using LSMW.
Can i do the upload of the data for all the 5 Ztables in one LSMW,If so, how can i do that?
Thank you
Regards
Srinivas MandaHi Sri,
customizing starts from here.
--> Maintain field mapping and conversion rules
--> Maintain fixed values user-defined transalations, routines.
--> Specify the files.
--> Assign the files.
--> Read data
--> Read and display the data.
--> Convert the data.
--> display and convert the data.
--> Create the Batch Input.
--> Run the Batch Input
[Upload the Data|LSMW through IDocs;
Thanks
kalyan b -
CALL transaction using itab aswell as skip the first screen
Hi All,
I am doin BDC for some Ztransaction and i am that transaction using CALL TRANSACTION... but i want to skip the first screen of the Ztransaction as well as pass the Itab .. mode .. update and message table.... how can i do it...
CALL TRANSACTION Z... USING iTAB UPDATE DATE MODE A message bdcmsgcoll AND skip THE FIST SCREEN.. how to acheive it....PERFORM BDC_DYNPRO TABLES BDCDATA
USING 'SAPLBPT1' '0100'.
*PERFORM BDC_FIELD TABLES BDCDATA
USING 'BDC_CURSOR'
'BCONTD-BPCONTACT'.
*PERFORM BDC_FIELD TABLES BDCDATA
USING 'BDC_OKCODE'
'/00'.
*PERFORM BDC_FIELD TABLES BDCDATA
USING 'BCONTD-BPCONTACT'
V_CONTRACT.
the above code /recording call the first screen 100 which i dont want...
below code / recording is for screen 200 which i want to appear directly when i call the transaction....
skipping the first screen 100..
PERFORM BDC_DYNPRO TABLES BDCDATA
USING 'SAPLBPT1' '0200'.
PERFORM BDC_FIELD TABLES BDCDATA
USING 'BDC_OKCODE'
'=SAVE'
PERFORM BDC_FIELD TABLES BDCDATA
USING 'BCONTD-PARTNER'
V_GPART.
PERFORM BDC_FIELD TABLES BDCDATA
USING 'BCONTD-ADDINFO'
V_ZONE. "ZONE(S,N,E,E,NE)
PERFORM BDC_FIELD TABLES BDCDATA
USING 'BDC_CURSOR'
'EENO_DYNP-ZEILE(01)'.
PERFORM BDC_FIELD TABLES BDCDATA
USING 'EENO_DYNP-ZEILE(01)'
V_LOG. "MESSAGE
CALL TRANSACTION 'BCT1' USING BDCDATA
MODE MODE UPDATE UPDATE
MESSAGES INTO IT_BDCMSGCOLL. -
Sorting numbers using itab(urgent)
hi,
i want to sort the number using itab. i am writting the code as follows. but i am not getting itab sorted asending? pl. tell me why????
Data: itab2 type table of string with header line.
if IT_BOM1-LABST < IT_BOM1-MENGE.
ITAB2 = MIN.
append itab2.
ELSE.
itab2 = w_shortb.
append itab2.
ENDIF.
if itab2[] is not initial.
sort itab2 ascending.
endif.
read table itab2 index 1.
If sy-subrc = 0.
Write:/ 'The minimum batch is', itab2.
endif.
numb = itab2.
write :/ numb.
when i am debugging then itab not showing sorted in ascendingHi Samir,
what about a slim solution?
data:
lt_mng type sorted table of mard-labst
with unique key table line,
lv_menge like line of lt_mng.
insert:
IT_BOM1-LABST into table lt_mng,
IT_BOM1-MENGE into table lt_mng,
w_shortb into table lt_mng.
read table lt_mng into lv_mng index 1.
Write:/ 'The minimum batch is', lv_mng.
Regards,
Clemens -
Getting error Uni code check when modifying Ztable from work area?
Hi all,
Getting error Uni code check when modifying Ztable from work area?
and how to increment counter when data modified?
FM 'popup_to_confirm'.
IMPORTING
answer = RES.
CHECK
RES = '1'.
WRITE :/ 'UPDATE'.
MODIFY ZPPT_PPDPLAN FROM GWA_FIN_PROD.
thanks in advance..what error you are getting. make sure source and Target are of similar sturcture.
-
Can the mailer.cbx file in 6.2 be modified to use port 1025?
Can the mailer.cbx file code in vs. 6.2 be modified to use port 1025?
We need no authentication, only a port change to 1025 to allow the mailer object to work for us. Had it working for several months until ISP blocked port 25. We currently have no email alarm reporting to us from over 100+ alarm events!
Thanks for any suggestions!Thanks both Arnis and Mike --
Interesting suggestions from both of you.
Arnis, we're putting the cleanup utility on the back burner for the moment, since in our company, we can get in trouble using third-party software. However, it's good to know about this utility and we will use if it we have to. (Occcasionally we are forced to put our careers on the line for issues like this...)
Mike, we created a folder called "PDFSettings" in the 7.2 "fminit" folder and copied over the six joboptions files from 9.0. Rebooted, rePDFed and voila, that worked. (Mind you, we can't say for sure that's what worked, because as I said in my original post, the simple act of rebooting "sometimes works, sometimes not...")
Eventually this problem will go away by itself because eventually we will get rid of 7.2 -- it's only deadline time-crunches that have made us reluctant to jump fully-clothed into 9.0...
I really appreciate the two of you taking your time to offer suggestions and help. I can't imagine life in the FrameMaker world without you!
Cheers,
Gay
Maybe you are looking for
-
Hi I want to add characteristic relationship to a BI-IP model. The help docs stats: 'We recommend that you derive your own class from the example class 'CL_RSPLS_CR_EXIT_BASE'. You then only have to implement the methods CHECK, DERIVE and CREATE
-
Subcontracting location as a plant
Dear all, Please guide how we can map the following process requirement in SAP: 1) Supply of raw material to ext vendor for processing. 2) Production of finish material at subcontractors location.Production process is very complicated and involves v
-
Why is it taking 8+ Days to write a Blu-ray folder, only to fail at the end?
I'm trying to write a blu-ray dvd and author it through Encore. I've done this in the past with no issues at all, but in the case of this particular project, it's been a complete nightmare from hell. It took 8 DAYS... that's right... DAYS to transcod
-
Problem loading image into texture memory
Hi there, I am currently porting our new casual PC game over to the iPad using the pfi, the game was written in Flash so the porting process isn't that hard thankfully, it's mainly just optimizing the graphics. So far things are going smoothly, I was
-
Macbook power adapater with Macbook Pro...??
Hi guys, So I just got home for the holidays and realized I forgot my power adapter for my *Macbook Pro*. However, my dad has a Macbook. I know they're not the exact same adapter, but is it a problem if I use his adapter with my laptop? Thanks!