Prcessing erros from BAPI_ACC_DOCUMENT_POST
hello,
I have a request to write a program to create journal entries. In the past I would use RFBIBL00 and RSBDCSUB and have the user view and process the errors using SM35.
I have been told that BDC processing is not the way to go anymore and that I should start using the BAPI_ACC_DOCUMENT_POST and BAPI_TRANSACTION_COMMIT processes to create and save the entries.
this is going to be an automated process where a file will be placed onto a server and a FTP process will pick up the file and send it to SAP for procesing.
I am not sure how to handle the errors that come from the BAPI processes. I am thinking that I need to write error messages to a log which can be viewed by SLG1 and also create a eror file that could be reprocessed again.
has anyone done this before and if so, could you let me know how you handled the processing of the errors that come from the BAPIs.
thanks in advance.
Hello,
That approach is so last century :-). We all have to move away from BDC sessions because soon they simply won't work anymore.
Our approach is the following:
- a nightly posting program picks up any new/unposted data & massages it into BAPI format
- if the posting is successful, mark the data as 'posted' (eg by writing an entry to a custom table, or by moving a file to a 'processed' directory)
- if the posting is unsuccessful, write a message to the user in the job log.
The next morning the user examines any errors in the log. Unlike BDC, errors in BAPI accounting doc postings are quite rare, and the error messages are usually informative (typically, a posting period is not open).
The user then must take action (eg to open the period) and rerun the posting program. This will pick up all unposted data & try the BAPI again.
Alternatively, the next night the posting program simply retries any unposted data.
We've been using this approach for the last 6 years with great success. No BDC sessions have been required to get the data posted.
hope this helps
Paul Bakker
Similar Messages
-
BAPI_ACC_DOCUMENT_POST in down payment
Hi!
When i create a Purchase order i have to make an automatic down payment request (F-47), i'm working with an user exit that calls the BAPI_ACC_DOCUMENT_POST bapi from the PO transaction. Anybody have a code example on how to use this bapi with this scenario?. I made a local program to test the bapi with this call:
CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'
EXPORTING
DOCUMENTHEADER = WA_DOCHEAD
CUSTOMERCPD =
CONTRACTHEADER =
TABLES
ACCOUNTGL =
ACCOUNTRECEIVABLE =
ACCOUNTPAYABLE = IT_VENDOR
ACCOUNTTAX =
CURRENCYAMOUNT = IT_CURRENCY
CRITERIA =
VALUEFIELD =
EXTENSION1 =
RETURN = IT_RETURN
PAYMENTCARD =
CONTRACTITEM =
EXTENSION2 =
REALESTATE =
The IT_RETURN itab from BAPI_ACC_DOCUMENT_CHECK returns "Document check - no errors" .
the IT_RETURN itab from BAPI_ACC_DOCUMENT_POST returns
"Document posted successfully"
But no document had been posted! i look at the BKPF itab and nothing was created.
Please help.
Thanks in advance.
John.Hi Rishi !
I am using the bapi commit. here's the test code:
*& Report YPRUEBA_BAPI_DOCUMENT_POST *
REPORT YPRUEBA_BAPI_DOCUMENT_POST .
* ************* LLENAR ESTRUCTURAS BAPI ****************************
DATA: WA_DOCHEAD TYPE BAPIACHE09,
IT_ACCOUNT TYPE TABLE OF BAPIACGL09,
WA_ACCOUNT TYPE BAPIACGL09,
IT_CURRENCY TYPE TABLE OF BAPIACCR09,
WA_CURRENCY TYPE BAPIACCR09,
IT_VENDOR TYPE TABLE OF BAPIACAP09,
WA_VENDOR TYPE BAPIACAP09,
IT_RETURN TYPE TABLE OF BAPIRET2,
WA_RETURN TYPE BAPIRET2,
WA_CRITERIA TYPE BAPIACKEC9,
WA_CURRENCY_EXT TYPE P DECIMALS 2.
DATA: KEY(19) TYPE C.
DATA: COMMIT_RET TYPE BAPIRET2.
REFRESH: IT_ACCOUNT,
IT_CURRENCY,
IT_RETURN.
CLEAR: WA_DOCHEAD,
WA_ACCOUNT,
WA_CURRENCY,
WA_RETURN,
WA_CRITERIA,
WA_CURRENCY_EXT.
* FILL KEY FIELD
KEY = '0000000000'.
KEY+11(4) = '2000'.
KEY+15(4) = '2005'.
WA_DOCHEAD-USERNAME = SY-UNAME.
WA_DOCHEAD-OBJ_TYPE = 'IDOC'.
WA_DOCHEAD-OBJ_KEY = KEY.
WA_DOCHEAD-OBJ_SYS = 'Z220'.
WA_DOCHEAD-COMP_CODE = '2000'. "SOCIEDAD
WA_DOCHEAD-DOC_DATE = SY-DATUM.
WA_DOCHEAD-PSTNG_DATE = SY-DATUM.
WA_DOCHEAD-TRANS_DATE = SY-DATUM.
WA_DOCHEAD-DOC_TYPE = 'KA'.
WA_DOCHEAD-BUS_ACT = 'RFBU'.
CONCATENATE 'Solicitud de anticipo. Fecha:' SY-DATUM
INTO WA_DOCHEAD-HEADER_TXT.
* WA_ACCOUNT-TAX_CODE = 'C3'.
* WA_ACCOUNT-ACCT_TYPE = 'K'.
* WA_ACCOUNT-ITEMNO_ACC = '0000000010'.
* WA_ACCOUNT-GL_ACCOUNT = '1121501001'.
* WA_ACCOUNT-VALUE_DATE = SY-DATUM.
* WA_ACCOUNT-CUSTOMER = '2000015'.
* WA_ACCOUNT-ITEM_TEXT = 'Posición anticipo'.
* WA_ACCOUNT-DOC_TYPE = 'KA'.
* WA_ACCOUNT-COMP_CODE = '2000'.
* WA_ACCOUNT-PSTNG_DATE = SY-DATUM.
* WA_ACCOUNT-COSTCENTER = SPACE.
* WA_ACCOUNT-ALLOC_NMBR = 'Nº asignación'.
* WA_ACCOUNT-PROFIT_CTR = SPACE.
* WA_ACCOUNT-ORDERID = SPACE.
* CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
* EXPORTING
* INPUT = WA_ACCOUNT-CUSTOMER
* IMPORTING
* OUTPUT = WA_ACCOUNT-CUSTOMER.
* CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
* EXPORTING
* INPUT = WA_ACCOUNT-GL_ACCOUNT
* IMPORTING
* OUTPUT = WA_ACCOUNT-GL_ACCOUNT.
* APPEND WA_ACCOUNT TO IT_ACCOUNT.
* CLEAR WA_ACCOUNT.
WA_CURRENCY-ITEMNO_ACC = '0000000010'.
WA_CURRENCY-CURR_TYPE = '00'.
WA_CURRENCY-CURRENCY = 'USD'.
* WA_CURRENCY-AMT_DOCCUR = '150000.00'.
WA_CURRENCY-AMT_BASE = '15000.00'.
APPEND WA_CURRENCY TO IT_CURRENCY.
CLEAR WA_CURRENCY.
WA_VENDOR-ITEMNO_ACC = '0000000010'.
WA_VENDOR-VENDOR_NO = '2000015'.
WA_VENDOR-SP_GL_IND = 'A'.
* WA_VENDOR-TAX_CODE = 'C3'.
WA_VENDOR-COMP_CODE = '2000'.
WA_VENDOR-GL_ACCOUNT = '1121501001'.
WA_VENDOR-BLINE_DATE = '20050510'.
WA_VENDOR-PYMT_AMT = '150000.00'.
WA_VENDOR-PYMT_CUR = 'VEB'.
* WA_VENDOR-PYMT_CUR_ISO = 'VEB'.
WA_VENDOR-PMNTTRMS = 'Z001'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = WA_VENDOR-GL_ACCOUNT
IMPORTING
OUTPUT = WA_VENDOR-GL_ACCOUNT.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = WA_VENDOR-VENDOR_NO
IMPORTING
OUTPUT = WA_VENDOR-VENDOR_NO.
APPEND WA_VENDOR TO IT_VENDOR.
CLEAR WA_VENDOR.
* PROBAMOS LA BAPI
REFRESH IT_RETURN.
CLEAR WA_RETURN.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'
EXPORTING
DOCUMENTHEADER = WA_DOCHEAD
* CUSTOMERCPD =
* CONTRACTHEADER =
TABLES
* ACCOUNTGL =
* ACCOUNTRECEIVABLE =
ACCOUNTPAYABLE = IT_VENDOR
* ACCOUNTTAX =
CURRENCYAMOUNT = IT_CURRENCY
* CRITERIA =
* VALUEFIELD =
* EXTENSION1 =
RETURN = IT_RETURN
* PAYMENTCARD =
* CONTRACTITEM =
* EXTENSION2 =
* REALESTATE =
* Se leen los resultados del posteo
* el mensaje S RW 614 indica que el chequeo fue exitoso
READ TABLE it_return INTO wa_return WITH KEY type = 'S'
id = 'RW'
number = '614'.
IF SY-SUBRC = 0.
REFRESH IT_RETURN.
CLEAR WA_RETURN.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
DOCUMENTHEADER = WA_DOCHEAD
* CUSTOMERCPD =
* CONTRACTHEADER =
* IMPORTING
* OBJ_TYPE =
* OBJ_KEY =
* OBJ_SYS =
TABLES
* ACCOUNTGL =
* ACCOUNTRECEIVABLE =
ACCOUNTPAYABLE = IT_VENDOR
* ACCOUNTTAX =
CURRENCYAMOUNT = IT_CURRENCY
* CRITERIA =
* VALUEFIELD =
* EXTENSION1 =
RETURN = IT_RETURN
* PAYMENTCARD =
* CONTRACTITEM =
* EXTENSION2 =
* REALESTATE =
* Se leen los resultados del posteo
* el mensaje S RW 605 indica que el POST fue exitoso
READ TABLE it_return INTO wa_return WITH KEY type = 'S'
id = 'RW'
number = '605'.
IF SY-SUBRC = 0.
CLEAR COMMIT_RET.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = COMMIT_RET
ELSE.
MESSAGE S162(00) WITH 'Error en el Posteo'.
ENDIF.
ELSE.
MESSAGE S162(00) WITH 'Error en el chequeo'.
ENDIF.
Code Formatted by: Alvaro Tejada Galindo on Jan 8, 2009 10:24 AM -
Problem in creating an account document using BAPI_ACC_DOCUMENT_POST
Hi Experts,
I have a porblem while creating an account document from BAPI_ACC_DOCUMENT_POST.
The problem is acc document is geeting posted and I am getting an document number for that bapi, but its not getting saved to data base and I am getting the following error message
"Document 1900004327 3000 does not exist in fiscal year 2005
Message no. F5A397
System Response
The required document either does not exist in the fiscal year or is still being posted.
When the document is read, archived documents are also considered."
Please sugggest...
We are using ECC 6.0
Thanks,
Suma.Hi,
this means that the posting is not open...
try with 2008...
or else ask ur financial consultatto check, whether the 2005 is open or not.
u also try posting manually using FB01 with same entries u r using for this BAPI...so that u can track the error.
Also use BAPI_TRAACTION_COMMIT after bapi post.
check ur subsystem which u r passing for the BAPI..
wa_general-assetsubno = '0000'. Is it 3000 or 0000
Try using 0...
Edited by: Sumi Vasu on May 14, 2008 8:13 AM -
Office 2013 Pro Plus won't install - log file included
Hi,
I've freshly built a Windows 8.1 Pro laptop and attempted to install Office Pro Plus 2013. It bombs out at the end of the install, reverses the install and the GUI reports:
Microsoft Office Professional Plus 2013 encountered an error during setup
Below are the erros from the log file \AppData\Local\Temp\SetupExe(20150206153126A7C).log
2015/02/06 15:34:32:420::[6108] MSI(INFO): 'SchedSecureObjectsRollback: Failed to store ACL rollback information with error 0x80070002 - continuing'
2015/02/06 15:36:52:549::[6108] MSI(INFO): 'CustomAction CAInstallLicenses returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)'
2015/02/06 15:37:26:969::[6108] MSI(INFO): 'Property(S): OFFICE10FIX1INTERFACE = Error'
2015/02/06 15:37:27:437::[6108] Error: Failed to install product: C:\MSOCache\All Users\{90150000-0011-0000-0000-0000000FF1CE}-C\ProPlusWW.msi ErrorCode: 1603(0x643).
2015/02/06 15:37:27:437::[6108] Error attaching to OSE, error 0x00000000
2015/02/06 15:37:30:109::[6108] MSI(INFO): 'CustomAction CA_RollbackTempHxDs returned actual error code 1603 but will be translated to success due to continue marking'
2015/02/06 15:37:40:071::[6108] MSI(INFO): 'RegisterVisioCustomPropertiesRo: Failed - HRESULT error code: 2147647531'
Full log file here:
http://pastebin.com/9UFGzzP8
and ends here:
http://pastebin.com/6KZ6UyX4Hi David,
Are you installing Office 2013 with a CD or source files on your local drive?
The log above tells us that the failure occurred during the install of the ProPlusWW.msi. "1603" is a generic MSI error code, so doesn't help much here.
I noticed below part in your attached log:
"2015/02/06 15:36:55:270::[6108] MSI(INFO): '02/06/2015 15:36:55.254 [3892]: Assembly Install: Failing with hr=80070005 at RemoveDirectoryAndChildren, line 396"
The error code 0x80070005 is also described as ACCESS DENIED, so you might want check your permissions and make sure you are running as admin.
Also, if you are installing with a CD, then please try a flat installation (which means perform an installation from an image that has been copied to a hard drive rather than directly from CD media), and see if issue persists. This can help
with problematic software installations because performing a flat copy is much easier for the computer than the random access reads required during a normal installation.
Regards,
Ethan Hua
Forum Support
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please click
here -
11G R2 root.sh failed on first node with OLE fetch parameter error
I have successfully installed 11G R2.1 on Centos 5.4 64 bit.
Now it's coming to install 11G R2.2 on Redhat 5.4 64bit with HDS storrage.
[grid@dmdb1 grid]$ uname -a
Linux dmdb1 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
I passed all pre-ins requirements except shared storage. However, I manually verify it with no problems.
[grid@dmdb1 grid]$ ./runcluvfy.sh stage -pre crsinst -fixup -n dmdb1,dmdb2,dmdb3,dmdb4 -verbose|grep -i fail
[grid@dmdb1 grid]$ ./runcluvfy.sh stage -post hwos -n dmdb1,dmdb2,dmdb3,dmdb4 -verbose|grep -i fail
[grid@dmdb1 grid]$ ./runcluvfy.sh comp sys -n dmdb1,dmdb2,dmdb3,dmdb4 -p crs -osdba dba -orainv oinstall
Verifying system requirement
Total memory check passed
Available memory check passed
Swap space check passed
Free disk space check passed for "dmdb4:/tmp"
Free disk space check passed for "dmdb3:/tmp"
Free disk space check passed for "dmdb2:/tmp"
Free disk space check passed for "dmdb1:/tmp"
User existence check passed for "grid"
Group existence check passed for "oinstall"
Group existence check passed for "dba"
Membership check for user "grid" in group "oinstall" [as Primary] passed
Membership check for user "grid" in group "dba" passed
Run level check passed
Hard limits check passed for "maximum open file descriptors"
Soft limits check passed for "maximum open file descriptors"
Hard limits check passed for "maximum user processes"
Soft limits check passed for "maximum user processes"
System architecture check passed
Kernel version check passed
Kernel parameter check passed for "semmsl"
Kernel parameter check passed for "semmns"
Kernel parameter check passed for "semopm"
Kernel parameter check passed for "semmni"
Kernel parameter check passed for "shmmax"
Kernel parameter check passed for "shmmni"
Kernel parameter check passed for "shmall"
Kernel parameter check passed for "file-max"
Kernel parameter check passed for "ip_local_port_range"
Kernel parameter check passed for "rmem_default"
Kernel parameter check passed for "rmem_max"
Kernel parameter check passed for "wmem_default"
Kernel parameter check passed for "wmem_max"
Kernel parameter check passed for "aio-max-nr"
Package existence check passed for "make-3.81"
Package existence check passed for "binutils-2.17.50.0.6"
Package existence check passed for "gcc-4.1"
Package existence check passed for "libaio-0.3.106 (i386)"
Package existence check passed for "libaio-0.3.106 (x86_64)"
Package existence check passed for "glibc-2.5-24 (i686)"
Package existence check passed for "glibc-2.5-24 (x86_64)"
Package existence check passed for "compat-libstdc++-33-3.2.3 (i386)"
Package existence check passed for "compat-libstdc++-33-3.2.3 (x86_64)"
Package existence check passed for "elfutils-libelf-0.125 (x86_64)"
Package existence check passed for "elfutils-libelf-devel-0.125"
Package existence check passed for "glibc-common-2.5"
Package existence check passed for "glibc-devel-2.5 (i386)"
Package existence check passed for "glibc-devel-2.5 (x86_64)"
Package existence check passed for "glibc-headers-2.5"
Package existence check passed for "gcc-c++-4.1.2"
Package existence check passed for "libaio-devel-0.3.106 (i386)"
Package existence check passed for "libaio-devel-0.3.106 (x86_64)"
Package existence check passed for "libgcc-4.1.2 (i386)"
Package existence check passed for "libgcc-4.1.2 (x86_64)"
Package existence check passed for "libstdc++-4.1.2 (i386)"
Package existence check passed for "libstdc++-4.1.2 (x86_64)"
Package existence check passed for "libstdc++-devel-4.1.2 (x86_64)"
Package existence check passed for "sysstat-7.0.2"
Package existence check passed for "unixODBC-2.2.11 (i386)"
Package existence check passed for "unixODBC-2.2.11 (x86_64)"
Package existence check passed for "unixODBC-devel-2.2.11 (i386)"
Package existence check passed for "unixODBC-devel-2.2.11 (x86_64)"
Package existence check passed for "ksh-20060214"
Check for multiple users with UID value 0 passed
Verification of system requirement was successful.
[grid@dmdb1 grid]$ ./runcluvfy.sh comp sys -n dmdb1,dmdb2,dmdb3,dmdb4 -p database -osdba dba -orainv oinstall|grep -i fail
[grid@dmdb1 grid]$ ./runcluvfy.sh comp ssa -n dmdb1,dmdb2,dmdb3,dmdb4
Verifying shared storage accessibility
Checking shared storage accessibility...
Storage operation failed
Shared storage check failed on nodes "dmdb4,dmdb3,dmdb2,dmdb1"
Verification of shared storage accessibility was unsuccessful on all the specified nodes.
I followed below article to verify shared storage issues:
http://www.webofwood.com/rac/oracle-response-to-shared-storage-check-failed-on-nodes/
it's ok.
So I skipped SSA issue and go on install with (./runInstaller -ignoreInternalDriverError).
However, when I ran root.sh with below error:
CRS-2673: Attempting to stop 'ora.mdnsd' on 'dmdb1'
CRS-2677: Stop of 'ora.mdnsd' on 'dmdb1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'dmdb1'
CRS-2677: Stop of 'ora.gipcd' on 'dmdb1' succeeded
CRS-4000: Command Start failed, or completed with errors.
CRS-2672: Attempting to start 'ora.gipcd' on 'dmdb1'
CRS-2672: Attempting to start 'ora.mdnsd' on 'dmdb1'
CRS-2676: Start of 'ora.gipcd' on 'dmdb1' succeeded
CRS-2676: Start of 'ora.mdnsd' on 'dmdb1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'dmdb1'
CRS-2676: Start of 'ora.gpnpd' on 'dmdb1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'dmdb1'
CRS-2676: Start of 'ora.cssdmonitor' on 'dmdb1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'dmdb1'
CRS-2672: Attempting to start 'ora.diskmon' on 'dmdb1'
CRS-2676: Start of 'ora.diskmon' on 'dmdb1' succeeded
CRS-2674: Start of 'ora.cssd' on 'dmdb1' failed
CRS-2679: Attempting to clean 'ora.cssd' on 'dmdb1'
CRS-2681: Clean of 'ora.cssd' on 'dmdb1' succeeded
CRS-2673: Attempting to stop 'ora.diskmon' on 'dmdb1'
CRS-2677: Stop of 'ora.diskmon' on 'dmdb1' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'dmdb1'
CRS-2677: Stop of 'ora.gpnpd' on 'dmdb1' succeeded
CRS-2673: Attempting to stop 'ora.mdnsd' on 'dmdb1'
CRS-2677: Stop of 'ora.mdnsd' on 'dmdb1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'dmdb1'
CRS-2677: Stop of 'ora.gipcd' on 'dmdb1' succeeded
CRS-4000: Command Start failed, or completed with errors.
Command return code of 1 (256) from command: /opt/app/11.2.0/grid/bin/crsctl start resource ora.ctssd -init
Start of resource "ora.ctssd -init" failed
Clusterware exclusive mode start of resource ora.ctssd failed
CRS-2500: Cannot stop resource 'ora.crsd' as it is not running
CRS-4000: Command Stop failed, or completed with errors.
Command return code of 1 (256) from command: /opt/app/11.2.0/grid/bin/crsctl stop resource ora.crsd -init
Stop of resource "ora.crsd -init" failed
Failed to stop CRSD
CRS-2500: Cannot stop resource 'ora.asm' as it is not running
CRS-4000: Command Stop failed, or completed with errors.
Command return code of 1 (256) from command: /opt/app/11.2.0/grid/bin/crsctl stop resource ora.asm -init
Stop of resource "ora.asm -init" failed
Failed to stop ASM
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'dmdb1'
CRS-2677: Stop of 'ora.cssdmonitor' on 'dmdb1' succeeded
Initial cluster configuration failed. See /opt/app/11.2.0/grid/cfgtoollogs/crsconfig/rootcrs_dmdb1.log for details
I manually ran '/opt/app/11.2.0/grid/bin/crsctl start resource ora.ctssd -init' and got below erros from /opt/app/11.2.0/grid/log/dmdb1/cssd/ocssd.log
Oracle Database 11g Clusterware Release 11.2.0.1.0 - Production Copyright 1996, 2009 Oracle. All rights reserved.
2011-09-23 19:06:41.501: [ CSSD][1812336384]clssscmain: Starting CSS daemon, version 11.2.0.1.0, in (exclusive) mode with uniqueness value 1316776001
2011-09-23 19:06:41.502: [ CSSD][1812336384]clssscmain: Environment is production
2011-09-23 19:06:41.502: [ CSSD][1812336384]clssscmain: Core file size limit extended
2011-09-23 19:06:41.515: [ CSSD][1812336384]clssscGetParameterOLR: OLR fetch for parameter logsize (8) failed with rc 21
2011-09-23 19:06:41.515: [ CSSD][1812336384]clssscSetPrivEnv: IPMI device not installed on this node
2011-09-23 19:06:41.517: [ CSSD][1812336384]clssscGetParameterOLR: OLR fetch for parameter priority (15) failed with rc 21
2011-09-23 19:06:41.539: [ CSSD][1812336384]clssscExtendLimits: The current soft limit for file descriptors is 65536, hard limit is 65536
2011-09-23 19:06:41.539: [ CSSD][1812336384]clssscExtendLimits: The current soft limit for locked memory is 4294967295, hard limit is 4294967295
2011-09-23 19:06:41.541: [ CSSD][1812336384]clssscmain: Running as user grid
anybody can help me fix it?I opened on SR for this case.
it's ok now.
Below is from Oracle Global Service request:
=== ODM Action Plan ===
Dear customer, after went through the uploaded log files, we found the issue looks like
bug 9732641 : The clusterware gpnpd process crashes when there is more than 1 cluster with the same name.
To narrow down the issue, pls apply the following steps.
1. Pls clean the previous configuration with below steps, then run root.sh script on node1 again.
1.1 remove current configuration.
$GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force
1.2 remove other related files.
if $GI_BASE/Clusterware/ckptGridHA_.xml still there, please remove it manually with "rm" command on all nodes
If the gpnp profile is still there, pls clean up them, then rebuild require directories.
$ rm -rf $GRID_HOME/gpnp/*
$ mkdir -p $GRID_HOME/gpnp/profiles/peer $GRID_HOME/gpnp/wallets/peer $GRID_HOME/gpnp/wallets/prdr $GRID_HOME/gpnp/wallets/pa $GRID_HOME/gpnp/wallets/root
2. After the previous configuration was cleaned up, pls rerun the root.sh script again. If the issue still there, pls upload the following:
Everything under <GI_HOME>/log
Everything under <ORACLE_BAES for grid user>/cfgtoollogs
Everything under <GI_HOME>/cfgtolllogs/crsconfig
OS log(/var/log/messages)
3. Pls also make sure there is only one GI running on your cluster.
See /opt/app/11.2.0/grid/cfgtoollogs/crsconfig/rootcrs_dmdb1.log for details -
Please help with a Kernel Panic Log
I was wondering if anyone could help me with my wife's kernel panic log. I have reseated her ram twice, and did the command option p +r to reset pram and she is still getting them. I can boot in safe mode with no kp's. I definitely don't know what I am doing just reading as many posts as possible. The computer is a Macbook Pro 2.4 ghz intel core 2 duo upgrade to 6gb of ram about 6mths ago. The most recent change she has made when getting her first kp was at her new job she logged on to the wireless network and said she was getting a lot of page erros from sites. They are a PC based network, and that's all i really know. Any help would be greatly appreciated.
Current Flash - Adobe Flash Player 11.2.202.235. Preference panes are in /Home/Library/Preference Panes/ or /Library/Preference Panes/. Also, search for SIMBL and remove all instances if you find it. Use EasyFind 4.9.
Uninstalling Software: The Basics
Most OS X applications are completely self-contained "packages" that can be uninstalled by simply dragging the application to the Trash. Applications may create preference files that are stored in the /Home/Library/Preferences/ folder. Although they do nothing once you delete the associated application, they do take up some disk space. If you want you can look for them in the above location and delete them, too.
Some applications may install an uninstaller program that can be used to remove the application. In some cases the uninstaller may be part of the application's installer, and is invoked by clicking on a Customize button that will appear during the install process.
Some applications may install components in the /Home/Library/Applications Support/ folder. You can also check there to see if the application has created a folder. You can also delete the folder that's in the Applications Support folder. Again, they don't do anything but take up disk space once the application is trashed.
Some applications may install a startupitem or a Log In item. Startupitems are usually installed in the /Library/StartupItems/ folder and less often in the /Home/Library/StartupItems/ folder. Log In Items are set in the Accounts preferences. Open System Preferences, click on the Accounts icon, then click on the LogIn Items tab. Locate the item in the list for the application you want to remove and click on the "-" button to delete it from the list.
Some software use startup daemons or agents that are a new feature of the OS. Look for them in /Library/LaunchAgents/ and /Library/LaunchDaemons/ or in /Home/Library/LaunchAgents/.
If an application installs any other files the best way to track them down is to do a Finder search using the application name or the developer name as the search term. Unfortunately Spotlight will not look in certain folders by default. You can modify Spotlight's behavior or use a third-party search utility, Easy Find, instead. Download Easy Find at VersionTracker or MacUpdate.
Some applications install a receipt in the /Library/Receipts/ folder. Usually with the same name as the program or the developer. The item generally has a ".pkg" extension. Be sure you also delete this item as some programs use it to determine if it's already installed.
There are many utilities that can uninstall applications. Here is a selection:
AppZapper 2.0.1
AppDelete 3.2.6
Automaton 1.50
Hazel
AppCleaner 2.1.0
CleanApp
iTrash 1.8.2
Amnesia
Uninstaller 1.15.1
Spring Cleaning 11.0.1
Look for them at VersionTracker or MacUpdate.
For more information visit The XLab FAQs and read the FAQ on removing software. -
Clear_document FM not working to clear customer open item.
Hi Experts,
1) I need to develop a report to clear the customer open items, the report has to display whether the Customer open items cleared or not?
As we do f-30 transaction to clear documents.
I have developed the report in this ways but its not clearing.
a) First I have posted the document through 'BAPI_ACC_DOCUMENT_POST
I have filled the document in the below way. The Bapi returning OBJ_KEY value also.
LOOP AT it_data INTO wa_data.
****Fill DOCUMENTHEADER
wa_docmentheader-doc_type = 'DA'. "doc type
wa_docmentheader-doc_date = wa_data-bldat. "doc. date
wa_docmentheader-pstng_date = wa_data-budat. "posting date
wa_docmentheader-comp_code = wa_data-bukrs. "company code
wa_docmentheader-ref_doc_no = wa_data-belnr. "Reference
wa_docmentheader-header_txt = wa_data-bktxt . "Header Text
wa_docmentheader-username = sy-uname. "user name
****Fill ACCOUNTGL Table
wa_gl-itemno_acc = l_no.
wa_gl-gl_account = 2909509----" which i marked in the screen second red color(ACCount).
wa_gl-alloc_nmbr = wa_data-xref2.
APPEND wa_gl TO it_gl.
CLEAR wa_gl.
****Fill ACCOUNTRECEIVABLE
wa_receivable-itemno_acc = l_no + 1.
wa_receivable-customer = wa_data-kunnr.
wa_receivable-gl_account = wa_data-saknr.
wa_receivable-alloc_nmbr = wa_data-xref2.
APPEND wa_receivable TO it_receivable.
CLEAR wa_receivable.
****Fill CURRENCYAMOUNT
wa_currencyamount-itemno_acc = l_no.
wa_currencyamount-currency = wa_data-waers.
wa_currencyamount-amt_doccur = wa_data-dmbtr.
APPEND wa_currencyamount TO it_currencyamount.
CLEAR wa_currencyamount.
wa_currencyamount-itemno_acc = l_no + 1.
wa_currencyamount-currency = wa_data-waers.
wa_currencyamount-amt_doccur = wa_data-dmbtr.
wa_currencyamount-amt_doccur = wa_currencyamount-amt_doccur * -1.
APPEND wa_currencyamount TO it_currencyamount.
CLEAR wa_currencyamount.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader
= wa_docmentheader
IMPORTING
OBJ_TYPE
=
obj_key
= lv_obj_key
OBJ_SYS
=
TABLES
accountgl
= it_gl
accountreceivable = it_receivable
ACCOUNTPAYABLE
=
ACCOUNTTAX
=
currencyamount
= it_currencyamount
return
= it_return.
EXTENSION2
=
endloop.
2) After posting the document am using Clear_document to clear the document
am filling the Clear_Document in the below way.
1. a)get belnr, bukrs, gjahr & buzei from bsid table for invoice and append to T_AUSZ1
b)T_AUSZ1-BUKRS, 'A', OBJ_KEY+0(10)(which you get from BAPI_ACC_DOCUMENT_POST bapi), posting date, posting date year pass it to T_AUSZ2-BUKRS, T_AUSZ2-AKTIO, T_AUSZ2-AUGBL, T_AUSZ2-AUGDT & T_AUSZ2-AUGGJ and append it.
2. a)get BELNR, BUKRS, GJAHR, BLART & BUDAT from bkpf where awkey = OBJ_KEY(which you get from BAPI_ACC_DOCUMENT_POST bapi)
b) get belnr, bukrs, gjahr & buzei from bsid table where BELNR EQ bkpf-BELNR AND
ZUONR EQbkpf-BELNR AND
BLART EQ bkpf-BLART AND
GJAHR EQ bkpf-GJAHR AND
BUDAT EQ bkpf-BUDAT
and append to T_AUSZ1
c) T_AUSZ1-BUKRS, 'A', OBJ_KEY+0(10)(which you get from BAPI_ACC_DOCUMENT_POST bapi), posting date, posting date year pass it to T_AUSZ2-BUKRS, T_AUSZ2-AKTIO, T_AUSZ2-AUGBL, T_AUSZ2-AUGDT & T_AUSZ2-AUGGJ and append it.
delete duplicates from T_AUSZ2.
3) but am not able to clear the document using Clear_document Function Module
4)I am able to post the document through BAPI_ACC_DCUMENT_POST
5)Please tell me how to clear the document.Hi Sunny,
Please see the following :
1. Down Payment Received (2500 INR.) F-29
2. Customer Invoice Posted (2500 INR.) FB70
3. Clear Down Payment (2500 INR) F-39
4. Now Run Automatic Clearing (F.13)
And then check the Customer line item report in FBL5N. It will clear both line items.
Hope this helps.
Kind Regards,
Prakash Kumar -
BAPI_ACC_INVOICE_RECEIPT_POST withholding tax
Hi Experts,
I'm using the BAPI BAPI_ACC_INVOICE_RECEIPT_POST to post an vendor invoice. It is working fine with the normal posting. But when we post with withholding tax base, its not successful.
I have mapped the Withholding tax code, Business place and Section code to the correct parameters of bapi. Then inside the bapi I have supplied the withholding tax base to IT_ACCCR-QSSHB.
But I'm getting the message Balance in Transaction currency. But I'm sure that I'm passing the currencies correctly.
Please help me with the proper method of posting.
Thanks in Advance.
Edited by: Nivash S on Aug 24, 2010 12:32 PMI got this working, so I will answer my own post with an explanation of the solution, in case it benefits anyone else.
There are numerous posts in the forum about calculating Extended Withholding Tax through a BAPI, and the solutions given tend to suggest that BAPI_ACC_DOCUMENT_POST will not work with EWT, but BAPI_ACC_INVOICE_RECEIPT_POST will work if you activate the user exit EXIT_SAPLACC4_001.
In investigating this, I found the following OSS notes most helpful:
OSS Note 306504 - Collective note: BAPIs for the AC Interface
OSS Note 556311 - BAPI in the extended withholding tax
OSS Note 487722 - Using EXTENSION1 for accounting BAPIs
Note 556311 explains how to implement extended withholding tax with BAPI_ACC_INVOICE_POST, by implementing a user exit that processes the EXTENSION1 parameter, and it provides sample EWT logic for that user exit. However, note 487722 explains how to implement Business Transaction Event RWBAPI01, to process the EXTENSION1 table from BAPI_ACC_DOCUMENT_POST.
By implementing the user exit logic from note 556311, in the BTE described in note 487722, the extended withholding tax was calculated correctly from BAPI_ACC_DOCUMENT_POST. -
Hw problems or ext3 bug?
Hi,
This message is posted in "Workstation User" and "Kernel and HW issues" because I'm not sure what the problem is.
I'm having a problem with ext3 partition and I'm not sure if it's a bug o what. It has happened 3 times yesterday (Sunday), before I switched off the computer at night.
Situation
* A computer (no laptop) with 2 HD (hda and hdd) and a few partitions in each disk.
* Hdd has 1 ext3 and 2 xfs.
* Hda has 1 swap (hda1), 2 ext3 and 1 xfs. The two ext3 are "/" (hda5) and /home (hda6). The rests of directories /var /tmp and so are part of "/", on hda5.
* It's a coincidence (or not) but last weekend I made a "pacman –Sy; pacman –Su", and two of the packages updated were "filesystem" and "kernel". The pacman repositories I have configured are "current" and "extra".
The problem
After a few hours working the console shows the following messages:
journal_bmap: journal block not found at offset 25312 on hda5
Aborting journal on device hda5.
ext3_abort called.
EXT3-fs error (device hda5): ext3_journal_start_sb: Detected aborted journal
Remounting filesystem read-only
From that point, a lot of syslog-ng errors because of read-only filesystem, and also erros from other programs (xorg, kde, etc).
Obviously nothing works properly. In hda5 is mounted "/", including /var and /tmp and it's read-only.
The offset referred (25312) is different each time it happened.
First idea
Could it be the hw, physical error? It could, but when I've had problems with hw, there were lots of messages like "seek error", "read error sector ##", "seek complete error", etc.
But in this situation there aren't. And the error is always in hda5, never in hda6 (also ext3) not hda7 (xfs). So I doubt it's a hw problem.
Why not hda6? My opinion, hda5, root fs, is heavily used compared to hda6 (/home). The third time I got the error, I didn't log into any session. Only the OS and services.
Could it be a bug, related to ext3, after the last upgrade?Please don't cross-post:
http://bbs.archlinux.org/viewtopic.php?t=25392
Locking. -
I have generated endpoint from WSDL with IBM RAD 7.0.
I'm sending jpg image as attachment:
public class Send {
client-luokkia.
public static void main(String[] args) {
try {
AttachmentServiceLocator asl = new AttachmentServiceLocator();
AttachmentTip tip = asl.getAttachmentTip();
System.out.println("send image");
sendImage(tip, "file:///C:/temp/12a.jpg");
} catch (Throwable t) {
t.printStackTrace();
static void sendImage(AttachmentTip tip, String fileName)
throws RemoteException {
try {
Toolkit toolkit = Toolkit.getDefaultToolkit();
Image image = toolkit.createImage(fileName);
image.flush();
tip.sendImage(image);
System.out.println("image sent");
} catch (Exception e) {
System.out.println("error " + e.getLocalizedMessage());
}I get this erro from client:
17.4.2007 14:06:18 com.ibm.ws.webservices.engine.attachments.ImageDataSource <init>
SEVERE: WSWS3227E: Error: Exception:
java.lang.IllegalArgumentException: Width (-1) and height (-1) cannot be <= 0
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1031)
at java.awt.image.BufferedImage.<init>(BufferedImage.java:347)
at com.ibm.ws.webservices.engine.components.image.MerlinIO.privilegedSaveImage(MerlinIO.java:139)
at com.ibm.ws.webservices.engine.components.image.MerlinIO.access$000(MerlinIO.java:95)
at com.ibm.ws.webservices.engine.components.image.MerlinIO$1.run(MerlinIO.java:108)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:63)
at com.ibm.ws.webservices.engine.components.image.MerlinIO.saveImage(MerlinIO.java:106)
at com.ibm.ws.webservices.engine.attachments.ImageDataSource.<init>(ImageDataSource.java:107)
at com.ibm.ws.webservices.engine.attachments.ImageDataSource.<init>(ImageDataSource.java:98)
at com.ibm.ws.webservices.engine.encoding.ser.ImageDataHandlerSerializer.serialize(ImageDataHandlerSerializer.java:121)
at com.ibm.ws.webservices.engine.encoding.SerializationContextImpl.serializeActual(SerializationContextImpl.java:823)
at com.ibm.ws.webservices.engine.encoding.SerializationContextImpl.serialize(SerializationContextImpl.java:547)
at com.ibm.ws.webservices.engine.xmlsoap.ext.ParamValue.serializeItem(ParamValue.java:419)
at com.ibm.ws.webservices.engine.xmlsoap.ext.ParamValue.serialize(ParamValue.java:340)
at com.ibm.ws.webservices.engine.xmlsoap.ext.RequestResponse.outputImpl(RequestResponse.java:602)
at com.ibm.ws.webservices.engine.xmlsoap.ext.RequestResponseAlternateContent.serialize(RequestResponseAlternateContent.java:117)
at com.ibm.ws.webservices.engine.xmlsoap.SOAPElement.outputImpl(SOAPElement.java:1961)
at com.ibm.ws.webservices.engine.xmlsoap.SOAPElement.outputContentsImpl(SOAPElement.java:2042)
at com.ibm.ws.webservices.engine.xmlsoap.SOAPElement.outputImpl(SOAPElement.java:2017)
at com.ibm.ws.webservices.engine.xmlsoap.SOAPEnvelope.outputImpl(SOAPEnvelope.java:355)
at com.ibm.ws.webservices.engine.xmlsoap.SOAPElement.output(SOAPElement.java:1937)
at com.ibm.ws.webservices.engine.SOAPPart.writeTo(SOAPPart.java:897)
at com.ibm.ws.webservices.engine.SOAPPart.writeTo(SOAPPart.java:816)
at com.ibm.ws.webservices.engine.SOAPPart._getWebServicesInputSource(SOAPPart.java:950)
at com.ibm.ws.webservices.engine.SOAPPart.getAsWebServicesInputSource(SOAPPart.java:574)
at com.ibm.ws.webservices.engine.Message.getContentType(Message.java:498)
at com.ibm.ws.webservices.engine.transport.http.HTTPSender.invoke(HTTPSender.java:491)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:227)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:227)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:227)
at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:332)
at com.ibm.ws.webservices.engine.client.Connection.invokeEngine(Connection.java:738)
at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:659)
at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:617)
at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:452)
at com.ibm.ws.webservices.engine.client.Stub$Invoke.invoke(Stub.java:908)
at org.example.www.AttachmentBindingStub.sendImage(AttachmentBindingStub.java:86)
at fi.kela.testi.Send.sendImage(Send.java:38)
at fi.kela.testi.Send.main(Send.java:26)What this mean? Does it mean that image is somehow null or what?sendImage(tip, "file:///C:/temp/12a.jpg");...
Image image = toolkit.createImage(fileName);
Are you sure you can give Toolkit.createImage(String fileName) an URL? Perhaps you should call it with "c:/temp/12a.jpg" instead. -
Setting of one process chain triggering by other?
Hi Friends,
we are having two process chains, PC1 and PC2.
Daily PC1 triggers PC2.
But i want to know where this setting is done in the system (PC1 triggers PC2)
Can any one please tell me?
Thanks..in advance
TonyThere are several ways to trigger the process chain from the another process chain.
<u><b>Start variant</b></u>,
Maintain the same start variant for all the process chain which u want to be trigerred by dependence, ie on executing the one prcess chain from group, all will be triggered.
<u><b>Local process chain:</b></u>
Insert the (secound) child process chain in a (first )parent chain. by this when u execute the parent process chain the child will be triggered.
<u><b>Event:</b></u>
For all process chain there will be event name. U can write code with this event as a reference so that completion of one process chain will triger the secound.
More......... -
Updating Intel HD Graphics 4600
Dear HP rep,
I've got a new HP Envy 17t-j100. I keep getting erros from multiple programs telling me my intel graphics driver is outdated. I've tried all of the HP driver updaters, as well as installing the driver from the intel website itsel to no avail. My coworker has a computer with identical specs, yet produces significantly better quality in both picture and framerate. This makes me believe it is this graphics driver. I know you will need more information than this, but I thought it might be a generic fix seeing as this is an out of the box problem. Thanks a lot for your time!
TylerHi Tyler,
Welcome to the HP Support Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
I see that you are having some Intel driver issues with your new Envy. I will be happy to help you. What is the exact error message that you are getting? Are you using Windows 7 or Windows 8.1? There are a few different models in your series of notebooks, can I please get your product number?
Thank you,
Please click “Accept as Solution ” if you feel my post solved your issue.
Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
Thank you,
BHK6
I work on behalf of HP -
Dear,
i have 2 node RAC and 2 listener on each node.
ASM_HOME;/u01/oracle/product/10.2.0/asm (LISTENER NAME ASM_EBS-DB1) port =1521
ORACLE_HOME:/u01/oracle/product/10.2.0/db (listener name LISTENER) port=1525
set TNS_ADMIN=/u01/oracle/product/10.2.0/db/network/admin
when runnging
$lsnrctl start
it pickup the correct listener parameter but start the wrong port .
always pickup the port 1521
even the ENV set to the database when run
lsnrctl status
IT ALWAYS SHOW 1521
CAN SOMEONE PLEASE HELP.
REGARDS,the problem i have now is
with service is ready CRP3
but i can not connect like this
sqlplus>conn apps/apps@crp3 or
sqlplus >conn apps/apps@crp31
GOT this erro from the listener
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.2.120)(PORT=1525)))
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.2.122)(PORT=1525)))
Listener completed notification to CRS on stop
SNMP OFF
Listener Parameter File /u01/oracle/product/10.2.0/testdb/network/admin/CRP31_ebstest-db1/listener.ora
Listener Log File /u01/oracle/product/10.2.0/testdb/network/log/listener_ebstest-db1.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.2.120)(PORT=1525)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.2.122)(PORT=1525)))
Services Summary...
Service "CRP3" has 2 instance(s).
Instance "CRP31", status READY, has 2 handler(s) for this service...
Instance "CRP32", status READY, has 1 handler(s) for this service...
Service "CRP31" has 1 instance(s).
Instance "CRP31", status UNKNOWN, has 1 handler(s) for this service...
Service "CRP3_XPT" has 2 instance(s).
Instance "CRP31", status READY, has 2 handler(s) for this service...
Instance "CRP32", status READY, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL> exit
[oracle@ebstest-db1 CRP31_ebstest-db1]$ lsnrctl
LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 03-MAY-2009 12:45:17
SQL> conn apps/apps@crp1
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified -
Reg : NO UPDATE OF SALES ORDER FROM PO erroer I0 114
hi experts,
while creation of PO with reference to PR,user gets error " NO UPDATE OF SALES ORDER FROM PO erroer I0 114 ".
What could be the reason for this error?any idea...
rgrds...Hello Jurgen,
here the error message is " NO UPDATE OF SALES ORDER FROM PURCHASE ORDER error I0 114 " .
is there any solution for this issue.user looks frustrated because its working for one PO and the next PO its showing error.
Rgrds..... -
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
-
Vendor : Goods Supplier : Excise Entries
Dear Experts, I have an excisable material to be purchased from a vendor who is not registered with excise . I make a PO in the name of the vendor who charges me material @ 20/- per kg. As he is not registered with excise he gives me the excise invoi
-
Good morning I'm trying to fix minimum amount for calculation of customer late payment invoive, with different currencies using calculation on open item and not balance sheet , but it doesn't work, in customizing i set this program SAPLFI_INTVW and S
-
Extract / Report of Installed Base and partners related to compoents
Hello, we use SolMan 3.2 and want to create different reports about the installed base (ib) and the businesspartner related to the ib-components. How can we extract all data of the installed base or does already exist any SAP InfoSet? Are there any f
-
Hi, I created a generic DataSource using a function module and i'm testing it using RSA3. I'm trying to extract the records by specifying a range of values for a field in the DataSource , but RSA3 extracts all the records without considering the spe
-
ICloud mail not displaying email content
My iCloud mail account is not displaying the content of incoming emails, regardless of whether I access the account on my Mac, iPad Mini, or iPhone 4 (all with the latest OS). The only way I can view the content is to select the email and hit the 're