Regarding dates.
hi gurus, i have some doubt regarding dates function.
if i enter any date of present month i wand the first date of next month.
for example if i enter any date in january from 01/01/2007 to 31/01/2007 i want
first date of february. ie 01/02/2007. plz help me.
regards
vamsi.
Hi
use this coding
data : d1 type sy-datum,
d2 type sy-datum,
d3 type sy-datum,
d4(8),
m(2),
y(4).
d1 = sy-datum.
CALL FUNCTION 'BKK_GET_MONTH_LASTDAY'
EXPORTING
I_DATE = d1
IMPORTING
E_DATE = d2 .
write : d1.
skip 3.
m = d2+4(2).
y = d2+0(4).
concatenate y m '01' into d4 .
d3 = d4.
write : / d3.
write : / d2.
write / '***********2 month****************************'.
d3 = d2 + 1.
CALL FUNCTION 'BKK_GET_MONTH_LASTDAY'
EXPORTING
I_DATE = d3
IMPORTING
E_DATE = d2 .
write :/ d3,
/ d2.
write / '**************3 month ***************************'.
d3 = d2 + 1.
CALL FUNCTION 'BKK_GET_MONTH_LASTDAY'
EXPORTING
I_DATE = d3
IMPORTING
E_DATE = d2 .
write :/ d3,
/ d2.
Similar Messages
-
Appropritate forum to put queries regarding data archiving
Hi All,
Which one is the appropriate forum to put queries regarding data archiving?
Thanks in advance.
VithalprasadYes you can use this forum, also there is one forum for Data Transfers.
Regards,
Altaf Shaikh -
hi all,
i need some information regarding date types infotype 41.
i need to print date types in sequential manner like dar01 dar02 dar03 like upto 12 date types.
can you please suggest me how should i print them.
thanks,
madhavi.Hi,
Steps to create a HR Infotype:
1) Go to Transaction PM01.
2) Enter the custom Infotype number which you want to create (Should be a 4 digit number, start with 9).
3) Select the 'Employee Infotype' radio button.
4) Select the 'PS Structure Infotype'.
5) Click on Create... A separate table maintenance window appears...
6) Create a PS structure with all the fields you want on the Infotype
7) Save and Activate the PS structure
8) Go back to the initial screen of PM01.
9) Click on 'All' push button. It takes a few moments.
10) Click on 'Technical Characteristics'. Infotype list screen appears
11) Click on 'Change'(pencil) button
12) Select your Infotype and click on 'Detail' (magnifying glass) button
13) Give 'T591A' as subtype table
14) Give 'T591S' as subtype txt tab
15) Give your subtype field as subtype field
16) Save and come back to PM01 initial screen
17) Click on 'Infotype Characteristics' ... Infotype list screen appears
18) Click on 'Change' (pencil) button
19) Click on 'New Entries'
20) Enter your Infotype number and short text
21) Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotype's infotype characteristics screen and use as the reference to fill yours)
22) Save your entries.
23) Now the Infotype is created and ready to use.
24) If you want to change the layout of the Infotype as per your requirement...
25) In the PM01 initial screen...Select 'Screen' radio button and give 2000 as the screen name, then click on edit.
26) In the next screen.. Select 'Layout Editor' and click 'Change'.
27) Screen default layout appears...here you can design/modify the screen..change the attributes of the fields..etc.
28) Save and activate. (Don't forget to 'Activate at every level)
Subtype Creation :
Transaction PM01 Goto Subtype Characteristics. Click on Append and then subtype. Enter the name and description of subtype on screen.
Then goto technical Characteristics and maintain the details of subtype there. I.e name of subtype i.e. component name defined in PSnnnn. Subtype table is T591A.
Subty.text tab is T591S and time const tab is T591A.
See:
http://help.sap.com/saphelp_46c/helpdata/en/4f/d5268a575e11d189270000e8322f96/content.htm
HR related site:
http://www.sapdevelopment.co.uk/hr/hrhome.htm
Enhancement of Infotype
Check the following
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAXX/PYINT_INFOTYP.pdf
Infotype Enhancement overview screen
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60a7586d-edd9-2910-68a8-8204303835a1
with regards,
Hema SUndara. -
Urgent regarding Data & Task Audits Back Up
Hi Experts
Here my question is regarding Data Audit and Task audits in V 11.1.2.1
-->If we take the back up of Data & Task audit tables data in to other backup_tables in same schema how this can be viewed through task audit and data audit through HFM?
-->Whether any third part tools available to audit the tasks (DATA & TASK ) information...?
-->Whether EPM maestro can be used here..?
Thanks in advance
Edited by: RajaKK on May 29, 2012 6:19 PMUse the Audit Extract utility bundled with HFM 11.1.2.1 to export this information periodically to a CSV file that you can view offline through any text editor, or even Excel. There is a command line feature for this as well, so you could incorporate this into a batch routine.
For anyone attending Kaleidoscope in San Antonio, TX next month, I will present the various utilities that ship with HFM including this one. Hope to see you there!
--Chris -
Hello,
we have the phenomena that when an application is commiting a transaction and then terminating,
often not all events regarding Data Cache are dispatched by the TCP kodo.RemoteCommitProvider.
It seems that the JVM on termination is not waiting until RemoteCommitProvider has dispatched all events regarding Data
Cache. In this way we sometimes loose some cache synchronization and some of our customers run into serious problems.
Is there a way to guarantee that all Data Cache events are dispatched before the aplciation terminates
(maybe implementing a shutdown hook?).
best regards
Guenther Demetz
Wuerth-Phoenix SRLHi,
as nobody answered to my question I try to explain it more simple:
Are the TCP-kodo.RemoteCommitProvider threads acting as user threads or as threads of type 'deamon' ?
I hope that soon someon can answer
best regards
Guenther Demetz
Wuerth-Phoenix SRL
G.Demetz wrote:
Hello,
we have the phenomena that when an application is commiting a transaction and then terminating,
often not all events regarding Data Cache are dispatched by the TCP kodo.RemoteCommitProvider.
It seems that the JVM on termination is not waiting until RemoteCommitProvider has dispatched all events regarding Data
Cache. In this way we sometimes loose some cache synchronization and some of our customers run into serious problems.
Is there a way to guarantee that all Data Cache events are dispatched before the aplciation terminates
(maybe implementing a shutdown hook?).
best regards
Guenther Demetz
Wuerth-Phoenix SRL -
I need some help regarding data element ZEXPDT. I used it in an infoquery that was transported to QAS and it does not exist in QAS. I thought it might be locked in a transport, but the below screen clip says it is not locked. It was created in 3/2014. Thanks.
Either trick the system, SE11, add a space at end of text desciption and save,
Or call transport workbench (SE01, SE10) create a transport request or use an existing one, then double-click on a task, switch to modify mode, add a line with R3TR DTEL name of the data element, save, then object list, lock in request/task menu.
Or SE80, contextual menu of data element. (other functions, write transport entry)
Regards,
Raymond -
I am unable to access iTunes. Receive error regarding data execution prevention. I've changed the Performance Options to exclude DEP for iTunes and I've tried unloading/reloading. Still no success. Suggestions?
Try updating your QuickTime to the most recent version. Does that clear up the DEP errors in iTunes?
-
Hi All,
I am using RSA3 to check data in Logistics DataSources such as 2LIS_03_BF, 2LIS_03_UM.
However, our functional Consultants say that there is data in R/3.
How to check whether there is data in R/3 and if available how to extract that data so that I will be able to check whether I can extract data or not using Extract Structure???
Regards
YJHi vijay,
These data source are proving the inventory information . So you need to extract this information by LO- Extrantion method for that you can follow the following steps
1. Activate the structure date source by using the T.Code LBWE
2. Delete the set up table for application are 03 by using T.cde LBWG
3. After deleting the setup tables you need fill up these setup table by T.Code OLI03BW according you business requirement
4. After complete of filling the set up table you need to initialize on these data source by using the info package from BW Side
5. After initialization you need to activate the update method for inventory information.
Regards,
PRK -
Hi all,
Is there any FM available to convert char to floatHi Ravi,
Try these FM. Chk if it satifies ur requirement.
CEVA_CONVERT_FLOAT_TO_CHAR
FLTP_CHAR_CONVERSION
Try this code also.
REPORT Z_Conv.
DATA : f TYPE f.
DATA : s(15) TYPE c.
f = '41'.
CALL FUNCTION 'FLTP_CHAR_CONVERSION'
EXPORTING
DECIM = 2
EXPON = 0
input = f
IVALU = ' '
MASKN = ' '
IMPORTING
flstr = s
WRITE :/ f.
WRITE :/ s.
<b>***Reward Points if Useful</b>
Regards
Gokul -
Hi All,
Hi i want to implement the functionality as below, if i gave the Date as Input then i have to get the Respective Timezones is it possible, if yes then can u plz produce a sample snippet of it.
With Regards,
Justinjava.text.SimpleDateFormat to parse and format a date in any time zone.
-
Regarding Date Range parameter
hello,
in purchase order, i want to pass date range parameter. For eg .
I want to fetch data from 21/11/2011 to 25/11/2011
how to pass parameter for this?? or do i need to create any formula??
if yes then how/???????
awaiting for soonest reply.hi,
you need to do this in the Formula workshop.
this formula {OPOR.DocDate} = {?DateRange}
{OPOR.DocDate} - this is the PO DocDate
{?DateRange} - this is what you have done in step #4 in my 1st post. in this example "DateRange" is the name of my Parameter.
Quote from you post
{OPOR.DocDate} = {?25/11/2011 to 30/11/2011} In this way should i write a formula??????
change this {?25/11/2011 to 30/11/2011} to the name of your Parameter. refer to step #4.
regards
Fidel -
Doubt regarding Data transfer from R3 to BW
Hello Experts,
I have a basic questions to ask,I am curious to know that how the data is transfered from a
remote system (let say R3 or CRM) to BW system.Though i know that two systems
make a RFC connections and make use of idocs.
But if somebody can through more light on this and help me clear my doubts.
Also case when the data is transfered with in BW.
Thanx and Regards
PriyankaHi,
Chek in teh follwoing PDF you will get some Idea.
http://sap-idoc2edi-consulting.com/pdfFiles/EDI_IDoc_Overview.pdf
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/908836c3-7f97-2b10-4cb8-e6790361c152
Thanks
Reddy -
hi..has anyone wrote a cron shell script to shutdown, start in mount mode, flash on, enable managed recovery..etc..for data guard..something generic i can start with..thanks
Hi,
I dont have an script but you can do it from Grid control.
Regards,
Tom
http://oracledba.cz -
Query regarding data extraction
Hello All,
I am new to ABAP development. I have been assigned to work on a report, where I have to fetch data for a SC, which will be extracted into an flat file.
Now my requirement is as below:
Each shopping cart will have a number of different records. The records are of the following types
Header – Marked with record type = “HEAD”
Line item – Marked with record type = ”ITEM”
Accounting line – Marked with record type = ”ACC”
Approval record – Marked with record type = ”APP”
Now in this manner I have to fetch the data in an single flat file. Now I am really confused how I am going to do it. I have the tables for header, item, accounting line, approval records. Now my question is am I have to 1st fetch data for header then line then accounts and approval then join this into my final internal table?? Is this the correct approach?
I am a beginner and your help will be highly appreciated.
I have attached a flat file for your reference.
Regards,
SarnavaSo long as you have some unique identifier between each of these tables this shouldn't be a problem. I of course can't see what data you have in the tables but lets say for example you have an account number, then you can create your flat file something like this:
head,account123,headfield1,headfield2... etc
item,account123,itemfld1,itemdfld2,....etc
item,account123,itemfld1,itemdfld2,....etc
then the same logic of course for the other two lines i.e. the first part of the line is a field which contains "head" or "item" or "acc" or "app", then the unique identifier and then the rest of the records. And you can make it comma seperated or whatever you want. The user picking this up can then also sort it. -
Query Regarding Data transfer ( Pls Respond Quickly)
Hi,
I need to download the data to XML file. I have hard coded the file path in the Report Program. This Report should be shceduled for every night.
But the problem is that since I have hard coded the path, whenever the program is deployed to production system there will be a problem regarding the file path.
Can any body throw some light on how to avoid hard coding of the filepath ?
Reward points are assured.
Best Regards
Bhagat.Hey Kishan,
In that Program the file path was hard coded. Can you let me know the alternate way so that I can avoid hard coding.
The thing is that that report should be scheduled for every night.
Best Regards
Bhagat.
Maybe you are looking for
-
How do I group the responses in a single cell...
Hello, I have created a form in FormCentral. The form is broken down into several groups of checkboxes. Each group has a heading such as: 5 years old, 6 years old, 7 years old, etc... With the form created using FormsCentral, exported as a PDF (to
-
Can't remove Contains() handler from SqlFunctionCallHandler - why?
I'm trying to amend some Entity Framework functionality at runtime by using reflection. The following code snippets I've been using to get some feeling for the Entity Framework's internal functionality. Please don't ask what I'm using this for - at t
-
Slideshow on 1st monitor (while in dual monitor mode)
Apparently, Lightroom expects you to always use the second monitor for slideshows and does not allow you to use the first (no options available as far I my research went). My 1st monitor is bigger and would be my choice for slideshow presentations. I
-
Java swing and threading issue
i am trying to update swing components from some thread. at my first try, i noticed this was a disaster. upon further research, i found out about the single-threaded model of swing events (i.e. event dispatching thread). i did more research and could
-
Goods movement in collective order
Hi all, We have ticked the indicator for 'Goods movement for collective order' in OPJH, still we are not getting required results. The goods receipt against the child order does not occur. Please help. SmanS