Plz help me to solve
Hi..
I m getting problem when i executing the below proc..
I m taking the string of personid's from frntend and as our COM doesn't support ',' i getting the values seperated by pipe '|' and in proc i m repalcing it to ',' and den i have to chk it in IN condition and take all da records in a Cursor and i hav return bac.. But when i hardcoding the values i m getting result but when i using da variable string it is nt fecthing data..plz help me
CREATE OR REPLACE PROCEDURE prn_tst(strVal IN VARCHAR2)
AS
strl VARCHAR2(40);
cur SYS_REFCURSOR;
strname VARCHAR2(60);
BEGIN
SELECT REPLACE(strval,'|',',') INTO strL FROM DUAL;
DBMS_output.put_line(strL);
SELECT (REPLACE(strl,'+','''')) INTO strL FROM DUAL;
DBMS_output.put_line(strL);
OPEN cur FOR
SELECT name
FROM cmnperson
WHERE TO_CHAR(personid) IN (strL);
LOOP
FETCH cur INTO strname;
EXIT WHEN cur%NOTFOUND;
DBMS_output.put_line('IN' || strname);
END LOOP;
SELECT name
INTO strname
FROM cmnperson
WHERE TO_CHAR(personid) IN (TRIM(strL));
DBMS_output.put_line('IN' || strname);
END prn_tst;
i have this procedure it is giving err when i m compling
PLS-00103: Encountered the symbol "))
INNER JOIN PRGNOSSPROGRAM
ON
CDTAPPLICATION.progr" when expecting one of the following:
( - + case mod new null <an identifier>
<a double-quoted delimited-identifier> <a bind variable> avg
count current max min prior sql stddev sum variance execute
forall merge time timestamp interval date
<a string literal with character set specification>
<a number> <a single-quoted SQL string> pipe
CREATE OR REPLACE PROCEDURE prn_ACCertPrintRep(strCandidateid In Varchar2,
strAccode In Cdtapplication.accode %TYPE,
strBatchNo In Cdtapplication.batchno %TYPE,
cur_GetCertDetails Out SYS_REFCURSOR)
AS
strtemp Varchar2(50);
strlist Varchar2(50);
strFinalList Varchar2(50);
strCode Varchar2(20) :='PC';
BEGIN
SELECT replace(strCandidateid,'|',',')
INTO strtemp
FROM dual;
SELECT replace(strtemp,'-','''')
INTO strlist
FROM dual;
dbms_output.put_line(strlist);
OPEN cur_GetCertDetails
FOR
'SELECT cdtapplication.programcode As PrgCode,
programname,
programlevel,
cmnperson.name As PersonName,
icnumber,
acname,
accenter.town As Town,
sctstate.name As State
FROM (CDTAPPLICATION
INNER JOIN CDTPPLEVALUATIONH
ON
CDTAPPLICATION.candidateid = CDTPPLEVALUATIONH.candidateid
AND
UPPER(TRIM(CDTAPPLICATION.wfstatuscode)) = ' || strCode || ')
AND
TO_CHAR(CDTAPPLICATION.candidateid) IN (' || strlist || ')
INNER JOIN ACCENTER
ON
CDTAPPLICATION.accode = ACCENTER.accode
AND
UPPER(TRIM(CDTAPPLICATION.accode)) = UPPER(TRIM(' ||strAccode || '))
AND
UPPER(TRIM(CDTAPPLICATION.batchno)) = UPPER(TRIM(' ||strBatchNo ||'))
INNER JOIN PRGNOSSPROGRAM
ON
CDTAPPLICATION.programcode = PRGNOSSPROGRAM.programcode
INNER JOIN CMNPERSON
ON
CDTAPPLICATION.personid = CMNPERSON.personid)
INNER JOIN SCTSTATE
ON
ACCENTER.statecode = SCTSTATE.statecode;
END prn_ACCertPrintRep;
Similar Messages
-
HI
i have iPhone 4s with iOS 8.1.3 , since 2 days I'm facing a problem that the ring tone,lock button sound,password sound,volume buttons,slide volume and incoming call flash,
all these not working properly , sometimes it will work and sometimes it will not, I tried to restart the phone many times but I didn't fix the problem
plz help me to solve this problemTry to reset the phone by holding the sleep and home button for about 10sec, until the Apple logo comes back again. You will not lose any data by resetting, but it can cure some glitches.
If this does not help, setting it up as new device would be the next step:
How to erase your iOS device and then set it up as a new device or restore it from backups -
Plz help me in solving this problem
Hi all
i am facing a problem with calculation of billing amount,late/delayed payment surcharge(DPS),and arrear.the problem is there is no any particular field in DFKKOP table where the value against these fields are stored and rest 2 fields value DPS AND ARREAR comes from FPL9 SAP IS-U standard report ,it comes calculated from there and directly print on bill from script.can any body tell me is there any way to find out the value of DPS/ARREAR through FPL9 or by bill.all the fields are required in report.the billed amount is in DFKKOP-BETRW.
plz show me some way to solve the issue
thank.
gauravHI MANOHAR
thanks for your help,but plz elaborate on
1. how to use ST05 on fpl9 is there any procedure so plz tell me how to analyse the performance,and how to identify the problem area
2.FPL9 is having entries against many heads(clearing reasons) around 35 through which the ARREAR is calculated how to identify which head is useful for ARREAR calculation.
3.DFKKOP table having HVORG/TVORG/AUGRD fields these fields having entries against amount field but no field is maintained for arrear it's calculated value through HVORG/TVORG/AUGRD combination.,can u help me in identifying which combination is used for arrear calculation. -
Result
=> deployment aborted : file:/C:/DOCUME1/E371011/LOCALS~1/Temp/temp20811ApplicationTest.ear
Aborted: development component 'ApplicationTest'/'local'/'LOKAL'/'0.2007.06.22.16.36.17':Caught exception while checking the login credentials for SAP J2EE Engine. Check whether the SAP J2EE Engine is up and running.com.sap.engine.deploy.manager.DeployManagerException: ERROR: Cannot connect to Host: [epmft] with user name: [J2EE_ADMIN] Check your login information. Exception is: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: Cannot authenticate the user.] (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.checkLoginCredentials.DMEXC)Hi Shanto,
Either your admin password is expired or you have changed the administrator password.
Do the following Steps,
Use the Config Tool to change the entry in secure storage as follows:
1. Start the Config Tool.
(Execute <SAPj2eeEngine_install_dir> configtoolconfigtool.bat.)
2. Select the secure store node.
The configuration for the secure storage in the file system appears.
3. Select the admin/password/<SID> entry.
4. Enter the administrator user's new password in the "Value" field and choose "Add".
5. Choose "File" --> "Apply" to save the data.
Note: Contrary to the message that appears, you do not need to restart the server or cluster for this change to take effect.
6. Finally restart SDM server.
Then deploy.
refer SAP note : <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_jas/~form/handler">701654</a>
Regards,
Mithu -
hi
my requirement is
emp number from PA00001 i have to take the value of STELL feild
next from HRP1001 table i have toenter data by giving SCLASS -Q
OTYPE - C and STELL number
i have to collect sobid and sclass
next from HRP1000 table i have to enter OTYPE -q and SOBID and get the ut put feild as STEXTHi
see the sample code and do accordingly
report zporgr0040
line-size 108
line-count 60(1)
no standard page heading
message-id zndc.
Database Tables
tables: hrp1001, " HR Master Record (Orgn. Assignment)
pa0002, " Personal Data
t528t, " Position Texts
t527x, " Org Unit Text
t528b, " Positions
csks, " Cost Center
cskt. " Cost Center Texts
Declaration of Internal Tables
Internal Table for Orgn Object Data HRP1000
data: begin of obj_tab occurs 0,
otype like hrp1000-otype, " Object Type
objid like hrp1000-objid, " Object ID
plvar like hrp1000-plvar, " Plan Version
istat like hrp1000-istat, " Planning Status
begda like hrp1000-begda, " Begin date
endda like hrp1000-endda, " End date
end of obj_tab.
Internal Table for Active Employees data PA0000
data: begin of stat_tab occurs 0,
pernr like pa0000-pernr, " Object Type
begda like pa0000-begda, " Begin date
endda like pa0000-endda, " End date
stat2 like pa0000-stat2, " Employment Status
end of stat_tab.
Internal Table for Actual Orgn Assignment Data PA0001
data: begin of act_tab occurs 0,
pernr like pa0001-pernr, " Object Type
begda like pa0001-begda, " Begin date
endda like pa0001-endda, " End date
kostl like pa0001-kostl, " Cost Center
orgeh like pa0001-orgeh, " Org Unit
plans like pa0001-plans, " Position
natio like pa0002-natio, " Nationality
end of act_tab.
Internal Table for Orgn Data HRP1001
data: begin of org_tab occurs 0,
otype like hrp1001-otype, " Object Type
objid like hrp1001-objid, " Object ID
plvar like hrp1001-plvar, " Plan Version
istat like hrp1001-istat, " Planning Status
begda like hrp1001-begda, " Begin date
endda like hrp1001-endda, " End date
subty like hrp1001-subty, " Sub Type
sclas like hrp1001-sclas, " Type of Related Object
sobid like hrp1001-sobid, " Id of Related Object
kostl like pa0001-kostl, " Cost Center
plstx like t528t-plstx, " Position Text
orgtx like t527x-orgtx, " Org Unit Text
end of org_tab.
Internal Table for Position Calculations
data: begin of org1_tab occurs 0,
kostl like pa0001-kostl, " Cost Center
objid like hrp1001-objid, " Object ID
end of org1_tab.
Internal Table for Position Calculations
data: begin of org2_tab occurs 0,
kostl like pa0001-kostl, " Cost Center
count type i, " No of Positions
end of org2_tab.
Internal Table for Actual Manpower Calculations
data: begin of act1_tab occurs 0,
kostl like pa0001-kostl, " Cost Center
natio like pa0002-natio, " Nationality
plans like pa0001-plans, " Position
end of act1_tab.
Internal Table for Actual Manpower Calculations(UAE)
data: begin of act2_tab occurs 0,
kostl like pa0001-kostl, " Cost Center
natio like pa0002-natio, " Nationality
end of act2_tab.
Internal Table for Actual Manpower Calculations(Others)
data: begin of act3_tab occurs 0,
kostl like pa0001-kostl, " Cost Center
natio like pa0002-natio, " Nationality
end of act3_tab.
Internal Table for Actual Manpower Calculations(UAE)
data: begin of act4_tab occurs 0,
kostl like pa0001-kostl, " Cost Center
count1 type i, " No of Positions(UAE)
end of act4_tab.
Internal Table for Actual Manpower Calculations(OTHERS)
data: begin of act5_tab occurs 0,
kostl like pa0001-kostl, " Cost Center
count2 type i, " No of Positions(Others)
end of act5_tab.
Internal Table for Vaccancies Data
data: begin of vac_tab occurs 0,
plvar like hrp1007-plvar, " Plan Version
otype like hrp1007-otype, " Object Type
objid like hrp1007-objid, " Object ID
istat like hrp1007-istat, " Planning Status
begda like hrp1007-begda, " Begin date
endda like hrp1007-endda, " End date
vacan like hrp1007-vacan, " Vacancy Indicator
status like hrp1007-status, " Status of Vacancy
end of vac_tab.
Internal Table to store the Report Output data
data : begin of rep_tab occurs 0 ,
kostl(10) type n, " Cost Cente
plans like pa0001-plans, " Position
vacan like hrp1007-vacan, " Vacancy Indicator
status like hrp1007-status, " Status of Vacancy
plstx like t528t-plstx, " Position Text
orgtx like t527x-orgtx, " Org Unit Text
end of rep_tab.
Internal Table to store the Report Output data
data : begin of rep1_tab occurs 0 ,
kostl(10) type n, " Cost Cente
cnt type i, " No of Vacancies
end of rep1_tab.
Internal Table to store the Report Output data
data : begin of rep2_tab occurs 0 ,
kostl(10) type n, " Cost Cente
app_no type i, " Approved
nat_no type i, " National
exp_no type i, " Expatriate
tot_no type i, " Total
vac_no type i, " Vacancies
end of rep2_tab.
Declaration of Variables
data: v_sobid like hrp1001-sobid, " Object Id
v_sobid1 like hrp1001-sobid, " Object Id
v_sobid2 like hrp1001-sobid, " Object Id
v_sclas like hrp1001-sclas, " Related Obj Type
v_subty like hrp1001-subty, " Related Object Id
v_otype like hrp1007-otype, " Object Type
v_str(9) type c, " Text
v_str1(10) type c, " Text
v_cnt like sy-tabix. " Table Index
Declaration of Constants
constants : c_x type c value 'X', " Flag
c_stat1 like pa0000-stat2 value '3', " Emp Status
c_plan like hrp1001-plvar value '01', " Plan Version
c_name like hrp1000-uname value 'SAP', " Uname
c_uae like pa0002-natio value 'AE', " Country
c_type like hrp1007-otype value 'O', " Object Type
c_otype like hrp1007-otype value 'S', " Object Type
c_stat like hrp1007-status value '0', " Status
c_pstat like hrp1007-istat value '1', " Plang Status
c_sclas like hrp1001-sclas value 'K', " Rel. Obj Type
c_subty like hrp1001-subty value 'A002', " Related ObjId
c_subty2 like hrp1001-subty value 'A003', " Related ObjId
c_sclas1 like hrp1001-sclas value 'O', " Rel.Obj Type
c_subty1 like hrp1001-subty value 'A011', " Rel.Object Id
c_kokrs like coej-kokrs value '1000'. " Controlling Area
Selection Screen
selection-screen begin of block b1 with frame title text-001.
parameters :
p_date like pa0001-begda obligatory default sy-datum. " Date
select-options :
s_kostl for csks-kostl, " Cost Center
s_plans for t528b-plans. " Position ID
selection-screen end of block b1.
At selection-screen
at selection-screen.
Validate the Selection Screen fields
perform validate_screen.
Start-of-Selection
start-of-selection.
Get the Orgn data from database Table HRP1001
perform get_org_data.
Get the Actual Manpower from PA0001
perform get_act_data.
Get the Vaccancies data from database Table HRP1007
perform get_vac_data.
Append the data into final Internal Table
perform append_data.
Top-of-page
top-of-page.
Write the Report and Column Headings
perform top_of_page.
End-of-Page
end-of-page.
write /1(108) sy-uline.
End-of-Selection
end-of-selection.
Display the Output Report.
perform display_report.
Form-Routines
*& Form validate_screen
Validation of selection Screen fields
form validate_screen.
Validation of Position ID
clear t528b.
if not s_plans[] is initial.
select single plans
into t528b-plans
from t528b
where plans in s_plans.
if sy-subrc <> 0.
message e999 with 'Invalid Position ID'(009).
endif.
endif.
Validation of Cost Center
clear csks.
if not s_kostl[] is initial.
select single kostl
into csks-kostl
from csks
where kostl in s_kostl.
if sy-subrc <> 0.
message e999 with 'Invalid Cost Center'(008).
endif.
endif.
endform. "validate_screen
*& Form get_org_data
Get the Orgn Data from Database Table HRP1001
form get_org_data.
v_str = 'Developee'(002).
v_str1 = 'Deployment'(003).
Select All the Positions from HRP1000
select otype " Object Type
objid " Object ID
plvar " Plan Version
istat " Planning Status
begda " Begin date
endda " End date
into table obj_tab
from hrp1000
where otype = c_otype and
plvar = c_plan and
istat = c_pstat and
begda le p_date and
endda ge p_date and
objid in s_plans and
uname ne c_name.
sort obj_tab by otype objid.
Get the Orgn and Cost Center for all the above Positions
if not obj_tab[] is initial.
select otype " Object Type
objid " Object ID
plvar " Plan Version
istat " Planning Status
begda " Begin date
endda " End date
subty " Sub Type
sclas " Type of Related Object
sobid " Id of Related Object
into table org_tab
from hrp1001
for all entries in obj_tab
where otype = c_otype and
plvar = c_plan and
istat = c_pstat and
begda le p_date and
endda ge p_date and
sclas eq c_sclas1 and
subty eq c_subty2 and
objid eq obj_tab-objid.
endif.
sort org_tab by otype objid.
Get the Cost Center
loop at org_tab.
v_otype = c_otype. " S
v_sclas = c_sclas. " K
v_subty = c_subty1. " A011
v_sobid = org_tab-objid.
perform get_org using v_otype v_sclas v_subty
v_sobid.
if sy-subrc = 0.
org_tab-kostl = hrp1001-sobid+0(10).
else.
v_otype = c_otype. " S
v_sclas = c_sclas1. " O
v_subty = c_subty2. " A003
v_sobid = org_tab-objid.
perform get_org using v_otype v_sclas v_subty
v_sobid.
if sy-subrc = 0.
v_otype = c_type. " O
v_sclas = c_sclas. " K
v_subty = c_subty1. " A011
v_sobid1 = v_sobid.
perform get_org using v_otype v_sclas v_subty
v_sobid.
if sy-subrc <> 0.
v_otype = c_type. " O
v_sclas = c_sclas1. " O
v_subty = c_subty. " A002
v_sobid = v_sobid1.
perform get_org using v_otype v_sclas v_subty
v_sobid.
if sy-subrc = 0.
v_otype = c_type. " O
v_sclas = c_sclas. " K
v_subty = c_subty1. " A011
v_sobid2 = v_sobid.
perform get_org using v_otype v_sclas v_subty
v_sobid.
if sy-subrc <> 0.
v_otype = c_type. " O
v_sclas = c_sclas1. " O
v_subty = c_subty. " A002
v_sobid = v_sobid2.
perform get_org using v_otype v_sclas v_subty
v_sobid.
else.
org_tab-kostl = hrp1001-sobid+0(10).
endif.
endif.
else.
org_tab-kostl = hrp1001-sobid+0(10).
endif.
else.
v_otype = c_otype. " S
v_sclas = c_otype. " S
v_subty = c_subty. " A002
v_sobid = org_tab-objid.
perform get_org using v_otype v_sclas v_subty
v_sobid.
if sy-subrc = 0.
v_otype = c_otype. " S
v_sclas = c_sclas. " K
v_subty = c_subty1. " A011
v_sobid1 = v_sobid.
perform get_org using v_otype v_sclas v_subty
v_sobid.
if sy-subrc <> 0.
v_otype = c_otype. " S
v_sclas = c_sclas1. " O
v_subty = c_subty2. " A003
v_sobid = v_sobid1.
perform get_org using v_otype v_sclas v_subty
v_sobid.
if sy-subrc = 0.
v_otype = c_type. " O
v_sclas = c_sclas. " K
v_subty = c_subty1. " A011
v_sobid2 = v_sobid.
perform get_org using v_otype v_sclas v_subty
v_sobid.
if sy-subrc <> 0.
v_otype = c_type. " O
v_sclas = c_sclas1. " O
v_subty = c_subty. " A002
v_sobid = v_sobid2.
perform get_org using v_otype v_sclas v_subty
v_sobid.
else.
org_tab-kostl = hrp1001-sobid+0(10).
endif.
endif.
else.
org_tab-kostl = hrp1001-sobid+0(10).
endif.
endif.
endif.
endif.
Get the Position Text
clear t528t.
select single plstx from t528t into t528t-plstx
where sprsl = sy-langu and
otype = c_otype and
plans = org_tab-objid.
org_tab-plstx = t528t-plstx.
Get the Org Unit Text
clear t527x.
select single orgtx from t527x into t527x-orgtx
where sprsl = sy-langu and
orgeh = org_tab-sobid+0(8).
org_tab-orgtx = t527x-orgtx.
modify org_tab index sy-tabix.
clear v_sobid.
endloop.
sort org_tab by otype objid.
Calculate the Approved No of Positions
loop at org_tab.
if org_tab-kostl in s_kostl.
move-corresponding org_tab to org1_tab.
append org1_tab.
clear org1_tab.
endif.
endloop.
sort org1_tab by kostl objid.
clear v_cnt.
loop at org1_tab.
at end of kostl.
sy-tabix = sy-tabix - v_cnt.
org2_tab-kostl = org1_tab-kostl.
org2_tab-count = sy-tabix.
v_cnt = v_cnt + sy-tabix.
append org2_tab.
clear:org2_tab.
endat.
endloop.
sort org2_tab by kostl.
endform. "get_org_data
*& Form get_act_data
Get the Actual Manpower Data from Database Table PA0001
form get_act_data.
clear : stat_tab, act_tab.
refresh: stat_tab, act_tab.
Get all the Active Employees
select pernr " Object Type
begda " Begin date
endda " End date
stat2 " Emp Status
into table stat_tab
from pa0000
where stat2 eq c_stat1 and
begda le p_date and
endda ge p_date.
sort act_tab by pernr.
if not stat_tab[] is initial.
select pernr " Object Type
begda " Begin date
endda " End date
kostl " Cost Center
orgeh " Org Unit
plans " Position
into table act_tab
from pa0001
for all entries in stat_tab
where pernr eq stat_tab-pernr and
kostl in s_kostl and
plans in s_plans and
persg eq '1' and
begda le p_date and
endda ge p_date.
endif.
sort act_tab by pernr.
loop at act_tab.
move-corresponding act_tab to act1_tab.
clear pa0002-natio.
select single natio into pa0002-natio from pa0002
where pernr = act_tab-pernr.
if sy-subrc = 0.
act1_tab-natio = pa0002-natio.
endif.
append act1_tab.
clear act1_tab.
endloop.
sort act1_tab by kostl natio.
Calculate the Local and Expatriate Manpower
loop at act1_tab.
if act1_tab-natio = c_uae.
act2_tab-kostl = act1_tab-kostl.
act2_tab-natio = act1_tab-natio.
else.
act3_tab-kostl = act1_tab-kostl.
act3_tab-natio = act1_tab-natio.
endif.
append: act2_tab, act3_tab.
clear : act2_tab,act3_tab.
endloop.
sort act2_tab by kostl.
sort act3_tab by kostl.
Actual UAE Manpower
clear v_cnt.
loop at act2_tab.
at end of kostl.
sy-tabix = sy-tabix - v_cnt.
act4_tab-kostl = act2_tab-kostl.
act4_tab-count1 = sy-tabix.
v_cnt = v_cnt + sy-tabix.
append act4_tab.
clear:act4_tab.
endat.
endloop.
sort act4_tab by kostl.
Other Countries
clear v_cnt.
loop at act3_tab.
at end of kostl.
sy-tabix = sy-tabix - v_cnt.
act5_tab-kostl = act3_tab-kostl.
act5_tab-count2 = sy-tabix.
v_cnt = v_cnt + sy-tabix.
append act5_tab.
clear:act5_tab.
endat.
endloop.
sort act5_tab by kostl.
endform. "get_act_data
*& Form get_org
Get the Cost Center from Parent Org Id
form get_org using p_v_otype p_v_sclas p_v_subty p_v_sobid.
clear hrp1001.
select single * from hrp1001
where otype = p_v_otype and
plvar = c_plan and
istat = c_pstat and
begda le p_date and
endda ge p_date and
sclas eq p_v_sclas and
subty eq p_v_subty and
objid eq p_v_sobid.
v_sobid = hrp1001-sobid+0(8).
endform. " get_org
*& Form get_vac_data
Get the Vaccancies Data from Database Table HRP1007
form get_vac_data.
if not org_tab[] is initial.
select plvar " Plan Version
otype " Object Type
objid " Object ID
istat " Planning Status
begda " Begin date
endda " End date
vacan " Vacancy Indicator
status " Status of Vacancy
into table vac_tab
from hrp1007
for all entries in org_tab
where plvar = c_plan and
otype = c_otype and
istat eq c_pstat and
objid = org_tab-objid and
begda le p_date and
endda ge p_date and
vacan eq c_x and
status eq c_stat.
endif.
sort vac_tab by plvar otype objid.
Get the HR data into the rep_tab Internal Table
loop at vac_tab.
rep_tab-plans = vac_tab-objid.
rep_tab-vacan = vac_tab-vacan.
rep_tab-status = vac_tab-status.
read table org_tab with key objid = vac_tab-objid.
if sy-subrc = 0.
rep_tab-kostl = org_tab-kostl.
rep_tab-plstx = org_tab-plstx.
rep_tab-orgtx = org_tab-orgtx.
endif.
append rep_tab.
clear rep_tab.
endloop.
loop at rep_tab.
if not rep_tab-kostl in s_kostl.
delete rep_tab index sy-tabix.
endif.
endloop.
sort rep_tab by kostl plans.
delete rep_tab where plstx cs v_str.
delete rep_tab where orgtx cs v_str1.
Calculate the Count of Vacancies in each Division
clear v_cnt.
loop at rep_tab.
at end of kostl.
sy-tabix = sy-tabix - v_cnt.
rep1_tab-kostl = rep_tab-kostl.
rep1_tab-cnt = sy-tabix.
v_cnt = v_cnt + sy-tabix.
append rep1_tab.
clear:rep1_tab.
endat.
endloop.
sort rep1_tab by kostl.
endform. "get_vac_data
*& Form append_data
Append the data into final Internal Table
form append_data.
loop at org2_tab.
rep2_tab-kostl = org2_tab-kostl.
rep2_tab-app_no = org2_tab-count.
read table act4_tab with key kostl = org2_tab-kostl
binary search.
if sy-subrc = 0.
rep2_tab-nat_no = act4_tab-count1.
endif.
read table act5_tab with key kostl = org2_tab-kostl
binary search.
if sy-subrc = 0.
rep2_tab-exp_no = act5_tab-count2.
endif.
read table rep1_tab with key kostl = org2_tab-kostl
binary search.
if sy-subrc = 0.
rep2_tab-vac_no = rep1_tab-cnt.
endif.
rep2_tab-tot_no = rep2_tab-nat_no + rep2_tab-exp_no.
append rep2_tab.
clear rep2_tab.
endloop.
sort rep2_tab by kostl.
endform. "append_data
*& Form top_of_page
Write the Report and Column Headings
form top_of_page.
skip.
format color col_heading on.
write: /1(108) 'NATIONAL DRILLING COMPANY'(010) centered,
/1(108) 'Summary of Manning Level Report'(011) centered.
format color off.
skip.
write: /2 'Key Date :'(013), p_date,
75 'Report Run Date:'(041), sy-datum.
if not s_kostl[] is initial.
if s_kostl-high is initial.
write: /2 'Cost Center :'(023), s_kostl-low,
75 'Time :'(042), sy-uzeit.
else.
write: /2 'Cost Center From:'(024), s_kostl-low+7(3),
'To'(022), s_kostl-high,
75 'Time :'(042), sy-uzeit.
endif.
else.
write: /75 'Time :'(042), sy-uzeit.
endif.
if not s_plans[] is initial.
if s_plans-high is initial.
write: /2 'Position Id :'(019), s_plans-low,
75 'User :'(043), sy-uname.
else.
write: /2 'Position Id From:'(021), s_plans-low,
'To'(022), s_plans-high,
75 'User :'(043), sy-uname.
endif.
else.
write: /75 'User :'(043), sy-uname.
endif.
write: /75 'Page No :'(044), sy-pagno.
skip.
write /1(108) sy-uline.
format color col_heading.
write:/1 sy-vline,
12 sy-vline, 53 sy-vline,
64 sy-vline, 65(32) 'Actual'(018) centered,
97 sy-vline,108 sy-vline.
write:/1 sy-vline, 2(10) 'CostCenter'(014),
12 sy-vline, 13(40) 'Description'(026) centered,
53 sy-vline, 54(10) 'Approved'(025) centered,
64 sy-vline, 65(32) sy-uline,
97 sy-vline, 98(10) 'Vacancies'(017),
108 sy-vline.
write:/1 sy-vline,
12 sy-vline, 53 sy-vline,
64 sy-vline, 65(10) 'National'(015) centered,
75 sy-vline, 76(10) 'Expatriate'(020) centered,
86 sy-vline, 87(10) 'Total'(016) centered,
97 sy-vline,108 sy-vline.
format color off.
write /1(108) sy-uline.
endform. "top_of_page
*& Form Display_report
Write the Report Output
form display_report.
if rep2_tab[] is initial.
message i999 with
'No Data found for the entered Selection'(035).
else.
loop at rep2_tab.
Authorization Check for the Orgn and Cost Centers
perform auth_check_org.
if sy-subrc = 0.
clear cskt.
select single ltext into cskt-ltext from cskt
where spras = sy-langu and
kokrs = c_kokrs and
kostl = rep2_tab-kostl.
format color col_normal.
write: /1 sy-vline, 2(10) rep2_tab-kostl+7(3),
12 sy-vline, 13(40) cskt-ltext,
53 sy-vline, 54(10) rep2_tab-app_no,
64 sy-vline, 65(10) rep2_tab-nat_no,
75 sy-vline, 76(10) rep2_tab-exp_no,
86 sy-vline, 87(10) rep2_tab-tot_no,
97 sy-vline, 98(10) rep2_tab-vac_no,
108 sy-vline.
format color off.
at last.
sum.
format color 3.
write /1(108) sy-uline.
write: /1 sy-vline, 2(10) 'Total'(027),
12 sy-vline,
53 sy-vline, 54(10) rep2_tab-app_no,
64 sy-vline, 65(10) rep2_tab-nat_no,
75 sy-vline, 76(10) rep2_tab-exp_no,
86 sy-vline, 87(10) rep2_tab-tot_no,
97 sy-vline, 98(10) rep2_tab-vac_no,
108 sy-vline.
format color off.
endat.
endif.
endloop.
endif.
write /1(108) sy-uline.
endform. " Display_report
*& Form auth_check_org
Authorization Check for the Orgn and Cost Center
form auth_check_org.
authority-check object 'ZNDCHROM'
id 'PLVAR' dummy
id 'OTYPE' dummy
id 'KOSTL' field rep2_tab-kostl.
endform. "auth_check_org
<b>Reward points for useful Answers</b>
Regards
Anji -
i am using 5s and i dont remeber my rescue email address and answer of security question...
i am unable to purchace any thing from app store..
what can i do for changing either security answer or resucue email address ..?
want to change rescue emaail address and securities answer..
PLZ HELP M TO SOLVE THIS PROBLEMI firgot my rescue email adreas and that securities questions .. I know my apple id and password .. So i am using it .. Bt when i am going to purchase anything then my securite answer needed bt i dont know that .. If I want to know or change that then I need rescure email .. I forgot that also ..so how can I purchase any thing ..
this is phone is my owned and m using it .. It not stolen .
so whats the solution to get that answer or for rescue email .. Otherwise I cant purchase anything ..
ANd nd i dont want to change my apple I'd .bcz I am using this id since 4-7 years -
Not getting the chat application?Plz Help
Hai,
Plz help me to solve this...This is my code:
Correct me
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import mx.messaging.channels.NetConnectionChannel;
private const sAddress:String = "rtmfp://stratus.adobe.com";
private const dKey:String = "Developer Key" ;
private var nc:NetConnection;
private var myPeerID:string;
private var farPeerID:String;
private var sendStream:NetStream;
private var recvStream:NetStream;
private function initConnection():void
if(t1.text)
farpeerID = t1.text;
nc = new NetConnection;
nc.addEventListener(NetstatusEvent.NET_STATUS,ncStatus);
nc.connect(sAddress+dKey);
private function ncStatus(event:NetStatusEvent):void
trace(event.info.code);
myPeerID = nc.nearID;
t1.text = myPeerID;
private function initSendstream():void
trace("initSendstream");
sendStream = new Netstream(nc,NetStream.DIRECT_CONNECTIONS);
sendStream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
sendstream.publish("media");
var sendStreamClient:Object = new Object();
sendstreamClient.onPeerConnect = function(callerns:Netstream):Boolean
farPeerID = callerns.farID;
trace("onPeerConnect "+farPeerID);
return true;
sendStream.client = sendstreamClient;
private function initReceiveStream():void
recvStream = new NetStream(nc,farPeerID);
recvstream.addEventListener(NetStatus.NET_STATUS,netStatusHandler);
recvstream.play("media");
recvStream.client = this;
public function receiveSomeData(str:string):void
t3.text = str;
private function sendSomeData():void
sendStream.send("receiveSomeData",t2.text);
private function netStatusHandler(event:NetStatus):void
trace(event.info.code);
]]>
</mx:Script>
<mx:TextInput x="22" y="10" width="235" id="t1"/>
<mx:Button x="265" y="10" label="Connect" click="initConnection"/>
<mx:TextInput x="22" y="40" id="t2"/>
<mx:Button x="190" y="40" label="send Data" click="sendSomeData()"/>
<mx:TextInput x="22" y="70" id="t3" width="252"/>
<mx:Button x="22" y="100" label="initSendStream" click="initSendstream()"/>
<mx:Button x="174" y="100" label="initReceiveStream" click="initReceivestream();"/>
</mx:Application>
ERRORS:
1046: Type was not found or was not a compile-time constant: NetStatus. p2p/src p2p.mxml line 63 1266493948995 203
1046: Type was not found or was not a compile-time constant: Netstream. p2p/src p2p.mxml line 40 1266493948980 201
1046: Type was not found or was not a compile-time constant: string. p2p/src p2p.mxml line 55 1266493948980 202ActionScript is case-sensitive and spelling-sensitive. line 40, it's "NetStream" not "Netstream". line 55, it's "String" not "string". line 63, it's "NetStatusEvent" not "NetStatus". and as i believe i pointed out in a different thread, there must be a slash between "rtmfp://stratus.adobe.com" and your developer key.
-
Plz help my iphone 4 not ringing ????
In my iphone 4 its not ringing , i have check all button and volume is on!!!! its vibrating but when some one call me its not ringing plz help me to solve is matter....thanks
Hello there Tgurnell
Thank you for using Apple Support Communities.
It sounds like the ringer is not ringing after the update to iOS 7. I found an article with some steps to take when you are experiencing issues like this:
iPhone: Can't hear through the receiver or speakers
http://support.apple.com/kb/TS1630
Cheers,
Sterling -
i hav problem with daq initialisation...plz help to solve the above mentioned issue
Hi muthu,
we also have a problem: to less information…
- What is connected to your laptop?
- What is "it" in "it displays building VI"? Do you use the DAQ Assistent ExpressVI?
- What means "plz"?
And could you please put less text in the title of your message and more text (with relevant information) into the message body?
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
Plz help me solving following issues
Hi SD experts,
Plz help me solving following issues
1) What do you mean by POD(proof of delivery) what is the use of pod? What are the con figuration you done in your project?
2) When I am punching order after entering data like material No and quantity system should pop-up a screen of delivery date and status and invoice data and details, How can we configure this?
3) Client requirement is he want horizon period in days format. but standard sap system It's in months format(gray mode). how can we change months to days?
4) Quotation has been created for product-D, 10 quantities, sales order is created with reference to the quotation, system copies 10 quantities in sales order. How do you restrict in sales order end user should not change quantities, system should not allow for changes by en user?
5) when i creating the sales order the system show error "No customer master record exist for sold to party". How to rectify it?
suitable solutions will be rewarded
thansx & regardshi,
Proof of delivery (POD) is an instrument involved in business processes in which an invoice is issued only after the customer has confirmed the delivery's arrival. In addition to the proof of delivery itself, you can also record the POD date, POD time, the actual quantity that arrived and the reason for possible differences in quantities. This is especially important for deliveries where the delivery quantity varies because of the nature of the goods or for which the exact delivery quantity is unknown from the start.
You are now in a position to issue an accurate invoice based on the customer's confirmation of goods received. You no longer need to create credit memos. The reasons for deviation that occur most frequently in "real world" scenarios such as stock shrinkage, theft, certain characteristics of goods (volatility, for example), and transportation damage are recorded and analyzed in the system. This analysis is especially valuable when you are negotiating with forwarding agents, vendors, or customers, since all deviations can be reflected
With regards
Rajesh -
Plz help to solve this error in out.println statement
Hi All,
I am pretty new to weblogic8.1.I am Getting a error if i try to concatenate a object to the string in out.println
statement.
For your kind reference progam and error pattern is enclosed.
public class Test extends HttpServlet
PrintWriter out;
public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
out=res.getWriter();
String aaa="Google";
out.println("Hai"+aaa);
ERROR IS:
Error 500--Internal Server Error
java.lang.NoClassDefFoundError: java/lang/StringBuilder
at Test.doGet(Test.java:15)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
If i use the statement like;
out.println("Hai");
out.println(aaa); ...It works fine
Plz, help me out there.Thanks All.
PrithMy guess is this is a classpath issue. Read weblogic's documentation on how to install the software thoroghly, then re-install it. Double check that JAVA_HOME is set properly, and that you are using a fairly recent Sun Java VM, versus an old MS Java VM...
-
[solved] Can't build libitl, plz help
I try to install itools http://aur.archlinux.org/packages.php?ID=20954
i get error with libitl ( one f Dependencies )
yaourt -S libitl
ln -sf ../../prayertime/src/prayer.h ../../build/itl/prayer.h
ln -sf ../prayertime/src/prayer.o ../../build/prayer.o
ln -sf ../prayertime/src/astro.o ../../build/astro.o
make[2]: Leaving directory `/tmp/yaourt-tmp-root/aur-libitl/src/libitl-0.7.0/prayertime/src'
make[1]: Leaving directory `/tmp/yaourt-tmp-root/aur-libitl/src/libitl-0.7.0/prayertime'
ld build/*.o -Wl,--hash-style=gnu -Wl,--as-needed -shared -lm -lc -soname=libitl.so.0 -o build/libitl.so.0.0.7
ld: unrecognized option '-Wl,--hash-style=gnu'
ld: use the --help option for usage information
make: *** [build/libitl.so] Error 1
Aborting...
i try to download the source and build then install and it's sucsseufel but whin i try to install itools ayourt cant find it and try to install it first
i use Arch64
PLZ help
Last edited by abauomy (2010-07-09 16:48:40)This thread appears to be of interest. I had to unset both makeflags and ldflags to get libitl to build correctly. You're going to have the same problem with itools, as its written by the same dev who's writing crappy makefiles.
Last edited by falconindy (2010-07-09 14:02:05) -
My payment method is decline.plz help me how do I solve this?
Plz help me for my payment method is decline..
To Contact iTunes Customer Service and request assistance
Use this Link > Apple Support iTunes Store Contact -
can any body help me to solved my problem i format laptop operating system win 7, 64bit
when i connect my iphone 4G transfer application there is error 11556 n store icon not visibleThere's some info on your error message number in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
iTunes: Advanced iTunes Store troubleshooting -
Problem not solving..plz help..
Hi all...i'm tired of written problems here of x2-01.....1..It shows double-2 files in music player...2..when i download any game or app & try to move them to any folder of memory caed..it says name already exists or name already exists in target folder1..2 or any other...(some apps or games i able to move)...i went nokia care many times..but no use..i'm tired of restore it's factory settings many times...(all problems with memory card,so i think it's memory card defective..i already changed it..but no use..before i have microsd & now i have microsdhc)..so please tell me why it happens..is problem with memory card or anything else...plz help...!
Same problem here ..but NO solution yet ..
BTW this may make interesting reading ...
Maybe you are looking for
-
Ms-6585 with msi 4200 128 8x blue screen and blank screen with msi agp
here's the system, sorry for the not usefull crap. Operating System: Windows 2000 Professional (5.0, Build 2195) Service Pack 3 Language: French (Regional Setting: French) System Manufacturer: MSI System Model: MS-6585
-
Upgraded iphone3gs failed to register after upgraded
upgraded phone when it try to register it didn't try later
-
Order Confirmed - No Order Found
I am still waiting on an outcome to this, I have not received an email response. I do have a case number for this but I am unable to call during business hours today to follow up. I have a copy of my order confirmation from the website but the orde
-
IBOTS report is not delivering
I scheduled few reports through IBOTS and for scheduling i am using custom java. but my problem is , in those report few are not delivering,few are delivering. Hear i am using same configuration settings for all report can any one please let me the i
-
I want to upgrade from the 4th generation to the fifth generation
i want to upgrade from my fourth generation to a fifth generation