Include field u201CXREF1_HDu201D from "BKPFu201D table while posting or Parking Docs
Hi,
I want include one additional field while posting or parking any accounting document. The field i want to include is from u201CBKPFu201D table and field name is u201CXREF1_HDu201D . This is at Header level.
Please advise as to how i can achieve this.
Thanks,
Safi
Hi,
Checking documentation of the data element, it seems the field is used for RE (Real Estate) only. But I'm not sure.
Regards,
Teddy Kurniawan
Similar Messages
-
SAP EXperts,
I created 1 AUC account, and parked one expenses for that AUC thru cash transaction, my doc type is AA.While posting the park doc i am getting the following error
"Formatting error in the field COBL-PRCTR"
How to resolve this issue
Thanks & Regards
AppanHi,
First go to transaction FBV0 and change the expense line item for account aasignment in field Profit Center.
Hope you have PCA active in your system.
Since your expense line item will have an account assignment to PCA.
Please check and post again, if still the problem exists.
Thanks,
Srinu -
Tbale Data Not picked from Child Table while configuring Database Adapter
Hi,
we are experiencing problem while picking multiple records from child table while polling from the database.
details are, lets say we have one Parent table "Student (Id ,College) and one Child Table (Id,Book,Author)
Id is Primary key in Student Table and Foregin in Child Table.Lets say data in tables are
Student Table :196263,"Y.M.C.A"
Child Table :196263,"English","Gill"
196263 ,"Maths","Nagpal"
Now what should be done while polling 1 record should be picked from student table and 2 diferent records from Child Table ..for the above given scenario...
(I have used 1:M Relationship).
But What is happening that from Child Table only first record got picked up 2 times..and record from Student Tablle was being picked correctly.....but in the ideal
Cab anybody help me how to resolve this issues....Hi Gurus,
I am facing similar kind of issue i.e. after polling on header table (Logical Delete), the header records are updated correctly.
But the problem starts in child table. From Child Table only first record is getting picked up 2 times (if 2 rows are there for that particular header id).
Kindly help.
Thanks,
Abhishek
Edited by: Abhishek saurabh on Jul 31, 2009 1:09 AM
Edited by: Abhishek saurabh on Jul 31, 2009 1:11 AM -
HI
there is no such column like po_amount in po_headers_all table then how can i get po total amount(including tax amount) from po_headers_all table or else tell me how to get data from views in R12
As we are using sql developer tool to build queries in our project
With regards
sivaPO line total is not included the tax, to View the tax amount (N) Action-> manage tax
1) You have to sum up the lines to get the PO total,
select ph.segment1 po_num, sum ( (pl.unit_price * pl.quantity)) price
from po_lines_all pl, po_headers_all ph
where pl.po_header_id = ph.po_header_id
and ph.type_lookup_code in ('STANDARD', 'BLANKET') --Add as per your requirement
-- and ph.segment1 = '2017'
-- and ph.org_id = 7852 --Use when you have multiple OU
group by ph.segment1
2) To get the tax
SELECT *
FROM ( SELECT lines.line_num line_number,
lines.item_description line_description,
dist.distribution_num dist_number,
dist.code_combination_id dist_code_combination_id,
NVL (dist.nonrecoverable_tax, 0) nonrecoverable_tax,
NVL (dist.recoverable_tax, 0) recoverable_tax,
NVL (dist.nonrecoverable_tax, 0)
+ NVL (dist.recoverable_tax, 0)
total_tax,
(NVL (dist.req_line_quantity, 0) * NVL (lines.unit_price, 0))
amount,
dist.org_id,
dist.DISTRIBUTION_ID
FROM po_requisition_lines_all lines, po_req_distributions_all dist
WHERE lines.requisition_line_id = dist.requisition_line_id
AND NVL (lines.cancel_flag, 'N') <> 'Y'
AND NVL (lines.modified_by_agent_flag, 'N') = 'N'
-- AND lines.requisition_header_id = :1
ORDER BY lines.line_num, dist.distribution_num) QRSLT
ORDER BY LINE_NUMBER, DIST_NUMBER
Join the po_distributions_all, po_lines_all & po_headers_all tables to get the specific value.
Thanks -
Error 'Specify account number' while posting a parked document through FBV0
Hi,
I am getting an error 'Specify account number' while posting a parked document through transaction FBV0.
I am not able to figure it out as to what account number it is referring to. Since the document is parked I assume the GL account used has no problem. Please help.Hi,
Try to change the Account number and then save or post the data. I think Once We Parking the Document it wont allow to post the data without changing.
Try same scenario in the development its be useful
Regards, -
Error messege BP603 while posting the parked document budget exceeded
Hi ,
We are having the budget function and its for overall release.
Budget has been relased and assigned value is less then the released budget in all conditions.
Its throwing the error messege No BP603 while posting the parked documents. Unable to understand the reason why its behaving.
Please let me know if anybody has faced such problem.
We are into ECC6, EHP 4 and the SAP note 557431 is not going to help anyways.
Regards
N.RajuHi,
Please follow as given below:
1. Use T.Code KO31 and enter order and deactivate the control
2. Then try to post the parked document
3. And use T.Code KO30 and enter the order to activate the control
Some times system will check budget availability which already commited for parked documents.
Hope it will work.
Chandu -
Unable to read field value from main table - unexpected socket read error
Hi Friends,
While executing the below code, I am able to get the value of the field 'id' but i am unable to get the value for the 'materialnumber' field. i am getting the below exception
+com.sap.mdm.commands.CommandException: com.sap.mdm.internal.protocol.manual.ProtocolException: java.io.IOException: Unexpected socket read. Result is -1.
at com.sap.mdm.data.commands.AbstractRetrieveLimitedRecordsCommand.execute(AbstractRetrieveLimitedRecordsCommand.java:158)
at com.sap.mdm.data.commands.RetrieveLimitedRecordsCommand.execute(RetrieveLimitedRecordsCommand.java:157)
at updaterecords.main(updaterecords.java:126)
Caused by: com.sap.mdm.internal.protocol.manual.ProtocolException: java.io.IOException: Unexpected socket read. Result is -1.
at com.sap.mdm.internal.protocol.manual.AbstractProtocolCommand.execute(AbstractProtocolCommand.java:100)
at com.sap.mdm.data.commands.AbstractRetrieveLimitedRecordsCommand.execute(AbstractRetrieveLimitedRecordsCommand.java:146)
... 2 more
Caused by: java.io.IOException: Unexpected socket read. Result is -1.
at com.sap.mdm.internal.net.DataSocket.receiveData(DataSocket.java:59)
at com.sap.mdm.internal.net.ConnectionImpl.readInt(ConnectionImpl.java:417)
at com.sap.mdm.internal.net.ConnectionImpl.nextMessage(ConnectionImpl.java:501)
at com.sap.mdm.internal.net.ConnectionImpl.receiveMessage(ConnectionImpl.java:472)
at com.sap.mdm.internal.net.ConnectionImpl.send(ConnectionImpl.java:209)
at com.sap.mdm.internal.net.ReservedConnection.send(ReservedConnection.java:105)
at com.sap.mdm.internal.protocol.manual.AbstractProtocolCommand.execute(AbstractProtocolCommand.java:97)
... 3 more+
import com.sap.mdm.commands.AuthenticateUserSessionCommand;
import com.sap.mdm.commands.CommandException;
import com.sap.mdm.commands.CreateUserSessionCommand;
import com.sap.mdm.commands.DestroySessionCommand;
import com.sap.mdm.commands.GetRepositoryRegionListCommand;
import com.sap.mdm.data.Record;
import com.sap.mdm.data.RegionProperties;
import com.sap.mdm.data.ResultDefinition;
import com.sap.mdm.data.commands.RetrieveLimitedRecordsCommand;
import com.sap.mdm.ids.TableId;
import com.sap.mdm.net.ConnectionException;
import com.sap.mdm.net.ConnectionPool;
import com.sap.mdm.net.ConnectionPoolFactory;
import com.sap.mdm.schema.FieldProperties;
import com.sap.mdm.schema.RepositorySchema;
import com.sap.mdm.schema.commands.GetFieldListCommand;
import com.sap.mdm.schema.commands.GetRepositorySchemaCommand;
import com.sap.mdm.search.Search;
import com.sap.mdm.server.DBMSType;
import com.sap.mdm.server.RepositoryIdentifier;
public class updaterecords {
public static void main(String[] args) {
try {
String serverName = "159.112.6.26";
ConnectionPool connections = null;
try {
connections = ConnectionPoolFactory.getInstance(serverName);
} catch (ConnectionException e) {
e.printStackTrace();
return;
// specify the repository to use
// alternatively, a repository identifier can be obtain from the GetMountedRepositoryListCommand
String repositoryName = "DEMO";
String dbmsName = "MDMD";
RepositoryIdentifier reposId = new RepositoryIdentifier(repositoryName, dbmsName, DBMSType.ORACLE);
// get list of available regions for the repository
GetRepositoryRegionListCommand regionListCommand = new GetRepositoryRegionListCommand(connections);
regionListCommand.setRepositoryIdentifier(reposId);
try {
regionListCommand.execute();
} catch (CommandException e) {
e.printStackTrace();
return;
RegionProperties[] regions = regionListCommand.getRegions();
// create a user session
CreateUserSessionCommand sessionCommand = new CreateUserSessionCommand(connections);
sessionCommand.setRepositoryIdentifier(reposId);
sessionCommand.setDataRegion(regions[0]); // use the first region
try {
sessionCommand.execute();
} catch (CommandException e) {
e.printStackTrace();
return;
String sessionId = sessionCommand.getUserSession();
// authenticate the user session
String userName = "meter1";
String userPassword = "meter1";
AuthenticateUserSessionCommand authCommand = new AuthenticateUserSessionCommand(connections);
authCommand.setSession(sessionId);
authCommand.setUserName(userName);
authCommand.setUserPassword(userPassword);
try {
authCommand.execute();
} catch (CommandException e) {
e.printStackTrace();
return;
GetRepositorySchemaCommand cmd=new GetRepositorySchemaCommand(connections);
cmd.setSession(sessionId);
try{
cmd.execute();
}catch(CommandException e){
System.out.println(e.getLocalizedMessage());
RepositorySchema repsch=cmd.getRepositorySchema();
// the main table, hard-coded
TableId mainTableId = new TableId(1);
// specify the result definition (what to retrieve); in this example, nothing
ResultDefinition rd = new ResultDefinition(mainTableId);
// select all records
Search search = new com.sap.mdm.search.Search(mainTableId);
//get fields
GetFieldListCommand getFieldListCommand = new GetFieldListCommand(connections);
getFieldListCommand.setSession(sessionCommand.getUserSession());
getFieldListCommand.setTableId(mainTableId);
try {
getFieldListCommand.execute();
} catch (CommandException e) {
System.out.println(e);
FieldProperties[] lookupFields = getFieldListCommand.getFields();
// add fields to records to retrieve
rd.addSelectField(repsch.getFieldId("Products","Id"));
rd.addSelectField(repsch.getFieldId("Products","MaterialNumber"));
// retrieve the records
RetrieveLimitedRecordsCommand limitingCommand = new RetrieveLimitedRecordsCommand(connections);
limitingCommand.setSession(sessionId);
limitingCommand.setResultDefinition(rd);
limitingCommand.setSearch(search);
//limitingCommand.setPageSize(2000);
try {
limitingCommand.execute();
} catch (CommandException e) {
e.printStackTrace();
return;
System.out.println("Record count is " + limitingCommand.getRecords().getCount()+"\n");
Record[] records=limitingCommand.getRecords().getRecords();
System.out.println(records[0].getFieldValue(repsch.getFieldId("Products","Id"))+ " \n");
System.out.println(records[0].getFieldValue(repsch.getFieldId("Products","MaterialNumber"))+ " \n");
// finally destroy the session
DestroySessionCommand destroySessionCommand = new DestroySessionCommand(connections);
destroySessionCommand.setSession(sessionId);
try {
destroySessionCommand.execute();
} catch (CommandException e) {
e.printStackTrace();
return;
} catch (Exception e) {
System.out.println(e.getLocalizedMessage());
e.printStackTrace();
Kindly let me know where i am going wrong. MaterialNumber field is a TEXT not a lookup table field. Above fields are from the main table.
Thanks,
RaagsHi Friends,
I got the solution. It was the error because of not having a the below statement.
limitingCommand.setPageSize(1);
As i havent used that statement, it was trying to get 1000 records, and i dont know exactly what makes this to get that error. Anyhow., As i want to use for updation, i cn live with one record.
Thanks,
Raags -
Report query not returning the field value from external table
hi
I have an issue regarding reports. I have a query having 4 fields from external table and remaining from db tables. the report query returns all the fields from the db tables and only 2 fields from external table. but the same query if I tried in plsql developer it returns all the fields values.
Can anyone please help me in this issue.
Thanks and Regards
kkDuplicate post?
value not displaying in report whereas it returns in plsql developer
value not displaying in report whereas it returns in plsql developer
Please log a SR if you do not get any reply to your thread instead of creating new one.
Thanks,
Hussein -
Reading Field Labels from Lookup Table
Post Author: Ohmylord
CA Forum: Formula
I'm trying to read the field labels from the database so I can have one set of reports and have them work in multiple languages by changing the display value. I created a lookup table that has these fields and values: ID EnglishValue DisplayValue1 Customer Cliente2 CustomerNumber Numero del Clienteetc. I then created a formula field for each label (@Customer Label, @CustomerNumber Label). The formula just contains the DisplayValue field. Then I used Select Records and added a Where ID=1 or ID=2. The problem is that whatever the last value I put in for the ID applies to each of the different formulas I created. In other words, it reads the labels from the database, but they are all the same. It seems like it should be pretty easy but I'm obviously missing something. Most reports probably have 15 or so labels on them. Thanks for any help!Post Author: Ohmylord
CA Forum: Formula
Here's some sample data from the table I created.
Translation
Autonumber
ID
EnglishLabel
DisplayValue
1
1
Customer
Cliente
2
2
Customer Number
Codice Cliente
3
3
Quote Date
Data Quota
4
4
Expiration Date
Data Scadenza
What I want on the report is 4 fields each one would show a different value. The simplified select statement I'm trying to get for the different fields is something like:Field 1 - Select DisplayValue where ID=1Field 2 - Select DisplayValue where ID=2etc for the other 2 fields. When a different user has a different language we would just populate the DisplayValue with different data. -
Function module to fetch SOBID field value from hrp1001 table
Hi,
Is there any function module, to fetch the value of the SOBID field from hrp1001 table by passing RSIGN,RELAT,OTYPE,SCLAS field values to that function module.
Regards,
Shalini.Hi Sikindar,
I am not able to find these function modules.I am getting message as function module not found.Please let me know is there any other function module.
Thanks,
Shalini. -
Field selection from differant tables
hello all,
i need to select differant fields from differant tables when i select common fields from both the tables, is it necessary that the common field need to be a primary key in both tables.
thanks in advance
seenuHI,
No its not required that the common field be part of the primary key in both tables only thing is you need to prefix the table name if the field names are same. But if you are using a INNER JOIN then there is no need to select both fields since you know the content of both fields will be same if JOIN is ON these fileds as well.
Regards,
Sesh
Message was edited by:
Seshatalpasai Madala -
Bank Key field change from database table
Dear All,
At our client, 4 house banks are maintained. The bank keys entered for these are not BSR Codes but something like 100,200,300,400.
This is not correct as we need to maintain BSR Code in Bank Key field as it is required on Form 16 A (TDS Cetificate)
The Bank Key field is in display mode. I am thinking of changing wrong value from database table T012 & BNKA .
Has anybody done this before? Will it affect my past or future transactions?
Thanks & regards,
GovDear Gulshan,
What you are saying is correct & I subscribe to your view also.
Creation of House Bank all over again seems to be one of the better options.
We tried doing one more thing & which is working fine on Development.
Our primary requiremnt is to have BSR Code on the From 16 A. System picks up the Bank key for this.
We copied the standard Form 16A & created a Z. Then abaper created a subroutine. It is like when Bank key 100 comes to Form16A, replace it with say 0098500 (Correct BSR Code of the Bank)
This helped to get the correct BSR Code in Form 16A & saved us from recreation of House Bank data.
Your comments are welcome.
Regards,
Gov -
To find a field value from a table
i want to get some field value from a data dictionary table.
for eg Tragr from Mara. in Fields list it shows the field is in Mara table. but in content screen it does not showing the field at all. Actually of 220 fields of mara table only 99 fields are shown. how to view all the fields of a particular field. is there any setting is there.Hi Deva,
When we execute any table by default SAP will display only few columns.(90 i guess) If we want to view all the columns of the table then do like this after executing the table i.e in ur table output.
Menupath->Settings->User parameters->choose radiobotton
Grid display Here u can see all the fields.
If u don't want to see all the fields then do like this.
Settings->listformat->Choosefields->Deselectall->Select what
ever fields u want using the search button in bottom and press enter. It will display only selected fields.
Some times we will come up with strange situations.
EG: In the field list some field will be there. But if u select that field from that table in select query it will give u syntax error saying field xxx does't exist in table yyy. This field is nothing but text table field. If u want to select this field then u have to select it from the text table. U can find the text table exist for some table or not in
Menupath->goto->text table. (In this case makt is text table for mara)
Just check below code for ur reference.
DATA: wa_mara TYPE mara.
SELECT SINGLE * INTO wa_mara FROM MARA .
Here if u go to mara table u have field MAKTX But above select will not return the field maktx even we are refering wa_mara to data base table mara. We have to explicitly select it from MAKT.
Hope this clarified all ur doubts.
Thanks,
Vinod. -
Deleting rows from one table while filter condition lies into another table
Hi All,
I'm facing a problem deleting a row from a table where the condition lies in other table. To ealaborate the scenario further let's say I have two table T1 (transaction table) and T2 (Master Table). I want to delete a record from table T1 by checking some conditions lies in table T2.
I tried with the below query but this query deleting records from both the table.
DELETE FROM ( SELECT * FROM T1 top INNER JOIN T2 tp
ON top.TID = tp.TID
WHERE top.DEAL_SITE_ID = inputparameter1
AND (TP.SEGMENT <>inputparameter2 OR tp.segment is not null));
Here the record is getting deleted from both the tables but I don't want to delete data from my master table i.e table T2.
Any help would be highly appreciated. Thanks in advance.
Regards,
SubhadeepSQL> select *
2 from the_table;
X Y
AA a
BB a
CC a
AA b
DD b
SQL> select *
2 from the_table_2;
X Y
AA a
BB a
CC a
SQL> delete from
2 (
3 select *
4 from the_table t1 inner join the_table_2 t2
5 on t1.x = t2.x
6 and t1.y = t2.y);
3 rows deleted.
SQL> select *
2 from the_table;
X Y
AA b
DD b
SQL> select *
2 from the_table_2;
X Y
AA a
BB a
CC a -
Error while posting the parked document in ECC 6.0
Hello ABAPers,
After upgrade from R/3 4.6c to ECC 6.0, when we try to post the parked documents ,It calls FM :POSTING_INTERFACE_DOCUMENT".
Inside it a call transaction is done using FBVB which throws error while posting for more than 4 withholding tax types.
Error : Field WITH_DIALG-WT_BASE(5) does not exist in the screen SAPLFWTD 0100.
On running BDC in foreground mode ,Error is happening when the withholding dialog opens and screen seems to be small to input all the tax codes i.e it shows only 4-5 rows and hence only 4 tax types passes to the screen and remaining is left out and error is thrown. This results in document not getting posted.
But in 4.6 c a bigger screen pops up and no error is thrwon.
We are not able to check FBVB directly, since it does'nt allow Direct call to this transaction.
We have checked lots of thread and notes ,But nothing seems to be relevant or helpful in our case.
Could you please help us in resolving this issue/ let us know if any configuration/ screen variant change is required?
Thanks!
Regards,
M M Jaffer.Hello Nabheet ,
It is a standard code. We are calling the FM 'PRELIMINIARY_POSTING_POST_ALL' for posting the parked document. The FM calls internally another FM 'POSTING_INTERFACE_DOCUMENT'. This calls the transaction FBVB where we get the above error.
Thanks.
Maybe you are looking for
-
I have a application build in Labview 8.5 which wroks fine with Windows XP , this program uses basic read /write functions of NI Visa to communicate with Hardware . This application doesnt work with Windows 7 32 bit/64 and Vista . What changes i need
-
Dual Boot windows 32bit and 64bit overclocking problems
Im pretty new to overclocking and this is my first try I manage to get my AMD Venice 3200 to hit 2500 with 250fsb X 10, HTT 4, vcore 1.44. I used memory divider 166/200 so the memory is running at 208MHz not alot of overclocking on the memory since i
-
IPad as external monitor, direct connection
I frequently use my iPad as a second display for my MBP via AirDisplay. Though AirDisplay works very well, even with a decent wifi connection I'll often experience lags in display updates. Can anyone suggest alternative ways to hook up an iPad as a
-
[Solved] dvbcut compile problems - New PKGBUILD fix!
Anyone using dvbcut? The aur version won't compile, nor the tar package version from sourceforge nor the svn version (170). It all seems to boil down to qt3/qt4 mismatches. I have both versions installed yet I get; configure: error: Qt library not fo
-
How can I change my store to US, now that I am in the US? A link in a previous thread says not accessible as the profile still shows different country..