About VKM4 report, field "status"
As we know that in VKM4 report, there is field u201Cstatusu201D to show the credit block reasons.
do you have experienced a situation that if oldest open item and open item and dynamic check all failed.
Whatu2019s reason will be showed in the u201Cstatusu201D?
e.g.
Status DYNA OpIt OlIt
Dynamic check B A
and for the button check(shift+ F2), what's the popurse for this?
thanks
The status shows as not yet processed for the oldest open items, when the credit limit was exceeded in that sales order.
Unless untill u release the same order through the VKM3,then the system shows the not yet processed,when it was released it shows as partially processed.When u create the invoice then the system shows completly processed.
and for the button check(shift+ F2), what's the popurse for this?- this purpose of this is when u press the same the system shows the empty screen,not inserting any data in that screen for execution.
Please check and confirm.
Kalyan
Similar Messages
-
Report about scheduled reports with status failed
hi All,
I would like to schedule report with information which reports in SAP BO (which I could find in Instance Manager in CMC) did not refreshed (failed status). Do you know where this data are stored?
Thank you for your help.Hi Konrad,
Query builder is an application which gets deployed when you deploy the BO applications like CMC/BILaunchPad.
The name of the application is AdminTools. You can check with your admin/deployment team if you have it deployed.
You would be exceuting the below url to access the application
http://<servername>:<port>/AdminTools
The name is case sensitive so follow the same case.
It would be best to run your queries in AdminTools application rather than running those directly on CMS tables though management studio. Running queries directly on CMS databse tables is not recommended.
Thanks,
Prithvi -
SAP report of field status variant, in 4.7
Hello all,
Is there a SAP report that lists a field status variant, its groups, the groups fields, and the entry properties of the fields?
In customization, path /Financial Accounting/Financial Accounting Global Settings/Document/Line Items/Controls/Maintain Field Status Variants - execute
Gets you to the transaction where this is set up. If you have access to this transaction, you can see all of that information, even capture it to a spool or presentation file.
We want to give this information to users who don't have that access.
I am hoping that someone knows of a SAP report with that information, or someone has already created their own report and is willing to share some code.
I started to look at function PREPARE_FIELD_SELECT_STRING, but got lost in the detail. If that is only way to get what I want, well...
Thanks
BruceThis is my solution. Simple code, once I finished debugging the function module PREPARE_FIELD_SELECT_STRING.
tables: t004f, " Field status definition groups
tmodf, " Groups in Field Selection Bar
tmodg, " Name of Groups in Field Selection Bar
tmodo, " Items in Field Selection Definitions
tmodp. " Name of Items in Field Selection Definitions
data: w_t004f type t004f.
data: i_t004f type table of t004f.
data: begin of gruptab occurs 0,
ggrup like tmodo-ggrup,
ftext like tmodp-ftext,
xhell type c,
end of gruptab.
data: c500(500) type c.
data: incoming_string(200).
data: fleng(4) type n.
data: w_string_position(3) type n.
select-options: s_fstva for w_t004f-bukrs default '0001' obligatory.
selection-screen skip 1.
select-options: s_group for t004f-fstag default 'GT02'.
start-of-selection.
select * from t004f into table i_t004f "
where bukrs in s_fstva
and fstag in s_group.
loop at i_t004f into w_t004f. " field status groups (FSG)
skip 1.
write: / w_t004f-fstag.
perform get_subgroup_list.
endloop. " i_t004f
end-of-selection.
form get_subgroup_list .
clear gruptab. refresh gruptab.
incoming_string = w_t004f-faus1.
incoming_string+90(50) = w_t004f-faus2.
select * from tmodf where fauna = 'SKB1-FAUS1'.
gruptab-ggrup = tmodf-ggrup.
select single * from tmodg where spras = sy-langu
and fauna = tmodf-fauna
and ggrup = tmodf-ggrup.
if sy-subrc = 0.
gruptab-ftext = tmodg-ftext.
else.
gruptab-ftext = text-ngg.
endif.
append gruptab.
skip 1.
write: /5 gruptab-ftext,
50 'Suppress',
60 'Required',
70 'Optional'.
perform get_fields.
endselect. " FROM tmodf
endform.
form get_fields .
* ------- Read the item texts
select * from tmodo where fauna = 'SKB1-FAUS1'
and ggrup = tmodf-ggrup.
select single * from tmodp where spras = sy-langu
and fauna = tmodo-fauna
and modif = tmodo-modif.
write: /10 tmodp-ftext.
* get individual field options
write tmodp-modif to w_string_position.
w_string_position = w_string_position - 1.
case incoming_string+w_string_position(1).
when '+'.
write: 60 'X'. " obligatory
when '.'.
write: 70 'X'. " optional.
when '-'.
write: 50 'X'. " supress
endcase.
endselect. " FROM tmodp
endform.
Edited by: Bruce Tjosvold on Jun 30, 2011 7:17 PM -
I want to download the GL account field status info from SAP table in the following path:IMG -> Financial Accounting(New) -> Financial Accounting Global Settings(New) -> Ledgers -> Fields -> Define Field Status Variants.I need each field status info(Suppress / Require Entry / Option Entry),but I don't know I can download them from which table.
Dear,
What you can do is use the table SKB1 and get the field status group for the GL, there is no specific table which shows S R O of the field status variant but you can see the table T004F. -
Downloading/Exporting Field Statuses
First, I know essentially nothing about SAP, so I hope this is the right area. I am an intern who has been tasked with taking SAP data, and automating some processes with it using Access. No big deal at first, they provided us with a table download script and I did a few no problem.
Now however, I need to check that a bunch of customer account groups have (in their company code data) the reconciliation field set to required. This is how they told us to navigate to the field:
In customization, go to SPRO->Financial Accounting->Account Receivable and Account Payable->Customer Accounts->Master data->Preparations for creating master data->Define account groups with screen layouts, or run transaction OBD2.
Click on the u201DDetailsu201D button (or press F2). Click on the field status u201DCompany code data.u201D Click on the select group u201DAccount management.u201D Review the field status for u201DReconciliation accountu201D.
For anything else, I would just download a table and do the check, but these are contained in a structure, which (via some googling) does not appear to be downloadable. Is there any way to get this data into access?
Edit - found an answer, but couldn't figure out how to delete this post. Mods go ahead if you want.
Edited by: James.Field on Jun 2, 2011 1:40 PMI totally agree with rnm1978, you shouldn't use OBIEE as an extraction tool. Get your users to define extractly what questions they need answered and create those reports in OBIEE, not on Excel.
Havign said that if you do use OBIEE as an extraction tool you should know that the 56K limitation it's an Excel problem, not OBIEE. If you use the Download Data option in OBIEE you can hundreds of thousands of rows, depending on what have you set as the maximum number of rows your BI Server allows. and if you use Excel 2007 to open this data file it can load up over 1m rows (1048576 to be precise). -
GL Account Field status setting conflicting with Account Assignment categor
Hi All,
A GL account could not be used for posting vendor invoice because of mismatch between the field status group setting for the GL account and the account assignment category. The Account assignment category in MM does not even have WBS field where as for the GL account the field WBS element has been suppressed. Because of this conflicting setting we are not able to post the vendor invoice.
What I am bothered about is there are lot of GL accounts being assigned to this field status group.
Can anybody please let me know what will be consequences if I make the changes to the relevant field status group?
Please let me know if there is any way-out for this Or is it ok with I go ahead with the changes required.
Regards,
S.SumanaHi Sumana,
If you are changing FS there will no problem but see that IT should not be combination of Required and Hide then system will give you the errorr.
In your case from MM change the status as optional.I think your problem will get resolved.
Thanks
RAVi -
Add GL segment to movement type field status
At OMJJ, does anyone know if its possible to add GL segment field to a movement type?
Currently, I have a conflict between 201 movement type and a GL Account field status group where segment is mandatory for GL side, but is unavailable on MM movement type side. (RM07CUFA)
I checked field selection for movement type, but it doesnt have segment as an addable field.
Any input would be appreciated.Hi,
I have problem when posting goods after saving delivery.
field selection for movement type 601 account 894025 differs for cutomer goods movement (015)
Report RM07CUFA
I tried OMJJ For movement type 601 I checked field which is Optional.
But for G/L account could not identify what it is. Eventhough I tried IMG>Valuation and Account Assignment__>A/C determination without wizard>Configure Automatic posting (OBYC)>GBB>Cahrt of A/c CAUS-->valuation area 7920 G/L a/c is assigned 894025.
Simulation of entry shows Offsetting emtry for inventory US01 Val A/c 7920 Both A/C debit & credit is missing. Its grey area so I can not put any a/c number..
Filed status G004 cost account Field status Cost center is also optional. (FS00 shows Field status group as G004)
I shall appreciate if you provide correct input.
Thanks
Rajiv -
Hi Falks,
If any one knows about interactive report transaction code than plz give reply as well as send me one step by step example how to create interactive reports.
mail me on "[email protected]".
Thanx and regards,
Rahul TaleleHi,
There is separate Tcode for interactive reports ..
you can create a basic list report for one table data, and use the commands of intercative reports, like At line-selection, At user-command and write the code to display the another table records .
see the sample code:
report zf_rept_debtor_ageing
no standard page heading
message-id fb
line-count 65
line-size 230.
Purpose : This ABAP program will fetch the Account Receivables for
a Customer for the given period and display the due days.
tables: t001, " Company Codes
t005, " Countries
skb1, " GL Master
kna1. " Customer Master
Internal Tables
Internal table for BSID (Open Items) data
data: begin of it_bsid occurs 0,
kunnr like bsid-kunnr, " Customer Number
gjahr like bsid-gjahr, " Fiscal Year
belnr like bsid-belnr, " Acc.Document
buzei like bsid-buzei, " Item
budat like bsid-budat, " Posting Date
shkzg like bsid-shkzg, " Dr/Cr Indicator
dmbtr like bsid-dmbtr, " Amount(Local Curr)
wrbtr like bsid-wrbtr, " Amount(Doc Curr)
dmbe2 like bsid-dmbe2, " Amount(USD)
waers like bsid-waers, " Currency
zterm like bsid-zterm, " Payment Terms
vbeln like bsid-vbeln, " Billing Doc
zfbdt like bsid-zfbdt, " Baseline Date
zbd1t like bsid-zbd1t, " No of days
hkont like bsid-hkont, " GL Account
name1 like kna1-name1, " Customer Name
land1 like kna1-land1, " Country
end of it_bsid.
Internal table for BSAD (Closed Items) data
data: begin of it_bsad occurs 0,
kunnr like bsad-kunnr, " Customer Number
gjahr like bsad-gjahr, " Fiscal Year
belnr like bsad-belnr, " Acc.Document
buzei like bsad-buzei, " Item
budat like bsad-budat, " Posting Date
shkzg like bsad-shkzg, " Dr/Cr Indicator
dmbtr like bsad-dmbtr, " Amount(Local Curr)
wrbtr like bsid-wrbtr, " Amount(Doc Curr)
dmbe2 like bsad-dmbe2, " Amount(USD)
waers like bsad-waers, " Currency
zterm like bsid-zterm, " Payment Terms
vbeln like bsid-vbeln, " Billing Doc
zfbdt like bsid-zfbdt, " Baseline Date
zbd1t like bsid-zbd1t, " No of days
hkont like bsid-hkont, " GL Account
name1 like kna1-name1, " Customer Name
land1 like kna1-land1, " Country
end of it_bsad.
Internal table for Report Output
data: begin of it_report occurs 0,
kunnr like bsid-kunnr, " Customer Number
belnr like bsid-belnr, " Acc.Document
name1 like kna1-name1, " Customer Name
land1 like kna1-land1, " Country
shkzg like bsid-shkzg, " Dr/Cr Indicator
budat like bsid-budat, " Posting Date
dmbtr like bsid-dmbtr, " Amount(Local Curr)
wrbtr like bsid-wrbtr, " Amount(Doc Curr)
dmbe2 like bsid-dmbe2, " Amount(USD)
waers like bsid-waers, " Currency
due_amnt like bsid-dmbtr, " Amount(Over Due)
d_amnt1 like bsid-dmbtr, " Amount(0-30 Future Due)
d_amnt2 like bsid-dmbtr, " Amount(31-60 Future Due)
d_amnt3 like bsid-dmbtr, " Amount(61-90 Future Due)
d_amnt4 like bsid-dmbtr, " Amount(91-120 Future Due)
d_amnt5 like bsid-dmbtr, " Amount(more than 120)
due_date like bsid-budat, " Due date
zterm like bsid-zterm, " Payment Terms
vbeln like bsid-vbeln, " Billing Doc
end of it_report.
Declaration of Data and Variables
data: v_days type i, " Difference days
v_waers like t001-waers, " Co.Code Currency
v_sum1 like bsid-dmbtr, " Totals 1
v_sum2 like bsid-dmbtr, " Totals 2
v_sum3 like bsid-dmbtr, " Totals 3
v_sum4 like bsid-dmbtr, " Totals 4
v_sum5 like bsid-dmbtr, " Totals 5
v_sum6 like bsid-dmbtr, " Totals 6
v_sum7 like bsid-dmbtr, " Totals 7
v_sum8 like bsid-dmbe2. " Totals 8
Constants
constants: c_doc_waers(3) value 'USD',
c_mitkz type c value 'D'.
Selection Screen
selection-screen : begin of block b1 with frame title text-001.
parameters: p_bukrs like t001-bukrs obligatory. " Company Code
select-options:s_kunnr for kna1-kunnr, " Customer Number
s_land1 for t005-land1, " Country
s_hkont for skb1-saknr. " G/L Account
parameters: p_date like sy-datum obligatory. " Report Date
selection-screen: end of block b1.
selection-screen : begin of block b2 with frame title text-002.
selection-screen begin of line.
selection-screen comment 2(30) text-003 for field p_rb1.
parameters: p_rb1 radiobutton group rb.
selection-screen end of line.
selection-screen begin of line.
selection-screen comment 2(30) text-004 for field p_rb2.
parameters: p_rb2 radiobutton group rb.
selection-screen end of line.
selection-screen: end of block b2.
selection-screen : begin of block b4 with frame.
selection-screen begin of line.
selection-screen comment 2(29) text-038 for field p_chk1.
parameters: p_chk1 as checkbox.
selection-screen end of line.
selection-screen: end of block b4.
selection-screen : begin of block b3 with frame title text-030.
selection-screen begin of line.
selection-screen comment 2(30) text-031 for field p_rb3.
parameters: p_rb3 radiobutton group rb1.
selection-screen end of line.
selection-screen begin of line.
selection-screen comment 2(30) text-032 for field p_rb4.
parameters: p_rb4 radiobutton group rb1.
selection-screen end of line.
selection-screen: end of block b3.
*********Initialization**********************************************
initialization.
At Selection Screen
at selection-screen.
Checking for the input values of selection screen.
perform screen_check.
Top-Of-Page
top-of-page.
if p_rb3 = 'X'.
if p_chk1 = 'X'.
Write the Column Headings for detailed report(in Doc Currency)
perform col_heading2.
else.
Write the Column Headings for detailed report
perform col_heading.
endif.
else.
Write the Column Headings for summary report
perform col_heading1.
endif.
Start-Of-Selection
start-of-selection.
Get the Customer Open Items from BSID
perform get_open_data.
Get the Customer Closed Items from BSAD
perform get_close_data.
Get the data from BSID,BSAD and KNA1 into one int.table
perform process_data.
End-Of-Selection
end-of-selection.
if it_report[] is initial.
write : 'No Documents found'(005).
else.
if p_rb3 = 'X'.
Write the Detailed Report
perform write_report.
else.
Write the Summary Report
perform write_report1.
endif.
endif.
At Line-Selection
at line-selection.
When double clicked on BELNR leave to transaction FB03
perform line_sel.
*& Form SCREEN_CHECK
Checking for the input values of selection screen
form screen_check.
Validation of Company Code
clear t001.
if not p_bukrs is initial.
select bukrs from t001 up to 1 rows
into t001-bukrs
where bukrs = p_bukrs.
endselect.
if sy-subrc ne 0.
message e000 with 'Invalid Company Code'(006).
endif.
endif.
Validation of Customer Number
clear kna1.
if not s_kunnr is initial.
select kunnr from kna1 up to 1 rows
into kna1-kunnr
where kunnr in s_kunnr.
endselect.
if sy-subrc ne 0.
message e000 with 'Invalid Customer Number'(007).
endif.
endif.
Validation of Country
clear t005.
if not s_land1 is initial.
select land1 from t005 up to 1 rows
into t005-land1
where land1 in s_land1.
endselect.
if sy-subrc ne 0.
message e000 with 'Invalid Country'(036).
endif.
endif.
Validation of GL Account
clear skb1.
if not s_hkont is initial.
select saknr from skb1 up to 1 rows
into skb1-saknr
where saknr in s_hkont and
mitkz = c_mitkz.
endselect.
if sy-subrc ne 0.
message e000 with 'Invalid GL Reconciliation Account'(037).
endif.
endif.
endform. " SCREEN_CHECK
*& Form COL_HEADING
Write the Column Headings for detailed report
form col_heading.
skip .
write: /88 'DEBTOR AGEING REPORT AS AT:'(019) centered,
116 p_date centered, 198 sy-pagno.
skip .
write: /2 'CoCode:'(016),13(4) p_bukrs color 3.
if not s_kunnr is initial.
if not s_kunnr-high is initial.
write: 20 'Customer:'(041),33 s_kunnr-low color 3,
'-', s_kunnr-high color 3.
else.
write: 20 'Customer:'(041),33 s_kunnr-low color 3.
endif.
endif.
if not s_land1 is initial.
if not s_land1-high is initial.
write: /2 'Country:'(042),13(4) s_land1-low color 3,
'-', s_land1-high color 3.
else.
write: /2 'Country:'(042),13(4) s_land1-low color 3.
endif.
if not s_hkont is initial.
if not s_hkont-high is initial.
write: 20 'GL Account:'(043),33 s_hkont-low color 3,
'-', s_hkont-high color 3.
else.
write: 20 'GL Account:'(043),33 s_hkont-low color 3.
endif.
endif.
else.
if not s_hkont is initial.
if not s_hkont-high is initial.
write: /2 'GL Account:'(043),14 s_hkont-low color 3,
'-', s_hkont-high color 3.
else.
write: /2 'GL Account:'(043),14 s_hkont-low color 3.
endif.
endif.
endif.
write: 183 'Run Date:'(029), sy-datum.
format color col_heading.
write at /1(203) sy-uline .
write: / sy-vline, 2(10) 'Customer'(008) centered,
12 sy-vline, 13(30) 'Customer Name'(009),
43 sy-vline, 44(3) 'Cty'(014) centered,
47 sy-vline, 48(15) 'Amount'(013) right-justified,
63 sy-vline, 64(4) 'Curr'(011) centered,
68 sy-vline, 69(15) 'Overdue'(012) centered,
84 sy-vline, 85(15) '0 - 30 Days'(010) centered,
100 sy-vline,101(15) '31 - 60 Days'(028) centered,
116 sy-vline,117(15) '61 - 90 Days'(021) centered,
132 sy-vline,133(15) '91 - 120 Days'(022) centered,
148 sy-vline,149(15) 'Above 120 Days'(023) centered,
164 sy-vline,165(10) 'Due Date'(024) centered,
175 sy-vline,176(5) 'PayT'(025) centered,
181 sy-vline,182(10) 'Bill.Doc.'(026) centered,
192 sy-vline,193(10) 'Doc.No.'(027) centered,
203 sy-vline.
write at /1(203) sy-uline.
format color off.
endform. " COL_HEADING
*& Form COL_HEADING1
Write the Column Headings for summary report
form col_heading1.
skip .
write: /54 'DEBTOR AGEING REPORT (SUMMARY) AS AT:'(033) centered,
92 p_date centered, 158 sy-pagno.
skip .
write: /2 'CoCode:'(016), 13(4) p_bukrs color 3.
if not s_kunnr is initial.
if not s_kunnr-high is initial.
write: 20 'Customer:'(041),33 s_kunnr-low color 3,
'-', s_kunnr-high color 3.
else.
write: 20 'Customer:'(041),33 s_kunnr-low color 3.
endif.
endif.
if not s_land1 is initial.
if not s_land1-high is initial.
write: /2 'Country:'(042),13(4) s_land1-low color 3,
'-', s_land1-high color 3.
else.
write: /2 'Country:'(042),13(4) s_land1-low color 3.
endif.
if not s_hkont is initial.
if not s_hkont-high is initial.
write: 20 'GL Account:'(043),33 s_hkont-low color 3,
'-', s_hkont-high color 3.
else.
write: 20 'GL Account:'(043),33 s_hkont-low color 3.
endif.
endif.
else.
if not s_hkont is initial.
if not s_hkont-high is initial.
write: /2 'GL Account:'(043),14 s_hkont-low color 3,
'-', s_hkont-high color 3.
else.
write: /2 'GL Account:'(043),14 s_hkont-low color 3.
endif.
endif.
endif.
write: 144 'Run Date:'(029), sy-datum.
format color col_heading.
write at /1(164) sy-uline .
write: / sy-vline, 2(10) 'Customer'(008) centered,
12 sy-vline, 13(30) 'Customer Name'(009),
43 sy-vline, 44(3) 'Cty'(014) centered,
47 sy-vline, 48(15) 'Amount'(013) right-justified,
63 sy-vline, 64(4) 'Curr'(011) centered,
68 sy-vline, 69(15) 'Overdue'(012) centered,
84 sy-vline, 85(15) '0 - 30 Days'(010) centered,
100 sy-vline,101(15) '31 - 60 Days'(028) centered,
116 sy-vline,117(15) '61 - 90 Days'(021) centered,
132 sy-vline,133(15) '91 - 120 Days'(022) centered,
148 sy-vline,149(15) 'Above 120 Days'(023) centered,
164 sy-vline.
write at /1(164) sy-uline.
format color off.
endform. " COL_HEADING1
*& Form COL_HEADING2
Write the Column Headings for summary report(in Doc Curr)
form col_heading2.
skip .
write: /99 'DEBTOR AGEING REPORT AS AT:'(019) centered,
127 p_date centered, 220 sy-pagno.
skip .
write: /2 'CoCode:'(016),13(4) p_bukrs color 3.
if not s_kunnr is initial.
if not s_kunnr-high is initial.
write: 20 'Customer:'(041),33 s_kunnr-low color 3,
'-', s_kunnr-high color 3.
else.
write: 20 'Customer:'(041),33 s_kunnr-low color 3.
endif.
endif.
if not s_land1 is initial.
if not s_land1-high is initial.
write: /2 'Country:'(042),13(4) s_land1-low color 3,
'-', s_land1-high color 3.
else.
write: /2 'Country:'(042),13(4) s_land1-low color 3.
endif.
if not s_hkont is initial.
if not s_hkont-high is initial.
write: 20 'GL Account:'(043),33 s_hkont-low color 3,
'-', s_hkont-high color 3.
else.
write: 20 'GL Account:'(043),33 s_hkont-low color 3.
endif.
endif.
else.
if not s_hkont is initial.
if not s_hkont-high is initial.
write: /2 'GL Account:'(043),14 s_hkont-low color 3,
'-', s_hkont-high color 3.
else.
write: /2 'GL Account:'(043),14 s_hkont-low color 3.
endif.
endif.
endif.
write: 204 'Run Date:'(029), sy-datum.
format color col_heading.
write at /1(225) sy-uline .
write: / sy-vline, 2(10) 'Customer'(008) centered,
12 sy-vline, 13(30) 'Customer Name'(009),
43 sy-vline, 44(3) 'Cty'(014) centered,
47 sy-vline, 48(15) 'Amount'(013) right-justified,
63 sy-vline, 64(4) 'Curr'(011) centered,
68 sy-vline, 69(15) 'Overdue'(012) centered,
84 sy-vline, 85(15) '0 - 30 Days'(010) centered,
100 sy-vline,101(15) '31 - 60 Days'(028) centered,
116 sy-vline,117(15) '61 - 90 Days'(021) centered,
132 sy-vline,133(15) '91 - 120 Days'(022) centered,
148 sy-vline,149(15) 'Above 120 Days'(023) centered,
164 sy-vline,165(10) 'Due Date'(024) centered,
175 sy-vline,176(5) 'PayT'(025) centered,
181 sy-vline,182(10) 'Bill.Doc.'(026) centered,
192 sy-vline,193(10) 'Doc.No.'(027) centered,
203 sy-vline,204(16) 'Amount(Doc.Curr)'(039),
220 sy-vline,221(4) 'Curr'(040),
225 sy-vline.
write at /1(225) sy-uline.
format color off.
endform. " COL_HEADING2
*& Form GET_OPEN_DATA
Get the Customer Open Items from BSID
form get_open_data.
select a~kunnr " Customer Number
a~gjahr " Fiscal Year
a~belnr " Acc.Document
a~buzei " Item
a~budat " Posting Date
a~shkzg " Dr/Cr Indicator
a~dmbtr " Amount(Local Curr)
a~wrbtr " Amount(Doc Curr)
a~dmbe2 " Amount(USD)
a~waers " Currency
a~zterm " Payment Terms
a~vbeln " Billing Doc
a~zfbdt " Baseline Date
a~zbd1t " No of days
a~hkont " GL account
b~name1 " Customer Name
b~land1 " Country
into table it_bsid
from bsid as a join kna1 as b
on akunnr = bkunnr
where a~bukrs = p_bukrs and
a~kunnr in s_kunnr and
a~hkont in s_hkont and
b~land1 in s_land1 and
a~budat le p_date.
sort it_bsid by kunnr gjahr belnr buzei budat.
endform. " GET_OPEN_DATA
*& Form GET_CLOSE_DATA
Get the Customer closed Items from BSID
form get_close_data.
select a~kunnr " Customer Number
a~gjahr " Fiscal Year
a~belnr " Acc.Document
a~buzei " Item
a~budat " Posting Date
a~shkzg " Dr/Cr Indicator
a~dmbtr " Amount(Local Curr)
a~wrbtr " Amount(Doc Curr)
a~dmbe2 " Amount(USD)
a~waers " Currency
a~zterm " Payment Terms
a~vbeln " Billing Doc
a~zfbdt " Baseline Date
a~zbd1t " No of days
a~hkont " GL account
b~name1 " Customer Name
b~land1 " Country
into table it_bsad
from bsad as a join kna1 as b
on akunnr = bkunnr
where a~bukrs = p_bukrs and
a~kunnr in s_kunnr and
a~hkont in s_hkont and
b~land1 in s_land1 and
a~augdt > p_date and
a~budat le p_date.
sort it_bsad by kunnr gjahr belnr buzei budat.
endform. " GET_CLOSE_DATA
*& Form PROCESS_DATA
Get the data from BSID,BSAD and KNA1 into one int.table
form process_data.
*Move the data from BSID to final output int table
loop at it_bsid.
move-corresponding it_bsid to it_report.
it_report-due_date = it_bsid-zfbdt + it_bsid-zbd1t.
append it_report.
clear it_report.
endloop.
*Move the data from BSAD to final output int table
loop at it_bsad.
move-corresponding it_bsad to it_report.
it_report-due_date = it_bsad-zfbdt + it_bsad-zbd1t.
append it_report.
clear it_report.
endloop.
sort it_report by kunnr belnr.
loop at it_report.
if it_report-shkzg = 'H'. " Credit
it_report-dmbtr = it_report-dmbtr * -1.
it_report-dmbe2 = it_report-dmbe2 * -1.
endif.
v_days = it_report-due_date - p_date.
For Company Code Currency
if p_rb1 = 'X'.
if v_days le 0.
it_report-due_amnt = it_report-dmbtr.
elseif v_days between 1 and 30.
it_report-d_amnt1 = it_report-dmbtr.
elseif v_days between 31 and 60.
it_report-d_amnt2 = it_report-dmbtr.
elseif v_days between 61 and 90.
it_report-d_amnt3 = it_report-dmbtr.
elseif v_days between 91 and 120.
it_report-d_amnt4 = it_report-dmbtr.
elseif v_days > 120.
it_report-d_amnt5 = it_report-dmbtr.
endif.
For Group Currency
else.
if v_days le 0.
it_report-due_amnt = it_report-dmbe2.
elseif v_days between 1 and 30.
it_report-d_amnt1 = it_report-dmbe2.
elseif v_days between 31 and 60.
it_report-d_amnt2 = it_report-dmbe2.
elseif v_days between 61 and 90.
it_report-d_amnt3 = it_report-dmbe2.
elseif v_days between 91 and 120.
it_report-d_amnt4 = it_report-dmbe2.
elseif v_days > 120.
it_report-d_amnt5 = it_report-dmbe2.
endif.
endif.
modify it_report index sy-tabix.
endloop.
endform. " PROCESS_DATA
*& Form WRITE_REPORT
Write the Detailed Report Output
form write_report.
clear: v_sum1,v_sum2,v_sum3,v_sum4,v_waers,
v_sum5,v_sum6,v_sum7,v_sum8.
loop at it_report.
at new kunnr.
read table it_report index sy-tabix.
write: / sy-vline, 2(10) it_report-kunnr,
12 sy-vline, 13(30) it_report-name1,
43 sy-vline, 44(3) it_report-land1,
47 sy-vline.
endat.
if p_rb1 = 'X'.
select single waers from t001
into v_waers where bukrs = p_bukrs.
write: 1 sy-vline, 12 sy-vline,
43 sy-vline,
47 sy-vline,
48(15) it_report-dmbtr currency it_report-waers,
63 sy-vline, 64(4) v_waers,
68 sy-vline.
else.
write: 1 sy-vline, 12 sy-vline,
43 sy-vline,
47 sy-vline,
48(15) it_report-dmbe2 currency it_report-waers,
63 sy-vline,64(4) c_doc_waers,
68 sy-vline.
endif.
write: 69(15) it_report-due_amnt currency it_report-waers,
84 sy-vline,
85(15) it_report-d_amnt1 currency it_report-waers,
100 sy-vline,
101(15) it_report-d_amnt2 currency it_report-waers,
116 sy-vline,
117(15) it_report-d_amnt3 currency it_report-waers,
132 sy-vline,
133(15) it_report-d_amnt4 currency it_report-waers,
148 sy-vline,
149(15) it_report-d_amnt5 currency it_report-waers,
164 sy-vline,165(10) it_report-due_date,
175 sy-vline,176(5) it_report-zterm,
181 sy-vline,182(10) it_report-vbeln,
192 sy-vline,193(10) it_report-belnr,
203 sy-vline.
if p_chk1 = 'X'.
write: 204(16) it_report-wrbtr currency it_report-waers,
220 sy-vline, 221(4) it_report-waers,
225 sy-vline.
endif.
new-line.
Totals for end of each Customer
at end of kunnr.
if p_chk1 = 'X'.
write at /1(225) sy-uline.
else.
write at /1(203) sy-uline.
endif.
sum.
format color 4.
if p_rb1 = 'X'.
write: /1 sy-vline, 2 'Total:'(015),
12 sy-vline,
13(10) it_report-kunnr,
43 sy-vline,47 sy-vline,
48(15) it_report-dmbtr currency it_report-waers,
63 sy-vline, 64(3) v_waers,
68 sy-vline,
69(15) it_report-due_amnt currency it_report-waers,
84 sy-vline,
85(15) it_report-d_amnt1 currency it_report-waers,
100 sy-vline,
101(15) it_report-d_amnt2 currency it_report-waers,
116 sy-vline,
117(15) it_report-d_amnt3 currency it_report-waers,
132 sy-vline,
133(15) it_report-d_amnt4 currency it_report-waers,
148 sy-vline,
149(15) it_report-d_amnt5 currency it_report-waers,
164 sy-vline, 175 sy-vline,
181 sy-vline, 192 sy-vline,
203 sy-vline.
if p_chk1 = 'X'.
write: 220 sy-vline, 225 sy-vline.
endif.
else.
write: /1 sy-vline, 2 'Total:'(015),
12 sy-vline,
13(10) it_report-kunnr,
43 sy-vline,
47 sy-vline,
48(15) it_report-dmbe2 currency it_report-waers,
63 sy-vline, 64(3) c_doc_waers,
68 sy-vline,
69(15) it_report-due_amnt currency it_report-waers,
84 sy-vline,
85(15) it_report-d_amnt1 currency it_report-waers,
100 sy-vline,
101(15) it_report-d_amnt2 currency it_report-waers,
116 sy-vline,
117(15) it_report-d_amnt3 currency it_report-waers,
132 sy-vline,
133(15) it_report-d_amnt4 currency it_report-waers,
148 sy-vline,
149(15) it_report-d_amnt5 currency it_report-waers,
164 sy-vline, 175 sy-vline,
181 sy-vline, 192 sy-vline,
203 sy-vline.
if p_chk1 = 'X'.
write: 220 sy-vline, 225 sy-vline.
endif.
endif.
format color off.
if p_chk1 = 'X'.
write at /1(225) sy-uline.
else.
write at /1(203) sy-uline.
endif.
endat.
v_sum1 = v_sum1 + it_report-dmbtr.
v_sum2 = v_sum2 + it_report-due_amnt.
v_sum3 = v_sum3 + it_report-d_amnt1.
v_sum4 = v_sum4 + it_report-d_amnt2.
v_sum5 = v_sum5 + it_report-d_amnt3.
v_sum6 = v_sum6 + it_report-d_amnt4.
v_sum7 = v_sum7 + it_report-d_amnt5.
v_sum8 = v_sum8 + it_report-dmbe2.
Hiding the Acc doc no for interactic screen.
hide it_report-belnr.
hide it_report-budat.
clear:it_report-belnr, it_report-budat.
endloop.
Grand Totals for all customers
format color 3.
write: /1 sy-vline, 2 'Gr.Total'(034),
12 sy-vline,13 'As At:'(035),p_date,
43 sy-vline,
47 sy-vline.
For Company Code Currency
if p_rb1 = 'X'.
write: 48(15) v_sum1 currency it_report-waers,
63 sy-vline, 64(4) v_waers,
68 sy-vline.
For Group Currency (USD)
else.
write: 48(15) v_sum8 currency it_report-waers,
63 sy-vline, 64(3) c_doc_waers,
68 sy-vline.
endif.
write: 69(15) v_sum2 currency it_report-waers,
84 sy-vline,
85(15) v_sum3 currency it_report-waers,
100 sy-vline,
101(15) v_sum4 currency it_report-waers,
116 sy-vline,
117(15) v_sum5 currency it_report-waers,
132 sy-vline,
133(15) v_sum6 currency it_report-waers,
148 sy-vline,
149(15) v_sum7 currency it_report-waers,
164 sy-vline, 175 sy-vline,
181 sy-vline, 192 sy-vline,
203 sy-vline.
if p_chk1 = 'X'.
write: 220 sy-vline, 225 sy-vline.
endif.
format color off.
if p_chk1 = 'X'.
write at /1(225) sy-uline.
else.
write at /1(203) sy-uline.
endif.
endform. " WRITE_REPORT
*& Form WRITE_REPORT1
Write the Summary Report Output
form write_report1.
clear: v_sum1,v_sum2,v_sum3,v_sum4,v_waers,
v_sum5,v_sum6,v_sum7,v_sum8.
loop at it_report.
at new kunnr.
read table it_report index sy-tabix.
write: / sy-vline, 2(10) it_report-kunnr,
12 sy-vline, 13(30) it_report-name1,
43 sy-vline, 44(3) it_report-land1,
47 sy-vline.
endat.
at end of kunnr.
sum.
if p_rb1 = 'X'.
select single waers from t001
into v_waers where bukrs = p_bukrs.
write: 1 sy-vline, 12 sy-vline,
43 sy-vline, 47 sy-vline,
48(15) it_report-dmbtr currency it_report-waers,
63 sy-vline, 64(4) v_waers,
68 sy-vline,
69(15) it_report-due_amnt currency it_report-waers,
84 sy-vline,
85(15) it_report-d_amnt1 currency it_report-waers,
100 sy-vline,
101(15) it_report-d_amnt2 currency it_report-waers,
116 sy-vline,
117(15) it_report-d_amnt3 currency it_report-waers,
132 sy-vline,
133(15) it_report-d_amnt4 currency it_report-waers,
148 sy-vline,
149(15) it_report-d_amnt5 currency it_report-waers,
164 sy-vline.
else.
write: 1 sy-vline, 12 sy-vline,
43 sy-vline, 47 sy-vline,
48(15) it_report-dmbe2 currency it_report-waers,
63 sy-vline, 64(4) c_doc_waers,
68 sy-vline,
69(15) it_report-due_amnt currency it_report-waers,
84 sy-vline,
85(15) it_report-d_amnt1 currency it_report-waers,
100 sy-vline,
101(15) it_report-d_amnt2 currency it_report-waers,
116 sy-vline,
117(15) it_report-d_amnt3 currency it_report-waers,
132 sy-vline,
133(15) it_report-d_amnt4 currency it_report-waers,
148 sy-vline,
149(15) it_report-d_amnt5 currency it_report-waers,
164 sy-vline.
endif.
write at /1(164) sy-uline.
endat.
Totals
v_sum1 = v_sum1 + it_report-dmbtr.
v_sum2 = v_sum2 + it_report-due_amnt.
v_sum3 = v_sum3 + it_report-d_amnt1.
v_sum4 = v_sum4 + it_report-d_amnt2.
v_sum5 = v_sum5 + it_report-d_amnt3.
v_sum6 = v_sum6 + it_report-d_amnt4.
v_sum7 = v_sum7 + it_report-d_amnt5.
v_sum8 = v_sum8 + it_report-dmbe2.
Hiding the Acc doc no for interactic screen.
hide it_report-belnr.
hide it_report-budat.
clear: it_report-belnr,
it_report-budat.
endloop.
Calculation of Grand Totals
format color 3.
write: /1 sy-vline, 2 'Gr.Total'(034),
12 sy-vline,13 'As At:'(035),p_date,
43 sy-vline,
47 sy-vline.
For Company Code Currency
if p_rb1 = 'X'.
write: 48(15) v_sum1 currency it_report-waers,
63 sy-vline, 64(4) v_waers,
68 sy-vline.
For Group Currency (USD)
else.
write: 48(15) v_sum8 currency it_report-waers,
63 sy-vline, 64(3) c_doc_waers,
68 sy-vline.
endif.
write: 69(15) v_sum2 currency it_report-waers,
84 sy-vline,
85(15) v_sum3 currency it_report-waers,
100 sy-vline,
101(15) v_sum4 currency it_report-waers,
116 sy-vline,
117(15) v_sum5 currency it_report-waers,
132 sy-vline,
133(15) v_sum6 currency it_report-waers,
148 sy-vline,
149(15) v_sum7 currency it_report-waers,
164 sy-vline.
format color off.
write at /1(164) sy-uline.
endform. " WRITE_REPORT1
*& Form LINE_SEL
When double clicked on BELNR leave to transaction FB03
form line_sel.
data: lv_field(20),
lv_value(10),
lv_date(10),
lv_gjahr like bsad-gjahr.
get cursor field lv_field value lv_value.
if lv_field = 'IT_REPORT-BELNR'.
if not lv_value is initial.
read current line field value it_report-budat into lv_date.
lv_gjahr = lv_date+6(4).
set parameter id 'BUK' field p_bukrs.
set parameter id 'GJR' field lv_gjahr.
set parameter id 'BLN' field lv_value.
call transaction 'FB03' and skip first screen.
endif.
endif.
endform. " LINE_SEL
reward points if useful
regards,
Anji -
Field Status control for fields at Account assignment level .
Hi All ,
I have to take care of enabling / disabling / hiding / making fields mandatory for some of the standard and custom fields for SC and PO depending on the Account assignment value .
I am not sure how to go about this .
I think this has to do something with the field status control .
SPRO -> IMG -> SRM sever -> cross application basic settings -> extension and field control ( personalization ) -> Configure control for fields of substructure .
I think i have to define some dyn class and also methods .
But not sure how to move ahead , how to declare class / methods , which super class to use , how will i get the req parameters for the methods , ...
Will appreciate a lot if somebody can guide me on this .
Regards,
Ambar Patil.Hi ,
Check in SPRO for SRM -> Extensions and Field Control (Personalization) -> Configure Field Control.
The metadata configuration for enabling disabling actions/fields in SRM can be checked from the tables
This contains the data for all the business objects
Check in SM30 the following views:
/SAPSRM/V_MDA_HD for Header actions
/SAPSRM/V_MDA_IT for Item Actions
/SAPSRM/V_MDF_HD for header fields
/SAPSRM/V_MDF_IT fir IT fields.
You can customize your logic for enabling diabling the actions or fields by maintaining the entries in the corresponding customer views for this data
for e.g.
/SAPSRM/V_MDF_HC for header customer fields
/SAPSRM/V_MDF_IC for item customer fields
You need to maintain field enabled, disabled ,required based on your requirement.
Regards,
Neeraj -
CPH Reports for Status Attribute.
Using Central performance History (RZ23n), is it possible to create reports for Status attributes?
Eg: I want to create for number of abap dumps, dead locks for each day.
As per documentation it says we can create for performance values and we are able to create CPH reports for R3Dialog Response time...
http://help.sap.com/saphelp_nw70/helpdata/en/c2/49773dd1210968e10000000a114084/content.htm
Any help or ideas are appreciated.
Thanks,
Venkat.Thank you Shyam for so prompt reply,
We are using the same report. But its bit uneasy to go to change document of each and every ticket. Also in this report we could not find how much days the notification lay in New status or in In-process status. We require somewhat in following format.
Ticket number New Customer action In-process
000001 1Day 1.3 Days 1 Day
000002 1.3 Days 2.3 Days 1 Day
000003 3 Days 3.4 Days 1 Day
We are not bothered about days, week or hours etc. The purpose is to indentify how much time every ticket took stage wise. May be through ABAP this possible but we are looking for standard reports.
Thanks
Anand Rao -
GL accounts- field status group table
Hi guys,
any idea whether there is a table that contains data about field status for the GL accounts similar to T082 for assets?
Thanks and regards
StefanHi Stefan,
Why, yes It's a structured field where every sign represens 'hidden' 'mandatory' 'optional' values for the fields in question. The fields are arranged in the same order as in the customization view V_T004F. However, I'd agree that it's rather difficult to read this table...
Regards,
Eli -
List of Field information in Field status group
Hello guys,
I'm trying to build a list for several fields when creating a document to see what status (obligatory, disabled, etc.) the field got in several field status groups.
So the result should look like:
Field Status Variant
Field Status Group
Field
Status
0000
PH01
ZUONR
Obligatory
0000
PH02
ZUONR
Disabled
0001
PH01
ZUONR
Obligatory
0001
PH03
ZUONR
Optional
So I was doing some research here how to get this and I think I almost made it but some final information are not that clear at the moment.
(1) I read table T004F for getting the pattern of field status group with help of field status variant of company code (T001) and field status group of account (SKB1).
(2) Then I'm doing convert routine for '+.*' pattern and then know which field position got which status.
(3) Then I'm trying to match the status with the fields with help of tables TMODF, TMODG, TMODO, TMODP and TMODU, but I am not quite sure how to make it.
E.g. with help of tables TMODO and TMODP I can find the information which field is which position but it is only about the description of the field, not the technical fieldname. So I also got table TMODU with the technical fieldnames, but there I got several information for one field depending on account type (vendor, account, customer, ...). So which is the right one? Always 'account' even if it is reconciliation account for vendor? And which is the right FAUNA field information? Always 'SKB1-FAUS1' or where do I know which one to take?
The other way I tried is with function FI_GET_FIELD_SELECTION_STRING to get the pattern. This one depends on posting key to get the pattern. So where is the difference between this one and the manual select in table T004F without posting key?
Thanks a lot for your help! :-)
Regards
MichaelGerd,
Have you tried txn SE41?
I had to do something similar with tab descriptions for Leads and used SE41.
I needed to know the program name or search for it. In my case it was SAPLCRM_ACTIVITY_UI then select the radio button 'Function List'.
Then when in the list you can change the headings.
Activate it then the new descriptions are available.
Regards
David -
Inspecting report field position properties
All,
Does a way exist to inspect a report fields properties within CR script used in a formula. I know about using code withing the X+2 buttons in the layout tool, but would like to know in a formula what the position and width of any arbitrary report field in the detail band might be.
thanks,
pfThanks for responding. I need to do this at run time.
1) Suppose I had 25 columns and each was associated with a boolean report parameter that allowed the user to toggle columns off and on.
2) Further suppose the user decided that she does not need columns 7, 12, and 20.
I want to do the following:
1) suppress columns 7,12,20 (this is easy)
2) move the remaining columns 8 and greater the appropriate twips to the left.
I can do all this now but I must "hard code" the field position into a string with delimiters which I later split into an array to use in determining the x offset (if any) for each unsuppressed column. Life would be easier if one could just inspect the X position of any field. Please let me know if this helps in understanding the problem.
pf -
Working/Join with Two Reports field
Hey Folks,
I have read couple of post and kind of confused. I have two reports and each have their column total at the bottom(Sum).
Now on my first report i have to add my first report col1_total+second report col1_total and get my grand total.
SO, my question is how can add or call or join that second report field to my first report field and get my grand total?
I have read about Data Link Object but i wasnt sure about it. So, please give me some direction/advice. That would be greate.
ThankThankx but i never used two query to gether.
so basically, you want me to put second query and join it to gether...or...can you explain me little bit. Can you give me small step where i can get closer where you mention to use the same query.
Thanx -
Any body can give the configuration settings or full details about Field Status Varient.... and Field Status Group....
Why it is required to be configured...in the system...?Hi
TCode to be used-OBC4
For each category of general ledger account, e.g., cash accounts, expense accounts, you need to determine the status of every document entry field.
Eg.,Will text be required, suppressed or optional for document entry when using these GL accounts? Will cost center be required, suppressed or optional for document entry when using these GL accounts? Etc. etc.
These rules are grouped into field status groups for each category of general ledger accounts.Field status groups are assigned on the respective general ledger master records.The field status groups are collected under one field status variant.
The field status variant is assigned to company code(s). No posting can be made until this is complete.
Thanks,
Usha.
Maybe you are looking for
-
The hinge between my screen and my computer (macbook pro retina) has cracked and doesn't hold the screen anymore. Can I fix it without changing my screen. And if it's still on guarantee does Apple have to repair it?
-
How do I create forms from a scan document
I work with scans and regular pdf docs which require text boxes to be placed and then text added. Some of the text is repetitive like Name and Address etc but some maybe unique like price and quantity. How do I create a form so all blank spaces or un
-
Commited Date in Delivery Schedule of a PO
Hi All, I have created a PO for a country XX to a Country YY I have defined a Route from XX to YY with a transit time of 5 days and also factory calendar of XX as calendar. When i create a PO from XX to YY , in Delivery Schedule of the PO , i see the
-
Ipod touch software version 3.1.1
I installed this software today but it wiped all of the music from the library on my ipod and now it will not sync. The error message is "cannot sync ipod unknown error occurred (13019)". The music is still on my itunes. Has anyone else experienced t
-
Hi Friends, I am quite new of Java Studio Creator and finding trouble with passing parameters using RequestBean. Scenario: I have two pages Verticals.jsp & Horizontals.jsp Verticals.jsp contains a table with data coming from SQL Server with two field