Text to be added above to the data
Hi,
Thanks in advance.
Here is the reuirement of report
MP STATE COOP MKTG LTD, Bhopal
Details of Invoices of Purchase of Fertilizer for Central Concession claim only
Name of the Manufactures/Suppliers: Client Name
Name of the Fertilizers: DAP Month: June-2006
Details of Fertilizers is given below
Sl.No District Name Invoice No Invoice Date Date of Receipt of Fertilizer Quantity in (MT)
1 Sehore 1011060001 13-June-06 30-May-06 93.000
2 Bhopal 1011060002 13-June-06 30-May-06 38.750
3 Raisen 1011060003 13-June-06 30-May-06 292.900
Quantity in words: Four Hundred thirty two MT
It is certified that the above statement is correct and quantity is found to be satisfactory
BM Patel
Dy. Chief Accounts Officer General Manager ( AI )
MP State Coop MKG Fed Ltd
So please let me know how it can be done in bw.
Thanks
Krishna
HI,
Have you see in customizing ?
Go to transaction SPRO
SAP Customizing Implementation Guide ->Materials managment -> Purchasing ->Messages -> Texts for messages -> Define Texts for Purchase Order.
Rgds
Similar Messages
-
Newly added field in the data Source not getting populated
Hello All,
We have added few fields in the Data Source. The Data Source is based on the InfoSet. We have included the field in the Infoset and have updated the code to fetch the value for the newly added fields.
When we perform the test extraction for this Data Source in RSA3, the newly added fields are not getting populdated with the value. In the system generated query's selection list, the newly added fields are not selected.
Please let mw know how to get the newly added field selected in the system generated query of the infoset.
Regards,
-PurnimaHi,
As you said you have added the filed in Info Set. Have you included the same in data source? try if not.
If you are trying to create a query in source system to check the data. I guess in R/3 (ECC) then you have to include the new field in slection critera (ther is an option available on top menu).
I would suggest before creating any query go to RSO2 select the data source. Display the field structure and check if the filed is there or not. You maysee Infoset level data directly by data display from top menu. Try that optionas well to check.
I hope it will help.
THanks,
S -
Reading data from a text file but can't use the data outside of the function.
I am trying to load a variable from data in a text file.
I can read the text file fine but the variable data seems
only to be available with in the function that reads it.
I need to use the variable data outside of the function.
Does anyone have any suggestions to work around this issue?
This is the actionscript code i'm using.
var pathVars= new LoadVars();
pathVars.onLoad=function(ok) {
if(ok)
trace("Loading");
path_var=pathVars.path;
trace("This is within the function "+path_var);
pathVar0="This is within the function... "+path_var;
Yet the path_var is available here fine.
pathVars.load("mypath.txt");
This is where the path_var becomes undefined
trace("This is outside the function... "+path_var);
pathVar1="This is outside the function... "+path_var;
This
is a download link for the FLA zip file
This
is a demo of the script loading the text fileThe external traces are being executed before the file is
loaded. -
Hi,
I have a scenario as below.
I have to add no. of days to the exixsting date field in the program. The statement is like this.
<b>DATE1 = DATE + XDAYS.</b>
Where <b>DATE</b> is in <b>DDMMYYYY</b> format. and XDAYS holds the number of days which will be retrieved from the standard table. And DATE1 should hold the result date.
<b>eg:</b> Let <b>DATE</b> = <b>30.08.2007</b>
<b>XDAYS</b> = <b>15</b>
DATE1 = DATE + XDAYS. => <b>DATE1 = 30.08.2007 + 15</b>.
<b>DATE1 = 14.09.2007</b>
Is there any easiest way to do this. or is there any function mdule to do this operation.
I hope you understood the question. Please let me know if I need to be more clear.
Thanks in advance.
-Pradeep.Hi,
The date will be in internal format of 8 digits... Like 20070830..
Directly add the number of days.. system will automatcally calculate
w_new = w_old + 15 (20070830 + 15)
w_new becomes 20070914
and when you will write this : WRITE : w_new. It will show 14.09.2007 or depending on your settings for the date format. No need to call any fm for this..
Thanks and Best Regards,
Vikas Bittera.
**Reward if useful** -
Date Problem-adding 30days to the date in string format.
hi i have an Date in the form of String "yyyy-mm-dd",i have to add 30 days to that date and compare it with to days date,i try to convert the string in to date format using SimpleDateFormat,but i could not understand how to add 30 days to that.pl it's an urgent problem,any help would be appreciated.
Regards.to compare the date to todays date,
Calendar todaysDate = Calendar.getInstance();
todaysDate.after(cal2);
todaysDate.before(cal2);
Depending on which way you want to know.
To get the String Format I would suggest something like :
String dateInString = "" + cal2.get(Calendar.YEAR) + "-" + cal2.get(Calendar.MONTH) + "-" + cal2.get(Calendar.DATE);
Be careful though as this may give a format YYYY-M-D if the month or date is a single digit, so you may have to test string.length and then have "0"+cal2.get(Calendar.MONTH) /cal2.get(Calendar.DATE)
Hope this is of some help. -
How to enter the data into data block text item which has an LOV associated
Hi,
I have a data block, one of the data block text item has an LOV assigned. when I populate this text item using the LOV and do "execute_query", it is taking the value in the text item and adding it to the search criteria, but when I enter a value manually in that text item and do "execute_query" it is showing me an alert(which I created) "Please enter a value".
My question is, why is not taking the value that I enter manually? Looks like before executing the query, this field is getting empty
How to avoid this problem and make sure that the value entered in the text item is added in the where clause of the query?
Any advice?
Thanks in advance
R.GProblem solved!
Before doing execute-query, all the text items are being cleared,so I used a global variable to store that value
Thanks anyway
R.G -
How to display the data in row wise in smartform
Hi,
I have to make a modification a smartform of poprinting and i want to display the row wise . At present it is displaying the
column wise. Actually there is a text which i want to display the data row wise.
It is possible to display the data in row wise of the text .
Edited by: nav009 on Oct 8, 2009 10:39 AMHello ,
I assume that your requiremen is related to smartform.the below is the solution i suggest.
As per my understanding of your requirement ,It's clear that as of now there is some description field which is also getting displayed along with other PO fields.
However you would like to display the description field in a new line since the length of this field is longer than other fields as a result the data is getting scattered .
Therefore one better option could be: since the whole data from PO would be in a loop you can display all other fields in one line type of the table as per the intial requirement and you display the description line alone in a new line type wth the desired length so that data would not be scattered and no data loss would happen.
I assume you are aware of creating of line types for table.
Thanks
M.Naveen. -
What's the data type when defining a KF to show an integer with a sign?
We want show some days difference which should be an integer with either a positive or negative sign. I used to design a KF with type of Number with "DEC - Counter or amount field with comma and sign" as the Data Type, but find it shows 25.000 if the day difference is 25 days. We want to show it as 25 other than 25.000. Then what type would we pick when defining the KF? Use Integer as the type? But we also want it to show the sign symbol.
The type field is dimmed as long as the InfoObj. is activated that I have to remove this field. I've delete all the data loaded in ODS, PSA and etc., and I have successfully remove this KF from InfoSource, but when I try to remove it from the ODS, always get the msg "Can't move/delete locked InfoObjects" even if the InfoObject is not locked (I've tried SM12 to delete all locked entries and also tried relog on, but not helpful). If someone gives any idea, I would be very appreciated on how to remove this KF from ODS and also let me what type should I use when creating a new KF which only shows integer with a sign!
Thankshey Siggi,
Now after I right click the ODS and select "Delete Data", the KF eventually gets removed from the ODS without any error, then I continue to delete this InfoObj.
However, when I run the InfoPackage to load data to the ODS, get a msg (see below in between two dashed lines):
Syntax error in GP_ERR_RSDRO_UPDATE, row 1,210 (-> long text)
Message no. RG102
Diagnosis
The data object "I_S_OLDDATA" does not have a component called "/BIC/Z_field".
Where Z_field is the InfoObject we deleted. With this error, that's even worse since that stops any data coming in! How to get rid of this error that we can continue to load data?
Thanks -
Converting the date to make iCal appointment
Hey Gang,
Im working on a script to mac iCal appointments that have an email alarm to send out a templated email.
I am unable to figure out what im missing to get the date to be recognized.
The goal of the entire script is:
popup - ask for the date of the appointment
popup - ask for the eMails of the persons involved
and then make an ical alarm to send an email out, the day before the actual appointment.
i feel there is a way better way for me to be working with the date in this situation but cant sort out what way.
any help would be grateful
on run
set y to (year of (current date) as string)
set m to (month of (current date) as string)
set m2 to month of ((current date) + 30 * days) as string
##get day of month
set theDay to (choose from list {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31} ¬
with prompt "Select the Day of the appointment") as text
set theMonth to (month of (current date) as integer)
##Get the email list
set emailList to ""
set emailList to text returned of (display dialog "List the eMails of Presentation participants" default answer "[email protected], [email protected]")
##Make the ical event
tell application "iCal"
tell calendar "Home"
set theDate to (theDay & "/" & theMonth & "/" & y) as string
date theDate
make new event at end with properties {description:"Event Description", summary:"Event Name", location:"Event Location", start date:theDate, allday event:true}
set now to theDate
set eventStart to theDate
set eventEnd to theDate + 2 * minutes
set eventName to ("Presentation for " & emailList) as string
set alarmTime to (now - 1 * days) as string
tell application "iCal"
set newEvent to make new event of calendar "Home" with properties {summary:eventName, start date:eventStart, end date:eventEnd}
set theAlarm to make new mail alarm at end of mail alarms of newEvent with properties {trigger interval:alarmTime}
end tell
end tell
end tell
end runso the user interaction has changed. your scripts will help me in the future though. Thanks
I re-wrote the start but for whatever reason it wont make the iCal event with alarm.
it says unable to get date of Calendar 'Home'
and using the code
(date theDate) work with the other script. i only used that as it was in a textbook.
##Get the Date
set theDate to text returned of (display dialog ¬
"Enter the Date" with title ¬
"Presentation Reminder" with icon 1 ¬
default answer ¬
"d/m/year" buttons {"Cancel Apt", "Make Apt"} ¬
default button 2)
set now to (date theDate)
##Get the email list
set emailList to ""
set emailList to text returned of (display dialog "List the eMail's of Presentation participants" default answer "[email protected], [email protected]")
##Make the ical event
tell application "iCal"
tell calendar "Home"
--date theDate
make new event with properties {description:"Event Description", summary:"Event Name", location:"Event Location", start date:(date theDate), allday event:true}
set eventStart to (date theDate)
set eventEnd to ((date theDate) + 2 * minutes)
set eventName to ("Presentation for " & emailList) as string
set alarmTime to (now - 1 * days) as string
set newEvent to make new event of calendar "Home" with properties {summary:eventName, start date:eventStart, end date:eventEnd}
set theAlarm to make new mail alarm at end of mail alarms of newEvent with properties {trigger interval:alarmTime}
end tell
end tell
end run -
Error when reading the data of infoprovider
Hello,
I have a problem when excecuting the transaction 'listcube' on a specific infocube. It occurs an error message which complains problem when reading the data of the infoprovider. The message text sounds as follows:
Error reading the data of InfoProvider ZDPPTGR1
Message no. DBMAN305
Diagnosis
Errors occurred while reading a VirtualProvider outside the BI system. Check whether the previous error messages contain any information about the possible cause of this error.
It is possible that the error message cannot be displayed because the error message class does not exist in the BI system. If this is the case, only the name of the error class and the message number are displayed. View the error message text in the specified error class in the source system of the VirtualProvider.
Procedure
Since the error is not necessarily in the BI system, there is no specific procedure for resolving it. With VirtualProviders, problems often occur with the connection to the remote system; these can lead to system termination. If the code for the VirtualProvider is not from SAP, contact the relevant contact person to help resolve the issue.
If an SQL error is listed in the previous message, see the procedure for SQL errors.
Has anybody experience with solving this problem? It sounds like a bigger problem - can somebody confirm this? Or is it a problem which is easy to solve?
Thanks for answering!
Kind regards
HeinzHi,
Please follow the below threads. They are similar to the error you are facing and they may help you with the issue ::
Remote cube - uncaught exception
DBMAN350 Error reading MultiCube data over aggregate
Error reading the data of InfoProvider 0TCT_VC01
Regards,
Arpit -
How can i read the data fromtext fieldsin the form of bytes??
Hi friends,
How can i read the data fromtext fieldsin the form of byte string while using Socket connection.
I have two text fields. i need to send the data from the textfeilds to the server using a byte string.
Can anyboday help me???
KKDoes <cfdbinfo> work for Access DBs?
You might be better off asking this on a MS Access forum. It's more of an Access issue than a CF one.
Adam -
I have data that is in basic generic text file format that needs to be converted into Excel spreadsheet format. The data is much longer than 65536 lines, and in my code I haven't been able to figure out how to carry over the data into the next column. Currently the conversion is done manually and generates an Excel file that has a total of 30-40 full columns of data. Any suggestions would be greatly appreciated.
Thanks,
Darrick
Solved!
Go to Solution.No need to use nested For loops. No need for any loop anyway. You just have to use a reshape array function. The picture below shows how to proceed.
However, there may be an issue if your element number is not a multiple of the number of columns : zero value elements will be added at the end of the last column in the generated 2D array. Now the issue depends on the way you intend store the data in the Excel spreadsheet : you could convert the data as strings, replace the last zero values with empty strings, and write the whole 2D array to a file (with the .xls extension ) using the write to spreadsheet function. Only one (minimal) problem : define the number of decimal digits to be used;
or you could write the numeric array directly to a true Excel spreadsheet, using either the NI report generation tools or ActiveX commands, then replace the last elements with empty strings.
We need more input from you to decide how to solve these last questions.
Message Edité par chilly charly le 01-13-2009 09:29 PM
Chilly Charly (aka CC)
E-List Master - Kudos glutton - Press the yellow button on the left...
Attachments:
Example_VI.png 10 KB -
Problem with Refreshing the data bound text fields
Folks,
First of all, this a GREAT product and I am moving my apps from Eclipse to Studio Creator. I am very impessed with it so far.
I am gone through most tutorials, but can't help resolve the problem that I am having. I have a page, that lists all the users in a table. When you click on any user, it opens up another page that lists the detail of the specific user you have clicked on. This a typical use in most web applications, right?
In the user detail page, I open it in "Read" only mode, by setting the "setReadOnly" to true for all text field components. Then users can edit it by clicking "Edit" button. Edit button just changes the "setReadOnly" to false, to allow editing. After editing, they can hit the "Save" button to save the changes. In the save button, I call this code:
public void prerender() {
try {
userID=getSessionBean1().getUserID();
getSessionBean1().getWeb_userRowSetUserDetail().setObject(1,userID);
getWeb_userDataProviderUserDetail().refresh();
info("prerender: Refresh called");
} catch (Exception ex) {
error("Error in userForm.prerender():"+ex.getMessage()+ex.getStackTrace());
log("Error in userForm.prerender():", ex);
setReadWrite();
public String btnSave_action() {
try {
getWeb_userDataProviderUserDetail().commitChanges();
getWeb_userDataProviderUserDetail().refresh();
info("Data Provider Refreshed in SAVE");
_readOnly=true;
form1.discardSubmittedValues("saveVForm");
info("User Updated New:"+userID);
} catch (Exception ex) {
log("Error Description", ex);
return null;
public String btnEdit_action() {
try {
_readOnly=false;
//info("User ID Edt="+getSessionBean1().getUserID());
} catch (Exception ex) {
error("Error in userForm.btnEdit_action:"+ex.getMessage()+ex.getStackTrace());
log("Error in userForm.btnEdit_action():", ex);
return null;
private void setReadWrite(){
// Set read-only to true or false for all text fiels
this.btnEdit.setVisible(_readOnly);
this.btnSave.setVisible(!_readOnly);
this.user_id.setReadOnly(_readOnly);
this.user_email_client.setReadOnly(_readOnly);
this.user_email_office.setReadOnly(_readOnly);
this.user_fname.setReadOnly(_readOnly);
this.user_lname.setReadOnly(_readOnly);
this.user_id.setReadOnly(_readOnly);
this.user_password.setReadOnly(_readOnly);
this.user_password_conf.setReadOnly(_readOnly);
this.user_phone_cell.setReadOnly(_readOnly);
this.user_phone_cell_aac.setReadOnly(_readOnly);
this.user_phone_client.setReadOnly(_readOnly);
this.user_phone_home.setReadOnly(_readOnly);
this.user_phone_office.setReadOnly(_readOnly);
}When the save button is clicked, the database is updated (as I can verify by looking directly into the database), but the data-bound text fields do not display the new value. YES, I am calling refresh() on data provider? I tried to call refresh in both "preRender()" and "Save" button action event, but that did not help either.
Please note that the save button also changes the "setReadOnly" back to TRUE for all text fields. That means, users view the page in Read-Only mode after saving. (They have to click on "Edit" button again to edit it). I discovered that if I do not set the text field components in "ReadOnly" mode, then they display the updated value of the fields. But if I change setReadOnly to TRUE, then they display the old values (before the save).
Any idea what I am doing wrong here?
ThanksHere is my experience with it. I have three text
boxes to be filled out. They are part of a virtual
form with an add button as the submit. You can fill
out the 3 and add them and a node is added to a tree
component. When you click on a node in the tree
component (the submit to another virtual form that
the 3 buttons participate in) the text fields should
be loaded with the values that they where added with.Hard to tell from this explanation, but if the text fields do not participate in a virtual form, then they are not going to get updated when an action in the virtual form happens. Not sure this is your problem. Like I say, hard to tell from this explanation.
They will not display the values though...having
nothing to do with read only. If I disable them
before hand...they display the updated values. If I
set their value at the top or bottom of prerender,
they display the change...if I set the value in an if
conditional that is hit (I have checked many times)
in prerender, they will not display the values. If I
set them in the tree handler anywhere, they will not
display the values. This is very frustrating and is
wasting tons of my time...I simply want to load the
text fields based on the tree node that was
clicked...I have messed with this for hours and it
certainly does not work.Well, setting them in the tree handler won't work because the tree handler gets called in the page instance that handles the submit and not the page instance that renders the response.
Posting your prerender code might help. Also, your action handler.
>
>
- Mark -
We are adding field GAMNG ( Target Quantity ) in the Data Source 2LIS_04_P_ARBPL ( Work Center View from PP/PP-PI )
The field GAMNG is available in the communication structure maintainace.
The problem is- We are not able to drag & drap field GAMNG from the Communication structure LBWE. Getting the error - End phase 002 ***********************************************************
Message no. D0322 ..
We deleted Setup table , Meins field already exist in comm str.
1. How we able to drag the field from the communication structure as getting the above error. We searched SDN & try to follow that method but not working.
2. We can add the field in SE11 - Structure -Manually, then we have to write ABAP code.
Kindly suggest correct answer.
Edited by: sk kamaruzzaman on Dec 20, 2011 2:08 PMHi,
There could be a number of reasons why you are getting the error:
1. Fields are not assigned to datatypes.
- Check structure in SE11 and assign to datatypes.
2. There are inactive appends in the extract structure.
- Double-click one of the includes. You will get a new screen with the INCLUDE structure. Click the button append-structure. Check if the append is inactive.
3. The appended structure is in a different development class from the one of the structure it is being appended to.
Please review and apply the following notes carefully :
766603 Activation problems with extract structures
623411 LBWE: Gener. terminates with D0 322 (end phase 002)
757923 LBWE: Generation terminates with D0 322 (end phase
600708 D0 322: End phase 002
It is not possible to enhance the datasource 2lis_04_MATNR with the field GAMNG (so its possible that its the same for 2LIS_04_P_ARBPL) because GAMNG has the reference field AMEIN, which has a STATE F (forbidden) in table TMCEXCFS .
Check to see if this is the same on your system.
Rgds,
Colum -
How can i read the text files and buffer the data in Vector?
hi. I have been running into this problem for days, but with no luck and losing right direction.
The problem is : I am trying to read a text file and buffer the data into a
Queue for each user.
the sample text file is as below:( 1st column is timestamp, 2nd is user_id, 3rd is packet_id, 4th is packet_seqno, 5th is packet_size)
0 1 1 1 512
1 2 1 2 512
2 3 1 3 512
3 4 1 4 512
4 5 1 5 512
5 6 1 6 512
6 7 1 7 512
7 8 1 8 512
8 9 1 9 512
9 10 1 10 512
10 1 2 11 512
11 2 2 12 512
12 3 2 13 512
13 4 2 14 512
14 5 2 15 512
15 6 2 16 512
16 7 2 17 512
17 8 2 18 512
18 9 2 19 512
19 10 2 20 512
20 1 3 21 512
21 2 3 22 512
22 3 3 23 512
23 4 3 24 512
24 5 3 25 512
25 6 3 26 512
26 7 3 27 512
27 8 3 28 512
28 9 3 29 512
29 10 3 30 512
30 1 4 31 512
31 2 4 32 512
32 3 4 33 512
33 4 4 34 512
34 5 4 35 512
35 6 4 36 512
36 7 4 37 512
37 8 4 38 512
38 9 4 39 512
39 10 4 40 512
40 1 5 41 512
41 2 5 42 512
42 3 5 43 512
43 4 5 44 512
44 5 5 45 512
45 6 5 46 512
46 7 5 47 512
47 8 5 48 512
48 9 5 49 512
49 10 5 50 512
50 1 6 51 512
51 2 6 52 512
52 3 6 53 512
53 4 6 54 512
54 5 6 55 512
55 6 6 56 512
56 7 6 57 512
57 8 6 58 512
58 9 6 59 512
59 10 6 60 512
60 1 7 61 512
61 2 7 62 512
62 3 7 63 512
63 4 7 64 512
64 5 7 65 512
65 6 7 66 512
66 7 7 67 512
67 8 7 68 512
68 9 7 69 512
69 10 7 70 512
70 1 8 71 512
71 2 8 72 512
What I wanna do is to read all the data above and buffer them in a queue for each user( there are only 10 users in total).
I already created a class called Class packet:
public class packet {
private int timestamp;
private int user_id;
private int packet_id;
private int packet_seqno;
private int packet_size;
/** Creates a new instance of packet */
public packet(int timestamp,int user_id, int packet_id,int packet_seqno, int packet_size)
this.timestamp = timestamp;
this.user_id=user_id;
this.packet_id=packet_id;
this.packet_seqno=packet_seqno;
this.packet_size=packet_size;
}then I wanna to create another Class called Class user which I can create a queue for each user (10 users in total) to store type packet information. the queue for each user will be in the order by timestamp.
any idea and sample code will be appreciated.Doesn't sound too hard to me. Your class User (the convention says to capitalize class names) will have an ArrayList or Vector in it to represent the queue, and a method to store a Packet object into the List. An array or ArrayList or Vector will hold the 10 user objects. You will find the right user object from packet.user_id and call the method.
Please try to write some code yourself. You won't learn anything from having someone else write it for you. Look at sample code using ArrayList and Vector, there's plenty out there. Post in the forum again if your code turns out not to behave.
Maybe you are looking for
-
Notes does not sync anymore between iMac & iPhone &iPad ?
Since I upgraded to mountain Lion, as Notes is not anymore within the Mail app it seems that there is no way to sync notes without using iCloud. Is there any solution ?
-
Dear all , when i excute the transction f.13 one Gl account automatically cleared all the accounts 2) another Gl account is not excute the transctions not cleated automatticaly. when i check the table entries both gl accounts bseg table one gl accoun
-
I have some database related questions
hey all i am currently designing a java GUI program for a dvd renting shop. this program obviously needs a databse, i was just wondering how much possibly a database on a home pc could hold data because this shop have about 15000 DVD title and about
-
ALE EDI /IDOC Documents needed
Hi All, Can any body send the ALE ,EDI and IDOC Dcouments with live examples. My mail id is : [email protected] Thanks and Regards, Muralikrishna
-
Structure of the input file for RMDATIND (standard material update program)
Hi all ! I need to find the structure of the input file used by the RMDATIND standard program. Is there only one structure for this file ? what should it contains ? Thanks a lot Regards, --Yohann