URGENT Production issue BPEL P.M. 10.1.3.1Failed to load callback message
Hi,
Any one come accross this. I have onMessage call. In my production system for same bpel process I have 4 task instance. Out of 4 it worked for 2 and for 2 I got following error in domain.log file. I have serial approver human workflow.
I will appreciate if any one have any clue to resolve this. Or any one came accross this.
Regards,
Jigar
<default.collaxa.cube.engine.delivery> <DeliveryService::resolveCallback> Failed to load callback message, msgGuid=1198126fd96a20de:-2bd93846:116466e5c21:-7a93 ... may have been consumed by subscriber
Hi ,
I am getting following error only in production. I have same process running in development and test. Both in development and test I am not getting this error.
error
DeliveryLogger.debug("DeliveryService", "resolveCallback", "Failed to load callback message, msgGuid=", messageGUID, " ... may have been consumed by subscriber");
CallbackInfo result = (CallbackInfo)mCache.get(messageGUID); line of code is the issue. Can any one tell me what is going on here.
Regards,
Jigar
public IMessage resolveCallback(String conversationId, String messageGUID, int conversationType, DomainAuth auth)
throws ServerException
Exception exception;
ICubeContext ctx = null;
com.collaxa.cube.engine.dispatch.message.BatchMessage batchmessage;
try
ctx = createContext(auth);
IDeliveryService ds = getDeliveryService(ctx);
startDeliveryRequest(ctx);
ds.resolveCallback(conversationType, conversationId, messageGUID, ctx);
endDeliveryRequest(ctx);
batchmessage = DispatchHelper.getMessage(ctx);
catch(ServerException se)
logError(se);
setTransactionRollback();
throw checkIfFatalConnectionError(se, ctx);
finally
destroyContext(ctx);
destroyContext(ctx);
return batchmessage;
throw exception;
public void resolveCallback(int conversationType, String conversationId, String messageGUID, ICubeContext ctx)
throws CubeException
StopWatch sw = CubeContextHelper.getStopWatch(ctx);
sw.start("ds-resolve-callback");
DeliveryLogger.debug("DeliveryService", "resolveCallback", "Resolving subscribers for convId ", conversationId, ", msgGuid=", messageGUID);
CallbackInfo info = DeliveryPersistenceMgr.loadCallback(messageGUID, ctx);
if(info == null)
DeliveryLogger.debug("DeliveryService", "resolveCallback", "Failed to load callback message, msgGuid=", messageGUID, " ... may have been consumed by subscriber");
sw.stop("ds-resolve-callback");
return;
IProtocolHandler handler = getProtocolHandler(info.getConversationType());
SubscriptionInfo sis[] = handler.resolveCallback(info, ctx);
if(sis != null && sis.length > 0)
int i = 0;
for(int n = sis.length; i < n; i++)
SubscriptionInfo si = sis;
String subscriberId = si.getSubscriberId();
if(!si.isRecurrent())
si.markAsResolved();
CorrelationId cId = new CorrelationId(subscriberId);
com.oracle.bpel.client.auth.DomainAuth auth = CubeContextHelper.getDomainAuth(ctx);
CallbackDeliveryMessage cm = new CallbackDeliveryMessage(si.getProcessGUID(), si.getProcessId().getProcessId(), si.getProcessId().getRevisionTag(), info.getMessageGUID(), info.getConversationId(), si.getSubscriberId(), new WorkItemKey(cId.getKey()), auth);
cm.setConversationType(info.getConversationType());
DispatchHelper.addMessage(cm, ctx);
DeliveryLogger.debug("DeliveryService", "resolveCallback", "Resolved subscriber ", subscriberId, " for message ", info.getMessageGUID(), " for conversation ", conversationId);
if(!info.isRecurrent())
info.markAsResolved();
info.setResolvedProcessGUID(sis[sis.length - 1].getProcessGUID());
info.setResolvedSubscriberId(sis[sis.length - 1].getSubscriberId());
DeliveryPersistenceMgr.update(info, ctx);
DeliveryPersistenceMgr.updateBatchState(sis, ctx);
} else
DeliveryLogger.debug("DeliveryService", "resolveCallback", "No subscribers found for message ", info.getMessageGUID(), " for conversation ", conversationId);
sw.stop("ds-resolve-callback");
public static CallbackInfo loadCallback(String messageGUID, ICubeContext ctx)
throws CubeException
return PersistenceAdaptorRegistry.getDeliveryAdaptor(ctx).loadCallback(messageGUID, ctx);
public static IDeliveryPersistenceAdaptor getDeliveryAdaptor(ICubeContext ctx)
throws CubeException
return getPersistenceAdaptorRegistry(ctx).m_dlPA;
public CallbackInfo loadCallback(String messageGUID, ICubeContext ctx)
throws CubeException
CallbackCache cache = (CallbackCache)ctx.lookup("__callback-cache");
CallbackInfo info = cache.get(messageGUID, ctx);
if(info != null && info.getPayload().size() > 0)
return info;
StopWatch sw = CubeContextHelper.getStopWatch(ctx);
sw.start("callback-load");
if(info == null)
info = __loadCallback(messageGUID, ctx);
sw.stop("callback-load");
return info;
public final CallbackInfo get(String messageGUID, ICubeContext ctx)
CallbackInfo result = (CallbackInfo)mCache.get(messageGUID);
if(result == null)
nMisses++;
} else
nHits++;
return result;
public synchronized Map getStatistics()
Map map = new HashMap();
map.put("name", "callback");
map.put("policy", "map");
map.put("count", String.valueOf(getSize()));
map.put("size", String.valueOf(getSize()));
map.put("hwm", "N/A");
map.put("lwm", "N/A");
map.put("units", "");
map.put("puts", String.valueOf(nPuts));
map.put("hits", String.valueOf(nHits));
map.put("misses", String.valueOf(nMisses));
return map;
Similar Messages
-
!!!Very Urgent-Production Issue -Please help
Hello IDMers,
We are facing an issue in production, we updated the AD Process form yesterday. Two fields- Employee Type and Employee ID field in AD User Process form got refreshed for all existing users. Those two fields are empty now for all users.
But these fields have appropriate value in the Xellerate User Table for all users. Now I need to some how populate the Employee Type and Employee ID field for all employees from User Table to AD Process form.
for example: Consider an Employee called Peter- His emp type is Full Time and Emp ID is 100; which i have it in OIM User Table, but this user is provisioned with AD and now i will have to update his AD Process form so that these two fields are populated. I need to do this for all users in OIM. I guess the prepop adapter triggers only when the form is created for the first time. Please suggest me some ideas.
Is there a easy way to do this task?
What my thinking is, I need to have a scheduled task that basically loops through all users and updates their employee type and id field in AD User Form from Xellerate User Table.
Please help me with this as it is highly important.
Thanks again every one for your support all the while.
Regards,
~VSNhey,
i was doing lots of migration from one OIM box to another during our last release. I guess something would have gone wrong while doing an import/export from one OIM system to another.
What I learned was while doing an import the vulnerable object is AD USER (or any resource of OIM) Object (both Process form and process definition), because those are the two objects which you need to import fully no matter how big a change you have done.
So when you do an import watch out for USER DEFINED FIELDS in the process form because for me the two fields which disappeared were user defined/custom created by me. So make sure you export the latest version;even if you didnt make any changes to them better create a new version copy of the form and then export it.
Hope that helps.
~VSN -
Database is hang during shutdown abort (Urgent Production Issue)
Hi Gurus
In my production system while shutdown immediate , database was hang.
When we logged in system and gave shutdown abort its again hang.
Pls suggest me what could be the reason and how it can be solved
ThanksTue Oct 21 05:01:09 2008
Shutting down instance: further logons disabled
Tue Oct 21 05:45:19 2008
ksvcreate: Process(q005) creation failed
Tue Oct 21 05:45:30 2008
ksvcreate: Process(q000) creation failed
Tue Oct 21 05:45:42 2008
ksvcreate: Process(q000) creation failed
Tue Oct 21 05:45:54 2008
ksvcreate: Process(q000) creation failed
Tue Oct 21 05:46:06 2008
ksvcreate: Process(q000) creation failed
Tue Oct 21 05:46:18 2008
ksvcreate: Process(q000) creation failed
Tue Oct 21 05:46:30 2008
ksvcreate: Process(q000) creation failed
Tue Oct 21 05:46:42 2008
ksvcreate: Process(q000) creation failed
Tue Oct 21 05:46:54 2008
ksvcreate: Process(q000) creation failed
Tue Oct 21 05:47:06 2008
ksvcreate: Process(q000) creation failed
Tue Oct 21 05:47:18 2008
ksvcreate: Process(q000) creation failed
Tue Oct 21 05:47:30 2008
ksvcreate: Process(q000) creation failed
Tue Oct 21 05:47:42 2008
ksvcreate: Process(q000) creation failed
Tue Oct 21 05:47:54 2008
ksvcreate: Process(q000) creation failed
Tue Oct 21 05:48:06 2008
ksvcreate: Process(q000) creation failed
Tue Oct 21 05:48:18 2008
ksvcreate: Process(q000) creation failed
Tue Oct 21 05:48:30 2008
ksvcreate: Process(q000) creation failed
Tue Oct 21 05:48:42 2008
ksvcreate: Process(q000) creation failed
Tue Oct 21 05:48:54 2008
ksvcreate: Process(q000) creation failed
Tue Oct 21 05:49:06 2008
ksvcreate: Process(q000) creation failed
Tue Oct 21 05:49:18 2008
ksvcreate: Process(q000) creation failed
Tue Oct 21 05:49:24 2008
Shutting down instance (abort)
License high water mark = 26
Termination issued to instance processes. Waiting for the processes to exit
Tue Oct 21 05:49:35 2008
Instance termination failed to kill one or more processes
Tue Oct 21 06:06:43 2008
Instance terminated by USER, pid = 20613 -
IDOC is not processing in R/3 with status 64(Urgent)--Production issue.
Dear Folks,
Here we are implementing MIRROR sytem for data extraction in to BIW.
I had gone through the steps in PDF file(How to minimize down thime for Delta Initialization) which has given by SAP.
These are following steps I had performed in BW production
1. Using RSADMIN transcation- Assigned one user as a Debugging user.
2. With the Debugging user Created one infopackage on Purhcasing ITM datasource--
In data selection tab, I given date as from 2002 to 2003
In Update tab, I selected update mode as Initialize Delta process- without data transfer and Uncheck Update Data in master system immediately
In schedule tab I selected option Start Data load immediately then Start extraction.
3.Data was requested and It was intialized properly with green status 1 from 1 Records.
4. In details tab Request, Extraction, transfer(IDOC and TRFC), Processing everything in Green color.
5.As per document I have checked in R/3 for IDOC with status 64 using transaction BD87/WE05
Problem is that IDOC is not processing in R/3 system. for that IDOC I have checked in BW montior screen using the option <b>IDOC list in Source sytem</b>, here also it is not showing any IDOCs.
Please let me know why BW sytem is not sending any IDOCs to source sytem.Is there any settings I could have miss in BW aswell as in R/3 system.
Note: In BW production I successfully loaded master data from R/3. aswell as I triggered infopackage-Initialization with data transfer, it is showing IDOC number properly in R/3 system.
Points is Assured for all replies.Hi,
- check you RFC destination (normal test + authorization test)
- Check you partner profiles in WE20 and its ports WE21
- from the source system tree (RSA13) right click your source system and perform a check
- the best is to restore your source R/3 source system from BW (right click on it ans select RESTORE); you'll need to be able to log in the source system as an admin as well as opening the source system for customizing in SCC4 so that BW can recreate the correct partner parameters automatically; the best is to do that with your basis group.
hope this helps,
Olivier. -
Hi sap gurus,
In sale order delivery date is 25/3/2008, but when i check the schedule line the system is giving 4.4. 2008 as default.
stock is displaying as 0 on 25/3/2008 in availablity check at item level ,system confirms stock only at 4/4/2008.
but stock is there on the particular date .
i can save the order and delivery.
but when i do pgi ,it is displaying error as deficit of stock.
kindly suggest me the solution.Dear divya nair
As you said though stock is available on 25/03/08, you will not be able to post the goods issue, bcoz delivery for some other order has been created and saved without doing PGI. You can check in MD04 where the delivery reference will flow else, check in MMBE where there is a tab "schedule for delivery". Either you can cancel that delivery or wait till 4/4/08.
thanks
G. Lakshmipathi -
**URGENT** - PRODUCTION ISSUE with Planning Layout
Hi,
we've a manual planning layout that uses both macros SAPAFTERDATAPUT and SAPBEFOREDATAGET with custom code developed in these 2 macros to switch data between "SEM-BPS 1" and "New" sheet.
Layout has 11 characteristics in lead columns and around 40 keyfigures in data columns (dynamic).
Using macros, we are formatting SEM-BPS 1 sheet to display all dynamic data coumns in a single page of New sheet.
for this, our custom macro formats each row of SEM-BPS1 into 10 rows of New sheet by reducing 40 columns into 4 (columns is what matters for our users but not rows).
We tried this for 40 rows of data. (means, 40 rows 40 columns). Our Custom macro formed 400 rows and 4 columns into New Sheet and even switched data between "SEM-BPS 1" and "New" sheet as per our macro coding. here, we can execute all planning functions. fine till this point
Now, we have a problem when dealing with 100 rows. (means, 100 rows 40 columns). <b>Our custom macro had formed 1000 rows and 4 columns as expected with accurare data. </b>
at this point, When we started running any planning function or even when we just click on check button (check button runs both SAP macros, I assume), <b>system is freezing up doing nothing. each time, we had to kill the process. when we looked into CPU usage, we can see that excel.exe process is using 99% of CPU.</b>
Appreciate if any one can share experinces on this.
<b><u>Note: </b></u>
1. By disabling custom macros, we executed 100 rows 40 columns w/o any issues.
2. when executed custom macros outside of SAP for 1000 rows 4 columns, both macros took just 2 seconds to switch data between sheets.Hi there
This is the option Jeff was referring to. I see it in my own RoboHelp version 10. As we aren't seeing it in your screen capture, I'm wondering if this was an option that was added via a service release you haven't installed.
I do suppose another possibility would be that you are using RoboHelp for Word and perhaps that isn't an option with that application.
Cheers... Rick -
Urgent- production order error- ERTR status
Dear PP Gurus
i have an urgent production issue, we have full fledged WM implemented and production order components are issued automatically when order is released via a Pick list
Now the problem is that the BOM components are NOt correctly staged during picking
after the order is released , the status shows <u><b>ERTR- Error in transfer requirements</b></u>, so how should i solve this error
i have created production supply areas and maintained supply areas in MRP=2 views, i have also created Control Cycles for all the materials
please help and appreciate your valuable expertise on how to solve this urgent issue
thanks in advance
regards
Chakri<u></u>Hi Chakri
Check production schedulign profile, Did you maintain WM in that
also check in Control cycle ,staging ind. shd be "1"
Cheers
bala -
Production Issue Need urgent help
We just added new disk on our db box. its sun 890 box after that the DB is running very slow and the cpu is showing 100% is there any way we can find out the cause of the issue.
Any assistance will be highly appreciated.Check with the OS monitoring tools. You should provide the OS and DB versions in your thread so a more proper direction on the recommended tools can be provided.
If you are on 10g you could use the performance monitor from the EM DB Console and you could see if Oracle is responsible for this high CPU consumption.
By the way. I kindly suggest you to use a more descriptive thread title, 'Urgent' and 'Production Issue' doesn't let any body figure out what you are talking about. On the other hand, labeling urgent won't make all posters go running to solve this issue, all threads are treated equally on a first come first served basis and it depends on posters availability.
~ Madrid -
A very urgent deployment issue about DBAdapter
Hello All,
I have a very urgent deployment issue about DBAdapter.
That DBAdapter is connect to DB2 AS400 Database. I have a developing database (jdbc:as400://server01/TEST) and a production database (jdbc:as400://server01/PROD).
During developing, I used DBAdapter wizard to create it, and import some tables, and set the Adapter to use jabc/DB2DS as connection information for easily deployment later.
Then I deploy to Production. I configured Data-source.xml and oc4j-ra.xml rightly; I set DB connection point to production database. But the DBAdapter still write into developing Database.
I checked the DBAdapter, the imported tables are something like this, TEST.table1, TEST.table2. And there are a lot "TEST" located in DB2Writer_toplink_mapping.xml, DB2Writer.xml, TEST.schema, DB2Writer.table1.ClassDescriptor.xml.
This TEST is refrer to the TEST in connect String jdbc:as400://server01/TEST.
I think this might be the reason cause the problem. As to production database, "TEST" should replaced by "PROD". If I changed it manually, I have to change every time when switch between TEST and PROD. And I also don't know if it is safe to do it? (I tried, and bring some toplink mapping problem)
By the way, for Oracle Database, because we use 2 instances for testing and production with same schema name, and do not have this issue.
Anyone could help and many thanks.
Kerr
Message was edited by:
KerrHi Kerr,
The idea is to set up all connections in the BPEL or ESB services with logical names, e.g. typically of the form eis/DB/MyFinancialSystem or eis/DB/MyLogisticsSystem. This way, you do not have to modify code when deploying it onto different environments that serve different purposes.
When moving your services through their lifecyle, on every environment you deploy these to you will have the same logical connections configured on each instance, e.g. for DEV, QA, SIT, UAT and PROD. Only, in case of QA the actual physical connection is configured to point to the QA instance of the systems that your services interact with whereas in case of UAT it points to the UAT instance of the same system.
Maybe your problem is caused by connecting as user "SomeUser" when running the DB Adapter wizard during development and actually selecting objects from a different schema than you used to connect with, e.g. "Test" in your case.
Hth,
Sjoerd -
PRODUCTION ISSUE- Autoconfig fail on database server
Hi,
I need urgent help on the production issue.
We have 11.5.10.2 apps on HP-unix and 10.2.0.4 database on solaris.
Upgraded java 1.4 and applied patch 9535311 Patch( TXK AUTOCONFIG and TEMPLATE ROLLUP PATCH)
successfully, and copy the appsutil.zip to database tier and unzip and ran adautoconfig.sh on database server.
./adautocfg.sh
Enter the APPS user password:
The log file for this session is located at: /10g/app/oracle/product/10.2.0/lasrp/appsutil/log/lasrp_hcs431oracpd002/01161723/adconfig.log
AutoConfig is configuring the Database environment...
AutoConfig will consider the custom templates if present.
Using ORACLE_HOME location : /10g/app/oracle/product/10.2.0/lasrp
Classpath : /10g/app/oracle/product/10.2.0/lasrp/jre/1.4.2/lib/rt.jar:/10g/app/oracle/product/10.2.0/lasrp/jdbc/lib/ojdbc14.jar:/10g/app/oracle/product/10.2.0/lasrp/appsutil/java/xmlparserv2.zip:/10g/app/oracle/product/10.2.0/lasrp/appsutil/java:/10g/app/oracle/product/10.2.0/lasrp/jlib/netcfg.jar:/10g/app/oracle/product/10.2.0/lasrp/jlib/ldapjclnt10.jar
Using Context file : /10g/app/oracle/product/10.2.0/lasrp/appsutil/lasrp_hcs431oracpd002.xml
Context Value Management will now update the Context file
Updating Context file...COMPLETED
Attempting upload of Context file and templates to database...COMPLETED
Updating rdbms version in Context file to db102
Updating rdbms type in Context file to 64 bits
Configuring templates from ORACLE_HOME ...
AutoConfig completed with errors.
Checked the Log file :
===========================================================================
Config Tool CVMHelper started at Sun Jan 16 17:23:41 EST 2011
===========================================================================
Updating local context file variables for Database Tier
Could not retrieve listener name from listener.ora : AC-00039: Could not parse the file: /10g/app/oracle/product/10.2.0/l
asrp/network/admin/lasrp_hcs431oracpd002/listener.ora
Raised by oracle.apps.ad.tools.configuration.CVMHelper
Making database connection using DBUtil
Please suggest what to do with this.
ThanksYes, i can able to connect database and i bounced and db and the listener.
All the application services are started successfully, but now the application services are down.
So far no proper help from ORACLE yet nor i don't beleive going in right direction.
I beleive something to do with listener.ora and tnsnames.ora file. But don't know what is the exact issue.
listener.ora
# Net8 definition for Database listener
=
(ADDRESS_LIST =
(ADDRESS= (PROTOCOL= IPC)(KEY= EXTPROCLASRP))
(ADDRESS= (PROTOCOL= TCP)(Host= hcs431oracpd002.mfia.state.mi.us )(Port= 1524))
SID_LIST_ =
(SID_LIST =
(SID_DESC =
(ORACLE_HOME= /10g/app/oracle/product/10.2.0/lasrp)
(SID_NAME = LASRP)
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /10g/app/oracle/product/10.2.0/lasrp)
(PROGRAM = extproc)
STARTUP_WAIT_TIME_ = 0
CONNECT_TIMEOUT_ = 10
TRACE_LEVEL_ = OFF
LOG_DIRECTORY_ = /10g/app/oracle/product/10.2.0/lasrp/network/admin
LOG_FILE_ =
TRACE_DIRECTORY_ = /10g/app/oracle/product/10.2.0/lasrp/network/admin
TRACE_FILE_ =
ADMIN_RESTRICTIONS_ = OFF
IFILE=/10g/app/oracle/product/10.2.0/lasrp/network/admin/listener_ifile.ora
tnsnames.ora
LASRP=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=HCS431ORACPD002.mfia.state.mi.us)(PORT=1524))
(CONNECT_DATA=
(SERVICE_NAME=LASRP)
(INSTANCE_NAME=LASRP)
LASRP_806_BALANCE=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=HCS431ORACPD002.mfia.state.mi.us)(PORT=1524))
(CONNECT_DATA=
(SERVICE_NAME=LASRP)
(INSTANCE_NAME=LASRP)
LASRP_FO=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=HCS431ORACPD002.mfia.state.mi.us)(PORT=1524))
(CONNECT_DATA=
(SERVICE_NAME=LASRP)
(INSTANCE_NAME=LASRP)
LASRP_LOCAL=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=HCS431ORACPD002.mfia.state.mi.us)(PORT=1524))
LASRP_BALANCE=
(DESCRIPTION=
(LOAD_BALANCE=YES)
(FAILOVER=YES)
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HOST=HCS431ORACPD002.mfia.state.mi.us)(PORT=1524))
(CONNECT_DATA= -
Hi all,
I have a production issue and my report takes around 4 to 5 hours for its execution and i've finded out that the 2nd from first query has a corresponding tale with it and when i modified it to below one its displaying the output and when i check it in ST05 i have no i_bsad and i_bsid table query times mentioned in it.Where in when i have the corresponding tale included i get the above both queries time interval and this table works fine.(i have to have this select statements included for my business scenario logic).But because of the inclusion of this this both table are eating lot of time.Need to include them and reduce the time comsumption of the both the tables.
SELECT vbeln fkart vbtyp knumv fkdat gjahr kdgrp rfbsk zterm bukrs
netwr kunrg kunag
bstnk_vf xblnr mwsbk rfbsk
INTO TABLE i_vbrk
FROM vbrk WHERE
vbeln IN zvbeln AND
vbtyp IN zvbtyp AND
fkdat IN zfkdat AND
bukrs IN zbukrs AND
kunag IN zkunag AND
bstnk_vf IN zbstnkvf AND
xblnr IN zxblnr AND
fksto NE 'X' .
SELECT vbeln fkart vbtyp knumv fkdat bukrs gjahr kdgrp zterm netwr
kunrg kunag
bstnk_vf xblnr mwsbk rfbsk
INTO CORRESPONDING FIELDS OF TABLE i_vbrk
FROM vbrk WHERE
vbeln IN zvbeln AND
kunag IN zkunag AND
fkdat IN zfkdat AND
xblnr IN zxblnr AND
bstnk_vf IN zbstnkvf AND
vbtyp IN zvbtyp AND
fksto NE 'X' AND
bukrs IN zbukrs .
This are the both table which has to be included ,
SELECT belnr buzei dmbtr shkzg APPENDING TABLE i_bsad
FROM bsad
FOR ALL ENTRIES IN l_tab_temp
WHERE
bukrs EQ l_tab_temp-bukrs AND
gjahr EQ l_tab_temp-gjahr AND
belnr EQ l_tab_temp-vbeln.
SELECT belnr buzei shkzg dmbtr rebzg FROM bsid APPENDING CORRESPONDING FIELDS OF TABLE i_bsid
FOR ALL ENTRIES IN l_tab_temp
WHERE bukrs EQ l_tab_temp-bukrs
"PRA927038 "PRA927150 vbeln pick
AND NOT AUGBL = SPACE
*AND BELNR = L_TAB_TEMP-VBELN
AND gjahr = l_tab_temp-gjahr
AND gjahr IN zgjahr.
AND vbeln = l_tab_temp-vbeln .
AND rebzg = l_tab_temp-vbeln
AND rebzj = l_tab_temp-gjahr.
Can any one help me in tuning this if u guys still have questions please ask me.And for your understanding this my coding please go through it
*& Report ZAR_REC001 *
REPORT zar_rec001 NO STANDARD PAGE HEADING
LINE-SIZE 355
LINE-COUNT 60
MESSAGE-ID zuserm.
TYPE-POOLS : slis.
TABLES : vbrk,
vbrp,
bsid,
bsad,
kna1,
lfa1,
knvv,
zar1_detail,
zar1_struc1,
vbak,
vbap,
zcustomfields,
konv,
zvlxxsr,
mara,
t023t,
sscrfields,
konp,
tvarv,
tvkgr,
tvgrt. "IMR928046
TYPES : BEGIN OF t_tvkgr,
vkgrp TYPE vbrp-vkgrp,
END OF t_tvkgr.
TYPES : BEGIN OF ty_vbrp, "IMR928046
vkgrp TYPE vkgrp,
END OF ty_vbrp.
DATA : BEGIN OF i_zgjahr OCCURS 0,
zgjahr LIKE bsid-gjahr,
END OF i_zgjahr.
DATA : BEGIN OF i_vbrk OCCURS 0,
vbeln LIKE vbrk-vbeln,
fkart LIKE vbrk-fkart,
vbtyp LIKE vbrk-vbtyp,
knumv LIKE vbrk-knumv,
fkdat LIKE vbrk-fkdat,
gjahr LIKE vbrk-gjahr, "KRISHNA
kdgrp LIKE vbrk-kdgrp,
zterm LIKE vbrk-zterm,
bukrs LIKE vbrk-bukrs, "krishna
rfbsk LIKE vbrk-rfbsk, " KYH25882
netwr LIKE vbrk-netwr,
kunrg LIKE vbrk-kunrg,
kunag LIKE vbrk-kunag,
bstnk_vf LIKE vbrk-bstnk_vf,
xblnr LIKE vbrk-xblnr,
mwsbk LIKE vbrk-mwsbk,
name1 LIKE kna1-name1,
vkgrp LIKE knvv-vkgrp,
bezei LIKE tvgrt-bezei, "IMR928046
partialpmt LIKE vbrk-netwr,
opendmbtr LIKE vbrk-netwr,
gmdpercent LIKE vbrp-netwr,
gmdnetwr LIKE vbrp-netwr,
aubel LIKE vbrp-aubel,
aupos LIKE vbrp-aupos,
ihrez LIKE vbak-ihrez,
kdmat LIKE vbap-kdmat,
mwsbp LIKE vbrp-mwsbp,
kzwi5 LIKE vbrp-kzwi5,
due1 LIKE vbrp-netwr,
due2 LIKE vbrp-netwr,
due3 LIKE vbrp-netwr,
due4 LIKE vbrp-netwr,
due5 LIKE vbrp-netwr,
due6 LIKE vbrp-netwr.
DATA: END OF i_vbrk.
DATA : BEGIN OF i_vbrp OCCURS 0.
INCLUDE STRUCTURE zar1_struc1.
DATA: zzp_mfrnr LIKE vbrp-zzp_mfrnr,
vgbel LIKE vbrp-vgbel,
vgpos LIKE vbrp-vgpos.
DATA : END OF i_vbrp.
DATA : d_vbrp LIKE i_vbrp OCCURS 0 WITH HEADER LINE.
DATA : BEGIN OF d1_vbrp OCCURS 0.
INCLUDE STRUCTURE zar1_detail.
DATA : END OF d1_vbrp.
DATA : BEGIN OF i_bsad OCCURS 0,
belnr LIKE bsad-belnr, "krishna
buzei LIKE bsad-buzei, "Vijay
dmbtr LIKE bsad-dmbtr, "krishna
shkzg. "ppo924471
DATA : END OF i_bsad.
*--- begin of ppo924396
DATA : BEGIN OF i_bsid OCCURS 0,
augbl like bsad-augbl, "PRA927038
vbeln LIKE bsid-vbeln, "vma928512
rebzg LIKE bsid-rebzg, "vma928512
belnr LIKE bsid-belnr,
buzei LIKE bsid-buzei,
shkzg LIKE bsad-shkzg, "ppo924471
dmbtr LIKE bsad-dmbtr.
DATA : END OF i_bsid.
DATA : l_partialpmt LIKE bsad-dmbtr.
*--- end of ppo924396
DATA : BEGIN OF i_kunag OCCURS 0,
kunag LIKE vbrk-kunag.
DATA : END OF i_kunag.
DATA : BEGIN OF i_knumv OCCURS 0,
knumv LIKE vbrk-knumv.
DATA : END OF i_knumv.
DATA: BEGIN OF i_konv OCCURS 0,
knumv LIKE konv-knumv,
kposn LIKE konv-kposn,
kschl LIKE konv-kschl,
knumh LIKE konv-knumh,
kbetr LIKE konv-kbetr,
kwert LIKE konv-kwert,
kopos LIKE konv-kopos,
END OF i_konv.
DATA : BEGIN OF i_kna1 OCCURS 0,
kunnr LIKE kna1-kunnr,
name1 LIKE kna1-name1,
name2 LIKE kna1-name2,
name3 LIKE kna1-name3,
stras LIKE kna1-stras,
ort01 LIKE kna1-ort01,
regio LIKE kna1-regio,
pstlz LIKE kna1-pstlz,
adrnr LIKE kna1-adrnr.
DATA : END OF i_kna1.
*DATA : I_KNA1 TYPE HASHED TABLE OF T_KNA1 WITH UNIQUE KEY KUNNR.
*DATA : L_WA_KNA1 TYPE T_KNA1.
TYPES : BEGIN OF t_t023t,
matkl LIKE t023t-matkl,
wgbez LIKE t023t-wgbez.
TYPES : END OF t_t023t.
DATA : i_t023t TYPE HASHED TABLE OF t_t023t WITH UNIQUE KEY matkl.
DATA : l_wa_t023t TYPE t_t023t.
DATA : BEGIN OF i_t179t OCCURS 0,
prodh LIKE t179t-prodh,
vtext LIKE t179t-vtext.
DATA : END OF i_t179t.
TYPES : BEGIN OF t_mara,
matnr LIKE mara-matnr,
mfrpn LIKE mara-mfrpn.
TYPES : END OF t_mara.
DATA : i_mara TYPE HASHED TABLE OF t_mara WITH UNIQUE KEY matnr.
DATA : l_wa_mara TYPE t_mara.
DATA : BEGIN OF i_vbak OCCURS 0,
vbeln LIKE vbak-vbeln,
bname LIKE vbak-bname,
zz_ccenter LIKE vbak-zz_ccenter,
zz_dept LIKE vbak-zz_dept,
ihrez LIKE vbak-ihrez.
DATA : END OF i_vbak.
DATA: BEGIN OF i_vbap OCCURS 0,
vbeln LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
erdat LIKE vbap-erdat,
prodh LIKE vbap-prodh,
ihrez LIKE vbak-ihrez,
kdmat LIKE vbap-kdmat,
posex LIKE vbap-posex,
END OF i_vbap.
DATA : BEGIN OF i_zcustomfields OCCURS 0,
vbeln LIKE zcustomfields-vbeln,
posnr LIKE zcustomfields-posnr,
valueid LIKE zcustomfields-valueid,
value LIKE zcustomfields-value.
DATA : END OF i_zcustomfields.
DATA : BEGIN OF i_vbpa OCCURS 0,
vbeln LIKE vbpa-vbeln,
kunnr LIKE vbpa-kunnr,
adrnr LIKE vbpa-adrnr.
DATA : END OF i_vbpa.
DATA d_vbpa LIKE i_vbpa OCCURS 0 WITH HEADER LINE.
DATA : BEGIN OF i_zvlxxsr OCCURS 0.
INCLUDE STRUCTURE zvlxxsr.
DATA : END OF i_zvlxxsr.
TYPES: BEGIN OF t_lfa1,
lifnr LIKE lfa1-lifnr,
name1 LIKE lfa1-name1.
TYPES: END OF t_lfa1.
DATA : i_lfa1 TYPE HASHED TABLE OF t_lfa1 WITH UNIQUE KEY lifnr.
DATA : l_wa_lfa1 TYPE t_lfa1.
DATA : i_tvkgr TYPE STANDARD TABLE OF t_tvkgr.
DATA : l_tvkgr TYPE t_tvkgr.
DATA : g_date_diff TYPE p.
DATA: fieldcat_sno TYPE slis_t_fieldcat_alv,
g_append_d_vbrp,
tcode LIKE sy-tcode,
fkimg_tot LIKE vbrp-fkimg,
Begin DEVK926013 KYH26013
NETPR_TOT LIKE I_VBRP-NETPR,
NETWR_TOT LIKE I_VBRP-NETPR,
KBETR_TOT LIKE I_VBRP-NETPR,
KBETRQTY_TOT LIKE I_VBRP-NETPR,
GMDPERCENT_TOT LIKE I_VBRP-NETPR,
GMDNETWR_TOT LIKE I_VBRP-NETPR,
netpr_tot LIKE vbrp-netwr,
netwr_tot LIKE vbrp-netwr,
kbetr_tot LIKE vbrp-netwr,
kbetrqty_tot LIKE vbrp-netwr,
gmdpercent_tot LIKE vbrp-netwr,
gmdnetwr_tot LIKE vbrp-netwr,
End DEVK926013 KYH26013
auth_failure.
DATA: objnum LIKE vbrk-knumv.
DATA: auth(3) TYPE c.
DATA: authcnt TYPE i VALUE 0.
DATA: cntserno TYPE i.
DATA: l_from TYPE i,
l_to TYPE i,
l_lines TYPE i,
l_rows(9) TYPE p DECIMALS 5,
l_loop TYPE i.
*--- begin of ppo924234
DATA: BEGIN OF down_sum OCCURS 0,
vbeln LIKE vbrk-vbeln,
fkart LIKE vbrk-fkart,
fkdat(8),
kunrg LIKE vbrk-kunrg,
kunag LIKE vbrk-kunag,
name1 LIKE kna1-name1,
vkgrp LIKE knvv-vkgrp,
bezei LIKE tvgrt-bezei, "IMR928046
zterm LIKE vbrk-zterm,
bstnk_vf LIKE vbrk-bstnk_vf,
xblnr LIKE vbrk-xblnr,
netwr(15),
partialpmt(15),
due1(15),
due2(15),
due3(15),
due4(15),
due5(15),
due6(15),
kdgrp LIKE vbrk-kdgrp,
END OF down_sum.
DATA: BEGIN OF down_sum_get OCCURS 0,
line(255),
END OF down_sum_get.
DATA: BEGIN OF down_det OCCURS 0,
zzid TYPE zchar8,
zcount(10),
vbeln TYPE zvbeln,
posnr(6),
fkdat(8),
bstnk_vf TYPE bstnk,
fkimg(13),
name1_mfg TYPE zmfg_zar1,
matnr TYPE matnr,
arktx TYPE arktx,
netpr(11),
kzwi5(13),
netwr(15),
kbetr(11),
kbetrqty(11),
mwsbp(13),
gmdpercent(15),
gmdnetwr(15),
name1 TYPE zsold_zar1,
name1_sh TYPE zship_zar1,
name2_sh TYPE zship2_zar1,
name3_sh TYPE zship3_zar1,
stras_sh TYPE stras,
ort01_sh TYPE ort01,
regio_sh TYPE regio,
pstlz_sh TYPE pstlz,
bname TYPE zbname_zar1,
vkgrp TYPE vkgrp,
aubel TYPE vbeln_va ,
aupos(6),
audat(8),
sernr TYPE gernr,
prodh TYPE prodh_d,
wgbez TYPE wgbez,
vtext TYPE bezei20,
asstg TYPE zasstg,
matkl TYPE matkl,
fkart TYPE fkart,
kunag TYPE kunag,
vbtyp TYPE vbtyp,
ihrez TYPE ihrez,
kdmat TYPE matnr_ku,
posex TYPE posex,
zz_ccenter TYPE zv_ccenter,
zz_dept TYPE zv_dept,
zz_cap_exp_code TYPE zv_cap_exp_code,
zz_cap_exp_id TYPE zv_cap_exp_id,
zz_project TYPE zv_project,
zz_aprvd_by TYPE zv_aprvd_by,
kdgrp_auft TYPE kdgrp_auft,
END OF down_det.
*--- end of ppo924234
*--- begin of ppo924471
DATA: BEGIN OF i_tvfk OCCURS 0,
fkart TYPE fkart,
END OF i_tvfk.
*--- end of ppo924471
begin of KYH
DATA: fiscal_yr_begn(8) TYPE c,
fiscal_yr_end(8) TYPE c,
fiscal_yr LIKE bsid-gjahr,
fnyear(4) TYPE c,
fnyear_pre(4) TYPE c.
END of KYH
DATA : v_gjahr LIKE bsid-gjahr. " KYH25882
TYPES : BEGIN OF t_konp,
knumh LIKE konp-knumh,
kopos LIKE konp-kopos,
KBETR LIKE KONP-KBETR. " KYH26013
kbetr LIKE vbrk-netwr. " KYH26013
TYPES : END OF t_konp.
DATA :i_konp TYPE HASHED TABLE OF t_konp WITH UNIQUE KEY knumh kopos.
DATA : l_wa_konp TYPE t_konp.
DATA : l_e_fyv TYPE periv VALUE 10,
l_i_fyear LIKE t009b-bdatj,
l_bsid_index TYPE sy-tabix VALUE 1,
l_bsad_index TYPE sy-tabix VALUE 1.
CLASS cl_abap_char_utilities DEFINITION LOAD. "IMR928770
CONSTANTS:
c_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab,
c_cret TYPE c VALUE cl_abap_char_utilities=>cr_lf.
CONSTANTS c_index TYPE i VALUE 2000. "KYH25969
SELECTION-SCREEN : BEGIN OF BLOCK blk1 WITH FRAME.
SELECT-OPTIONS : zkunag FOR vbrk-kunag MATCHCODE OBJECT debi,
zvbeln FOR vbrk-vbeln MATCHCODE OBJECT vmcf,
zfkdat FOR vbrk-fkdat OBLIGATORY,
zvkbur FOR knvv-vkbur,
zvkgrp FOR knvv-vkgrp OBLIGATORY,
zbukrs FOR bsid-bukrs OBLIGATORY,
zgjahr FOR bsid-gjahr OBLIGATORY,
zvbtyp FOR vbrk-vbtyp NO-DISPLAY,
zbstnkvf FOR vbrk-bstnk_vf,
zxblnr FOR vbrk-xblnr.
SELECTION-SCREEN : END OF BLOCK blk1.
SELECTION-SCREEN : BEGIN OF BLOCK blk2 WITH FRAME.
PARAMETER : zopeninv RADIOBUTTON GROUP inv,
zallinv RADIOBUTTON GROUP inv DEFAULT 'X'.
SELECTION-SCREEN : END OF BLOCK blk2.
SELECTION-SCREEN : BEGIN OF BLOCK blk3 WITH FRAME.
PARAMETER : zinvoice AS CHECKBOX,
zdebit AS CHECKBOX,
zcredit AS CHECKBOX.
SELECTION-SCREEN : END OF BLOCK blk3.
SELECTION-SCREEN : BEGIN OF BLOCK blk4 WITH FRAME.
PARAMETER : zsumrep RADIOBUTTON GROUP rep DEFAULT 'X',
zdetrep RADIOBUTTON GROUP rep.
SELECT-OPTIONS : zmfrnr FOR vbrp-zzp_mfrnr MATCHCODE OBJECT kred.
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN PUSHBUTTON /1(42) prun_det USER-COMMAND prun.
PARAMETERS: zid LIKE zar1_detail-zzid.
SELECTION-SCREEN : END OF BLOCK blk4.
*--- begin of ppo924234
SELECTION-SCREEN BEGIN OF BLOCK blk5 WITH FRAME TITLE text-001.
PARAMETERS: p_appfil RADIOBUTTON GROUP file DEFAULT 'X',
p_prsfil RADIOBUTTON GROUP file.
PARAMETERS: filepath LIKE rlgrap-filename.
SELECTION-SCREEN END OF BLOCK blk5.
*--- end of ppo924234
INITIALIZATION.
MOVE : 'Detail Report results of the previous run' TO prun_det.
zid = sy-uname(8).
tcode = sy-tcode.
IF NOT tcode IS INITIAL.
tvarv-name = 'ZTCODE_ZAR_INVOICE'.
tvarv-type = 'P'.
tvarv-low = tcode.
MODIFY tvarv.
ENDIF.
IF tcode NE 'ZAR2'.
NEW-PAGE LINE-SIZE 255.
ELSE.
NEW-PAGE LINE-SIZE 170.
ENDIF.
AT SELECTION-SCREEN.
IF sscrfields-ucomm = 'PRUN'.
PERFORM call_ze16.
EXIT.
ENDIF.
*--- begin of ppo924234
AT SELECTION-SCREEN ON BLOCK blk5.
IF p_prsfil = 'X' AND filepath IS INITIAL.
MESSAGE e001(00) WITH 'Enter the File Name'.
ENDIF.
*--- end of ppo924234
START-OF-SELECTION.
PERFORM check_tcode.
PERFORM check_authorization.
IF auth_failure = 'X'.
EXIT.
ENDIF.
PERFORM get_sd_doc_category.
PERFORM get_invoice_data.
IF NOT i_vbrk[] IS INITIAL. "KYH25969
PERFORM get_accounting_data.
PERFORM get_other_data.
ENDIF. "KYH25969
END-OF-SELECTION.
IF NOT i_vbrk[] IS INITIAL. " KYH25969
PERFORM process_data.
IF NOT zsumrep IS INITIAL.
*--- begin of ppo924234
IF NOT filepath IS INITIAL.
CLEAR down_sum.
REFRESH down_sum.
MOVE: 'Invoice No' TO down_sum-vbeln,
'ITyp' TO down_sum-fkart,
'Bill Dt' TO down_sum-fkdat,
'Bill-to#' TO down_sum-kunrg,
'Customer#' TO down_sum-kunag,
'Name' TO down_sum-name1,
'SPN' TO down_sum-vkgrp,
'Spn Name' TO down_sum-bezei, "IMR928046
'PayT' TO down_sum-zterm,
'PO No' TO down_sum-bstnk_vf,
'Ref Doc' TO down_sum-xblnr,
'Invoice Total' TO down_sum-netwr,
'Payments' TO down_sum-partialpmt,
'Due(00-29 Days)' TO down_sum-due1,
'Due(30-44 Days)' TO down_sum-due2,
'Due(45-59 Days)' TO down_sum-due3,
'Due(60-74 Days)' TO down_sum-due4,
'Due(75-89 Days)' TO down_sum-due5,
'Due(Ovr 90Days)' TO down_sum-due6,
'CGrp' TO down_sum-kdgrp.
APPEND down_sum.
LOOP AT i_vbrk.
MOVE-CORRESPONDING i_vbrk TO down_sum.
APPEND down_sum.
CLEAR down_sum.
ENDLOOP.
PERFORM download_file TABLES down_sum USING down_sum.
ENDIF.
*--- end of ppo924234
PERFORM display_summary_output.
ELSE.
for Detail report
IF NOT i_vbrk[] IS INITIAL. " KYH26282
PERFORM get_data_for_detail_report.
PERFORM process_data_for_detail_report.
PERFORM display_detail_report.
ELSE.
MESSAGE i001(00) WITH 'No data exists for the given selection'.
" KYH26282
ENDIF. "KYH26282
ENDIF.
ELSE.
MESSAGE i001(00) WITH 'No data exists for the given selection'.
"KYH25969
ENDIF. " KYH25969
*& Form GET_INVOICE_DATA
text
--> p1 text
<-- p2 text
FORM get_invoice_data .
TYPES : BEGIN OF t1_vbrp,
vbeln TYPE vbeln,
gmdnetwr LIKE zar1_struc1-gmdnetwr,
gmdpercent LIKE zar1_struc1-gmdpercent,
vkgrp TYPE vkgrp.
TYPES END OF t1_vbrp.
DATA : v_end_flag(1) TYPE c.
DATA : l_tab_vbrp TYPE STANDARD TABLE OF t1_vbrp. "KYH
DATA: l_wa_vbrp LIKE LINE OF i_vbrp.
DATA : l1_vbrp TYPE t1_vbrp.
DATA : l_tab_temp LIKE STANDARD TABLE OF i_vbrk.
DATA : l_sy_tabix LIKE sy-tabix,
gmdnetwr LIKE i_vbrp-gmdnetwr,
gmdpercent LIKE i_vbrp-gmdpercent,
l_count LIKE sy-tabix,
l_tabix TYPE sy-tabix.
CLEAR: l_sy_tabix, l_tabix.
SELECT vbeln fkart vbtyp knumv fkdat gjahr kdgrp rfbsk zterm bukrs
netwr kunrg kunag "IMR928882
bstnk_vf xblnr mwsbk rfbsk
INTO TABLE i_vbrk
FROM vbrk WHERE
vbeln IN zvbeln AND
vbtyp IN zvbtyp AND
fkdat IN zfkdat AND
bukrs IN zbukrs AND
kunag IN zkunag AND
bstnk_vf IN zbstnkvf AND
xblnr IN zxblnr AND
fksto NE 'X' .
IF sy-dbcnt NE 0.
IF NOT zsumrep IS INITIAL.
IF NOT i_vbrk[] IS INITIAL.
PERFORM fiscal_year_check. " KYH25882
IF NOT i_vbrk[] IS INITIAL. " KYH25882
REFRESH: l_tab_temp.
CLEAR: l_from,
l_to,
l_lines,
l_rows,
l_loop.
DESCRIBE TABLE i_vbrk LINES l_lines.
l_from = 1.
l_to = c_index.
l_rows = l_lines / c_index.
l_loop = CEIL( l_rows ).
IF l_loop = 0.
l_loop = 1.
ENDIF.
DO l_loop TIMES.
APPEND LINES OF i_vbrk FROM l_from TO l_to TO l_tab_temp.
SELECT vbeln posnr vkgrp mwsbp kzwi5 aubel aupos
kdgrp_auft
APPENDING CORRESPONDING FIELDS OF TABLE i_vbrp
FROM vbrp FOR ALL ENTRIES IN l_tab_temp
WHERE
vbeln = l_tab_temp-vbeln
AND
vkbur IN zvkbur AND
vkgrp IN zvkgrp.
REFRESH l_tab_temp.
l_from = l_to + 1.
l_to = l_to + c_index.
ENDDO.
ENDIF.
*Remove entries from VBRK checkinf for SPN on selection screen
PERFORM check_spn. " KRI926835
ENDIF.
ELSE.
IF NOT i_vbrk[] IS INITIAL.
PERFORM fiscal_year_check. " KYH25882
IF NOT i_vbrk[] IS INITIAL. " KYH25882
REFRESH: l_tab_temp.
CLEAR: l_from,
l_to,
l_lines,
l_rows,
l_loop.
DESCRIBE TABLE i_vbrk LINES l_lines.
l_from = 1.
l_to = c_index.
l_rows = l_lines / c_index.
l_loop = CEIL( l_rows ).
IF l_loop = 0.
l_loop = 1.
ENDIF.
DO l_loop TIMES.
APPEND LINES OF i_vbrk FROM l_from TO l_to TO l_tab_temp.
SELECT vbeln posnr fkimg matnr arktx netwr vkgrp aubel aupos
sernr
zzp_mfrnr vgbel vgpos aupos matkl mwsbp kzwi5 kdgrp_auft
APPENDING CORRESPONDING FIELDS OF TABLE i_vbrp
FROM vbrp FOR ALL ENTRIES IN l_tab_temp WHERE
vbeln = l_tab_temp-vbeln AND
vkbur IN zvkbur AND
vkgrp IN zvkgrp AND
zzp_mfrnr IN zmfrnr.
REFRESH l_tab_temp.
l_from = l_to + 1.
l_to = l_to + c_index.
ENDDO.
ENDIF. " KYH25882
ENDIF.
ENDIF.
IF NOT i_vbrk[] IS INITIAL. "KYH25882
SORT i_vbrk BY vbeln. "KYH25882
SORT i_vbrp BY vbeln posnr. "KYH25882
LOOP AT i_vbrk.
MOVE i_vbrk-kunag TO i_kunag-kunag.
APPEND i_kunag.
MOVE i_vbrk-knumv TO i_knumv-knumv.
APPEND i_knumv.
ENDLOOP.
ENDIF. " KYH25882
ENDFORM. " GET_INVOICE_DATA
*& Form GET_ACCOUNTING_DATA
text
--> p1 text
<-- p2 text
FORM get_accounting_data .
DATA : l_tab_vbrp LIKE STANDARD TABLE OF i_vbrp. "KYH
DATA: l_tab_temp LIKE STANDARD TABLE OF i_vbrk.
CONSTANTS c_index TYPE i VALUE 4000.
IF NOT i_vbrk[] IS INITIAL.
REFRESH: l_tab_temp.
CLEAR: l_from,
l_to,
l_lines,
l_rows,
l_loop.
DESCRIBE TABLE i_vbrk LINES l_lines.
l_from = 1.
l_to = c_index.
l_rows = l_lines / c_index.
l_loop = CEIL( l_rows ).
IF l_loop = 0.
l_loop = 1.
ENDIF.
DO l_loop TIMES.
APPEND LINES OF i_vbrk FROM l_from TO l_to TO l_tab_temp.
DELETE l_tab_temp WHERE rfbsk <> 'C'. " KYH25882
IF NOT l_tab_temp[] IS INITIAL . " KYH25882
SELECT belnr buzei dmbtr shkzg APPENDING TABLE i_bsad
FROM bsad
FOR ALL ENTRIES IN l_tab_temp
WHERE
bukrs EQ l_tab_temp-bukrs AND
gjahr EQ l_tab_temp-gjahr AND
belnr EQ l_tab_temp-vbeln.
ENDIF. " KYH25882
REFRESH l_tab_temp.
l_from = l_to + 1.
l_to = l_to + c_index.
ENDDO.
*--- begin of ppo924396
REFRESH: l_tab_temp.
CLEAR: l_from,
l_to,
l_lines,
l_rows,
l_loop.
DESCRIBE TABLE i_vbrk LINES l_lines.
l_from = 1.
l_to = c_index.
l_rows = l_lines / c_index.
l_loop = CEIL( l_rows ).
IF l_loop = 0.
l_loop = 1.
ENDIF.
DO l_loop TIMES.
APPEND LINES OF i_vbrk FROM l_from TO l_to TO l_tab_temp.
DELETE l_tab_temp WHERE rfbsk <> 'C'. " KYH25882
IF NOT l_tab_temp[] IS INITIAL . " KYH25882
SELECT belnr buzei shkzg dmbtr rebzg FROM bsid "vma928512
APPENDING CORRESPONDING FIELDS OF TABLE i_bsid
FOR ALL ENTRIES IN l_tab_temp
WHERE bukrs EQ l_tab_temp-bukrs
"PRA927038 "PRA927150 vbeln pick
ENDIF. " KYH25882
REFRESH l_tab_temp.
l_from = l_to + 1.
l_to = l_to + c_index.
ENDDO.
SELECT fkart FROM tvfk INTO TABLE i_tvfk WHERE vbtyp = 'O'.
"ppo924471
delete i_bsid where augbl = space. " PRA927093
ENDIF. " KYH25882
ENDFORM. " GET_ACCOUNTING_DATA
*& Form GET_SD_DOC_CATEGORY
text
--> p1 text
<-- p2 text
FORM get_sd_doc_category .
Exclude SD Doc Category N and S
zvbtyp-sign = 'E'.
zvbtyp-option = 'EQ'.
zvbtyp-low = 'N'.
APPEND zvbtyp.
zvbtyp-sign = 'E'.
zvbtyp-option = 'EQ'.
zvbtyp-low = 'S'.
APPEND zvbtyp.
Get only Invoices
IF NOT zinvoice IS INITIAL.
zvbtyp-sign = 'I'.
zvbtyp-option = 'EQ'.
zvbtyp-low = 'M'.
APPEND zvbtyp.
ENDIF.
Get only Credit Memos
IF NOT zcredit IS INITIAL.
zvbtyp-sign = 'I'.
zvbtyp-option = 'EQ'.
zvbtyp-low = 'O'.
APPEND zvbtyp.
ENDIF.
Get only Debit Memos
IF NOT zdebit IS INITIAL.
zvbtyp-sign = 'I'.
zvbtyp-option = 'EQ'.
zvbtyp-low = 'P'.
APPEND zvbtyp.
ENDIF.
GET Fiscal year.
IF NOT zgjahr IS INITIAL.
zgjahr-sign = 'I'.
zgjahr-option = 'EQ'.
APPEND i_zgjahr.
APPEND zgjahr. "IMR928882
ENDIF.
ENDFORM. " GET_SD_DOC_CATEGORY
*& Form GET_OTHER_DATA
text
--> p1 text
<-- p2 text
FORM get_other_data .
IF NOT i_kunag[] IS INITIAL. " KYH25882
SORT i_kunag BY kunag.
DELETE ADJACENT DUPLICATES FROM i_kunag COMPARING kunag.
SELECT kunnr name1 name2 name3 stras ort01 regio pstlz adrnr FROM
kna1 INTO CORRESPONDING FIELDS OF TABLE i_kna1 FOR ALL ENTRIES
IN i_kunag WHERE kunnr = i_kunag-kunag.
SELECT kunnr name1 name2 name3 stras ort01 regio pstlz adrnr FROM
kna1 INTO TABLE i_kna1 FOR ALL ENTRIES "IMR928882
IN i_kunag WHERE kunnr = i_kunag-kunag.
IF NOT I_KNUMV[] IS INITIAL. " KYH25882
SORT I_KNUMV BY KNUMV.
DELETE ADJACENT DUPLICATES FROM I_KNUMV COMPARING KNUMV.
ENDIF. " KYH25882
ENDIF. " KYH25882
ENDFORM. " GET_OTHER_DATA
*& Form PROCESS_DATA
text
--> p1 text
<-- p2 text
FORM process_data .
IF NOT i_vbrk[] IS INITIAL. " KYH25882
DATA: l_sy_tabix LIKE sy-tabix.
CLEAR l_sy_tabix.
SORT i_kna1 BY kunnr.
SORT i_bsad BY belnr.
SORT i_bsid BY belnr.
LOOP AT i_vbrk.
l_sy_tabix = sy-tabix.
PERFORM invoice_total_get. "ppo924692
PERFORM payments_get.
IF NOT zopeninv IS INITIAL AND i_vbrk-opendmbtr = 0.
IF NOT zopeninv IS INITIAL.
start pradeep
perform openinvoices.
DELETE i_vbrk.
CONTINUE.
ENDIF.
PERFORM customer_name_get. "krishna
PERFORM return_cal_sum. "ppo925435
PERFORM dues_data_get. "ppo925435
PERFORM spn_get. "IMR928046
MODIFY i_vbrk INDEX l_sy_tabix.
CLEAR i_vbrk.
ENDLOOP.
ENDIF. " KYH25882
ENDFORM. " PROCESS_DATA
*& Form DISPLAY_SUMMARY_OUTPUT
text
--> p1 text
<-- p2 text
FORM display_summary_output .
IF i_vbrk[] IS INITIAL.
MESSAGE i001(00) WITH 'No data exists for the given selection'.
EXIT.
ENDIF.
PERFORM build_field_cat.
PERFORM call_alv.
ENDFORM. " DISPLAY_SUMMARY_OUTPUT
*& Form BUILD_FIELD_CAT
text
--> p1 text
<-- p2 text
FORM build_field_cat .
DATA: ls_fieldcat TYPE slis_fieldcat_alv.
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'VBELN'.
ls_fieldcat-ref_tabname = 'VBRK'.
ls_fieldcat-ref_tabname = 'I_VBRK'.
ls_fieldcat-reptext_ddic = 'Invoice No'.
ls_fieldcat-key = 'X'.
APPEND ls_fieldcat TO fieldcat_sno.
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'FKART'.
ls_fieldcat-ref_tabname = 'VBRK'.
ls_fieldcat-ref_tabname = 'I_VBRK'. "IMR928770
ls_fieldcat-reptext_ddic = 'ITyp'.
ls_fieldcat-key = ' '.
APPEND ls_fieldcat TO fieldcat_sno.
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'FKDAT'.
ls_fieldcat-ref_tabname = 'VBRK'.
ls_fieldcat-ref_tabname = 'I_VBRK'.
ls_fieldcat-reptext_ddic = 'Bill Dt'. "IMR928770
ls_fieldcat-key = ' '.
APPEND ls_fieldcat TO fieldcat_sno.
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'KUNRG'.
ls_fieldcat-ref_tabname = 'VBRK'.
ls_fieldcat-ref_tabname = 'I_VBRK'. "IMR928770
ls_fieldcat-reptext_ddic = 'Bill To #'.
ls_fieldcat-key = ' '.
APPEND ls_fieldcat TO fieldcat_sno.
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'KUNAG'.
ls_fieldcat-ref_tabname = 'I_VBRK'.
ls_fieldcat-reptext_ddic = 'Customer #'.
ls_fieldcat-key = ' '.
APPEND ls_fieldcat TO fieldcat_sno.
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'NAME1'.
ls_fieldcat-ref_tabname = 'KNA1'. "IMR928770
ls_fieldcat-ref_tabname = 'I_VBRK'.
ls_fieldcat-reptext_ddic = 'Name'.
ls_fieldcat-key = ' '.
APPEND ls_fieldcat TO fieldcat_sno.
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'VKGRP'.
ls_fieldcat-ref_tabname = 'VBRP'. "IMR928770
ls_fieldcat-ref_tabname = 'I_VBRK'.
ls_fieldcat-reptext_ddic = 'Spn'.
ls_fieldcat-key = ' '.
APPEND ls_fieldcat TO fieldcat_sno.
CLEAR ls_fieldcat. "IMR928046
ls_fieldcat-fieldname = 'BEZEI'.
ls_fieldcat-ref_tabname = 'TVGRT'.
ls_fieldcat-ref_tabname = 'I_VBRK'.
ls_fieldcat-reptext_ddic = 'Spn Name'.
ls_fieldcat-key = ' '.
APPEND ls_fieldcat TO fieldcat_sno.
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'ZTERM'.
ls_fieldcat-ref_tabname = 'VBRK'. "IMR928770
ls_fieldcat-ref_tabname = 'I_VBRK'.
ls_fieldcat-reptext_ddic = 'PayT'. "IMR928770
ls_fieldcat-key = ' '.
APPEND ls_fieldcat TO fieldcat_sno.
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'BSTNK_VF'.
ls_fieldcat-ref_tabname = 'VBRK'. "IMR928770
ls_fieldcat-reptext_ddic = 'I_VBRK'.
ls_fieldcat-reptext_ddic = 'Client PO'.
ls_fieldcat-key = ' '.
APPEND ls_fieldcat TO fieldcat_sno.
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'XBLNR'.
ls_fieldcat-ref_tabname = 'VBRK'. "IMR928770
ls_fieldcat-reptext_ddic = 'I_VBRK'.
ls_fieldcat-reptext_ddic = 'Ref Doc'.
ls_fieldcat-key = ' '.
APPEND ls_fieldcat TO fieldcat_sno.
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'NETWR'.
ls_fieldcat-ref_tabname = 'VBRP'. "IMR928770
ls_fieldcat-reptext_ddic = 'I_VBRK'.
ls_fieldcat-reptext_ddic = 'Invoice Total'.
ls_fieldcat-key = ' '.
APPEND ls_fieldcat TO fieldcat_sno.
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'PARTIALPMT'.
ls_fieldcat-ref_tabname = 'I_VBRK'.
ls_fieldcat-reptext_ddic = 'Payment'.
ls_fieldcat-key = ' '.
APPEND ls_fieldcat TO fieldcat_sno.
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'DUE1'.
ls_fieldcat-ref_tabname = 'I_VBRK'.
ls_fieldcat-reptext_ddic = 'Due ( 0 - 29)'.
ls_fieldcat-key = ' '.
APPEND ls_fieldcat TO fieldcat_sno.Hi
1. Avoid NE in the select(below)
SELECT vbeln fkart vbtyp knumv fkdat bukrs gjahr kdgrp zterm netwr
kunrg kunag
bstnk_vf xblnr mwsbk rfbsk
INTO CORRESPONDING FIELDS OF TABLE i_vbrk
FROM vbrk WHERE
vbeln IN zvbeln AND
kunag IN zkunag AND
fkdat IN zfkdat AND
xblnr IN zxblnr AND
bstnk_vf IN zbstnkvf AND
vbtyp IN zvbtyp AND
<b>fksto NE 'X'</b> AND
bukrs IN zbukrs .
Instead delete the entries from the table after u fetch the data into i_vbrk.
2. Avoid using INTO CORRESPONDING FIELDS.
3. before using FOR ALL ENTRIES IN l_tab_temp
sort the internal table withrequired keys.
delete the duplicate entries with those fields.
4. this select APPENDING CORRESPONDING FIELDS OF TABLE i_vbrp
is in the DO-ENDDO. if possible move it out of the loop.
use WHILE-ENDWHILE instead of DO-ENDDO.
5. APPENDING CORRESPONDING FIELDS OF TABLE i_vbrp
avoid APPENDING clause. u can create temporary internal table and append the entries accordingly.
6. Avoid Move-corresponding.
7. you have used DELETE statement in Loops. try to avoid that.
hope this helps.
**reward if helpful
regards,
madhu -
Production issue - Sender File adapter not picking up the files from folder
Hi Guys,
Ever since the upgrade from XI 3.0 to PI 7.1, we have come acrossinstances of weird error.
Thsi time again - now the 3rd time - tandom basis, in our production PI server, we have teh file slying in the source directory folder in the server.
I can see the files lying there in AL11.
However, it looks like that the file polling has just stopped and the channel is going blank in channel monitoring.
I have checked in SXMB_MONI and there are no messages since the morning.
I have tried craeting a replica of the current channel but it is not working.
This is teh production server and thsi has alraedy created production issues.
I ahve checked in the SDN forum but am not able to find the details.
Plaese help me.
I am anyway going to raise the issue with SAP now.
Regards,
Archana
<REMOVED BY MODERATOR>
Edited by: Prateek Raj Srivastava on Jun 8, 2010 4:50 PMHi Prateek,
I have trying all sorts since the morning and then just checked teh file permissions.
The file permissions were incorrect as compared ot the other files that were processed successfully today.
Somehow the permissions were changed on the server and the interface channel was not able to poll the files.
I got teh permissions changed back to 666 and all the files were pikced up in a minute.
I got the folder checked and it seems like that the permissions were changed somewhere very early in the morning and we are trying to find out how it happened and who did that.
However, another question i had - this sender file adapter was polling the source directory and deleting the files from there.
I would have expected that if the channel had issues with the file permission because of which it was not able to access the file, it would have thrown an error something like the file permissions error.
But there was not a single error in the channel monitoring.
How can we configure it in a beter way so that we at least soem kind of error indication?
Please advice.
Regards,
Archana -
Hi All/Rob,
Iam running WLS8.1+SP2 and i have 4 clusters each of these clusters contains 4
managed servers.
Now, iam getting a weired error when starting each of the instances ......this
is the Exception that iam getting:
PLEASE HELP AS THIS IS OUR PRODUCTION ISSUES ........
<Feb 25, 2004 11:42:29 AM EST> <Notice> <Security> <BEA-090082> <Security initializing
using security realm myrealm.>
<Feb 25, 2004 11:42:30 AM EST> <Notice> <WebLogicServer> <BEA-000328> <Starting
WebLogic Managed Server "rsa_nova1t_s1" for domain "Mah-sub">
Failed setting Group
<Feb 25, 2004 11:42:39 AM EST> <Error> <Security> <BEA-090031> <Failed to Switch
to Group rsaadmin.>
Failed setting user
<Feb 25, 2004 11:42:39 AM EST> <Error> <Security> <BEA-090033> <Failed to Switch
to User rsaadmin.>
<Feb 25, 2004 11:42:39 AM EST> <Notice> <Cluster> <BEA-000138> <Listening for
announcements from cluster RSA on 237.0.3.11:8001.>
<Feb 25, 2004 11:42:39 AM EST> <Notice> <Cluster> <BEA-000133> <Waiting to synchronize
with other running members of RSA.>
<Feb 25, 2004 11:43:21 AM EST> <Warning> <HTTP> <BEA-101247> <admingui.war: Public
ID references the old version of the Servlet DTD. You must change the public ID
in web.xml file to "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN".>
<Feb 25, 2004 11:47:33 AM EST> <Notice> <WebLogicServer> <BEA-000355> <Thread
"ListenThread.Default" listening on port 8020, ip address 153.2.252.189>
<Feb 25, 2004 11:47:33 AM EST> <Notice> <Cluster> <BEA-000102> <Joining cluster
RSA on 237.0.3.11:8001>
<Feb 25, 2004 11:47:33 AM EST> <Notice> <WebLogicServer> <BEA-000330> <Started
WebLogic Managed Server "rsa_nova1t_s1" for domain "Mah-sub" running in Production
Mode>
<Feb 25, 2004 11:47:33 AM EST> <Notice> <WebLogicServer> <BEA-000360> <Server
started in RUNNING mode>
<Feb 25, 2004 12:02:23 PM EST> <Error> <Cluster> <BEA-000110> <Multicast socket
receive error: java.io.StreamCorruptedException
java.io.StreamCorruptedException
at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2350)
at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2383)
at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2455)
at java.io.DataInputStream.readInt(DataInputStream.java:392)
at java.io.ObjectInputStream$BlockDataInputStream.readInt(ObjectInputStream.java:2660)
at java.io.ObjectInputStream.readInt(ObjectInputStream.java:900)
at weblogic.cluster.MulticastManager.execute(MulticastManager.java:379)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
<Feb 25, 2004 12:03:38 PM EST> <Error> <Cluster> <BEA-000110> <Multicast socket
receive error: java.io.StreamCorruptedException
java.io.StreamCorruptedException
at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2350)
at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2383)
at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2455)
at java.io.DataInputStream.readInt(DataInputStream.java:392)
at java.io.ObjectInputStream$BlockDataInputStream.readInt(ObjectInputStream.java:2660)
at java.io.ObjectInputStream.readInt(ObjectInputStream.java:900)
at weblogic.cluster.MulticastManager.execute(MulticastManager.java:379)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
<Feb 25, 2004 12:09:11 PM EST> <Error> <Cluster> <BEA-000139> <There are two clusters
in the network that are possibly running different versions of WebLogic Server.
These two clusters probably name the same RSA and they are using same address
237.0.3.11 and port 8001.>
<Feb 25, 2004 12:09:37 PM EST> <Error> <Cluster> <BEA-000110> <Multicast socket
receive error: java.io.StreamCorruptedException
java.io.StreamCorruptedException
at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2350)
at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2383)
at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2455)
at java.io.DataInputStream.readInt(DataInputStream.java:392)
at java.io.ObjectInputStream$BlockDataInputStream.readInt(ObjectInputStream.java:2660)
at java.io.ObjectInputStream.readInt(ObjectInputStream.java:900)
at weblogic.cluster.MulticastManager.execute(MulticastManager.java:379)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
<Feb 25, 2004 12:09:59 PM EST> <Error> <Cluster> <BEA-000139> <There are two clusters
in the network that are possibly running different versions of WebLogic Server.
These two clusters probably name the same RSA and they are using same address
237.0.3.11 and port 8001.>
<Feb 25, 2004 12:10:09 PM EST> <Error> <Cluster> <BEA-000110> <Multicast socket
receive error: java.io.StreamCorruptedException
java.io.StreamCorruptedException
at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2350)
at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2383)
at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2455)
at java.io.DataInputStream.readInt(DataInputStream.java:392)
at java.io.ObjectInputStream$BlockDataInputStream.readInt(ObjectInputStream.java:2660)
at java.io.ObjectInputStream.readInt(ObjectInputStream.java:900)
at weblogic.cluster.MulticastManager.execute(MulticastManager.java:379)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
<Feb 25, 2004 12:12:43 PM EST> <Error> <Cluster> <BEA-000139> <There are two clusters
in the network that are possibly running different versions of WebLogic Server.
These two clusters probably name the same RSA and they are using same address
237.0.3.11 and port 8001.>
<Feb 25, 2004 12:13:31 PM EST> <Error> <Cluster> <BEA-000139> <There are two clusters
in the network that are possibly running different versions of WebLogic Server.
These two clusters probably name the same RSA and they are using same address
237.0.3.11 and port 8001.>Rob,
Each cluster uses UNIQUE IP address ......but here is the information that iam
getting .....if that is in any way related to this problem ....i ran this command
bash-2.03# java -cp /xx/bea/weblogic81/server/lib/weblogic.jar utils.MulticastTest
-A 237.0.3.11
***** WARNING ***** WARNING ***** WARNING *****
Do NOT use the same multicast address as a running WLS cluster.
Starting test. Hit any key to abort
Using multicast address 237.0.3.11:7001
Will send messages under the name 1077733276 every 2 seconds
Will print warning every 600 seconds if no messages are received
I (1077733276) sent message num 1
I (1077733276) sent message num 2
Received message 2 from 1077733276
I (1077733276) sent message num 3
Received message 3 from 1077733276
I (1077733276) sent message num 4
Received message 4 from 1077733276
I (1077733276) sent message num 5
Received message 5 from 1077733276
I (1077733276) sent message num 6
Received message 6 from 1077733276
I (1077733276) sent message num 7
Received message 7 from 1077733276
Rob Woollen <[email protected]> wrote:
First thing to check is that each cluster has its own multicast address.
It looks like the server is complaining that multiple clusters are using
237.0.3.11 and port 8001
-- Rob
steve wrote:
Hi All/Rob,
Iam running WLS8.1+SP2 and i have 4 clusters each of these clusterscontains 4
managed servers.
Now, iam getting a weired error when starting each of the instances......this
is the Exception that iam getting:
PLEASE HELP AS THIS IS OUR PRODUCTION ISSUES ........
<Feb 25, 2004 11:42:29 AM EST> <Notice> <Security> <BEA-090082> <Securityinitializing
using security realm myrealm.>
<Feb 25, 2004 11:42:30 AM EST> <Notice> <WebLogicServer> <BEA-000328><Starting
WebLogic Managed Server "rsa_nova1t_s1" for domain "Mah-sub">
Failed setting Group
<Feb 25, 2004 11:42:39 AM EST> <Error> <Security> <BEA-090031> <Failedto Switch
to Group rsaadmin.>
Failed setting user
<Feb 25, 2004 11:42:39 AM EST> <Error> <Security> <BEA-090033> <Failedto Switch
to User rsaadmin.>
<Feb 25, 2004 11:42:39 AM EST> <Notice> <Cluster> <BEA-000138> <Listeningfor
announcements from cluster RSA on 237.0.3.11:8001.>
<Feb 25, 2004 11:42:39 AM EST> <Notice> <Cluster> <BEA-000133> <Waitingto synchronize
with other running members of RSA.>
<Feb 25, 2004 11:43:21 AM EST> <Warning> <HTTP> <BEA-101247> <admingui.war:Public
ID references the old version of the Servlet DTD. You must change thepublic ID
in web.xml file to "-//Sun Microsystems, Inc.//DTD Web Application2.3//EN".>
<Feb 25, 2004 11:47:33 AM EST> <Notice> <WebLogicServer> <BEA-000355><Thread
"ListenThread.Default" listening on port 8020, ip address 153.2.252.189>
<Feb 25, 2004 11:47:33 AM EST> <Notice> <Cluster> <BEA-000102> <Joiningcluster
RSA on 237.0.3.11:8001>
<Feb 25, 2004 11:47:33 AM EST> <Notice> <WebLogicServer> <BEA-000330><Started
WebLogic Managed Server "rsa_nova1t_s1" for domain "Mah-sub" runningin Production
Mode>
<Feb 25, 2004 11:47:33 AM EST> <Notice> <WebLogicServer> <BEA-000360><Server
started in RUNNING mode>
<Feb 25, 2004 12:02:23 PM EST> <Error> <Cluster> <BEA-000110> <Multicastsocket
receive error: java.io.StreamCorruptedException
java.io.StreamCorruptedException
at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2350)
at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2383)
at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2455)
at java.io.DataInputStream.readInt(DataInputStream.java:392)
at java.io.ObjectInputStream$BlockDataInputStream.readInt(ObjectInputStream.java:2660)
at java.io.ObjectInputStream.readInt(ObjectInputStream.java:900)
at weblogic.cluster.MulticastManager.execute(MulticastManager.java:379)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
<Feb 25, 2004 12:03:38 PM EST> <Error> <Cluster> <BEA-000110> <Multicastsocket
receive error: java.io.StreamCorruptedException
java.io.StreamCorruptedException
at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2350)
at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2383)
at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2455)
at java.io.DataInputStream.readInt(DataInputStream.java:392)
at java.io.ObjectInputStream$BlockDataInputStream.readInt(ObjectInputStream.java:2660)
at java.io.ObjectInputStream.readInt(ObjectInputStream.java:900)
at weblogic.cluster.MulticastManager.execute(MulticastManager.java:379)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
<Feb 25, 2004 12:09:11 PM EST> <Error> <Cluster> <BEA-000139> <Thereare two clusters
in the network that are possibly running different versions of WebLogicServer.
These two clusters probably name the same RSA and they are using sameaddress
237.0.3.11 and port 8001.>
<Feb 25, 2004 12:09:37 PM EST> <Error> <Cluster> <BEA-000110> <Multicastsocket
receive error: java.io.StreamCorruptedException
java.io.StreamCorruptedException
at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2350)
at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2383)
at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2455)
at java.io.DataInputStream.readInt(DataInputStream.java:392)
at java.io.ObjectInputStream$BlockDataInputStream.readInt(ObjectInputStream.java:2660)
at java.io.ObjectInputStream.readInt(ObjectInputStream.java:900)
at weblogic.cluster.MulticastManager.execute(MulticastManager.java:379)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
<Feb 25, 2004 12:09:59 PM EST> <Error> <Cluster> <BEA-000139> <Thereare two clusters
in the network that are possibly running different versions of WebLogicServer.
These two clusters probably name the same RSA and they are using sameaddress
237.0.3.11 and port 8001.>
<Feb 25, 2004 12:10:09 PM EST> <Error> <Cluster> <BEA-000110> <Multicastsocket
receive error: java.io.StreamCorruptedException
java.io.StreamCorruptedException
at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2350)
at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2383)
at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2455)
at java.io.DataInputStream.readInt(DataInputStream.java:392)
at java.io.ObjectInputStream$BlockDataInputStream.readInt(ObjectInputStream.java:2660)
at java.io.ObjectInputStream.readInt(ObjectInputStream.java:900)
at weblogic.cluster.MulticastManager.execute(MulticastManager.java:379)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
<Feb 25, 2004 12:12:43 PM EST> <Error> <Cluster> <BEA-000139> <Thereare two clusters
in the network that are possibly running different versions of WebLogicServer.
These two clusters probably name the same RSA and they are using sameaddress
237.0.3.11 and port 8001.>
<Feb 25, 2004 12:13:31 PM EST> <Error> <Cluster> <BEA-000139> <Thereare two clusters
in the network that are possibly running different versions of WebLogicServer.
These two clusters probably name the same RSA and they are using sameaddress
237.0.3.11 and port 8001.> -
Plz help production issue(smartform)
hi experts plz help its a production issue
i have a box in my smartform in which in one line i can only show 50 characters .and i have a text of 70 characters but i only have to show 50 characters from 70 characters .
now wat i did i stored 70 characters variable into 50 char variable abd displaying it .
but the issue is
if i want to print .
hi this is sdn and here u can get all the information about sap .
now lets say
i of information is the 46th character of my line
now what is happening it is coming like
hi this is sdn and here u can get all the
infor
its showing 50 character only but if word is not completed it is printing it in next line.
it should print like
hi this is sdn and here u can get all the infor
plz help how to do it
thanx in advance .code i am using is ::::::::::::::::::::::::::::::::::::::::::::::::
data : TEXT_3I56(50) type c .
move is_bil_invoice-hd_gen-bil_number TO textname.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = '0002'
language = is_nast-spras
name = textname
object = 'VBBK'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
tables
lines = t_lines_3156
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*describe table t_lines lines n.
*if not n is initial.
*bank_note = 'X'.
*endif.
READ TABLE T_LINES_3156 INDEX 1 .
IF SY-SUBRC = 0 .
TEXT_3I56 = T_LINES_3156-TDLINE .
ENDIF. -
Errors occured during extraction - Production issue
Hi Friends,
I have a production issue occured last night and I was hoping, I would get some help around this issue...
Two extractor loads failed last night with short dumps..I see Total column in RSA7 has numbers in it.But when I display the record, it is leading to a short dump.Both extractors are standard extractors.
2LIS_02_SGR and 2LIS_03_UM.I tried with RSA3, it also failed.
MESSAGE_TYPE_X and code SY 097
This is message in the short dump
Module LRSC2U01
Select TID block from STATE table
SELECT * INTO TABLE L_T_STATE
FROM ARFCSSTATE FOR ALL ENTRIES IN L_TH_TID_IDX
WHERE ARFCIPID EQ L_TH_TID_IDX-TID-ARFCIPID
AND ARFCPID EQ L_TH_TID_IDX-TID-ARFCPID
AND ARFCTIME EQ L_TH_TID_IDX-TID-ARFCTIME
AND ARFCTIDCNT EQ L_TH_TID_IDX-TID-ARFCTIDCNT
ORDER BY PRIMARY KEY.
Consistence check
DESCRIBE TABLE L_T_STATE LINES L_LINES.
IF L_LINES NE L_BLOCK_SIZE OR
L_LINES EQ 0.
MESSAGE X097(SY). <=== Error Here
ENDIF.
Thanks
PriyaAfter debugging the standard extractor's source code, found out that In the internal table of 2LIS_03_UM, an entry was made from 2LIS_02_SGR Extractor and Internal Table for 2LIS_02_SGR extractor, an entry was made from 2LIS_03_UM .
The issue occurred last night because both Transactions were made at the same time and all other primary key fields has same entries and these are the fields the code is executing on.
Basically ARFCSSTATE has duplicate entries on First 4 fields of the table, where as the actual data is only for one record and there is a mismatch while reading internal table which is leading to the short dumps
Ex: In RSA7 has 20 entries and ARFCSSTATE has 21 records( One entry is a duplicate record from the other extractor)
Does anyone encountered this kind of problem before?
Thanks
Priya
Maybe you are looking for
-
Scheduling File Sender Adapter
<b>Hai expertise, We need to send image files from different local PC's (whose IP address is dynamic) to Document Storage System through XI. 1) we have to use HTTP sender (Java program which pick current IP address of system and file names from
-
PL/SQL missing symbol while loading external library
I have followed all the steps in creating external library in PL/SQL i.e. configuring Listerner, TNSNAMES.ORA etc. etc. While invoking a function call on this external library, I am getting a missing symbol error : ORA-06520: PL/SQL: Error loading ex
-
Using Merge In BO Edge 3.0 wi an XL Spreadsheet
I have a quey written against our data warehouse and I am trying to use an Excel 07 Spreadsheet to "filter" the data. I have followed every thread I can find on the subject, downloaded the BO Edge PDF and read over the section on Merging data more t
-
Calling WebServices using Flex Builder
Hello, I want to use a WebService in the Flex Builder. I first defined the WebService: <mx:WebService id="test" wsdl="http://ld9030.wdf.sap.corp:50050/sap/bc/srt/rfc/sap/ZTP_TEST4?wsdl" result="log(event)" showBusyCursor="true"> I have 2 importing pa
-
ODI-14070: Import failed
Hi All , I have one ODI procedure(xml file) which belongs to our deployment script. For the very first time,this procedure was made in ODI and since then it has been exported and kept in our deployment scripts .This procedure is used by a number of p