Bapi or FM needed to read contract (vendor) data in 4.7 version
Hello Folks,
I am working in 4.7 version ... I checked in se37 but couldn't find suitable bapi for reading the contract data(vendor contract).In ecc 6.0 we do have bapi_contract_getdetail bapi for reading the contract data.. I couldn't find any bapi or FM to read the contract data in 4.7 version.. Can anyone help me in reading the contract data either from BAPI or FM?
Regards,
Raj
Hi,
Please check PO_ITEM LIKE BAPIMEPOITEM (Item Data) " tables
This table contains the item data for an purchase order (e.g. material, order quantity, net price, plant)."
POHEADER LIKE BAPIMEPOHEADER " import parameter
This table contains the header data of purchase order (e.g. purchasing organization, vendor, currency, terms of payment).
Regard's
Smruti
Similar Messages
-
Need to change CONTRACT End date using Bapi BAPI_CUSTOMERCONTRACT_CHANGE
Hi,
I need to change date of a contract and for the same I am using Bapi "BAPI_CUSTOMERCONTRACT_CHANGE".
I am passing the following Parameters to the BAPI.
SALESDOCUMENT -- Have passed the Contract Number in this.
CONTRACT_HEADER_IN -- Have passed the values of the following fields ::
COLLECT_NO -- Sales Document number
Sales_Org -- Sales Organization
Distribution Channes -- Dist. Channel
Division -- Division
CT_VALID_T -- New date which I want as the contract end date.
CONTRACT_HEADER_INX -- Following values have been paased in this Structure.
UPDATEFLAG -- 'U'.
CT_VALID_T -- 'X'.
Now when I run the BAPI with these inputs I get the output as ' Field 'GUEEN' cannot be copied, because it is not ready for input'.This is a information message. But the changes are not reflected in the contract. I have done the commit work after BAPI.
When I changes the value for CT_VALID_T flag from 'X' to 'U' the message mentioned above does not come but the end result is same and changes are not reflected in the contract.
I would be really helpful to you if get any kind of helf to know ehy the output is not coming.
Thanks a Lot for your kind help!!!!
Regards,
Lalit KabraHi Lalit,
The value for CT_VALID_T flag has to be 'X' in the CONTRACT_HEADER_INX structure.
In this case, you receive an informative message "Field 'GUEEN' cannot be copied, because it is not ready for input'"
That is the problem. You cannot change this field because your functional team has this field as "not ready for input" in change mode.
Can you change this field in transaction VA42? If you can't modify it in dialog, you can't modify it with BAPI.
Regards, -
Need to read parent tag data even if child fragment doesnot have data
Hi, I am using Binary method of XML Storage,
Here is my Oracle installation details
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
"CORE 11.2.0.3.0 Production"
XML Structure Details ---> The provided sample xml has repetitive Party tag under which a PolicyNumber tag might be present, under the Party tag a AddressList may or not be present.
I have 3 such Party tags, the first one has no PolicyNumber tag altough the AddressList tag and has multiple Adress under the same, the second Party tag has the PolicyNumber however it doesnot have the AdressList data in it, 3rd party tag is irrelevant for this issue.
What i want to acheive ---> Even though there are no Address present for the PolicyNumber tag i want PolicyNumber to appear in my result set, since the PolicyNumber's Party tag doesnot have a Address tag i guess the result set is ignoring the PolicyNumber in the final result set.
In a nut shell i need all these data i cannot miss the PolicyNumber neither the Address
Please go through the XML and the subsequent query for further assitance
Inserting a sample XML
INSERT INTO XML_TEST
VALUES
(XMLTYPE('<?xml version="1.0"; ?>
<workfile>
<claimnumber>abcdefgh</claimnumber>
<Party>
<AutoInsurancePolicy>
<AddressList>
<Address>
<Address1>data1 goes here</Address1>
<Address2>data1 goes here</Address2>
</Address>
<Address>
<Address1>data2 goes here</Address1>
<Address2>data2 goes here</Address2>
</Address>
</AddressList>
</AutoInsurancePolicy>
</Party>
<Party>
<AutoInsurancePolicy>
<PolicyNumber>123456</PolicyNumber>
</AutoInsurancePolicy>
</Party>
<Party>
<AutoInsurancePolicy>
<ContactList>
<ContactNumber>
<Phone>917656723</Phone>
</ContactNumber>
</ContactList>
</AutoInsurancePolicy>
</Party>
</workfile>
Query that i am using to extract CLAIM, PolicyNumber and Corresponding Addresses
select
m.CLAIM,
n.PolicyNumber,
l.ADDRESS_1,
l.ADDRESS_2
from XML_TEST,
xmltable(
'$WK/workfile' passing XMLDATA as "WK"
columns
CLAIM VARCHAR2 (4000) PATH 'claimnumber',
Party_fragment XMLTYPE PATH 'Party'
) m,
XMLTABLE(
'$PY/Party' passing m.Party_fragment as "PY"
columns
PolicyNumber VARCHAR2 (4000) PATH 'AutoInsurancePolicy/PolicyNumber',
Address_Fragment XMLTYPE PATH 'AutoInsurancePolicy/AddressList/Address'
) n,
XMLTABLE(
'$AD/Address' passing n.Address_Fragment as "AD"
columns
ADDRESS_1 VARCHAR2 (4000) PATH 'Address1',
ADDRESS_2 VARCHAR2 (4000) PATH 'Address2'
) l;
But this query returns no PolicyNumber, since the address under the Party node where the PolicyNumber is present does not have a corresponding Address value
Heres the result set returned:-
CLAIM POLICY_NUMBER Address1 Address2
abcdefgh <NULL> data1 goes here data1 goes here
abcdefgh <NULL> data2 goes here data2 goes here
Is there a way to specify to the above query to fetch all the data even if its corresponding Address fragment does not have data against the tag.
Result set that i want to acheive:-
CLAIM POLICY_NUMBER Address1 Address2
abcdefgh 123456 <NULL> <NULL>
abcdefgh <NULL> data1 goes here data1 goes here
abcdefgh <NULL> data2 goes here data2 goes here
Regards,
Arghyadip
Edited by: beta32c on May 9, 2013 2:06 AMbeta32c wrote:
Howver i think i am unable to express my problems correctly , let me try again i need both the policynumber and the address details in my result set No problem, you expressed your problem correctly, and the query I've suggested should have worked.
However, there seems to have a bug when the outer join is only used at the deepest level.
Try with outer joins at every level :
SQL> select m.CLAIM,
2 n.PolicyNumber,
3 l.ADDRESS_1,
4 l.ADDRESS_2
5 from XML_TEST,
6 xmltable(
7 '$WK/workfile' passing XMLDATA as "WK"
8 columns
9 CLAIM VARCHAR2 (4000) PATH 'claimnumber',
10 Party_fragment XMLTYPE PATH 'Party'
11 ) (+) m,
12 XMLTABLE(
13 '$PY/Party' passing m.Party_fragment as "PY"
14 columns
15 PolicyNumber VARCHAR2 (4000) PATH 'AutoInsurancePolicy/PolicyNumber',
16 Address_Fragment XMLTYPE PATH 'AutoInsurancePolicy/AddressList/Address'
17 ) (+) n,
18 XMLTABLE(
19 '$AD/Address' passing n.Address_Fragment as "AD"
20 columns
21 ADDRESS_1 VARCHAR2 (4000) PATH 'Address1',
22 ADDRESS_2 VARCHAR2 (4000) PATH 'Address2'
23 ) (+) l
24 ;
CLAIM POLICYNUMBER ADDRESS_1 ADDRESS_2
abcdefgh data1 goes here data1 goes here
abcdefgh data2 goes here data2 goes here
abcdefgh 123456
abcdefgh -
I can't read in a date from a txt file
Im not sure of the code needed to read in a date from the text file, this is an example of the text file:
1
2
2003
ie,
day
month year
I have to read in this date, this is the set method for the date:
public void setPurchaseDate (int d, int m, int y)
new Date(d,m,y);
And this is the code that I have tried using to readin the date:
PurchaseDate=(Integer.parseInt(line),Integer.parseInt(line),Integer.parseInt(line));now i know its wrong, I just dont know what the code should be!!
Cheersok, I am going to go through it and see what values I can and cant read in, here is the code i am trying to use:
private void addx()
FileReader fin;
int noBooks;
int itemNum;
String title;
String subject;
double costNew;
double costPaid;
String isbn;
double sellingPrice = 0;
int noAuthors;
int day;
int month;
int year;
String seperator = "#";
Book[] book = new Book[9];
try
fin = new FileReader("Books.txt");
BufferedReader buff = new BufferedReader(fin);
String line = buff.readLine();
int count= 0;
//read in Number of books
noBooks=Integer.parseInt(line);
while( line != null)
//Read in item number
itemNum = Integer.parseInt(line);
//Read in title
title = buff.readLine();
//Read in number of authors
noAuthors=Integer.parseInt(line);
//Read each line in as an author until number of authors reached
ArrayList authors = new ArrayList();
for(int i=0; i < noAuthors ; i++)
authors.add(buff.readLine());
//Read in cost new
costNew = Double.parseDouble(line);
//Read in subject
subject = buff.readLine();
//Read in ISBN
isbn = buff.readLine();
//Read in purchase day
day = Integer.parseInt(line);
//Read in purchase month
month=Integer.parseInt (line);
//Read in purchase year
year = Integer.parseInt (line);
//Read in cost paid
costPaid = Double.parseDouble(line);
line = buff.readLine();
//Pass date, month and year values to array
Date purchaseDate =new Date(day,month,year);
//Pass values to constructor
if (line.equals(seperator))
book[count++] = new Book(itemNum, title, authors, subject, purchaseDate,costNew,costPaid,isbn, sellingPrice,noAuthors);
// line = buff.readLine();
System.out.println(book.toString());
catch(Exception ex)
System.out.println(ex.toString());
} -
Hi,
I have a requirement here. When working as a Dev angel for multiple customers its really difficult to manage the message inflow and status with accuracy. Hence i am planning to develop an application which can retrive(only reading) the data from CSS and interpret the same to quickly arrive at decisons for the message. As a first set i need to read the message data from CSS. Are there any APIs available for the same. I guess SAP developer dashboard has some what similar functionality but with very limited scope. May be if somebody can comment on the technology/machanism behind pulling the data into dashboard?
Any comments here?
Regards,
Paulhttp://gizmodo.com/5070368/caps-lock-trainer-key-painfully-punishes-poor-netiquette
Also, there is no native way to display a PDF in flash. You will need to use a utility that converts it. SWFTools has one that works pretty well. -
I have downloaded Adobe Digital Editions to a Windows PC. I want to download a book and need to add a vendor (in this case, Harper Collins). I cannot find a menu or other option that allows that. How do I add a vendor? Please be very specific.
Thank you.Hi pastore27-
You should be able to print documents from webpages using Firefox. The print button should display by default. However, it is possible it was removed during an upgrade or due to custom preferences. The way to fix it:
# Firefox > View > toolbars > customize
# Select the printer icon and drag it to your browser window
I also found a Support article on restoring toolbars, as you said the toolbar was missing:
[[Back and forward or other toolbar items are missing]]
I hope that helps! -
Need standrad program for vendor aging report
Hi
Need standrad program for vendor aging report.
Please reply me only standrad programs.
Point are sure.
Regards,
kumarHi Pankaj
sorry to say that this is not my required program.
I need vendor aging report like s_alr_87012178 tc leads to customer aging report.
Thanks for your effort.
points are awarded.
Regards,
kumar -
Code modification to read fixed vendor (Urgent)
Hi All,
The below code is basically selecting the fixed vendor as per EORD table for a given material - plant combination. But the issue is for this combination, there can be different fixed vendors but during different times
eg:
Mtl - A, Plant - 1000
Fixed vendor: Vendor1, From 1.1.2000 To 31.12.2003
Fixed vendor: Vendor2, From 1.1.2004 To 31.12.2007
Fixed vendor: Vendor3, From 1.1.2008 To 31.12.2010
So i want to add one more condition, which reads the system date & if the system date lies in-between 1.1.2000 to 31.12.2003, it selects vendor 1 or if the system date lies in between 1.1.2004 to 31.12.2007, then select vendor 2.
So how can i add this condition? The valid from field is EORD-VDATU & the valid to field is EORD-BDATU
Code:
CLEAR: Y_LIFNR, Y_FLIFN, WL_MATNR.
SELECT SINGLE LIFNR FLIFN MATNR FROM EORD INTO (Y_LIFNR, Y_FLIFN,
WL_MATNR)
WHERE MATNR EQ MARC-MATNR
AND WERKS EQ MARC-WERKS
AND FLIFN NE ' '.
Hope my question is clear, await inputs
VivekHi,
Check the below logic:
if sy-datum >= 1.1.2000 and sy-datum <= 31.12.2003.
vendor = vendor1.
elseif sy-datum >= 1.1.2004 and sy-datum <= 31.12.2007.
vendor = vendor2.
elseif sy-datum >= 1.1.2008 and sy-datum <= 31.12.2010.
vendor = vendor3.
endif.
CLEAR: Y_LIFNR, Y_FLIFN, WL_MATNR.
SELECT SINGLE LIFNR FLIFN MATNR FROM EORD INTO (Y_LIFNR, Y_FLIFN,
WL_MATNR)
WHERE MATNR EQ MARC-MATNR
AND WERKS EQ MARC-WERKS
AND FLIFN NE ' '.
and lifnr = vendor
AND VDATU >= SY-DATUM
AND BDATU <= sy-datum . -
Error message says need Adobe reader 8 or 9 installed to open pdfs from web pages yet Reader 9alredy
Error message says need Adobe reader 8 or 9 installed to open pdfs from web pages yet Reader 9 is alredy installed on computer. Is this a 64 bit ossue although I am sure I did not have this problem prior to a replacement hard drive being installed.
What is your operating system, browser?
What is the exact message you are getting? -
s
Hello Gurus, I have to read the attached text in which TDID and TDLINE need to read.Here i need to write logic like that in ALV output text of TDLINE related to TDID Htxt come in single line if there is more than 1 line used , same for NOTE and Itxt. Please help me out with some ogic to show data in alv output. I have used FM 'BBP_PD_CONF_GETDETAIL'. Thanks Sankil
TDID TDLINE HTXT Supplier Text HTXT Supplier Text NOTE Note NOTE Note ITXT Supplier Text ITXT Supplier Text NOTE Note NOTE NoteHello Sankil
This can be achieved by using event AFTER_LINE_OUTPUT and also search with keyword AFTER_LINE_OUTPUT to get more examples
Please go through the below tutorial.
http://www.****************/Tutorials/ALV/Wordwrap/Index.htm
Thanks -
Need to read Unicode in a file
Hi,
My need to read Unicode from a file (on a Windows box) is due to the fact my software is used in different countries and on different keyboard naturally. All the users are not computer literate but, like me, they are all lazy and want to put their username and password in a config file my application reads. If their username or password contain Unicode characters I have a problem reading.
They are simple users that I would like to advise them to open the config file using Windows Notepad, then type in their username and password, and save the file as Unicode. Notepad has four ways to save a file, ANSI, Unicode, Unicode big endian, and UTF-8 (I've tried them all except ANSI of course). Saving a file in a different format is as complicated as I would like it to get for them, some will have trouble even with this.
I read the file like so:
BufferedReader rdr =
new BufferedReader(
new InputStreamReader(new FileInputStream(file_name), "UTF-16"));
String line;
while ((line = rdr.readLine()) != null) {
String[] pieces = line.split("[=:]");
if (pieces.length == 2) {
if (pieces[0].equals("PASSWORD")) {
byte[] possibleUnicode = pieces[1].getBytes("various encodings");
pieces[1] = new String(possibleUnicode, "various encodings");
propertyTable.setProperty(pieces[0], pieces[1]);
}All reading is perfect except for a username or password which can contain a real multi-byte character. I have used many variations of converting the string I get into a byte[] using string_in.getBytes("various encodings tried") and then back to a string but nothing has worked.
I tried a regular FileReader to a BufferedReader and that didn't work. I tried a FileInputStreamto a DataInputStream and that didn't work. I accomplished the most with what I described above, FileInputStream to InputStreamReader to BufferedReader.
Does anyone know how to read Unicode in a file on a Windows file system?
hopiI have used the byte conversion technique before
successfully when I loaded a set of properties
from a URL openStream(). The properties load()
method takes an InputStream and assumes ISO-8859-1
so I converted the bytes from ISO-8859-1 to UTF-8.
Garbage characters were cleared up perfectly.I think you just got lucky that time. For characters up to U+007F, the UTF-8 encoding is the same as ISO-8859-1 (and most other encodings, for that matter). Characters in the range U+0080 to U+00FF will be encoded with one byte in ISO-8859-1, and with two bytes in UTF-8. In most cases, each of the two bytes in the UTF-8 representation will have values that are valid in ISO-8859-1. The decoded characters will be incorrect (and there will be too many of them), but they effectively preserve the original byte values, making it possible for you to re-encode the characters and then decode them correctly. But there's a big gap in the middle where the UTF-8 bytes produce garbage when decoded as IS)-8859-1. Run the included program to see what I mean.
I don't know what's going wrong with your application, but I do know that changing the encoding retroactively is not the solution. I also think you're right about asking users save files in a certain encoding. Considering how much trouble programmers have with this stuff, it's definitely too much to ask of users.
import java.awt.Font;
import javax.swing.*;
public class Test
public static void main(String... args) throws Exception
JTextArea ta = new JTextArea();
ta.setFont(new Font("monospaced", Font.PLAIN, 14));
JFrame frame = new JFrame();
frame.add(new JScrollPane(ta));
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
StringBuilder sb = new StringBuilder();
for (int i = 0xA0; i <= 0xFF; i++)
sb.append((char)i);
String str1 = sb.toString();
byte[] utfBytes = str1.getBytes("UTF-8");
String str2 = new String(utfBytes, "ISO-8859-1");
for (int i = 0, j = 0; i < str1.length(); i++, j += 2)
char ch = str1.charAt(i);
byte b1 = utfBytes[j];
byte b2 = utfBytes[j+1];
String s1 = Integer.toBinaryString(b1 & 0xFF);
String s2 = Integer.toBinaryString(b2 & 0xFF);
char ch1 = str2.charAt(j);
char ch2 = str2.charAt(j+1);
ta.append(String.format("%2c%10s%10s%3x%3x%3c%3c\n",
ch, s1, s2, b1, b2, ch1, ch2));
frame.setSize(400, 700);
frame.setLocationRelativeTo(null);
frame.setVisible(true);
} -
Need to read data from a jsp and insert in other jsp
Hi,
I have a jsp where i need to read from another jsp(which has data " header ---insert -----footer") and find a string "insert" in it and replace that string with a some value in the current jsp.
Thanx in Advance.
Sridhar.I have a jsp
which needs to take headers and footers dynamically and insert them into my jsp.
currently what i am doing is, using a script to get these header and footer and using document.write
MYJSP.jsp looks this way
<script src="/../Headerfooter.jsp"/>
<script language="javascript">
document.write(header); -->defined in -> /HeaderFooter.jsp
document.write("<table>...</table>");
document.write(footer);-->defined in -> /HeaderFooter.jsp
</script>
/HeaderFooter.jsp looks this way
header = "<html>...<table width=\"100\">....";
footer ="....</html">
i dont want to use script bcoz i am getting problems in nestcape... -
hey ppl
i have a datagrid in my form.i need to read input(fields..sort of a database) from a text file and display its contents in the datagrid.
how can this be done.. and also after every few seconds reading event should be re executed.. and that the contents of the datagrid will keep changing as per the changes in the file...
please help as this is urgent and important.. if possible please provide me with an example code as i am completely new to flex...
thanks.....It's not possible to read from a file without using classes from the core API*. You'll have to get clarification from your instructor as to which classes are and are not allowed.
[http://java.sun.com/docs/books/tutorial/essential/io/]
*Unless you write a bunch of JNI code to replicate what the java.io classes are doing. -
Need to read data from a text file
I need to read data from a text file and create my own hash table out of it. I'm not allowed to use the built in Java class, so how would I go implementing my own reading method and hash table class?
It's not possible to read from a file without using classes from the core API*. You'll have to get clarification from your instructor as to which classes are and are not allowed.
[http://java.sun.com/docs/books/tutorial/essential/io/]
*Unless you write a bunch of JNI code to replicate what the java.io classes are doing. -
"Error reading credit master data" in contract management in CRM 7.0
Hi All,
In CRM 2007,whenever we navigate to contract management screen,error message come which is "Error reading credit master data "
Any suggestion on how to solve this issue.
Regrads
NikhilHi All,
This is resolved.
Just set the entry in the table CRMV_CREDIT_GEN to 'Do not Display credit master data '
Regards
Maybe you are looking for
-
Terminal.app resize bug?
I use the Terminal.app to log into a Linux machine. I usually open up multiple tabs per window, and I run emacs in some of the terminal window. The problem is that when I resize the windows, often the window can not remember what size it's supposed t
-
How to use VNC with AirPort?
Hi, I used to have an old iMac G3 DV at home, and I always used VNC to access it from my work computer. No problem. Now, I recently bought a brand new MacBook and a brand new AirPort Extreme base station, and I can't connect using VNC anymore. I trie
-
Satellite L300 - 'W' and 'F' Keys not working - can't log
Hi, I have a Toshiba Satellite L300. My 'F' and 'w' keys arent working, and because I have a Built-in HDD user password of which contains those letters, I can not start up my computer. I had a 'startup' problem a couple of months back, and what I had
-
i am using a mac mini with 2 GB of ram and 2.3 intel core i5, my os is OS X 10.7.5, recently, my computer has been extremely slow, for every click i did, it takes at least 10 seconds to respond, i could not find out why.
-
Hi All, We have requirement to consolidate billing based on Partner Function, We have new Partner function like RD, we need consolidation billing for those partner(sales order to invoice)... suggest idea's... Regards, DS Kumar