Selection Variant in Std Report
Hi All,
When I goto a report transaction (for example ME2N) some of the selection fields values in the seleciton screen defaults (from cache memory?). But when I select a Variant the defaulted values do NOT clear out. And the Variant does NOT have any value for those fields.
How does the user resets/clears all the selection fields before selecting a variant?
Thanks in advance!
Variant Attributes
On this screen, you can define the attributes for the variant. Make sure
that you enter a meaningful short text.
o Only for background processing
If you select this option, the variant can only be used in
background processing. You will not be able to start the program
with this variant in dialog mode.
> o Protect variant
> If you select this option, the variant can only be > changed by the person who created it or the last person to > change it. If you start a program using a protected > variant, none of the fields on the selection screen accept user input.
o Only display in catalog
If you select this option, the variant is not displayed in the input
help list; it is only displayed in the catalog.
http://help.sap.com/saphelp_nw70/helpdata/en/c0/98038ce58611d194cc00a0c94260a5/content.htm
Similar Messages
-
Selection Variants in Std List Displays/Reports
Hi All,
Are selection variants user specific or client specific in SAP?
Thx in advIt is client specific.
-
Selection variant for a report painter
Hi,
I created a report painter report. I want to create a default selection variant for a specific user. For example, I want user GIRARDJU to have company code=ADM, period 6 to period 13. I tried to create a variant and call it U_GIRARDJU but it doesn't work like it does for the standard SAP reports...
Any suggestions?
Thanks a lot,
JulienHi,
First go to the report you have created.
Then save the selection criteria you want & give an appropriate name to your variant (eg: /INOKA).
When you execute the report next time, this variant will be there, & by double clicking it you'll get the saved information.
Best regards,
Inoka. -
Printing Selection Variant in Report Painter
Hi, I am using ECC 5. There is a requirement for printing the selection variant in Report Painter (GR55) Reports. Presently there is a provision to print selection fields and values.
Is any way, I can print a Selection Variant and Name in Report Painter? I understood that the information is stored in Table VARIT. This table contains Lang., Report Name, Variant and Short text. I do not know how to get this info in Report screen.
Can any one help?
Advance Thanks
VenkatHi,Thanks for your reply. Let me explain.
When using Transaction Code GR55, enter Report Group, Execute. This will open a Report Paramenter screen. In this screen, if you select Goto --> Variant --> Get OR Get Variant icon, this will show the available selection variants. Select any one of them and run report.
In report it will pick-up the each selection paramater field and value NOT a variant.
Is any way to get the variant also printed in report?
Hope this will is clear.
Thanks
Venkat -
How to print the selection screen variant as a report header
I want to print the variant selected on the selection screen as a report header in the report painter.....Kindly help....The variant selected prior to generating the report painter output must be displayed on the final output screen as the header on the screen...
Hi
Here you've to use 'Z_HEADER_FOOTER' function module at TOP-OF-PAGE
Just pass parameters for report_name as repid
show_select_options as 'Y'
show_parameters as 'Y'
line_size as you wish
action as 'X'
Hope this fulfills your requirement
Thanks
Suren -
How do you make report selection variant the default selection varaint?
Hello all,
I know how to create a Selection Variant for reoprts and I know how to create a User Variable that defaullts field values for a specific user. But can anyone tell me how do you have a specific Report Selection Variant Default for everyone? I know this one is probably staring right at me but I'm not seeing it. Your help would be greatly apreciated.
Thanks,
DanBhatia,
That will only hold the data for that specific user. You can also do that via "user variables". What I would like to know is how do you get it to be the default for All users.
I am investigating the possibility of using t-code SE38 and changing the Values on the existing variants to contain the default data we'd like to see. I'd much rather create just one Variant per report and have that be the default variant.
Anyone have any ideas?
Thanks,
Dan
Edited by: Daniel Goodhart1 on Oct 7, 2009 11:03 PM -
Report Painter problem with empty selection variant
Hello,
I use the cost center selection variant for the column definition in Report Painter as characteristic value. This selection variant get only the cost centers which are valid from 1.1.2003 to 31.12.2004. The column of the report created by Report Painter which uses this selection variant display value without taking into account limitations follow from this selection variant. I expect value zero for year fiscal year 2007 in this column, because the cost centers are invalid in 2007 year but the report displays different value. The problem appeared after upgrade from 4.6C to ECC 6.0.
Best Regards
ZDMy problem with Report Painter occurred when I was creating my own report based on 1VK library.
In my example I used in the column definition characteristic Cost
Center, which is determined by selection variant, and Basic Key Figure
equal SWKG-Costs. For system date (18.07.2007) there are no valid
master data for the characteristic Cost Center but when I execute
report for fiscal year 2007 the column display no-zero value without
taking into account value of Characteristic Cost Center. I expected
zero value in this column because there are no postings for Cost
Centers (no valid cost centers were selected) in financial year 2007.
Could you help me with this problem ? -
No data in the STD Report S_ALR_87012272
Hi,
The SAP STD report is s_alr_87012272 is not showing any values.
Kindly help me how we can get the values in the report.
Report long text: Cash Flow (Indirect Method) Variant 1
Report name 0SAPRATIO-03
Thanks..,,
Regards,
John PalDear John,
All reports are based on a financial statement version. This is
determined in the form with the same name under the general selections
(see overview of the report parameters). In the standard system, this is
the INT version. In the version, accounts with chart of accounts (INT)
and number are assigned to the individual items. If the system in
question uses another financial statement version or another chart of
accounts, the selected data cannot be assigned to the balance sheet
items.
This is the reason we suggest our customers to create their own form.
Check SAP note 43661 which describes creation of new
forms and reports.
Following are the steps to create the form and report:
FSI4 => Form type: Financial Statement Key Figures => Copy
Form: Name and Text for the new form
Copy from: 0SAPRATIO-04
FSI5 => find and double click the new form just created => Edit Gen.
data selection => change the FSV to what you want to use
FSI1 => Report type: Financial Statement Key Figures => Create
Report: Name and Text for the new report
With form: Name of the new form
details please refer to standard SAP report 0SAPRATIO-04
FSI3 => find and excute the new report to check if you can get the
result you want
To change the fin.statement version in the general data selections of
your new form is not enough.
All reports are based on a financial statement version. This is
determined in the form with the same name under the general selections
(see overview of the report parameters). In the standard system, this is
the INT version. In the version, accounts with chart of accounts (INT)
and number are assigned to the individual items. If the system in
question uses another financial statement version or another chart of
accounts, the selected data cannot be assigned to the balance sheet
items.
This is the reason we suggest our customers to create their own form.
Please find the attached note 43661 which describes creation of new
forms and reports.
Following are the steps to create the form and report:
FSI4 => Form type: Financial Statement Key Figures => Copy
Form: Name and Text for the new form
Copy from: 0SAPRATIO-04
FSI5 => find and double click the new form just created => Edit Gen.
data selection => change the FSV to what you want to use
FSI1 => Report type: Financial Statement Key Figures => Create
Report: Name and Text for the new report
With form: Name of the new form
details please refer to standard SAP report 0SAPRATIO-04
FSI3 => find and excute the new report to check if you can get the
result you want
To change the fin.statement version in the general data selections of
your new form is not enough.
Mauri -
Dynamic creation of date in selection variant
Hi All,
I have a Z program for updating a field in BOM item. One of the input field in the report is "Valid From Date". Actually the current date is automatically fetched through a function module and it is defaulted in that field.
Our client is using selection variant for ease of use. The problem here is old date in the selection variant is replacing the current date. I want current date to be created automatically during insertion of variant also. How can i solve this problem. Is there any selection variable inside the variant for dynamic creation of Date?
Thanks
SankarAs I know there is no setting for this. For any std or Z report variant function with L should act same way...anyway you discuss with your ADABer.
See the help for variables
Selection Variables
The following three types of selection variables are currently
supported:
o Table variables from TVARV
You should use these variables if you want to store static
information. TVARV variables are proposed by default.
o Dynamic date calculations:
To use these variables, the corresponding selection field must have
type 'D' (date). If the system has to convert from type T to type D
when you select the selection variables, the VARIABLE NAME field is
no longer ready for input. Instead, you can only set values using
the input help.
The system currently supports the following dynamic date
calculations:
Today's date
From beginning of the month to today
Today's date +/- x days
First quarter ????
Second quarter ????
Third quarter ????
Fourth quarter ????
Today's date - xxx, today's date + yyy
Previous month
o User-specific variables
Prerequisite: The selection field must have been defined in the
program using the MEMORY ID pid addition. User-specific values,
which can be created either from the selection screen or from the
user maintenance transaction, are placed in the corresponding
selection fields when the user runs the program.
The SELECTION OPTIONS button is only supported for date variables that
fill select-options fields with single values.
i.e means we can do that with D also. -
Std report on delivery performance
Hi Gurus,
Is there any Standard report to check the delivery performance (Schedule date VS Received date),please advice....
Regards,
KumarYou can check any of the standard reports like ME2M with the selection variant as "PO where GR exists"
-
frnzz,
Is there a standard report to find out the headcount in an organisation?
Useful anwers will be rewarded.
thanx in advance
ViggyHi,
There are only following Std reports exist:
S_AHR_61016497 Existing Jobs
S_AHR_61016502 Existing Positions
S_AHR_61016503 Staff assignments.
See the Manning Level sample report:
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
reward if useful
regards,
ANJI -
HI Experts,
In std. report MCXB, no. of defects value is always Zero. please guide me.
Advance thanks,
Regards,
SbabuHii,
First u need to check whether defcts recorded for Inspection lot / operation/ Charcteristics. once u select particular selction, system shows screen as "Defect overview for oper/charc/lot : Record". In thet screen in Item overview screen u need to capture code grp, code and enter no of defect. This will get reflected in MCXB screen. Here no of defct is not no of rejcted sample size.
with regards
K.Lokesh. -
Std report on pr(s) & po(S) released
hi mm experts,
Looking for a standard report for me54n/me55 - PRs- released & me28/me29n - POs -released.
I mean list display.
thanks in advance
Regards
Sriharithanx, me5a & me2n not meeting my requirements.
we have pr & po under release strategy and every pr is having more than 2 release levels & po is also having more than 2 release levels.
our purchase dept wud like to analyse the pr/po released date & time by release levels.
in me2n & me5a will only indicate whether pr/po is released or not,
looking for a std report for pr/po releases by persons/users, when we go into po/pr, select item and environment, item changes will show all details of pr/po released date& time.
kindly help if any report or dynamic selection where in we can pr/po released thru me54n/me55 & me29n/me28 per pr/po wise.
regards
srihari -
Is thr any std report to find vendor excise details
Guru's
is thr any std report to find vendor excise details like CST,LST,ECC no.
Plz guide
Thamks in advancego to SE16
enter table name J_1IMOVEND enter
remove Maximum No. of Hits
press F8
Shift+ F8
click spreed sheet
give file name and select path
save
ur excle file is ready
reward if usefull -
DEAR ALL
I want one report of import & domestic purchase
based on slpite valuation i.e.
How much import & domestic
purchase of same material on different valuation type
is there any std report in SAP such as S_ALR_87012332hi,
by me2n transction you can able to get your data.
it can obtained by choosing the dynamic selection and going for the po item detail, in that you can able to find the valuation ctgy.
Regards,
velu
Maybe you are looking for
-
Hi All, We have a requirement for back order report in BW . we are using the extractors V_SSL and VASCL to get this information. The calculation for backorder and backlog qty are done from V_SSL. But there are few scenarios that we have to manage 1)
-
Strike Through between last line Item and footer
Hi Experts, I have a requirement like this, I have dynamic table which displays items of invoice and Footer in the Master page. There will be dynamic space between Table and Footer when the lines items are not completely filled till the footer area.
-
Hello, we are trying to import some of our Incident records from BMC Remedy into Service Manager. Our data architect is running into some difficulty finding the necessary information to create the format file (we plan to use the CSV import process).
-
How do I request a song to be put on ITunes to buy. I have tried all the 'support' places and can't find a place to do this. I saw one once before but can't find it now.
-
How to stop search for newer version of apps
Every time I open iTunes I get 60 error messages telling me each individual app already is in my library with a newer version and am I sure I want to replace? No, I don't, and I really wish I could get rid of whatever is causing iTunes to go looking