Read characteristics from Program Memory for FLs in Customer Exit in IL01/I
Hi,
I want to read the characteristics values set on the FL in the customer exit to apply some customer specific logic.
The standard FM only reads values that are saved in the DB. not that is available in the RAM memory.
Is there any FM that reads the values from the Program memory?
Regards,
Ramesh-
The low range is fine but I don't think you have the high range right, the high range should be whatever the user passed, which is VNAM, check that, it may be problem there.
And the easiest way to debug is to pass the value to some characteristics and see what actually got returned from the custom exit in the report. And also debug one at a time, just return one value which is hight and see if that is fine, the change the code just to return low to see still the value is correct.
thanks.
Wond
Similar Messages
-
Reading files from phone memory
Hi All,
I am developing a Universal application using vs 2013 in windows phone 8.1. I am stuck in finding and reading file from phone memory.
I have used the Localfolder syntax
StorageFolder folder = Windows.Storage.ApplicationData.Current.LocalFolder;but it didn't worked. Its Showing the application data. But i want to read the file exixts in my phone memory.Then i have usedStorageFolder file = KnownFolders.DocumentsLibrary;but as i read from the forums its not suggested way to approach. Please suggest me the way to find the file from phone memory and to read it.Any help would be appreciatable!!Hi sarika,
That is expected, see the documentation for more information:
App capability declarations at Documents section, you need declared at least a file type association.
Furthermore You can't use the Documents library in a Windows Phone Store app.
You can't publish a Windows Phone Store app that specifies the documentsLibrary capability to the Windows Phone Store. The Store blocks the publishing of the app.
Your app can't access the Documents library in the phone's internal storage. If another app creates a Documents folder on the optional SD card, however, your app can see that folder.
--James
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Reading Data From a Different Planning Package in a Exit Function
Hi,
Is it possible to read data from a planning level / package other than the package that the exit function was executed with? I want to read data into an internal table from another package and use that data in combination with the data in the current package to create new records. If this is possible sample code for how to read data from a different package would be appreciated.
Thanks!
Mel WaldnerHi,
As an example lets say you have restricted 0calmonth in your package to 6.2007. In the planning layout to fetch values for 5.2007 (read only), you can take 0calmonth in data columns, and for this column restrict it as 5.2007.
Similarly in Planning functions, you can mark 0calmonth as field to be changed and fetch data for 5.2007.
Hope this helps. -
Variables coding for replacement path customer exit
i have to look up values in query for restricted keyfigure ..
the values are stored in an ods table as below, as the values changes often during the year.:
zdate123.......value1.....value2
1/1/10............90..............91
1/2/10............94..............87
in a query i have to grab all the data for Value1 for different dates,
so i created a variable ZVAR_VALUE1
and write the customer exit for it as below
DATA: l_s_table TYPE /BIC/AZODS00.
data: l_s_range_low, l_s_range, l_s_range_sign, l_s_range_opt.
DATA: v_today type sy-datum.
v_today = sy-datum.
CASE i_vnam.
WHEN 'ZVAR_VALUE1'.
IF i_step = 1.
CLEAR L_S_RANGE.
SELECT SINGLE /BIC/ZVALUE1 INTO l_s_range FROM /BIC/AZODS00
WHERE /BIC/ZDATE123 EQ v_today.
APPEND l_s_range TO e_t_range.
ENDIF.
this gives error
WInitial RANGE-OPT for customer exit variable zvar_value1 is corrected..
Error for variable zvar_value1...
i tried replace variable with query but i cannot use it in restricted keyfigure as it gives error...variable cannot be used in structure
can anybody help correct the code??thank you
DATA: l_s_range TYPE rsr_s_rangesid.
and it works
but now in query outpu t the value comes up as 0.00 for everything
this is my code exactly as below
ATA: l_s_table TYPE /BIC/AZODS00.
DATA: v_today type sy-datum.
v_today = sy-datum.
CASE i_vnam.
WHEN 'ZVAR_VALUE1'.
IF i_step = 1.
CLEAR L_S_RANGE.
SELECT SINGLE /BIC/ZVALUE1 INTO l_s_range FROM /BIC/AZODS00
WHERE /BIC/ZDATE123 EQ v_today.
l_s_range-low = l_s_table-/BIC/ZVALUE1 .
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDIF.
and there exist the value for today for Value1 in ods -
I need example for VARIABLES with Customer Exit.
hi every body i need example for Variable for Customer Exit.
Hi,
You can define 'Formula' variables in your customer exit..for example..
you need to calculate no of machine running hours per month, in order to
caculate the machine total utilization time..in this context.. you need to know
how may hours are there in an month by month..
you can define a variable and write the code in the customer exit for deriving the total no. of hours available for that month and get that value into a variable for further calution like deducting the down time and set up time so on..in your
calculated KF..
Hope this helps..
Assign points if useful..
Cheers,
Pattan. -
Validation of users entries for variables in customer exit
Hi,
I like to validate the user's entries a queries variables popup and open the variables popup once more if there are unwanted entries. I think I have to raise an exception in the customer exit for reporting, but corresponding function exit does not provide an exception. Can someone provide me a solution? Is there a solution without modifying the function module? (EXIT_SAPLRRS0_001)
Kind regards,
SimonHello,
you can take help of foll code structure to call an exception in the screen.
IF i_step = 3.
LOOP at i_t_var_range INTO l_s_var where vnam = 'needed_variable_name'.
if needed_variable_name-low NE 'ABC'.
CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
EXPORTING
I_CLASS = 'RSBBS'
I_TYPE = 'E'
I_NUMBER = '000'
I_MSGV1 = 'Please enter Correct values'.
raise again.
ENDIF.
ENDLOOP.
Hope this helps.
Also in case of any mulitple condtions you can play around the code.
Regards,
Shashank -
How to read data from external memory
Hi all,
I am using MB5B report in my program to get Current stock. So, I have submitted MB5B report in background and i have exported the result to SAP memory. Now i want to read some of the values of exported output. I don want to use complete MB5B output. Only soem fields from MB5B report.
How can I do it ?
Thx & regards,
RaviHi,
SAP memory is a memory area to which all main sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another. Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters). These parameters can be set either for a particular user or for a particular program using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens
SAP Memmory - use to acess memmory area between session
eg:- when u call a transaction or report ( within ur program) want the value of the prticular field should have value define by you.
Then you use GET and SET parameter command field you set or get should have parameter ID
Set
http://www.geocities.com/SiliconValley/Campus/6345/set_para.htm
GET
http://www.geocities.com/SiliconValley/Campus/6345/get_para.htm
EXPORT
http://www.geocities.com/SiliconValley/Campus/6345/export01.htm
Award points if found helpfull....
Cheers,
Chandra Sekhar. -
How to read ASCII from PLC memory location
How can I read ASCII data stored in a PLC memory location from LookOut?
Thanks for the help Khalid.
I should have given more detail in my post. I can connect to the PLC fine (it's a DierectLogic 205 series with a 260 CPU). My connection is Ethernet. I have no problem reading and writing to Vmemory locations or to input and outputs of the PLC. In this application I'm saving ASCII data from a Keyence barcode reader directly into Vmemory locations of the PLC through the serial port of the PLC. What I need to do now is view that data (in ASCII) in Lookout. When I view the addresses (i.e. DL1.V2000) with ASCII data stored in them through Lookout all I "see" is the decimal equivalent to the ASCII. Is there anyway to convert this back to ASCII? I know Lookout has a ASCII com driver that I could use if I could physically connect
the barcode scanner to the PC however this would not be possible, the barcode scanner has to be connected to the PLC on the production floor. Lookout is great, I�ve been using it for years but I really wish it would let you designate the type of data it�s reading (BCD, HEX, OCTAL, Decimal, TEXT, etc.), rather than always assuming it�s decimal.
If you need any other info please ask� -
How to read files from current directory for applet
I have an applet that needs to read some audio files located in its current directory on the server and I just can't seem to figure it out...maybe I am being dumb...any help?
You can use the ListSorter File Adapter Configuration property to sort based on timestamp. Basically add the following property to the inbound JCA file:
<property name="ListSorter"
value="oracle.tip.adapter.file.inbound.listing.TimestampSorterAscending"/>
<property name="SingleThreadModel" value="true"/>
More info see section 4.2.6 in http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_file.htm -
Global Variables passing from standard form for use on custom form
Hi,
I'm trying to grab a value from a standard form, and pass it to a new custom form, which I am opening automatically from the standard form via personalizations. Is anyone aware of a way to send a value from one form to another? I was going to try using a global variable, which it looks like you can set through personalization. I tried doing it by passing the value as a form parameter, which works if I hard code a value, but it doesn't work if I refer to a value from the standard form.in your E-Business-environment may exist some special codings, which you have to think of, when passing parameters through the application.
Copy the question to your EBS-Forum. They know ways using personalization and passing parameters -
TIFF-VIs for reading/writing from/to files
To whom it may concern,
I'm looking for TIFF-VIs for reading/writing from/to files
for Labview 6 without any add-on package.
Unfortunately I can't use TiffRd04 and TiffSv05 from
Koji Ohashi due to the different file format!
Any hints?
Thank you in advance. Best regards from Germany
Udo WeikHi Udo,
did you check these TIFF related libraries? .. maybe one of them is working.
Good Luck -
Write / read files to RAM memory
Dear all,
I want to write a text file to RAM memory and after read it from RAM memory.
Why? Because, I want to read my text files quickly, in short time.
if I use default method for reading files it take long time for reading the file and for write the file.
But, if I use write / read files to RAM memory, I can read my files quickly and read my files from RAM for processing and write my files to HDD.
Can you help me?
I searched on the Internet this problem and I did not find any one solution.
From my searching on the Internet, I understand that Java can not do that.The problem with this program is that it load 1 minutes, but I want to load a second.
Here is my java code:
import java.io.*;
public class File {
public static void main(String[] args) {
// Start to reading the file
try{
FileInputStream fstream1 = new FileInputStream("big.txt");
DataInputStream in = new DataInputStream(fstream1);
BufferedReader br = new BufferedReader(new InputStreamReader(in));
String strLine;
while ((strLine = br.readLine()) != null) {
// Start to replacing method
String strreplace = "%";
String result = strLine.replaceAll("a", strreplace);
// End of replacing method
// Start to writing to file
try{
FileWriter fstream2 = new FileWriter("out.txt", true);
BufferedWriter out = new BufferedWriter(fstream2);
out.write(result); // Write to file the result
out.close();
}catch (Exception e){
System.err.println("Error: " + e.getMessage());
// End of writing to file
in.close();
}catch (Exception e){
System.err.println("Error: " + e.getMessage());
// End of reading from file
} // Here is the end...Please to do the following steps:
1. Copy my code;
2. Download text file from: [http://norvig.com/big.txt|http://norvig.com/big.txt]
3. Open the text editor and select all text (Ctr+A) and dublicate the text 10 times for creating a big text file (30-40 MB);
4. As a java developer, You know what to do next.
I'm waiting your solution.
Thanks in advance! -
Reading data from mlx90129 rfid tag chip by using spi communication with labview?
Hi,
i have evb90129 evalution board in that mlx90129 chip and external memory (cat25128) and three external sensors are there, i am logging data from chip by using rfid reader it ok i am reading. at the same time i configured spi communication and i am trying to read data i am reading data from internal memory not from external memory i tried but i didnt suceed , now can i use labview to read data from mlx chip and external memory. for spi communication i am using sparkfunction atmega168 microcontroller and also i have spi to usb cable? now can i communicate or i required any devies? is it possible?
thanks in advance,
biji.I suspect the culprit to be the first parameter to your function actually. Calling another function requires the caller to allocate any buffer with a big enough size for the function to write something into. Allocate that array by using Initialize Array with U8 as type and the correct number as size. Pass this size also as read_length. While your code doesn't make use of this I think the third parameter to your function is either wrong or unnecessary.
As you use it now it is really nothing more than a local stack variable which you could declare inside the fucntion just as well. On the other hand what you probably want to do is have a function prototype like:
extern "C" _declspec(dllexport) unsigned char read_Sensor(unsigned *char read_data, unsigned long read_length, unsigned long *byte_transfered);
But you will have to do some modifications in your C code to support that parameter correctly.
That all said, doing the same in LabVIEW using VISA functions would have been done with about two VISA nodes, no DLL headaches and probably already long ago working.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
Displaying Customer Exit Variable with derived value from another ODS
Hi All,
Sorry if this question has been answered before. I searched the forums and could not find anything specific to my problem.
I am new to BEx Query. Customer is requesting a variable(s) be created which will be displayed as a column along with other CKF and RKF. This query is a payroll query for US/Canada. This new variable will be based on the user input date for the query. We are to take this date and go look up the actual pay date for the pay period to which the user input date belongs. The pay date is stored in another ODS.
So far, as far as the changes to the Customer Exit ZXRSRU01 are concerned, I would perform the logic when I_STEP = 2. Do a basic selection off the second ODS, derive the pay date, and store in range table E_T_Range.
The data displayed off the user input date is displayed in rows. This is done six times, going back seven days for each row (first row is data for period user entered date to user entered date - 7 days; second row is data for period user entered date - 7 days to user entered date - 14 days; etc ...). For this to happen correctly, I am assuming the variable(s) are to to have characteristic types 'Not ready for input', 'Mandatory', 'Customer Exit', and 'Single Value'.
My question is ... How do I display the six variables in columns (how are they to be defined in the query) and the characteristics I list above, are they correct? Does this need to be a replacement path variable?
Thanks.
Edited by: Amir Hasan on Jun 11, 2009 6:24 PM
Edited by: Amir Hasan on Jun 11, 2009 6:25 PMHi Amir,
What i can understand from u r requirement is you want to few columns that will show something like below,
User entered date = x
Period of X to Period of (X-7) Period of X to Period of (X-14).....
This can be done by CMOD for variable only.
Logic steps :
1) Take the user input.
2) Find out the period by using T009B table and store in temp variable.
3) Do day -7 and find out period for the same
4) Assing period of X to ls_range-high range and X-7 to ls_range-low.
Let me know if you have any doubt
Regards,
Viren -
How to Write a CUstomer Exit for a variable in BEx
Hi,
How to write a customer exit variable in bex Query designer
Do i need developers key for this (If so what type of key do i need so that i can ask basis tean to generate)
Info Object: ZEXP_DTE (Expiry Date)
Variable on ZEXP_DTE :
ZEDTE
Type: Customer Exit
Can any one please tell me how to write a code in CMOD from this (Step-by Step)
Expiry Date > Current Cal Day
As arun said
'l_s_range-low = SY-DATUM.
l_s_range-opt = 'I'.
l_s_range-sign = 'GT'.
APPEND l_s_range TO e_t_range.'
I want to insert the above code for the above customer exit but as i am new to BW as ABAP please explain me what are the steps involved in CMOD
ThanksHi,
To write customer exit for a variable, you require Access key.
Contact your BASIS to get that.
Access Key,BASIS?
To write Customer exit,
User Exits
User Exit for Variable
/thread/809285 [original link is broken]
Hope these helps u...
Regards,
KK.
Maybe you are looking for
-
Delivery not getting created for Stock Transfer Purchase order
Hi, My user having one issue with stock transfer order. User is not able to generate the delivery for the particular material against stock transfer PO. Here checking rule is not maintained.Kindly advice.
-
REQUEST: UEFI GOP - 2 * MSI N660 TF 2GD5/OC
Hello All, i like to request the latest UEFI bios for the follow cards... First: N660 TF 2GD5/OC S/N 602-V287-04SB1208195847 Second: N660 TF 2GD5/OC S/N 602-V287-050B1304104486 Currently running a ASrock Z87 Extreme6/ac with UEFI BIOS ofcourse. I not
-
Why acrobat form need japanese addon or font?
I have a user that can not open my form, he says it is asking for a Japanese font. I am not using one in this form... that I know of any ideas?
-
Bridge CC defaulting to PSCC, instead of 2014
I had this trouble when I went from CS3, to PSCC on my PC, Win 7, 64 bit. Seems like I had to go into the registry and replace the reference to CS3 with same for PSCC, even after uninstalling CS3. After installing 2014, when I double clicked a raw im
-
Hi all iam having scenario , where i have select some data from SAP tables to other system using Interface . So i need to put this data in a File at application sever . From here , the data will proceeds to other system. When our interface triggers