&SAPSCRIPT-FORMPAGES& not giving correct number
Hi,
Iam unable to print total number of pages correctly.
Please kindly help me.
I am getting total pages 4 but need to display 3(exclude terms&conditions page) at page 1 of 3 like that.
I tried to decrement page counter by 1 in the below perform, it's working fine but the issue is ....
First time when perform is called system is passing 2 at &SAPSCRIPT-FORMPAGES&, next time getting 3 into &SAPSCRIPT-FORMPAGES&.
PERFORM CHECK_PAGE IN PROGRAM ZZ_RFQ USING &SAPSCRIPT-FORMPAGES&
CHANGING &WS_PAGE&
ENDPERFORM
Page &PAGE(C)& of &WS_PAGE&
Thanks,
Geetha.
Thanks for the reply Max. Let me explain more on the issue.
I created a custom field on RFQ for terms & conditions. On th form I have to print terms & conditions on the back of first page when the custom field is checked.
When I check the custom field on RFQ everything is working fine including page numbers.
When the cusotm field is not checked system is caliculating terms and confitions also as a page (In spool I see blank page) but not printing as it is back of the first page. Client is ok with it. but the prob is with page numbers getting 1 of 4, 2 o 4, 3 of 4.
So I tried to call this perform when the field is not checked to reduce the page number. as you said SAPSCRIPT-FORMPAGES is calculated at runtime not able to get right values.
Any alternative to get right value?
Thanks,
Geetha.
Similar Messages
-
FOX CLOCKS not giving correct time. Central time is 2 hours ahead of the actual time
FOX CLOCKS not giving correct time. Central time is 2 hours ahead of the actual time
sorry not an Atomic clock issue I read your post wrong
actually last night I tried to set my clock back to the time without Daylight savings and it would only let me set it to 1 or 3 am but not 2.. I noticed this, but I would wait till Sunday is over and see if this bug is only a one day issue which I have a feeling it may be, wait till 3am march 10th and see if this bug fixes itself I have a feeling it will -
Drill Down are not giving correct values
Hi
We created sales Order values as a character and putting them in Rows and populating data by writing update rule. We created variables on calendar month in order to choose specific period of data in the query. For example if we need 02/2008 to 0/42008 which gives two months of data. When I drill down on Sales Order or billing document on the report its not giving variable interval data instead its pulling all the sales orders and billing documents in the Cube. With out drilling down the values are showing OK. If I restrict with same period in the cube it's giving correct values
Please let us know if you have any ideas.
Thanks
NagaAah, I guessed it correctly!
Remove the local var of the Stop button & place the terminal itself inside the inner while loop & directly wire it to the conditional terminal of the outer while loop.
Please see the attached pic...
Message Edited by parthabe on 07-30-2009 07:12 AM
- Partha
LabVIEW - Wires that catch bugs!
Attachments:
arrayreq_mod.jpg 97 KB
arrayreq_mod.jpg 97 KB
arrayreq_mod.jpg 99 KB -
Filr 1.1 LDAP Preview Not Returning Correct Number of Result
I'm finishing set up of Filr 1.1 in our environment but noticed today that the LDAP preview does not return the correct number of results. The query:
(&(objectClass=Person)(|(employeeType=E)(employeeT ype=Y)(employeeType=Z)))
has been tried against multiple AD domain controllers and has so far returned 3 different user counts - 2895, 2800, and 2700. Mostly it always returns 2800. The correct count using powershell with the exact same ldap filter is over 5000.
I would prefer not to try a sync until I have some confidence that it will complete successfully. Any suggestions?On Wed, 22 Apr 2015 17:26:03 GMT, jameswatson3
<[email protected]> wrote:
>
> I'm finishing set up of Filr 1.1 in our environment but noticed today
> that the LDAP preview does not return the correct number of results. The
> query:
>
> (&(objectClass=Person)(|(employeeType=E)(employeeT ype=Y)(employeeType=Z)))
>
> has been tried against multiple AD domain controllers and has so far
> returned 3 different user counts - 2895, 2800, and 2700. Mostly it
> always returns 2800. The correct count using powershell with the exact
> same ldap filter is over 5000.
>
> I would prefer not to try a sync until I have some confidence that it
> will complete successfully. Any suggestions?
Could you try it with filr 1.2?
https://download.novell.com/Download...d=q-mgVFDsOKQ~ -
Query not returning correct number of records
Hi Guys,
Can someone please tell me why this query is not retrieving the correct number of records.
I have a table with six users
FIRST_NAME LAST_NAME
David Robert
Martin Fisher
Henry Robert King
Edmund Tomkinson
Williams Hayes Robert
Tina Belkins
When I run a query, SELECT * FROM USERS WHERE LAST_NAME LIKE 'Robert';
I only get 1 record back (David Robert). Is the space between the last name
causing this? If yes, How can I rewite the query?show a copy-paste example of your query...
you need to use a wild card with LIKE, as in
SQL> create table test
2 (first_name varchar2(50)
3 ,last_name varchar2(50)
4 );
Table created.
SQL>
SQL> insert into test values ('David' , 'Robert' );
1 row created.
SQL> insert into test values ('Martin', 'Fisher' );
1 row created.
SQL> insert into test values ('Henry' , 'Robert King' );
1 row created.
SQL> insert into test values ('Edmund', 'Tomkinson' );
1 row created.
SQL> insert into test values ('Williams', 'Hayes Robert');
1 row created.
SQL> insert into test values ('Tina', 'Belkins');
1 row created.
SQL>
SQL> SELECT * FROM test WHERE LAST_NAME LIKE 'Robert';
FIRST_NAME
LAST_NAME
David
Robert
SQL>
SQL> SELECT * FROM test WHERE LAST_NAME LIKE '%Robert%';
FIRST_NAME
LAST_NAME
David
Robert
Henry
Robert King
Williams
Hayes Robert -
Stock Ledger Report in Day Wise not giving correct values for Opening Stock
Dear Experts,
I m working on Sock ledger report to give the day wise data.
since yesterdays closing Stock will become opening stock of today,
To get Opening Stock,
I have restricted the stock key figure with 2 variables on calday
(DATE FROM var with <=(Lessthan or equal to) and offset -1
DATE TO var with <=(Lessthan or equal to) and offset -1)
To get Closing Stock,
I have restricted the Stock key figure with 2 variables on calday
(DATE FROM var with <=(Lessthan or equal to)
DATE TO var with <=(Lessthan or equal to) )
But in the output Opening stock values are not coming correctly and for given range of dates,
for last date, opening stock is showing as Zero.
Could you please tell me how can I achieve the correct values for opening stock.
Thanks in advance.Hi Arjun,
Seems like you are making it more complicated. What is your selection screen criteria?
Ideally you should only use the offset.
You will have say Calday in rows and stock in Column
____________Opening Stock_____________Closing Stock
01/06/2009___(Closing stock of 31/05/2009)_(Stock of 01/06/2009)
02/06/2009___(Closing stock of 01/06/2009)_(Stock of 02/06/2009)
03/06/2009___(Closing stock of 02/06/2009)_(Stock of 03/06/2009)
So, from above scenario, create one RKFs and include Calday in it. Create a replacement path variable on calday and apply the offset as -1.
So, your Opening Stock will be calculated by closign stock of previous day.
- Danny -
Adobe Acrobat Pro application is not giving correct scale to drawings
When using Adobe Acrobat 8 Standard I have issues when trying to scale off PDF’s that I receive from Architects. When using the distance, area, or perimeter tool it will not scale correctly even after I change the scale in the tool box. I’ve tried to change the scale to different setting and the same measurements will be produced regardless of what scale I set it to.
Example: ¼” inch per 1’ foot will scale will produce the same distance as ½” inch per 1’ foot.Hi emcfrazier7,
This might be a bug with Acrobat 8 version, however I cannot verify this.
With the latest version Acrobat 11, I do not see this problem occurring.
So you might want to purchase the latest version.
Regards,
Rave -
PO query not giving correct values
Hi
I am running the following query in PL?SQL Developer
SELECT hou.name Operating_unit,
pha.segment1 po_number,
pha.revision_num,
ap.vendor_name,
hla1.location_code,
papf.full_name Buyer,
to_char(pha.creation_date, 'DD-MON-RRRR HH24:MI:SS') creation_date,
pdta.type_name,
assa.vendor_site_code,
hla2.location_code,
initcap(pha.authorization_status) po_status,
pha.currency_code,
pla.line_num,
pltt.line_type,
msib.segment1 item,
(mcb.segment1 || '.' || mcb.segment1) category,
msib.description,
msib.primary_unit_of_measure UOM,
pla.quantity,
pla.unit_price,
(pla.quantity * pla.unit_price) amount,
(gcc.segment1 || '-' || gcc.segment2 || '-' || gcc.segment3 || '-' ||
gcc.segment4 || '-' || gcc.segment5) charge_account,
pla.list_price_per_unit,
at.name,
pha.freight_terms_lookup_code,
pha.fob_lookup_code,
initcap(pha.pay_on_code) pay_on_code,
pha.acceptance_required_flag,
ood.organization_code,
ood.organization_name,
msib.primary_unit_of_measure UOM,
pla.quantity,
plla.country_of_origin_code,
(gcc.segment1 || '-' || gcc.segment2 || '-' || gcc.segment3 || '-' ||
gcc.segment4 || '-' || gcc.segment5) charge_account,
(pla.quantity * pla.unit_price) amount,
plla.receive_close_tolerance,
plla.invoice_close_tolerance,
plla.quantity,
plla.quantity_received,
plla.quantity_cancelled,
plla.quantity_billed,
plla.match_option,
plla.accrue_on_receipt_flag,
plla.enforce_ship_to_location_code,
plla.days_early_receipt_allowed,
plla.days_late_receipt_allowed,
plla.receipt_days_exception_code,
plla.qty_rcv_tolerance,
initcap(plla.qty_rcv_exception_code),
plla.allow_substitute_receipts_flag,
plla.receiving_routing_id,
plla.enforce_ship_to_location_code,
initcap(pda.destination_type_code),
papf.full_name requestor,
hla3.location_code,
--pda.quantity_ordered, -- commented because giving wrong value
(select quantity_ordered
from po_distributions_all
where po_header_id IN (select po_header_id
from po_headers_all
where segment1 = pha.segment1)) quantity_ordered, -- Added
(gcc.segment1 || '-' || gcc.segment2 || '-' || gcc.segment3 || '-' ||
gcc.segment4 || '-' || gcc.segment5) po_charge_account,
haou.name,
prha.segment1,
prla.line_num,
to_char(prla.rate_date, 'DD-MON-RRRR') rate_date,
(gcc.segment1 || '-' || gcc.segment2 || '-' || gcc.segment3 || '-' ||
gcc.segment4 || '-' || gcc.segment5) po_charge_account,
(SELECT acc.segment1 || '-' || acc.segment2 || '-' || acc.segment3 || '-' ||
acc.segment4 || '-' || acc.segment5
FROM gl_code_combinations acc
WHERE acc.code_combination_id = pda.accrual_account_id) accrual_account,
(SELECT acc.segment1 || '-' || acc.segment2 || '-' || acc.segment3 || '-' ||
acc.segment4 || '-' || acc.segment5
FROM gl_code_combinations acc
WHERE acc.code_combination_id = pda.variance_account_id) variance_account,
pla.line_num,
plla.shipment_num,
ood.organization_code,
ood.organization_name,
msib.segment1,
msib.description,
pla.quantity
FROM hr_operating_units hou,
po_headers_all pha,
ap_suppliers ap,
hr_locations_all hla1,
per_all_people_f papf,
po_document_types_all pdta,
po_document_types_all_b pdtab,
ap_supplier_sites_all assa,
hr_locations_all hla2,
po_lines_all pla,
po_line_types_b pltb,
po_line_types_tl pltt,
mtl_system_items_b msib,
po_line_locations_all plla,
mtl_categories_b mcb,
po_distributions_all pda,
gl_code_combinations gcc,
ap_terms at,
org_organization_definitions ood,
hr_locations_all hla3,
po_requisition_headers_all prha,
po_req_distributions_all prda,
po_requisition_lines_all prla,
hr_all_organization_units_tl haou
WHERE 1 = 1
AND pha.segment1 = '6395' --&po_number
AND hou.organization_id = 204 --&operating_unit
AND hou.organization_id = pha.org_id
AND pha.vendor_id = ap.vendor_id
AND hla1.location_id = pha.ship_to_location_id
AND papf.person_id = pha.agent_id
AND SYSDATE BETWEEN papf.effective_start_date AND papf.effective_end_date
AND ((pdtab.document_type_code IN ('PO', 'PA') AND
pdtab.document_subtype = pha.type_lookup_code))
AND pdta.document_subtype = pdtab.document_subtype
AND pdta.document_type_code = pdtab.document_type_code
AND pdta.org_id = Pdtab.org_id
AND pha.org_id = pdta.org_id
AND ap.vendor_id = assa.vendor_id
AND pha.org_id = assa.org_id
AND pha.vendor_id = assa.vendor_id
AND pha.vendor_site_id = assa.vendor_site_id
AND pha.bill_to_location_id = hla2.ship_to_location_id
AND pla.po_header_id = pha.po_header_id
AND pltb.line_type_id = pla.line_type_id
AND pla.line_type_id = pltt.line_type_id
AND pltt.language = USERENV('LANG')
AND msib.inventory_item_id = pla.item_id
AND plla.po_line_id = pla.po_line_id
AND msib.organization_id = plla.ship_to_organization_id
AND mcb.category_id = pla.category_id
AND pda.po_line_id = pla.po_line_id
AND pda.po_header_id = pha.po_header_id
AND pda.code_combination_id = gcc.code_combination_id
AND at.term_id = pha.terms_id
AND ood.organization_id = plla.ship_to_organization_id
AND pda.deliver_to_person_id = papf.person_id
AND hla3.location_id = pda.deliver_to_location_id
AND haou.organization_id = prha.org_id
AND haou.language = USERENV('LANG')
AND prha.org_id = pha.org_id
AND prha.requisition_header_id = prla.requisition_header_id
AND pda.req_distribution_id = prda.distribution_id
AND prda.requisition_line_id = prla.requisition_line_id
AND haou.organization_id = hou.organization_id
AND prla.org_id = pha.org_id
AND prda.code_combination_id = gcc.code_combination_id --added
AND hla3.inventory_organization_id = msib.organization_id --added
AND pda.line_location_id = prla.line_location_id --added
AND plla.po_header_id = pha.po_header_id --added
I tested it for 10 POs. for 2 the query is giving right value. but for others it is giving wrong value.
Mainly the PO Charge Account, accrual and variance account values are not matching. What changes I can make to get the correct data?
I am using r12 version
ThanksHi Srini,
Thanks for replying. I check and the application context is set.
I think we might be missing certain conditions. Can you help me with that. -
AR13 report not giving correct depreciation forcast
Hi SAP Gurus,
I am having problem with an asset. The asset remaining useful life calculation as shown in the parameter tab of asset explorer is not matching with the AR13 report forecast. In AR13 it is getting fully depreciated long before the remaining useful life shown in asset explorer. So i am not sure if AR13 is giving the correct forecast. Can someone please explain what exactly does ar13 shows us and why is there a mismatch between the remaining useful life of the asset as shown in asset explorer and the ar13 report.................any help would be much appreciated......Hi,
Did you compare with AR03...? -
Outer Join not giving correct result
I have two tables=> tab_child_tmp (product_id,region,child_val,mst_product) and
tab_master_tmp (master_product_id,region,master_val)
tab_child_tmp.mst_product is the foreign key referencing tab_master_tmp.master_product_id.
Currently the tables are populated with below values
tab_child_tmp
PRODUCT_ID REGION CHILD_VAL MST_PRODUCT
Arm-01, CAL, 100, Arm-Master
Arm-01, DEL, 222, Arm-Master
Arm-01, CHEN, 55, Arm-Master
Arm-02, MUM, 69, Arm-Master
Arm-02, DEL, 90, Arm-Master
tab_master_tmp
MST_PRODUCT REGION MASTER_VAL
Arm-Master , CAL, 390
Arm-Master , DEL, 300
Arm-Master, CHEN, 450
Arm-Master, MUM, 600
Now I want to display the result in the below format
PRODUCT_ID REGION CHILD_VAL MASTER_VAL
1. Arm-01 , CAL, 100, 390
2. Arm-01 , DEL, 222, 300
3. Arm-01 , CHEN, 55, 450
4. Arm-01 , MUM, 0, 600
5. Arm-02 , MUM, 69, 600
6. Arm-02 , DEL, 90, 300
7. Arm-02 , CHEN, 0, 450
8. Arm-02 , CAL, 0, 390
When I am running the below query it is not returning the above 4,7 and 8 rows. Can you please provide the correct sql to get the above desired output
SELECT
a.product_id,
nvl(a.region,b.region) geo,
nvl(a.child_val,0)match_val,
b.master_val
FROM
tab_child_tmp a,
tab_master_tmp b
WHERE
a.mst_product(+) = b.master_product AND
a.region(+) = b.region
ThanksHi
Thanks for the reply. Please find below the details.
Oracle Version*
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Solaris: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
Create Table Script_
create table TAB_CHILD_TMP
PRODUCT_ID VARCHAR2(50),
REGION VARCHAR2(100),
CHILD_VAL NUMBER,
MST_PRODUCT VARCHAR2(50)
create table TAB_MASTER_TMP
MST_PRODUCT VARCHAR2(50),
REGION VARCHAR2(100),
MASTER_VAL NUMBER
Insert Script_
INSERT INTO tab_child_tmp VALUES ('Arm-01','CAL',100,'Arm-Master');
INSERT INTO tab_child_tmp VALUES ('Arm-01','DEL',222,'Arm-Master');
INSERT INTO tab_child_tmp VALUES ('Arm-01','CHEN',55,'Arm-Master');
INSERT INTO tab_child_tmp VALUES ('Arm-Master','MUM',69,'PLC1');
INSERT INTO tab_child_tmp VALUES ('Arm-Master','DEL',90,'PLC1');
INSERT INTO tab_master_tmp VALUES ('Arm-Master','CAL',390);
INSERT INTO tab_master_tmp VALUES ('Arm-Master','DEL',300);
INSERT INTO tab_master_tmp VALUES ('Arm-Master','CHEN',450);
INSERT INTO tab_master_tmp VALUES ('Arm-Master','MUM',600);
INSERT INTO tab_master_tmp VALUES ('PLC1','MUM',199);
INSERT INTO tab_master_tmp VALUES ('PLC1','DEL',299);
INSERT INTO tab_master_tmp VALUES ('PLC1','CHEN',399);
Expected output logic*
Need to display the product value for each region along with the value of master product for the corresponding product and region. If a product doesn't belong to a particular region, but the corresponding master product is, then that value also needs to be displayed for that product and region with child value as zero.
ie. for product Arm-01 there is no record in tab_child_tmp for region "MUM", but it's master product 'Arm-Master' has a record for region 'MUM' in tab master_tmp table. So in ouput there will be a record for product 'Arm-01' and region-'MUM' with child value as 0 and master value as 600.
Expected Output*
PRODUCT_ID ~~~ REG ~~~ CHILD_VAL ~~~ MASTER_VAL
Arm-01 ~~~ CAL ~~~ 100 ~~~ 390
Arm-01 ~~~ DEL ~~~ 222 ~~~ 300
Arm-01 ~~~ CHEN ~~~ 55 ~~~ 450
Arm-01 ~~~ MUM ~~~ 0 ~~~ 600
Arm-MASTER ~~~ MUM ~~~ 69 ~~~ 199
Arm-MASTER ~~~ DEL ~~~ 90 ~~~ 299
Arm-MASTER ~~~ CHEN ~~~ 0 ~~~ 399
Please help -
% Change is not giving correct results.
Hi,
I am using Ago Function to calculate Current month cx count , previous month cx count, present month acct count, previous month acct count and in the report parameter selecting Reporting Month as DEC 09. The results are coming perfectly fine... but when I create % Change Previous Month Cx count and % change Previous month Account count, It is not showing the correct results and getting only 0% listed even if the Difference is huge and should be around 10% ...
The code written to calculate % change is :
CASE WHEN ("EIP BDW Analytics"."EIP Reporting FACT"."Previous Month Account Count" IS NULL OR "EIP BDW Analytics"."EIP Reporting FACT"."Previous Month Account Count" = 0) AND NOT "EIP BDW Analytics"."EIP Reporting FACT"."Current Month Account Count" IS NULL AND "EIP BDW Analytics"."EIP Reporting FACT"."Current Month Account Count" <> 0 THEN 100.0 WHEN ("EIP BDW Analytics"."EIP Reporting FACT"."Previous Month Account Count" IS NULL OR "EIP BDW Analytics"."EIP Reporting FACT"."Previous Month Account Count" = 0) AND ("EIP BDW Analytics"."EIP Reporting FACT"."Current Month Account Count" IS NULL OR "EIP BDW Analytics"."EIP Reporting FACT"."Current Month Account Count" = 0) THEN 0.0 WHEN "EIP BDW Analytics"."EIP Reporting FACT"."Current Month Account Count" IS NULL AND NOT "EIP BDW Analytics"."EIP Reporting FACT"."Previous Month Account Count" IS NULL AND "EIP BDW Analytics"."EIP Reporting FACT"."Previous Month Account Count" <> 0 THEN -(100.0) ELSE 100.0 * ("EIP BDW Analytics"."EIP Reporting FACT"."Current Month Account Count" - "EIP BDW Analytics"."EIP Reporting FACT"."Previous Month Account Count") / "EIP BDW Analytics"."EIP Reporting FACT"."Previous Month Account Count" END
Can some one tell me what I need to do in order to get the desired results.
I am using a time dimension with the following hierarchy ( Year - Month - Period_ID) joined with the Reporting Table Fact which has count of cx and Count of Accts.We have two assets one acquired on 01/04/2014 and another on 26/04/2014. Everything else is same for both assets like asset class , keys etc.
Now here are two calculations.
System is giving calculation ok , what should we do so that for both assets we are left with same scrap value (1047) (and not 1119.68 as in last line )
Can anyone help how to get value in last field of screen shot given below asset vale date or it is always blank.
wanted to add something in our case DEP to the DAY is also ticked in dep key.
regards
Sanjeev Mehndiratta -
Smart collections not reading correct number of images inside
I have an issue with smart collections for the first time. I have just set up a new workflow with 4 stages and the number counter next to the collection is counting wrong despite the images being represented in the collection. For example if I click on the smart colection I can see 10 images inside but the counter reads 3. Does anybody have this experience?
I have optimised my cataloge, however I do have some 20,000 images inside... will this reduce the ability of LR to keep up to running speed with such smart collection operations, giving incorrect readings.
What are best practices for image numbers and the arguement for running multiple cats. I've just tried in a fresh catalogue and the results were perfect. Is this an inherent limitation of Lightroom? I was under the impression that I could manage my whole archive and current projects under one roof, as it were.
Thanks,
GraemeI suppose it would be worth optimising the catalog, if you haven't already done so.
Another idea, may be to make a fresh catalog and "import from another catalog" your current one, into that. This transfers pictures and keywords, collections, smart collections etc. But if there is something "structural" or "infrastructural" wrong with your live catalog, I'd expect that to get left behind by this process - since everyting should AFAIK get re-indexed after being brought in.
Then you'd go forward with the new catalog, if successful. Doing this makes no change to your present catalog so can do no harm to try - the various pictures' source files are simply shared across both catalogs - single file referenced by both, IOW.
One thing in your post (which I did not fully understand) suggested to me that your workflow relies at some point, on external metadata being written. If your workflow and smart collections criteria rely on the LR tracking of the status of external metadata, such as "is up to date", I believe this specific aspect has been found quite buggy and unreliable by many people: the metadata status badges etc, being sometimes rather approximate in their correspondence to reality . So if some other criterion could be found on which to base your workflow, that would probably go more smoothly .
However, if you do have more than one catalog pointing to just one set of photo source files, that aspect of writing metadata out, will of course be a little problematic - since the latest catalog to have written to the file will "overwrite", and the other catalog(s) will regard that same image as having been externally modified meanwhile.
regards, RP -
.bat file result not giving correctly in data services
Hi ,
I am using .bat file to count the number of files in the folder. I want to capture the value of the number of files.
I have written small .bat file as shown below
@echo off
setlocal enableextensions
CD %1
set cnt=0
for %%A in (*) do set /a cnt+=1
echo File count = %cnt%
endlocal
I have used this batch file in the script as shown below.
$COUNT =exec('D:\\test.bat', 'D:\\docs',8);
print($COUNT);
In the above $COUNT is varchar(255).
actually i have only 11 file sin the docs folder . But it is giving the 442 files.
If I run the same batch file in the windows cmd command I am getting the correct result.
Please let me know what will be issues?
I am unable figure out the issues for weird result when I am using DS.
Please help me in this issue.
Thanks & Regards,
Ramana.Hi,
While executing the batch file it is taking the Data services installation directory path as shown below.
14504 6420 PRINTFN 3/30/2015 9:40:10 AM 0: C:\Program Files (x86)\SAP BusinessObjects\Data Services\bin File count = 442
I have changed the the batch file with two parameters. one for changing directory and another one for changing the folder.
Now my batch file looks like this.
@echo off
setlocal enableextensions
%1:
CD %2
echo %CD%
set cnt=0
for %%A in (*) do set /a cnt+=1
echo File count = %cnt%
endlocal
Then my script is like this .
$COUNT =exec('D:\\test.bat', ' D D:\\docs',8);
print($COUNT);
Now it is giving the expected result as shown below.
14700 13912 PRINTFN 3/30/2015 9:52:18 AM 0: D:\Docs File count = 11
Thanks & Regards,
Ramana. -
LDAP not returning correct number of results through Java?
Hello all,
I've written a little testing application for my new shiny LDAP server and have the following method in it, which performs a search based on department number:
public Vector searchLDAP(String depNumber) throws NamingException
String uid;
String mobile;
String givenName;
String sn;
String telephoneNumber;
String departmentNumber;
String employeeType;
String employeeNumber;
String reportsTo;
Vector people = new Vector();
Attributes matchAttributes = new BasicAttributes(false);
matchAttributes.put(new BasicAttribute("departmentnumber", depNumber));
NamingEnumeration results = ctx.search(base, matchAttributes);
SearchResult tempSR;
Attributes tempAtt;
LDAPPerson tmp;
while(results.hasMore())
uid = "";
mobile = "";
givenName = "";
sn = "";
telephoneNumber = "";
departmentNumber = "";
employeeType = "";
employeeNumber = "";
reportsTo = "";
tempSR = (SearchResult) results.next();
tempAtt = tempSR.getAttributes();
if(atts.get("uid")!=null)
uid = (String)atts.get("uid").get();
if(atts.get("mobile")!=null)
mobile = (String)atts.get("mobile").get();
if(atts.get("givenname")!=null)
givenName = (String)atts.get("givenname").get();
if(atts.get("sn")!=null)
sn = (String)atts.get("sn").get();
System.out.println("Working with " + sn);
if(atts.get("telephonenumber")!=null)
telephoneNumber = (String)atts.get("telephonenumber").get();
if(atts.get("departmentNumber")!=null)
departmentNumber = (String)atts.get("departmentNumber").get();
if(atts.get("employeeType")!=null)
employeeType = (String)atts.get("employeeType").get();
if(atts.get("employeenumber")!=null)
employeeNumber = (String)atts.get("employeeNumber").get();
if(atts.get("reportsTo")!=null)
reportsTo = (String)atts.get("reportsTo").get();
tmp = new LDAPPerson(uid, mobile, givenName, sn, telephoneNumber, departmentNumber, employeeType, employeeNumber, reportsTo);
people.add(tmp);
return people;
}But for some reason (perhaps too much coding and not enough coffee?) I get the same person's details twice, instead of the two users I'm a) expecting and b) have retrieved using ldapsearch on the command line.
Have I done something really stupid or is there something I'm not aware of?
Thanks!
GemmaHello Gemma!
I think you have used a global class attribute atts and not tempAttr. So you get anything else but not what you wish.
So i think you should change the code in the following way,
i thing it should work ...
(Sorry for the bad code formatting ...)
Greetings
public Vector searchLDAP(DirContext ctx, String base, String depNumber) throws NamingException
String uid;
String mobile;
String givenName;
String sn;
String telephoneNumber;
String departmentNumber;
String employeeType;
String employeeNumber;
String reportsTo;
Vector people = new Vector();
Attributes matchAttributes = new BasicAttributes(false);
matchAttributes.put(new BasicAttribute("departmentnumber", depNumber));
NamingEnumeration results = ctx.search(base, matchAttributes);
while(results.hasMore())
uid = "";
mobile = "";
givenName = "";
sn = "";
telephoneNumber = "";
departmentNumber = "";
employeeType = "";
employeeNumber = "";
reportsTo = "";
SearchResult tempSR = (SearchResult) results.next();
Attributes atts = tempSR.getAttributes();
if(atts.get("uid")!=null)
uid = (String)atts.get("uid").get();
if(atts.get("mobile")!=null)
mobile = (String)atts.get("mobile").get();
if(atts.get("givenname")!=null)
givenName = (String)atts.get("givenname").get();
if(atts.get("sn")!=null)
sn = (String)atts.get("sn").get();
System.out.println("Working with " + sn);
if(atts.get("telephonenumber")!=null)
telephoneNumber = (String)atts.get("telephonenumber").get();
if(atts.get("departmentNumber")!=null)
departmentNumber = (String)atts.get("departmentNumber").get();
if(atts.get("employeeType")!=null)
employeeType = (String)atts.get("employeeType").get();
if(atts.get("employeenumber")!=null)
employeeNumber = (String)atts.get("employeeNumber").get();
if(atts.get("reportsTo")!=null)
reportsTo = (String)atts.get("reportsTo").get();
LDAPPerson tmp = new LDAPPerson(uid, mobile, givenName, sn, telephoneNumber, departmentNumber, employeeType, employeeNumber, reportsTo);
people.add(tmp);
return people; -
ABAP query not returning correct number of records
Hi,
I have created an ABAP Query using logical database VFV and nodes VBRK, VBUK and VBRP.
But, after entering values for Sales Organisation ( VBRK-VKORG ), Distribution channel ( VBRK-VTWEG ) and Date ( VBRK-FKDAT), the number of records that I get are very less in number as compared to the actual number in the database.
Please give some pointers to the reason. I have set Lines 60 and Columns length - 83 and selected ALV List.
Regards,
Garima.Hi Garima,
Please Check whether you are selecting all the Key fields in your Query.
Thanks & Regards,
Ashok kumar.
Maybe you are looking for
-
Strange circles in After Affects
Hi, so i have been using after effects for quite a while, and sometimes there are these circles that appear on the layer and I cant get rid of them unless I restart after effects. Does anybody know why this is happening? Here is a screen shot, I was
-
I have a new iPad 2 16GB. I also have iPhone so have alot of apps. What other apps must I have? I'm into photography, games and social networking! Thanks
-
Iphone 5S iphoto crashing when trying to select and create folders on IOS 8.0.2
The iPhoto app keeps crashing when I try to make a new folder. Don't get me started on the "recently added" tab. I cannot access my entire library anymore through apps because they can't find my entire library. They can only see the recently added
-
KM Root folder path in Web Dynpro
Hi, How can I get full path (inlcuding drive of the file system) of documents root folder, which is configured in KM. If any body knows give me the details to get it. Thanks Bobby M
-
I just stared having problems with importing files from nikon D810 into LR 5.7 it pop a window saying it can not read files on working on a imac 27" running yosemite on my mac pro after a few times it finally was able to read files and import them in