Error in form interface
Hi,
I had an error in form interface.I declared as,
IN_VOICE TYPE VBRK-VBELN for parameter.
error: "VBRK-VBELN" is not a pre-defined type or a type from a type group.
Hi dilip,
Declare in the Import tab in the global definitions:
t_vbrk type y_ty_vbrk.
t_vbrp type y_ty_vbrp.
Create the table types for these two parameters (t_ vbrk and t_vbrp) in se11.
In the driver program declare:
fs_vbrk LIKE LINE OF t_vbrk,
fs_vbrp LIKE LINE OF t_vbrp.
Regards,
Sravanthi
Similar Messages
-
Error in the import tab of form interface with parameter name
Hi Experts,
in the import tab of form interface i have define the following..
Parameter Name type assignment Associated Type
t_vbrk type vbrk
and then in a loop i am using this as follows...
t_vbrl into fs_vbrk
after executing check i am getting the error 'T_VBRK" is neither specified under "TABLES" nor defined as an internal table.'
plz help me out with this.....
why this error is occuring?
thnks n reagrds,
AshmitaHi,
U cannot loop the import tab i think....Give tat one in tables statement and execute..
t_vbrk type vbrk in Tables tab...
I think it will solve ur issue.. -
Form interface import parameter cannot be used in smartform
Hi,
When I try to use the standard parameter HEADER in a routine in a smartform, I get the error: "HEADER" expected, not "...".
I have put the HEADER definition in the Input parameters of the routine and I have tried other form interface import parameters and I do not get any error with those. So I cannot see why HEADER woudl be any differnt?
Any suggestions? Thanks.Hi,
Thanks for your reply.
There's a smartform with this definition in the Import tab of the Form Interface:
HEADER TYPE BAPIBUS2000110_HEADER_DIS
I've created a Program Lines routine. In the Input Parameters under the General Attributes tab, I entered HEADER. This is so I can reference the table in the code. However if I do a syntax check, I get the error described "HEADER" expected, not "...".
Hope this clarifies the problem. -
Compile Error: 'class' or 'interface' expected
Hi all,
I have a code which was compiling/running successfully:
import java.net.*;
code
When I added the line: import java.io.*;
import java.net.*;
import java.io.*;
code
Got the following compile error:
'class' or 'interface' expected
import java.io.*;
^
If I comment one of my import statements then it compiles, but I can't have both!
Does anybody know what's the problem? where it comes from?
Any help is greatly appreciated.I haven't post the entire code b/c it's very long, anyway here it is...
import java.net.*; ;
import java.io.*;
//class TransactionOp: #1
class TransactionOp
int ID = 0;
double price = 0.0;
int subsID = 0;
String xmlDoc = "";
String xmlResp = "";
String respID = "";
String authCode = "";
int opResult = 0;
public TransactionOp(int anID, double aPrice, int aSubID)
ID = anID;
price = aPrice;
subsID = aSubID;
//op done values: 1: REF, 2: DCL, 3: AUTH, 4: AUTH_NoID
//op errors: -1: noResponse, -2: noAuthResp, -3: noStatus, -4: no gw.
//class AddressCC: #2
class AddressCC
String zipcode = "";
String city = "";
String state = "";
String country = "";
String address1 = "";
public AddressCC(String addr1, String city1, String state1, String country1, String zipcode1)
address1 = addr1;
city = city1;
state = state1;
country = country1;
zipcode = zipcode1;
//class InfoCC: #3
class InfoCC
String fullName = "";
String number = "";
String expDate = "";
public InfoCC(String name, String number1, String date)
fullName = name;
number = number1;
expDate = date;
public class SurePayGW
//instance fields
private String merchant = "";//merchant = aMode
private String password = "";
private String server = "";
private int subsID = 0;
public SurePayGW()
merchant = "34593";
password = "hnbv78hj6";
server = "xml.surepay.com";
}//endof constructor:SurePayGW
//String formattedS = "\"" + s + "\"";
public void spitDoc(SurePayGW sp, AddressCC address, InfoCC ccInfo, TransactionOp trans)
String xmlBuf = "<!DOCTYPE pp.request PUBLIC \"-//IMALL//DTD PUREPAYMENTS 1.0//EN\" \"http://www.purepayments.com/dtd/purepayments.dtd\">";
xmlBuf = xmlBuf + "<pp.request merchant=" + "\"" + sp.merchant+ "\" password=" + "\"" + sp.password+ "\">";
xmlBuf = xmlBuf + "<pp.auth ecommerce=\"true\" ordernumber=" + "\"" + trans.ID + "\" recurring=\"false\">";
xmlBuf = xmlBuf + "<pp.creditcard number=" + "\"" + ccInfo.number + "\" expiration=" + "\"" + ccInfo.expDate.charAt(0) + ccInfo.expDate.charAt(1)+ "/" + ccInfo.expDate.charAt(2) + ccInfo.expDate.charAt(3) + "\">";
xmlBuf = xmlBuf + "<pp.address type=\"billing\" zip=" + "\"" + address.zipcode + "\" city=" + "\"" + address.city + "\" state=" + "\"" + address.state + "\" country=" + "\"" + address.country + "\" fullname=" + "\"" + ccInfo.fullName + "\" address1=" + "\"" + address.address1 + "\"/>";
xmlBuf = xmlBuf + "</pp.creditcard>";
xmlBuf = xmlBuf + "<pp.address type=\"shipping\" zip=" + "\"" + address.zipcode + "\" city=" + "\"" + address.city + "\" state=" + "\"" + address.state + "\" country=" + "\"" + address.country + "\" fullname=" + "\"" + ccInfo.fullName + "\" address1=" + "\"" + address.address1 + "\"/>";
xmlBuf = xmlBuf + "<pp.lineitem sku=\"R" + trans.subsID + "Zg\" description=\"Subscription Renewal\" taxrate=\"0\" quantity=\"1\" unitprice=\"" + trans.price + "USD\"/>";
xmlBuf = xmlBuf + "</pp.auth></pp.request>";
//print("@DBG [SurePayDoc.submitTransaction]: will send %s" % xmlBuf)
trans.xmlDoc= xmlBuf;
//System.out.println("This the final result of xmlBuf: ");
//System.out.println(xmlBuf);
//System.out.println("trans.xmlDoc = " + trans.xmlDoc);
}//endof m: spitDoc
public void submitTransaction(SurePayGW sp, TransactionOp aTrans)
String param = "";
HttpURLConnection connection;
URL url;
String urlString = "";
String input = "";
String response = "";
try
//params= urllib.urlencode({'xml' : aTrans.xmlDoc})
param = java.net.URLEncoder.encode(aTrans.xmlDoc, "UTF-8");
//System.out.println("The output from java.net.URLEncoder.encode: " + param);
//link= httplib.HTTPSConnection(self.server)
urlString = "https://" + sp.server;
url = new URL(urlString);
connection = (HttpURLConnection)url.openConnection();
System.out.println(connection.getURL());
System.out.println(connection.getResponseCode() + " " + connection.getResponseMessage());
System.out.println(connection.getURL());
connection.setDoInput(true);
connection.setDoOutput(true);
connection.setUseCaches(false);
//link.putrequest('POST', '/')
connection.setRequestMethod("POST");
//link.putheader('Content-type', 'application/x-www-form-urlencoded')
//link.putheader('Content-length', ("%d" % len(params)))
//link.putheader('Accept', 'text/plain')
connection.setRequestProperty("Content-type", "application/x-www-form-urlencoded");
connection.setRequestProperty("Content-length", param.length());
connection.setRequestProperty("Accept", "text/plain");
//link.endheaders()
connection.connect();
System.out.println("Client : Connected");
//link.send(params)
//response= link.getresponse()
//data= response.read()
DataOutputStream out = new DataOutputStream(connection.getOutputStream());
System.out.println("Client : Writing Content");
out.writeBytes(content);
System.out.println("Client : Flushing Stream");
out.flush();
System.out.println("Client : Waiting for response from Server");
BufferedReader in = new BufferedReader(new InputStreamReader(http.getInputStream()));
System.out.println("Client : Opened input stream");
while((input = in.readLine()) != null)
response += input + "\r";
System.out.println("Client : received : "+response);
//I'm not bothering to close the streams or http connection yet.
}//endof: try
catch (MalformedURLException e)
e.printStackTrace();
catch (Exception e)
e.printStackTrace();
}//endof m:submitTransaction
}//endof class:SurePayGW -
i have declared a internal tale in driver program and it is like this
data : begin of itab occurs 0,
vbeln TYPE vbak-vbeln,
audat TYPE vbak-audat,
auart TYPE vbak-auart,
vkorg TYPE vbak-vkorg,
vtweg TYPE vbak-vtweg,
spart TYPE vbak-spart,
posnr TYPE vbap-posnr,
matnr TYPE vbap-matnr,
matkl TYPE vbap-matkl,
end of itab.
i am passing to smartform
call function I_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
itab_end = itab
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
In the smartform i am trying to create itab_end so that i can capture the data from the program.
in the form interface in tables option i am declaring like this
itab_end type itab.
I am getting the error like 'type itab does not exist'.
please tell how to solve this.Hi,
Ramesh kumar
Your check this code.
data : begin of itab occurs 0,
vbeln TYPE vbak-vbeln,
audat TYPE vbak-audat,
auart TYPE vbak-auart,
vkorg TYPE vbak-vkorg,
vtweg TYPE vbak-vtweg,
spart TYPE vbak-spart,
posnr TYPE vbap-posnr,
matnr TYPE vbap-matnr,
matkl TYPE vbap-matkl,
end of itab.
data:
t_itab type standard table of itab.
Working fine .
Regards,
Ansari. -
Form Interface "YT_VBRK" is not a pre-defined type or a type from a ty
hi.
i am getting an error :Form Interface "YT_VBRK" is not a pre-defined type or a type from a type group.
i declared in types
TYPES : Yt_VBRK TYPE VBRK,
Yt_VBRP type VBRP.
can any one tell me the solution
and pls tell me how to create a table typr.pls......Please go through the help.sap online and get your basics right to create a table type or you can search in SDN about this.
Search before posting a question. -
Error Running Forms: Failure of server APACHE bridge
Hi Everyone,
I have this problem on windows 7 64-bit... installation went fine without any errors.
Forms was working fine, i was able to run test form, and a form that i created, and both were running properly..
suddenly, while testing a new form module, it didn't work, and its showing :
Failure of server APACHE bridge:
No backend server available for connection: timed out after 10 seconds or idempotent set to OFF. I stopped and started the wls_forms and it didn't solve the problem..
i couldn't get to a solution anywhere, is it a problem with weblogic configuration? but how was it working well at the begining... if weblogic services are not starting, then what's the fix for that?
Help would be appreciated...
Thanks..No, but as said you installed components (the HTTP Server) you wouldn't need for development. Did you start WLS_FORMS?
In any case the latest version of forms would be 11.1.2 where the installation process for a development machine is much easier.
You'd need
- wls1035_generic.jar and a 64bit java runtime
- the 64bit version of forms 11.1.2: http://download.oracle.com/otn/nt/middleware/11g/111200/ofm_frmrpts_win_11.1.2.0.0_64_disk1_1of1.zip
of course you can install the 32bit version of forms too on your 64bit machine.
then during installation just check "development mode", and you get a development installation like you got with iDS 10.1.2 with one weblogic instance instead of 3 and all the components you won't need (like webcache or the http server) won't be installed.
cheers -
Accounting Document not posted for Cancelled Invoice -error in FI interface
Hi,
When I create a billing document then an accounting document gets created automatically in the background and then when I cancel the billing document no accounting document gets generated and the field Posting Status in header Detail of Billing document updated as "Errors in Financials Interface.
I tried to release it for Posting via VFX3 but failed due to below error message in Log:
"Incorrect doc.no.: 4900000005. Select document number between 3000000000 and 3099999999"
I have checked the Number range assignments to the Invoice type and Accounting type.
The number range is same for both Invoice type (Y0F2) and Cancelled Invoice type (Y0S1).
The Accounting document type (RV) is also same for both the cases. But it is working fine for Y0F2 (Acounting document generated and cleared automatically). But not working fine for Cancelled Invoice (Y0S1).
Can anybody please help me find out a solution to the issue.
Thanks, Ram.Hi,
The error message F5151 refers to the number range of the FI document.
Please have a look at the note 1259505: FAQ: New cancellation procedure in SD, which covers this issue in detail.
Question 5:
Q5. What is the FI document type, generated by the cancellation ?
In the old cancellation procedure, the FI document type is always
determined in SD, and passed to FI (the same when a normal invoice -
not a cancellation - is transferred to accounting).
In transaction VOFA there is the field 'Document type' (TVFK-BLART).
If this field is filled, then the FI document will have the document
type maintained here.
If TVFK-BLART is empty, then the FI document will get the default
document type 'RV'.
If the new cancellation procedure is performed, the FI document type is
always determined in FI, based on the document type of the FI document
to be reversed.
In transaction OBA7 the FI document type has assigned the field 'Reverse
document type' (T003-STBLA).
If it is filled, then the FI cancellation document will get the document
type maintained here.
If T003-STBLA is empty, then the FI document cancellation will get the
same document type as the cancelled FI document.
Notice that an unexpected FI document type can cause the error message
F5 151.
Example:
F2 invoice 90000001 was released, creating an accounting document with
document type 'RV'.
This F2 invoice is reversed by the S1 billing document 70000001.
In customizing of SD there is:
Billing Type Document Type
F2 RV
S1
In customizing of FI there is:
Document Type Number range Reverse Document Type
RV 00 AB
AB 01 AB
The FI number ranges (object RF_BELEG) are:
No From number To number Ext
00 0090000000 0099999999 X
01 0100000000 0199999999
Different situations can occur, due to these customizing settings of the
FI document type, caused by the type of cancellation.
If the new cancellation is used:
The FI document type 'RV' has 'Reverse Document Type' = 'AB'.
Document type 'AB' has number range '01' set as internal.
So the FI document will have its own number included in
100000000-199999999.
There is no issue.
If the old cancellation is used:
The cancellation billing type S1 has no 'Document type' maintained, so
the FI document will get document type 'RV'. It has number range '00',
set as external number range.
So the FI document should get the same number of S1 billing document.
But the S1 billing document has number 70000001, not included in the
interval of number range '01'.
This will cause error F5 151.
I hope this information helps you. -
"Invalid Cursor" Error in Form
Hi,
I wrote a procedure that take a REF CURSOR as an IN OUT argument. This procedure does an "OPEN cursor FOR qry" with a dynamic query:
OPEN l_cursor FOR
'SELECT A '||
'FROM B '||
'WHERE C = :l_var'
USING myVar;After calling the procedure, I do a LOOP with FETCH.
It works well when I use it in SQL*Plus with DBMS_OUTPUT but it returns a "ORA-01001 invalid cursor" error in Forms.
Any help is welcome!
Regards,
Olivier.I found a solution on Metalink:
Note:170881.1
Note: 1007395.6
Olivier. -
Error while posting GR "Internal error in FORM/FUNCTION CKML_F_BUILD_INDEX
Dear Experts,
While posting GR for any non-valuated material, I am getting an error "Internal error in FORM/FUNCTION CKML_F_BUILD_INDEX in position 1 with RC 0
Message no. C+099"
Kindly explore the possibilities of solution for the above error. The abve error only showing at the time of posting and not whicle Check.
Regards,
TusharHi Tushar,
Your problem is happening because of the applicaiton of an SAP Note. I think PM has nothing to do with this Error. Pl. read the following (which I read this from one SAP website) & check the relevant SAP notes and take action or write to SAP for solution.
Symptom
The posting of goods receipts results in a long runtime.
Other terms
ACTUPD, MIGO, performance, material ledger
Reason and Prerequisites
The actual costing is active.
The performance problems usually occur when there are several procurement alternatives or procurement processes (tables CKMLMV001 and CKMLMV002) for certain materials.
This can be caused by implementing the modification according to Note 1017470 or 919869, [...]
Regards,
Bala. -
Creating a Purchase Order Smart Form (Form Interface)
After reading up on all the posts about making a PO smart form I know this:
- An SAP script "medruck" is the current output
- A smartform exists for PO's named "/SMB40/MMPO_L" or "/SMB40/MMPO_A"
- You need to install an update to get those smartforms if you are using ECC 6.0
So my dilemma is that the SAP administrator is on vacation for a week, so I can't install the update to our system. I'm trying to just create it from scratch using the medruck SAP script as a reference, but I am a little confused.
Basically all I need to know is what form interface parameters do I pass in? Meaning how do I find out what structures and tables are imported into the function module when print preview is called from t-code ME22N? Can you please provide proper syntax for form interface solution or instructions on how to determine imported variables into the smartform?Hi
If the smartform purchase order is not available in your system
means you can download the form IDES and you can upload the form in ur ecc 6.0 system.we faced a similar kind of problem in our system and we did as i said.
Once you uploaded the things you can easily view the form interface and rest of the things related to smartforms.
Thanks and Regards
Arun Joseph -
Error in Acctg Interface in Invoice
hi all,
I cannot create an accounting doc for an invoice which has a posting status: " Error in Accounting Interface".
I read all the threads in the forums. I did not have issue with Acct Determination for Revenue. I do not use acct assignment group. The Account Anlysis in VF02 is fine.
Do we assign anything from an invoice to a cost center ??
When i try to release accounting doc, i got error msg:
Cost Center Control-Area/ 3150 does not exist on 7/7/2010
Issue is there is no cost center 3150 at all. Why is it saying cost center ? Any suggestions are welcome.
thanks
JoyceCost center is not available in the specific Controlling area. Reason could be any of the below :
- not available on particular date, that means the validity is not in the period in which you are posting.
- cost center itself is not available.
-wrongly selected cost center / wrongly entered cost center
Please check the valid from date and valid to date of the cost center in the cost center master data in KS02 and you can extend the valid to date if necessary.
OR
Is it a GUI transaction that you are trying to pass or some batch input/BAPI?
If the last is correct, put leading zeros in the cost centre field. If it's a normal transaction, check that the cost centre is assigned to the right company code (KS03).
Thanks & Regards
JP -
Fatal error distributing forms with Adobe Acrobat 9 Pro
Fatal error distributing forms with Adobe Acrobat 9 Pro.
I click
"Adobe Acrobat Pro/Formularer/Distribuer formularer/"
("Adobe Acrobat Pro/Forms/Distribute forms/")
and chose a form for distribution and in the picture "Distribute Form" chose
"Automatically download & organize responsees with Acrobat.com".
I then click "Next" and write an email-address to send it to (i.g. to my own)
and then click "Send".
The program quickly writes
"Authenticating email-addresses"
and then gives the following error message
"Borland Database er ikke installeret. Kan ikke indlæse tjenesteudbyder af Corel-adressekartotetek."
("Borland Database is not installed. Can not read load service provider of Corel address directory.")
When I clik "OK" I get the error message
"Adobe Acrobat has encountered a problem and needs to close. We are sorry for the inconvenience."
I have undeleted and reinstalled Adobe Acrobat many times without any effect.
The same procedure has been tried on another computer without any problem.
What is my problem and how do I resolve it ?
Operating System Windows XP
Has worked may times before
Same results with other files
No recent system hardware or software changeThis is the image that I have plus....
Reader 9.0 AcroRd32.exe caused Microsoft Visual C++ Runtime Library error
Preinstalled Adobe 9 Standard doesn't work on a new Dell out of the box - why would it?
Need help in creating a batch file that will add and remove some registy keys.
%userprofile% -
Error in form server6i ifweb60
Error in form server6i ifweb60
Hi all
We are using oracle formsserver6i on win2003 server as application server . Usually each ifweb60 gets 18 – 25 MB memory, but Sometimes one or more of them starting to get more and more memory (I've seen 250MB) and then finally we get an Microsoft visual C++ runtime library error window with following text:
Assertion Error in ifweb60.exec
File=e:\994w32\src\if\iff\ifzexe.c
Line: 1183
Exception: hifxc == hifxc_old
Pres Retry to debug application – JIT must be enabled
Is it a application related error or it’s a bug?
Does any body have any workaround this problem?
Thank you in advance.
Alireza
Message was edited by:
areh74I am with Mediware Information Systems and we have an opening for a Senior Oracle 6i DBA if you know of anyone who has 5 yrs. of Oracle 6i DBA experience. If so, they can send their resume to [email protected] with the subject line 06-029.
Thanks! -
Hi All,
We are facing error FI/CO interface: Balance in transaction currency from BAPI BAPI_ACC_DOCUMENT_POST.
This error we are getting only in case of passing tax data.
Can anyone help me on this.
Below is the code :
*fill header
gd_documentheader-username = sy-uname.
gd_documentheader-header_txt = 'Test'.
gd_documentheader-comp_code = p_ccode. "SQ
gd_documentheader-doc_date = sy-datum.
gd_documentheader-pstng_date = sy-datum.
gd_documentheader-doc_type = 'KR'.
gd_documentheader-ref_doc_no = p_xblnr. "SQ
*gd_documentheader-bus_act = 'RMWE'.
city = p_city.
state = p_state.
zipcode = p_zip.
*get tax juridisction code
IF NOT ( city IS INITIAL ) AND
NOT ( state IS INITIAL ) AND
NOT ( zipcode IS INITIAL ).
SELECT SINGLE rfcdest INTO ttxd-rfcdest FROM ttxd
WHERE kalsm = 'TAXUSX'.
CLEAR x_com_jur.
REFRESH t_com_jur.
x_com_jur-city = city.
x_com_jur-state = state.
IF zipcode+5(4) EQ space.
zipcode+5(4) = '0000'.
ENDIF.
CONCATENATE zipcode+0(5) '-' zipcode+5(4)
INTO x_com_jur-zipcode.
x_com_jur-country = 'US'.
CALL FUNCTION 'RFC_DETERMINE_JURISDICTION'
DESTINATION ttxd-rfcdest
EXPORTING
location_data = x_com_jur
IMPORTING
location_err = x_com_err
TABLES
location_results = t_com_jur.
IF sy-subrc = 0.
READ TABLE t_com_jur INTO x_com_jur INDEX 1.
it_accountgl-taxjurcode = x_com_jur-txjcd.
ENDIF.
ENDIF.
*fill AP (line 1) - vendor related data
SELECT SINGLE zterm FROM lfb1 INTO p_zterm WHERE lifnr = p_lifnr.
it_accountpayable-itemno_acc = 1.
it_accountpayable-tax_code = p_txcd.
it_accountpayable-pmnttrms = p_zterm. "SQ
it_accountpayable-vendor_no = p_lifnr. "SQ
*it_accountpayable-item_text = 'S2P Testing in UDR1'. - SQ
it_accountpayable-pymt_meth = p_pmet. "- SQ
APPEND it_accountpayable.
*fill GL (line 2)
it_accountgl-itemno_acc = 2.
*item_text - sq
IF p_asset IS NOT INITIAL.
TABLES : anlz,
anla.
SELECT SINGLE * FROM anlz WHERE anln1 = p_asset.
SELECT SINGLE * FROM anla WHERE anln1 = p_asset.
*concatenate '00' anla-KTOGR into it_accountgl-gl_account .
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = anla-ktogr
IMPORTING
output = it_accountgl-gl_account.
it_accountgl-asset_no = p_asset.
it_accountgl-sub_number = '0000'.
it_accountgl-cs_trans_t = '105'.
it_accountgl-acct_type = 'A'.
ELSE.
it_accountgl-gl_account = p_gl.
it_accountgl-costcenter = p_cc.
it_accountgl-wbs_element = p_posid.
ENDIF.
it_accountgl-comp_code = p_ccode.
it_accountgl-tax_code = p_txcd. "SQ
it_accountgl-pstng_date = sy-datum.
it_accountgl-fisc_year = sy-datum(4).
APPEND it_accountgl.
CLEAR it_currencyamount.
*fill currency ammounts for lines 1 & 2
it_currencyamount-currency = p_waers. "SQ
it_currencyamount-itemno_acc = 1.
*it_currencyamount-amt_base = -1.
it_currencyamount-amt_doccur = - 116. "p_totamt.
it_currencyamount-CURRENCY_ISO = 'USD'.
it_currencyamount-tax_amt = - 16.
APPEND it_currencyamount.
CLEAR it_currencyamount.
it_currencyamount-itemno_acc = 2.
it_currencyamount-currency = p_waers. "SQ
it_currencyamount-amt_doccur = 100.
it_currencyamount-CURRENCY_ISO = 'USD'.
*it_currencyamount-amt_base = 100.
*it_currencyamount-TAX_AMT = -10.
APPEND it_currencyamount.
*tax data
it_accounttax-itemno_acc = 3.
it_accounttax-tax_code = p_txcd.
it_accounttax-gl_account = '0023110000'.
*it_accounttax-gl_account = p_gl.
it_accounttax-TAXJURCODE = x_com_jur-txjcd.
it_accounttax-acct_key = 'NVV'.
it_accounttax-cond_key = 'XP2I'.
**it_accounttax-direct_tax = 'X'.
APPEND it_accounttax.
CLEAR it_currencyamount.
it_currencyamount-itemno_acc = 3.
it_currencyamount-currency = p_waers. "SQ
it_currencyamount-amt_doccur = 16.
it_currencyamount-CURRENCY_ISO = 'USD'.
it_currencyamount-amt_base = 100.
it_currencyamount-TAX_AMT = - 16 .
APPEND it_currencyamount.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = gd_documentheader
IMPORTING
obj_key = wa_obj_key
TABLES
accountgl = it_accountgl
* ACCOUNTRECEIVABLE =
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
* CRITERIA =
* VALUEFIELD =
* EXTENSION1 =
return = it_return
COMMIT WORK.
Regards,
PriyaranjanHi,
Reason 1:
An revenue-recognition-relevant item has several active conditions whose values cancel themselves so that a net item value of 0 results. The conditions have both the same revenue account (SAKN1) and the same clearing account (SAKN2).
For these conditions, the system writes a line with value 0 into the temporary FI/CO interface (internal tables: CACCIT, CACCCR). If table VBREVK does not contain control lines for this line, no further processing occurs and the line remains in the temporary FI/CO interface. Then the system reads this line for the creation of the next billing item which conatins a net value and generates a posting line with value 0. As a result, there is a balance in the FI/CO interface, and the billing document cannot be transferred.
Reason 2:
The billing document contains at least one item with an item category for which there is a setting stipulating that the values of this item should not be transferred to the header total of the document.
That is, in the maintenance of the item categories, this item category has the characteristic 'X' or 'Y' in 'Statistical value' field.
Reason 3:
Case: Billing document contains items without pricing conditions.
Then, on release to accounting, error RW022 occurs.
regards,
Saju.S
Maybe you are looking for
-
Oracle 10g Home wont start.
Hi Everyone, I am not able to start Oracle 10g home on windows...recently i installed oracle 6i forms. so when i try to set ORACLE_SID=nwc and then sqlplus sys/dba@nwc as sysdba,nothing happens...it takes me back to command prompt. C:\Documents and S
-
Hi all, what is the default sampling percentage or size for gathering statistics? and where is this parameters stored? (how to display this value?) thanks andrew Kain
-
Can I set up alerts for multiple email accounts? (...
I have two hotmail accounts set up on my Nokia E71. For some reason I only get alerts for the second account I added. I have gone through every setting/preferance menu I can think of to see if there's a difference but can find none. Can anyone think
-
Echoing photo modifications to Facebook/Flickr albums
OK, so I've uploaded an album to Facebook & Flickr. Then I decide I want to adjust the cropping or exposure of some of the photo's. I do this, and hit "check now" but it doesn't seem to consider my changes worthy of updating. Any way around this?
-
I have a website that for some reason, every time i publish always has certain links that will open up in a new window. The only way I know how to decide if it will or not is the check box in the inspector window. If it's just pointing to another pag