How to fill dates through a formular
Dear all,
I have created a Dashboard where the user is able to introduce 4 parameters:
-login
-password
-timestart (start, i.e: 00:00:00)
-timestop (stop, i.e: 12:00:00)
Through these parameters, a DDBB is loaded like this:
ActiveDocument.Sections["Query"].DataModel.Connection.Open(v_ddbb);
ActiveDocument.Sections["Query"].DataModel.Connection.Username = v_user;
ActiveDocument.Sections["Query"].DataModel.Connection.SetPassword(v_password);
ActiveDocument.Sections["Query"].Limits["Time"];.CustomValues.Add(v_timestart);
ActiveDocument.Sections["Query"].Limits["Time"];.CustomValues.Add(v_timestop);
ActiveDocument.Sections["Query"].Limits["Time"];.SelectedValues.AddAll();
ActiveDocument.Sections["Query"].DataModel.Connection.Connect();
ActiveDocument.Sections["Query"].Process();
ActiveDocument.Sections["Query"].DataModel.Connection.Disconnect();
After some tests, I have found out that in the Filter "Time" I have cumulated a lot of different values, as many as test I made. How could I delete the existing ones and then add the new ones [CustomValues.Add]?
Many thanks in advance.
Hello,
Thank you for your help.
Unfortunately, it does not work properly because indeed your command instruction deletes my limits, but afterwards I am not able to add the new limit:
TLimit=ActiveDocument.Sections["Query"].Limits["timestamp"]
ActiveDocument.Sections["Query"].Limits.RemoveAll(); //your command
TLimit.CustomValues.Add(v_timestart);
TLimit.CustomValues.Add(v_timestop);
TLimit.SelectedValues.AddAll();
Thany you in advance!!
Similar Messages
-
IDOC: How to fill data for sub segments ?
Hi,
I have 3 segments, segA , segB , segA1 . segA1's parent segment is segA . segA and segB are at the same level .
How to fill data for segA1 ? can you give some sample code ?
Thanks a lot !hi,
You can fill the segment in the sequence in the idoc either parent or child.
In you case first fill parent segment SEGA next SEGA1. Then you can fill the SEGB.(If segB is deifned as next segment of segA in the idoc structre)
Thanks and regards,
shyla kumar -
How to fill data for asset accoutning datasources
hi gurus
i want to know how to fill data for the FI:asset accounting data sources.As these datasources are not related to Logistics,i think filling setuptables concept doesnot come into picture here.thenhoe to fill data for the datasources:0FI_AA_001,0FI_AA_005,0FI_AA_006
Pls give me some inputs ASAP
Its very Urgent
Thanks in Advance
Surya ReddyHi,
Asset Accounting works with Timestamp mechanism. No Setup table concept like logistics. Find the prerequisites for AA extraction.
For Asset Accounting Delta Extraction you first need to have this BADI - FIAA_BW_DELTA_UPDATE active in the system:
Check the link below for more details about the badi and the delta extraction procedure.
http://help.sap.com/saphelp_nw04/helpdata/en/a8/f4153c4eb5d82ce10000000a114084/frameset.htm
Sequence of Data Requests
For summarization of line items by master record characteristics (such as cost center) during posting of ODS objects to Info Cubes, master data must already exist prior to extraction of transaction data.
Also the following sequence must therefore be kept to during extraction:
1. 0FI_GL_4 General Ledger: line items (if required)
2. 0ASSET_ATTR_TEXT Asset sub number (flexible updating)
3. 0ASSET_AFAB Depreciation area real or derived
Then the transaction data
0FI_AA_11 FIAA: transactions and / or
0FI_AA_12 Posted depreciations (period values)
Hope it helps
Regards
Srikanth -
How to retrieve data through table by passing date
hi
i hv made one table which stores email id & cureent date when entered,
can anybody tell me how to retrieve data through table by passing today's date to last week date,so it can retrieve all email ids which are entersd in last week.
thankshttp://www.google.com/search?&q=sql+tutorial
-
How to fill data when call function of sap standard script form?
Hi every experts,
<Priority Normalized>
In our system, when we log in 'FR', we can print purchase order in language Franch,in t_code:ME22N. And when logging in 'EN', we can print it in language English, in ME22N. The English form is just only translated from Franch, with all same structure and frame. The form is done by script form.
And when logging in 'ZH', we create a new program, calling function smartform, instead of translating from EN language. Because of different structure and frame, I don't know the way to write script, so I print puchase order by smartform, when logging in 'ZH'.
But I have a new issue. Our MM module consultant needs me to print Chinese form if one condition, print English form in other condition.
So I have no idea to solve it. Because in my program, I get data to fill smartform and call function of smartform. And I don't know how to get data to fill script form. I only know the function name, 'OPEN_FORM' 'WRITE_FORM' 'CLOSE_FORM'.....
If I only call the several functions, I will get only frame without no data. So who can tell me how to do????
<Urgency downgraded>
Edited by: Suhas Saha on Jul 26, 2011 3:34 PM
Edited by: Vinod Kumar on Jul 26, 2011 4:09 PMHi,
Normally if we look in NACE transaction, you can see that upto five different FORMS can be assigned to a single output type . i.e. for each form there will be a seperate routine through which it gets called. But it all start from the first form only.
so you need to write your code in the ENTRY of the first form and if it does not satisfy do not go for processing of it but just exit of that form ENTRY. so that it will take you to next form.
hope this helps.
Thanks,
Venkatesh -
How to fill data in a table automatically
Hello Experts,
I would like to know if its possible to fill data in a table by looping.
I have the following table:
Draws(
NUM NUMBER,
START_DATE DATE NOT NULL,
END_DATE DATE NOT NULL,
ACTIVE CHAR(1 BYTE) DEFAULT 'Y')
Now my table should contain the foll:
Num start_date end_date active
1 23/01/2010 21:00:00 30/01/2010 19:00:00 Y
2 30/01/2010 21:00:00 06/02/2010 19:00:00 Y
I have an initial start date and the end_date is always (start_date + 7) and the next start date starts with the previous end_date but time changes from 19:00 to 21:00.
Is there a way i can enter those values on a weekly basis???
Thanks
Edited by: Kevin CK on Jul 5, 2010 3:07 AMthere are a number of ways to do weekly inserts. it just depends on your environment and what you want to manage.
1. write a PL/SQL procedure to do the periodic insert. i assume you know how to do this since you only asked about doing the insert weekly.
2. options for running the procedure weekly:
a. using your OS job scheduler, schedule a batch job to run a sql script to execute the procedure.
b. inside the Oracle database, use DBMS_SCHEDULER (or DBMS_JOB if you are on a version older than 10g) to run the procedure.
c. write yourself a reminder on a sticky note to run the procedure each week, post it on your computer, and run it manually.
if you need more details, just say so. -
How to send data through gprs from j2me application to desktop
hi
i wanna send some data to a server(where http://localhost:8080/ccp.html is running).i wanna catch this data and use it further.
how to do it through query string/xml.Hi srini,
it depends upon what is the receiver system.If you want to save the emails coming from SAP to Files ..then u will have to use File adapter in the receiver side...
check these weblog.....
Receiving Mail attachments using additional files of file adapter
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
Regards
Biplab
Use a Good Subject Line, One Question Per Posting - Award Points -
How to fill data in to extended idoc segments for outbound program
Hi all,
I am new to this Community In the extension of Standard idoc INVOIC02 with some custom segments like zemail, zfax,,,,how to fill the data into both standard segments and custom segments for outbound idoc using exit EXIT_SAPLVEDF_002 of standard function module IDOC_OUTPUT_INVOIC...
i need some sample code
THANKS
PAVAN KHi all,
I am new to this Community In the extension of Standard idoc INVOIC02 with some custom segments like zemail, zfax,,,,how to fill the data into both standard segments and custom segments for outbound idoc using exit EXIT_SAPLVEDF_002 of standard function module IDOC_OUTPUT_INVOIC...
i need some sample code
THANKS
PAVAN K -
Hi experts,
Could u please give some sample codes for filling data into idoc.Hi Nisha,
Go through this userdefined program u can understand .
*& Report ZBT_SEL_PROGRAM *
REPORT zbt_sel_program .
TABLES: mara.
Data declaration
*--Material number selection.
SELECT-OPTIONS: s_matnr FOR mara-matnr.
PARAMETERS:
*--Rec.Partner
p_rcvprn TYPE edi_rcvprn,
*--Message type
p_msgtyp TYPE edi_mestyp.
Internal table declaration
DATA:
*--MARA data
it_mara TYPE STANDARD TABLE OF mara WITH HEADER LINE,
*--To fill the segment Z1MARM
it_temp_mara TYPE STANDARD TABLE OF z1marm WITH HEADER LINE,
*--MAKT data
it_makt TYPE STANDARD TABLE OF makt WITH HEADER LINE,
*--To fill the segment E1MAKTM
it_temp_makt TYPE STANDARD TABLE OF e1maktm WITH HEADER LINE.
DATA: st_edidd TYPE STANDARD TABLE OF edidd WITH HEADER LINE,
st_comm_cont TYPE STANDARD TABLE OF edidc WITH HEADER LINE,
st_mast_cont TYPE edidc.
*--Fetch the data from MARA table
SELECT * FROM mara INTO TABLE it_mara WHERE matnr IN s_matnr.
IF sy-subrc = 0.
SORT it_mara.
ENDIF.
*--Fetch the data from MAKT table
IF NOT it_mara[] IS INITIAL.
SELECT * FROM makt INTO TABLE it_makt FOR ALL ENTRIES IN it_mara
WHERE matnr = it_mara-matnr.
IF sy-subrc = 0.
SORT it_makt.
ENDIF.
ENDIF.
*--Fill the iternal tables which is type the same of Segments
LOOP AT it_mara.
MOVE-CORRESPONDING it_mara TO it_temp_mara.
APPEND it_temp_mara.
CLEAR it_temp_mara.
ENDLOOP.
LOOP AT it_makt.
MOVE-CORRESPONDING it_makt TO it_temp_makt.
APPEND it_temp_makt.
CLEAR it_temp_makt.
ENDLOOP.
*--Fill the segments
LOOP AT it_temp_mara.
st_edidd-segnam = 'Z1MARM'.
st_edidd-sdata = it_temp_mara.
APPEND st_edidd.
CLEAR st_edidd.
ENDLOOP.
LOOP AT it_temp_makt.
st_edidd-segnam = 'E1MAKTM'.
st_edidd-sdata = it_temp_makt.
APPEND st_edidd.
CLEAR st_edidd.
ENDLOOP.
*--Fill Master IDOC
st_mast_cont-rcvprt = 'LS'.
st_mast_cont-rcvprn = p_rcvprn.
st_mast_cont-mestyp = p_msgtyp.
st_mast_cont-idoctp = 'ZMATMAS01'.
*--Create the communication IDOC by passsing master IDOC and control
information.
CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
EXPORTING
master_idoc_control = st_mast_cont
OBJ_TYPE = ''
CHNUM = ''
TABLES
communication_idoc_control = st_comm_cont
master_idoc_data = st_edidd
EXCEPTIONS
error_in_idoc_control = 1
error_writing_idoc_status = 2
error_in_idoc_data = 3
sending_logical_system_unknown = 4
OTHERS = 5
IF sy-subrc = 0.
*--Commit work
COMMIT WORK.
ENDIF.
*--Display IDOC Number.
LOOP AT st_comm_cont.
WRITE: 'IDOC Numbers:',st_comm_cont-docnum.
ENDLOOP.
Rewards some points.
Rgds,
P.Naganjana Reddy -
How to import date through DTW
Hello Experts,
In DTW how can import Date Field in SAP B1, I Try import as string but its not working .
Regards.
ShriX.Hello ShriX,
DTW date has fixed format YYYYMMDD.
Try it.
Thanks,
Gordon -
How to show data through table control
Hi Experts,
I have created an table control through wizard using table EKKO.
I have to populate one internal table( type ekko ), and then show it in output through table control.
Please advise, how to do that and in where i have to write the codes.
I will reward points for every suggestion
Thanks in advance.
regardshi saubrab,
This is kiran kumar.G.I am sending some sample code to populate data into table control check it once.
i will give input in 100 screen. and display table control in 200 screen.check it once once ..ok....
SE38 :(CODE)
*& Module pool YMODULEPOOL_TABLECONTROL1 *
*& DEVELOPER : KIRAN KUMAR.G *
*& PURPOSE : TABLE CONTROL DEMO *
*& CREATION DT : 17/12/2007 *
*& T.CODE : YMODTABLECONTROL1 *
*& REQUEST : ERPK900035 *
PROGRAM ymodulepool_tablecontrol1.
Tables
TABLES: yvbap, "Sales Document: Item Data
vbak. "Sales Document: Header Data
Controls
CONTROLS: my_table TYPE TABLEVIEW USING SCREEN 200.
Global Variables
DATA: gv_lines TYPE i,
gv_lines1 type i,
gv_temp type i,
gv_flag(20) TYPE c VALUE 'DISP',
gv_mode1 TYPE c,
gv_mode TYPE c VALUE 'C'. " C: Change, D :Display
Internal Table
DATA: BEGIN OF gt_item OCCURS 0,
vbeln LIKE vbap-vbeln, "Sales Document Number
posnr LIKE vbap-posnr, "Sales Document Item
matnr LIKE vbap-matnr, "Material Number
matkl LIKE vbap-matkl, "Material Group
arktx LIKE vbap-arktx, "Short Text for Sales Order Item
cflag, "Deletion Indicator
END OF gt_item.
*& Module STATUS_0100 OUTPUT
text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'ZTABLECONTROL' OF PROGRAM 'YMODULEPOOL_TABLECONTROL'.
SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
text
MODULE user_command_0100 INPUT.
CASE sy-ucomm.
WHEN 'DISP'.
SELECT single vbeln
erdat
angdt
bnddt
FROM vbak
INTO (vbak-vbeln,vbak-erdat,
vbak-angdt,vbak-bnddt)
WHERE vbeln = vbak-vbeln.
IF sy-subrc EQ 0.
*Fetch the table control data and place them in Internal Table
SELECT vbeln
posnr
matnr
matkl
arktx
FROM yvbap
INTO TABLE gt_item
WHERE vbeln = vbak-vbeln.
IF sy-subrc EQ 0.
*NO OF line in the Internal Table
DESCRIBE TABLE gt_item LINES gv_lines.
my_table-lines = gv_lines + 20.
ENDIF.
ENDIF.
*Call Screen 200.
SET SCREEN 200.
WHEN 'EXIT' OR 'BACK' OR 'CANCEL'.
*Exit from the Program
CALL TRANSACTION 'SESSION_MANAGER'.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
module STATUS_0200 output.
SET PF-STATUS 'ZTABLECONTROL1'.
endmodule. " STATUS_0200 OUTPU
*& Module copy_data OUTPUT
text
module copy_data output.
*Fetch the current line data from the Table control
read table gt_item index my_table-current_line.
if sy-subrc eq 0.
*Populating data into screen fields
gt_item-vbeln = gt_item-vbeln.
gt_item-posnr = gt_item-posnr.
gt_item-matnr = gt_item-matnr.
gt_item-matkl = gt_item-matkl.
gt_item-arktx = gt_item-arktx.
endif.
SE51:CODE (SCREEN 100)
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
SE51 :CODE (SCREEN 200)
PROCESS BEFORE OUTPUT.
MODULE STATUS_0200.
loop at gt_item with control my_table cursor my_table-current_line.
module copy_data.
endloop.
PROCESS AFTER INPUT.
loop at gt_item.
MODULE USER_COMMAND_0200.
endloop.
HAVE A NICE DAY..
Award points if helpful,kiran kumar.G -
How to fill data in PDF form?
Hi All,
I have a pdf forms(about 100). Now I need to open that forms in the browser. User can fill that form and that data should be filled in the database/XML file. Then when user come again then that form details must be displayed in that form.
Please suggest me some path as I am totally blank about this concept.
Regards.Hi Leonard,
Thank you very much for the reply.Our users have only reader at their side. Can we set up any kind of software implementation at server side? Or with the use of the .NET(C#) ?
Can you please provide me some link to initiate this project? Actually I don't know how to start this.
Any help would be appreciated. -
How to fill data in BusinessPartner - Role Employee - Tab Identification
Hi Experts!
My Program creates a new BP with BAPI_BUPA_CREATE_FROM_DATA.
After that I create the role 'employee' with BAPI_BUPA_ROLE_ADD_2.
In the role employee there is the tab 'Identification' with a block 'personal data' and 'employee data'
how the hell could I fill these two blocks with data (especially the block 'employee data')
thanks for your help in advance!
regards franzDid you finally find out how to populate the additional enhance parametes of segment E1BPEXTC in the HR sending system?.
I would need to implement the same scenario.
Thanks in advance. -
Hi,
I am using NI LabVIEW, NI PXI 4071, and NI PXI 6070E to measure current through a variable resistance. Now, I am using one channel from SCB-68, but I want to add another channel in parallel so that I can have two resistors instead of one that I cam measure current through them.
I have attached a Pdf file showing the setup for hardware in use and LabVIEW code also.
Can anyone look at these files and give me guide lines or ideas that can help me resolving this issue, please.
Thanks in advance.
Best Regards,
Shaheen.
Solved!
Go to Solution.
Attachments:
IV copy for HS.vi 55 KB
Layout of NI Cards.pdf 248 KBYour 4071 can only do one measurement at a time. Your DAQ cannot measure resistance either nor has it got any analogue inputs.
However, you could use a multiplexer and multiplex your 4071 DMM. This wont give you simultaneous measurements but can acquire data one after the other, the speed is obviously dependent on the multiplexer you choose!
Hope this helps.
Beginner? Try LabVIEW Basics
Sharing bits of code? Try Snippets or LAVA Code Capture Tool
Have you tried Quick Drop?, Visit QD Community. -
How to fill date key figure with system date?
Dear All,
We would like to set on specific action (button press) to assign current system date top a date key figure within our infocube.
Any idea how to achieve this?many thanks in advance for any idea!
Kind Regards
Olivier DESFOURDear Khaja,
I'm not exactly using an update rule, i'm using Integrated Planning component.
Customer would like to set this key figure on user action; ie for example
user validate a step within planning process by pressing a button on workbook.
then system is stamping system date within cube.
Hope it helps
Kind regards
Olivier
Maybe you are looking for
-
Bug in Preview in Snow Leopard when opening multiple pdf files at once
I receive 50-200 pdf files by e-mail each day. I have historically saved the pdf attachments to a folder, then selected all the pdf files in the folder (CMD A), then opened all the selected files in Preview (CMD O). After updating to Snow Leopard, do
-
OS authentication in Discoverer (emergency)
Hi all, Can we connect Oracle Discoverer Desktop through OS authentication? If Yes then how it is possible? Please its emergency. Thanks in advance.
-
Time machine keeps OSX from updating to Mavericks - how do I fix?
Keep trying to update my old computer to Mavericks. It's currently at 10.6.8 and totally updated. Everytime I go to install Mavericks, when it gets to the window where you choose where to save it, I try to pick my Hard Drive but I get an error messag
-
Experts in java -behold my question
my problem is: i have a jar.there are two packages in the jar in the fisrt package i have some class call registar. the second jar i have many classes . i want to use a function in registar which loop all the files in the second jar ,and have them in
-
What MRP procedures are available in MM-CBP (Consumption Based Planning)? Note : Do not post basic questions,Please read forum rules before posting. Edited by: Jeyakanthan A on Dec 4, 2011 12:27 AM