Requires a user to input a date (condition [%0])
Hi,
I'm trying to write a query that requires a user to input a date (condition [%0]). The data brought back would show invoices with activity but I need to get only the invoices that are 60 days past due from the date the user inputs.
--SELECT T0.[DocNum]'Invoice No.',
--T0.[CardCode],
--T0.[CardName],
--T1.PYMNTGROUP,
--T0.[DocDate],
--T0.[DocDueDate],
--DATEDIFF(DAY,T0.DOCDUEDATE,GETDATE())'Past Due',
--T0.[DocTotal] 'Balance Due',
--MAX(T2.RECONTACT)'Last Activity',
--max(t2.details)'Activity Details'
--FROM OINV T0 LEFT JOIN OCTG T1 ON T0.GROUPNUM=T1.GROUPNUM LEFT JOIN OCLG T2 ON T0.CARDCODE=T2.CARDCODE
--WHERE T0.[Docstatus] ='o' and
--T0.docduedate<getdate() -60
--GROUP BY T0.[DocNum], T0.[CardCode], T0.[CardName],T1.PYMNTGROUP, T0.[DocDate], T0.[DocDueDate] ,
--DATEDIFF(DAY,T0.DOCDUEDATE,GETDATE()),T0.[DocTotal]
Hi,
Welcome you post on the forum.
Try this:
Declare @ToDate DateTime
SET @ToDate = /(SELECT T0.DocDate FROM OINV T0 where T0.DocDate =/ '[%0\]'
SELECT T0.DocNum'Invoice No.',
T0.CardCode,
T0.CardName,
T1.PYMNTGROUP,
T0.DocDate,
T0.DocDueDate,
DATEDIFF(DAY,T0.DOCDUEDATE,@ToDate)'Past Due',
T0.DocTotal 'Balance Due',
MAX(T2.RECONTACT)'Last Activity',
max(t2.details)'Activity Details'
FROM OINV T0 LEFT JOIN OCTG T1 ON T0.GROUPNUM=T1.GROUPNUM LEFT JOIN OCLG T2 ON T0.CARDCODE=T2.CARDCODE
WHERE T0.Docstatus ='o'
GROUP BY T0.DocNum, T0.CardCode, T0.CardName,T1.PYMNTGROUP, T0.DocDate, T0.DocDueDate ,
DATEDIFF(DAY,T0.DOCDUEDATE,@ToDate),T0.DocTotal
Having DATEDIFF(DAY,T0.DOCDUEDATE,@ToDate)>60
Similar Messages
-
Hello there,
I am totally green in web development.
my goal is to, for the user will input a date range from and
to and will out put the records in the intranet when they press a
button.
However, the good news is: I have experience in programming.
I have written applications for desktop in VB>NET and I
understand RDBMS /sql concepts .
But CF and WEB development is new to me.
My current projects involves in connecting to DB and testing
it. (it works fine)
And outputting reports by to a intranet page. (records)
i need help on how to start this asap. I will even do some
practice at home.
Tools I have at work
• Development server(test)
• Home site.
• Toad for db connection.
• Html reference guide
• Cf dummies book.
How can start my projects.
(ex. Create cf, outputpage?)
seriously, I am new to this.
Thanks.Well, I had a really nice response with some concepts and
ideas for you to practise on etc, but these dumb forums timed out
and I lost it all
If you want to pop me an email we could probably do a few
exercises together that way - or even by MSN Messenger if you want. -
Asking user to input some data
Hi,
I can't find if this is possible to run javascript, that will display new window (like a form) that will contain some text areas to input some data by user, and some checkboxes, that user can mark/unmark. According to values user will type, and option user will chose the scrypt will have another functionality.
Thanks in advance for your replies.
GregoryYes, you can bring up either simple UI elements or quite complex dialogs. Details are in the Acrobat JavaScript documentation.
-
Report that Forces a User to Input a Date Range
Greetings,
I am generating a work times report and would like to force the user to select a date range when the report first opens. This would pull only the data for the specified range from my database.
I prefer drop down lists or calendars, but am wondering if this is possible.
I guess one other important element is that I would like to "dumb down" the interface, so the user of the report does not have access to all of the features of the program. Basically I only want them to have read privileges.
I'm new to CR, so would appreciate any guidance.
Thanks
PeterHere is what the Help system has to say about the read only feature:
You can make a report, section, area, or object read-only so it can't be formatted.
When you set this option, choices in the Format Editor become inactive.
The formatting options that are usually available on the toolbars or shortcut menus are also suppressed for the report or object.
Note: This feature is for your convenience in protecting report formatting; it is not intended to be used as report security.
Also, if you want the user to be prompted for parameter values each time they open the report, take the check mark out of the
"Save Data with Report" option.
Jason -
How to avoid user from entering new price condition in return order
Dear Expert
We are facing a scenario where we make return order; the Price is copied from the invoice. And it is working perfectly. The system does not allow us to change the price.
The issue we are facing here is that user can input new condition like discount /premium and change the net value for the return order pricing, and this will reflect in the credit note for returns.
Is there a way to restrict the user from entering any pricing condition in the header or item conditions tab.
although we cannot change the original price coming from invoice referenced for return order, but the user can input new price conditions as below. This must not be allowed.
The price must come according to the Qty being referenced.
While making the credit for returns, the user has a chance of further making changes to the net value by adding new conditions. Hence this must also be restricted for any changes.
Thanks
Edited by: Lakshmipathi on Jan 31, 2012 6:55 PM
Thread Locked - Reason Cross Postokie .... i will tell briefly what is the problem ....
Take a scenario wherein a user has logged into my application and he is performing a task which will put his user id and his employee id into the session. Then he opens another window by using either ctrl+n or through files->new window.
So now a new browser will open but the session will be same ..... in this newly opened browser, user performs some operation which will remove the user id and employee id from the session .... Now if he again comes back to the first window and tries to do some operation, then a null pointer exception will be thrown saying that the employee id is null .... because he has deleted that in the newly created browser ..... to avoid this situation what can we do ???? can you please help me in this regard ??? you got my problem right !!! -
How do I prompt a user to enter numeric data while a vi is running?
I am writing a Labview vi that to calibrate angle sensors. I need to prompt the user to enter numeric or string data for the low and high angle points so the vi can then calculate the span based on these values and the a/d output differences at these two points. I can't use preset points because the angle data is resolute to 0.1 degrees, and having the user raise or lower a boom to a predefined point is not within reasonable expectation. I would be much obliged for any help that is offered.
Build a subVI that has two numeric controls for the user to input the data (name them something appropriate like "High Angle" and "Low Angle").
Add and "Enter" button to the front panel.
Set the subVI preferences to include Open Front Panel When Called and Close Afterwards if Originally Closed. these are in Windows Appearance, Customize.
Put a delay (say 50 ms) and a while loop on the block diagram to wait until someone presses the button.
Connect your front panel controls to outputs on the connector pane.
This will pop up a dialog type of window when you need the user to input data. And make the dialog window disappear when done. You can also add valid data checking to the subVI and whatever else you need.
Rob -
Need to automate report having user response in a date prompt variable
Hi,
I've a webi 4.0 report which is having date prompt as a input from the user. This report has multiple data providers and is using variable as
=FormatDate (ToDate(UserResponse("Report Date");"dd Mmm YYYY");"Mmmm YYYY") in the report. Report Date is the user prompt enabling user to input the date and is usually the last day of Month.
I want to automate the report so that user dont have to input the date in Report Date prompt. How do I implement this?
If I simply remove Report Date being used as a filter, report will run without asking user but this Report Date is being used as a variable and will #ERROR.
Please advise.
Thanks
PriteshPritesh,
Well you can create a Prompt at universe level with if and else as user input or Month end date( eom function ) or you can create variable today at universe level and schedule the every month end.
Thanks,
Venkat -
User input in date format in data form is not identified in BR
Hi all,
In a data form,user provide input for start month and end month against account members "Transfers Start_Month" and "Transfers End_Month".
Eg:
Transfers Start_Month = Jul
Transfers End_Month =
Nov
When i tried to use the above 2 members in BR as below,
@MEMBER(@NAME("Transfers End_Month"->"BegBalance"->"SY_Forecast"->"MF04"))
so that it should return the user input month.Eg:"Nov"
Above method is not working and its not returning any months.
I tried using CDF function as below,which also dint return the user input month.
@MEMBER(@NAME(@HspDateToString("Transfers End_Month"->"BegBalance"->"SY_Forecast"->"MF04")))
Kindly enlighten on how to handle this scenario.I need the user input month to be returned in BR.
Thanks!Hi,
Please find the below IF condition where we try to check if the period dim member is between "Jan" to the value entered by user in data form(Eg:"Nov"),then assign 200 to headcount.
IF(@ISMBR("Jan":@MEMBER(@NAME("Transfers End_Month"->BegBalance->SY_Forecast->MF04))))
headcount->SY_Forecast->MF04=200;
ENDIF;
In above script,@MEMBER(@NAME("Transfers End_Month"->Begbalance->SY_Forecast->MF04)) should return the value entered by user in data form(Eg: "Nov")
Note: Jan to Dec are level 0 members of period dim
Kindly enlighten if any additional functions/conversions from date to string i'm missing out.
Yes,i'm using calc manager to write the rule.
Thanks! -
I have a project that I'm working on that I could use some help on.
Some background on it is I'm taking data from a balance via RS-232 (can be a selectable list of balances), and then communicating with them on their own separate COM port. I need these to then run in parallel to then take masses in regular increments and then output them to a graph and/or TDMS file.
What I'm trying to have is that a subVI prompts the user to how many simultaneous runs will be going.
Then I will want multiple pop prompts (one for each simultaneous run) which will have initial data input (data cluster) and then associate these with the COM port and the specified balance.
I initially thought of utilizing a For Loop this way but I can't get these windows to pop up multiple times while storing their own values in say a cluster array. Can anyone give me any ideas to get me a little further?Cameron,
I've created a prompt for the user to select the number or runs to be run simultaneously.
This then should trigger the amount of prompts the user needs to input - ie VISA resource, and headers to label the "samples".
I want this to be done in multiples (somewhere around 1-10 simultaneous runs - bounded by the program) so that data points from multiple sources can be taken and graphed/saved to file. I just am having issues with the loop situation to be able to keep prompting the user X times and also output the data to the front panel. Originally i thought I could somehow manipulate a tab control container but I'm getting roadblocked.
Does that help you understand what I'm trying to do?
I've attached an image of what I want the user to input for each sampling.
Attachments:
Capture11.JPG 24 KB -
How to prevent user from inputting in a Date field?
Hi, everyone
I have another small problems, for a Date field, user can choose from a date window or input from keyboard, is there any way to forbid user to input?
I want to make the date field behave like a Drop-down list. User can just choose from list, can not input. is it possible?
ThanksWhat is the objective of disabling date entry? Are you concerned about the date format?
Steve -
My carrier is Straight Talk (using ATT network) and they require the user to enter the APN settings in order to access their data network. My Iphone 4s is factory unlocked but I can not get to the Cellular Data Network tab to enter the settings?
Yes ATT hides the APN settings so when you try to use a st sim it automatically reads on AT&T network so the APN settings are hidden and cannot be accessed however you can go to apn.straighttalk.com on you'r phone and select APN/data settings then select AT&T then iPhone and a screen will pop up asking if you would like to install the profile for whatever reason it's not verified but works fine. You can also go to www.unlockit.co.nz and set up a straight talk APN profile that is verified not sure exactly what that means but both work to get the data working on the phone for straight talk but it does not make the MMS work. There are a couple other methods I have read about one is on howardforums using ibackupbot to manually change the files on the phone I haven't been able to get mine to stick using that method but other people have and there is a sim swap method to trick the phone to reveal APN settings using a tmobile sim I have not tried this but other people have with success. The last two methods mentioned will make both data and MMS work
-
How do I configure an IP Printer that requires a user code?
Hi, I am using my Macs in a shared office environment where we have a Ricoh printer accessible via an IP address. The instructions for configuring the printer are written for Windows Vista and Windows XP users (sigh). I am able to add the printer by typing in its IP address, and I get a list of some printer options. But apparently this printer requires clients to log in with a user code before starting a print job and therefore my print commands from my Mac don't get processed. How do I do this from Leopard?
Thanks in advance for your help.DXB Law wrote:
Yes, I am aware that it is my own IT management that requires the user code, not the printer,
I only mentioned it because there are many people that think it is all "the printer's fault" that they need a user code.
and my IT management has given me step-by-step instructions for how to configure Windows Vista to transmit that user code to the printer. But it seems that you are saying there is no configuration option in Leopard that allows for the transmission of a user code to a network printer?
I don't know enough about Windows to comment on the different way things are handled. In the case of the Ricoh printers, the user code is submitted with the print job. PCL printers include PJL data along with the job. For PostScript printers, Ricoh does supply drivers with printer extensions that allow for the user to input their user code via the normal user interface.
For non-PostScript network printers, Ricoh uses either a PCL 5 variant or PCL 6/PCL XL. There are several generic drivers for these printer languages, so users on most, if not all, other operating systems can print to the Ricoh printers. Further, Ricoh actually provides the PPDs for their printers that include all the extra functions (user codes, stapling, etc) that are available for a particular model. These PPDs get included in the OpenPrinting foomatic database. That way users of any system that can utilize the foomatic scheme will be able to print to Ricoh printers. This is not limited to Mac OS X. Foomatic supports CUPS, LPRng, LPD, GNUlpr, Solaris LP, PPR, PDQ, and CPS. It would be nearly impossible to write a specific graphical user interface for all the variants of Unix and Linux. That is why you must resort to editing a PPD file by hand.
You may be able to eventually help other Mac OS X users by letting Ricoh tech support politely know that it would be *most helpful* to have an easy to use user interface to input your user code. With there being more and more Mac OS X users, I hope they will do something to keep their customers happy.
Just remember, there are some manufacturers that still use proprietary printer languages for network printers. If they don't support your system, tough luck.
Matt -
User exit for additional data B for sale order item .
Hi., all
my client requirement is
( This business requirement will make the Last Price for a given item be visible during order entry. )
u2022Retrieve & display during order entry, the most recent unit price given to a customer for a specific item, from the Billing data.
. Display the Last Price under Additional Data B Screen
add new field (last extended price) in additional data b screen.
after that 1. Using the Sales Order Material Number (VBAP-MATNR), Sales Order Sales Organization (VBAK-VKORG), Sales Order Distribution Channel (VBAK-VTWEG), Sales Order Division (VBAK-SPART), Sales Order Sold-to Number (VBPA-KUNNR for VBPA-PARVW=u2019AGu2019) to access the Billing Items By Material Index Table (VRPMA) and specify a billing date (VRPMA-FKDAT) of less than 60 days from current Sales Order requested delivery date (if specified at header VBAK-VDATU or at the schedule line level (VBEP-EDATU). This will result in all the billing documents where the Sold-to bought the item but isnu2019t completely refined as of yet. Retain the billing document (VRPMA-VBELN), item (VBPMA-POSNR), and billing date (VRPMA-FKDAT) in a temporary table to pass to number 2 as the input.
2. Use the billing document (VRPMA-VBELN) and item (VRPMA-POSNR) to read the Sales Document Partners Table (VBPA) where the partner function (VBPA-PARVW = u201CSHu201D) and the Sales Order Ship-To (VBPA-KUNNR for VBPA-PARVW=u2019WEu2019) to select ONLY billing documents that are for that given ship-to location. This filters out only billing documents relevant for that ship-to location.
3. From the resulting list of billing documents, select the most recent date (VRPMA-FKDAT) which will refine the search for the last Billing Document (VRPMA-VBELN) and item (VRPMA-POSNR).
4. Using the most recent Billing Document (VBPA-VBELN), access the Billing Document Item Table (VBRP). To result in the Last Extended Price as VBRP-KZWI1.
5. This price will be an extended price which needs to be calculated as a u2018unit priceu2019. For this billing item, select the sales unit (VBRP-VRKME) to determine if the sales unit is in cases or eaches.
a. If the unit of measure is in cases, then simple math is required to divide the Last Extended Price (VBRP-KZWI1) by the billing quantity (VBRP-FKIMG). Standard rounding should apply when .005 results in a .01.
how to achive this ?Hi Chakravarthy,
use the Exits provided in SAPMV45A -includes MV45*ZZ and screen exits as well 8309 8310 8459, 8460. Just be sure to
use zznnnnnn include in the SAP provided forms instead of coding directly in the forms.
You can check below user exits:
MV45ATZZ :For entering metadata for sales document processing. User-specific metadata must start with "ZZ".
MV45AOZZ:
For entering additional installation-specific modules for sales document processing which are called up by the screen and run under PBO (Process Before Output) prior to output of the screen. The modules must start with "ZZ".
MV45AIZZ:
For entering additional installation-specific modules for sales document processing. These are called up by the screen and run under PAI (Process After Input) after data input (for example, data validation). The modules must start with "ZZ".
MV45AFZZ and MV45EFZ1:
For entering installation-specific FORM routines and for using user exits, which may be required and can be used if necessary. These program components are called up by the modules in MV45AOZZ or MV45AIZZ.
Reddy -
Hi Jagadish,
The OLE error code of 0x80020003 translates to "Member not found." This may
indicate that the parameter is not properly defined as a Parameter field in
the Crystal Report you're using.
Additionally, the date format you're using is wrong. Crystal requires that
you pass a date as "Date(yyyy, mm, dd)." Your example, then, should read:
l_tdParam : TextData = New();
l_tdParam.SetValue('Date(2000, 03, 15)');
l_CrystalRepObj.PutParameterFields(0, l_tdParam.Value);
I hope this helps.
-Katie
Katie Tierney
Akili Systems Group
601 Jefferson, Suite 3975
Houston, Texas 77002
Office: (713) 655-1400
Cell: (409) 255-1643
"The bitterness of poor quality remains long after the sweetness of low
price is forgotten" --Larry Anderson
-----Original Message-----
From: Jagadish_Kumarnacre.com [mailto:Jagadish_Kumarnacre.com]
Sent: Wednesday, March 15, 2000 9:11 PM
To: Katie Tierney; kamranaminyahoo.com
Subject: RE: (forte-users) Any inputs on PutFormulas(...) method of
Crystal Report's ActiveX object
Hi Katie,
I am thankful for your time and effort.
I have a problem here. I did exactly the way you have suggested, but I get
this
exception.
SYSTEM ERROR: Error during Invoke; status code: -2147352573(0x80020003)
Class: OLEException with ReasonCode: OLE_ER_RESOURCE
Last TOOL statement: method DebugState.RaiseException
The parameter I want to set is a date type. This is the only parameter in
the
report.
First trial:
l_tdParam : TextData = New();
l_tdParam.SetValue('03/15/2000');
l_CrystalRepObj.PutParameterFields(0, l_tdParam.Value);
Second Trail:
l_dtdParam : DateTimeData = New();
l_dtdParam.SetCurrent(DR_DAY);
l_CrystalRepObj.PutParameterFields(0, l_dtdParam.TextValue.Value);
Do you think I am going wrong somewhere here. Please suggest.
Once again, I am thankful for your time and effort.
Regards,
Jagadish K Kumar
May I suggest:
1. Talk to Forte Consulting and get ReportKit. It's inexpensive, and the
Forte Consultant can help you get it set up quickly. It's a great product.
2. The following code has worked for me in the past (I have no way of
testing it now, but think it should still work):
// ptd_Parameter_Array is an ARRAY of TextData containing the
// VALUES to be placed in the parameter fields.
// Since Crystal Reports uses a zero-based array numbering
// scheme, we need to set up a counter and set its initial
// value to 0.
li_Counter : integer = 0;
for eachParam in ptd_Parameter_Array do
self.PutParameterFields(index = li_counter, param2 =
eachParam.Value);
li_Counter = li_counter + 1;
end for;
The VariantVoidResult is NIL by default, and you shouldn't need to worry
about it at all. It's the result that the Crystal OCX sends back to Forte.
The Index starts at 0, and continues to the number of parameters - 1.
The Param2 value is the string that contains the actual parameter value.
For example, if I have defined a Crystal parameter called "Country," then I
would send "USA" as the string value for param2.
I hope this helps (and I STRONGLY suggest ReportKit).
Regards,
-Katie
Katie Tierney
Akili Systems Group
601 Jefferson, Suite 3975
Houston, Texas 77002
Office: (713) 655-1400
Cell: (409) 255-1643
"The bitterness of poor quality remains long after the sweetness of low
price is forgotten" --Larry Anderson
-----Original Message-----
From: Jagadish_Kumarnacre.com [mailto:Jagadish_Kumarnacre.com]
Sent: Wednesday, March 15, 2000 9:43 AM
To: kamranaminyahoo.com
Subject: (forte-users) Any inputs on PutFormulas(...) method of Crystal
Report's ActiveX object
Hi,
Could someone give me inputs on how to use PutFormulas(index: i2, param2:
string, _VariantVoidResult = NIL) method of Crystal ActiveX object.
I want to use this method to modify Crystal Report formulas. I would like to
know
1. index parameter - what is the domain, or expected values to this
parameter
2. param2 parameter - How to formulate this?; a sample template please;
3. _VariantVoidResult parameter - what is the significance of this
parameter?
A working example will help me a lot.
Thanks in advance.
Jagadish K KumarHi Katie,
I am thankful for your time and effort.
I have a problem here. I did exactly the way you have suggested, but I get this
exception.
SYSTEM ERROR: Error during Invoke; status code: -2147352573(0x80020003)
Class: OLEException with ReasonCode: OLE_ER_RESOURCE
Last TOOL statement: method DebugState.RaiseException
The parameter I want to set is a date type. This is the only parameter in the
report.
First trial:
l_tdParam : TextData = New();
l_tdParam.SetValue('03/15/2000');
l_CrystalRepObj.PutParameterFields(0, l_tdParam.Value);
Second Trail:
l_dtdParam : DateTimeData = New();
l_dtdParam.SetCurrent(DR_DAY);
l_CrystalRepObj.PutParameterFields(0, l_dtdParam.TextValue.Value);
Do you think I am going wrong somewhere here. Please suggest.
Once again, I am thankful for your time and effort.
Regards,
Jagadish K Kumar
May I suggest:
1. Talk to Forte Consulting and get ReportKit. It's inexpensive, and the
Forte Consultant can help you get it set up quickly. It's a great product.
2. The following code has worked for me in the past (I have no way of
testing it now, but think it should still work):
// ptd_Parameter_Array is an ARRAY of TextData containing the
// VALUES to be placed in the parameter fields.
// Since Crystal Reports uses a zero-based array numbering
// scheme, we need to set up a counter and set its initial
// value to 0.
li_Counter : integer = 0;
for eachParam in ptd_Parameter_Array do
self.PutParameterFields(index = li_counter, param2 =
eachParam.Value);
li_Counter = li_counter + 1;
end for;
The VariantVoidResult is NIL by default, and you shouldn't need to worry
about it at all. It's the result that the Crystal OCX sends back to Forte.
The Index starts at 0, and continues to the number of parameters - 1.
The Param2 value is the string that contains the actual parameter value.
For example, if I have defined a Crystal parameter called "Country," then I
would send "USA" as the string value for param2.
I hope this helps (and I STRONGLY suggest ReportKit).
Regards,
-Katie
Katie Tierney
Akili Systems Group
601 Jefferson, Suite 3975
Houston, Texas 77002
Office: (713) 655-1400
Cell: (409) 255-1643
"The bitterness of poor quality remains long after the sweetness of low
price is forgotten" --Larry Anderson
-----Original Message-----
From: Jagadish_Kumarnacre.com [mailto:Jagadish_Kumarnacre.com]
Sent: Wednesday, March 15, 2000 9:43 AM
To: kamranaminyahoo.com
Subject: (forte-users) Any inputs on PutFormulas(...) method of Crystal
Report's ActiveX object
Hi,
Could someone give me inputs on how to use PutFormulas(index: i2, param2:
string, _VariantVoidResult = NIL) method of Crystal ActiveX object.
I want to use this method to modify Crystal Report formulas. I would like to
know
1. index parameter - what is the domain, or expected values to this
parameter
2. param2 parameter - How to formulate this?; a sample template please;
3. _VariantVoidResult parameter - what is the significance of this
parameter?
A working example will help me a lot.
Thanks in advance.
Jagadish K Kumar -
Abap Code populate only the entries withUser Input Posting Date =pstdate
Requirement: I have Posting Date for all Objects Now i want to create the <b>Variable PSTVAR</b>such that the variable will populate <b>only the entries with
User Input Posting Date(During Report Execution) >=greater than equal to Posting Date(OPSTDATE). .</b>
<b>Example</b> POSTING DATE = 03032007
POSTING DATE = 01012006
IF USER INPUT DATE = 01012007
Then only POSTING DATE = 03032007 will show up in report
write the code in <b>customer exit cmod in BI</b> if CAN CORRECT THE CODE WOULD BE GREAT
Data: l_s_var_range Type rrangeexit.
L_d_PSTDATE Type /bio/oipstdate.
L_d_PSTDATE Type /bio/oipstdate.
IF I_STEP=2.
READ TABLE I_t_var_range INTO l_s_var_range WITH KEY VNAM = PSTVAR.
If L_d_PSTDATE >= PSTVAR
L_d_PSTDATE=l_s_var_range-low(0)
Please help me modify the above code with logic or with some extra line of code to solve my requirement. Appreciate all of you for help in advance
Thanks
Soniya KapoorYou have to write the code (<b>in BI/BW</b>) in the transfer rule (<b>between Datasource transfer structure and infosource/info object</b>)
There the FORM begin with
[code]USING RECORD_NO LIKE SY-TABIX
TRAN_STRUCTURE TYPE TRANSFER_STRUCTURE
G_S_MINFO TYPE RSSM_S_MINFO
CHANGING RESULT TYPE /BI0/OIPERSON
G_T_ERRORLOG TYPE rssm_t_errorlog_int
RETURNCODE LIKE SY-SUBRC
ABORT LIKE SY-SUBRC. set ABORT <> 0 to cancel datapackag[/code]
GS_MIN_INFO structure RSSM_S_MINFO contains information on the request being processed.
<i>G_S_MINFO. This passes technical information about the data load request,
such as requesting user, request date and time, update mode, the handling of
duplicate records, error handling flags, parallel processing flags, and what data
targets to update.</i>
If tou want to use start-routine for optimization reasons and fill an empty field in transfer structure, the structure G_S_MINFO is available too.
[code]USING G_S_MINFO TYPE RSSM_S_MINFO
CHANGING DATAPAK type TAB_TRANSTRU
G_T_ERRORLOG TYPE rssm_t_errorlog_int
ABORT LIKE SY-SUBRC. set ABORT <> 0 to cancel datapackage[/code]
And stay in FORM between limits :
[code]$$ begin of routine
$$ end of routine[/code]
Update RESULT in first case, and field(s) of DATAPAK in second case.
[code]RESULT = G_S_MINFO-LOGSYS.[/code] or
[code]LOOP AT DATAPAK INTO l_s_datapak_line.
l_s_datapak_line-zzsourcsys = G_S_MINFO-LOGSYS.
MODIFY DATAPAK FROM l_s_datapak_line.
ENDLOOP.[/code]
Regards
Maybe you are looking for
-
Using wifi and bluetooth at the same time
Hello, I have a MacBook Pro bought in 2014 and since the latest updates of OS X (10.10.2) I very often face a drop on wifi efficiency when bluetooth is as well enable on the laptop. Even worse, it sometimes becomes completely frozen; as soon as I dis
-
Final cut pro X not reading events in external hard drive
I know this has been talked about in one way or another but I still am just not understanding. Any help I can recieve will be much appriciated. Just purchased Final cut pro x and I have an external hard drive that I have some events on. FCPX will re
-
How can i hook up facetime off my mac to my i pod touch
how can i hook up facetime off my mac to my i pod touch
-
Fix for WRT54G file and printer sharing
I have two computers, both connected via wireless. They were connected with a 2 year old Linksys router, that was working great, but got destroyed in a move. I purchased a new linksys WRT54G router. Symptoms were that both had great access to the int
-
Why would Adobe's Lens Profile Creator distribute the checkboards as JPG files?
Generall, JPG files are a bad idea for images that contain a small number of colors (poor compression) and sharp edges (ringing artifacts). So why then would Adobe distribute the checkboards for Lens Profile Creator as JPG, rather than some more app