ABAP Help: Want to add existing field in Output of report KOB1
I want to add an existing field in report KOB1. In SM34 in view V_TKALV there is structure KAEP_COAC which has a field PERNR. I want to add this field on the output of the report. Can somebody give the steps in SM34 only to display it on the report.
Thanks,
how did you do it?
Similar Messages
-
Regarding rental object-I want to add some fields in output list?
Hi,
I am creating Ze program of transaction REISROOC.I want to add some fields in the output list .
here logical database is used & for adding some fields i need to write Select query.
how n where should i add this query?
can anyone help me????
Thanks,
vaishaliSolved
Edited by: vaishali patil on Mar 2, 2009 1:32 PM -
How to add more fields to Customer sales report
I want to add some fields to customer sales report generating through S_ALR_87012186 like,Invoice number,Invoice date,Tax registration number,tax amount,before tax amount..etc.
Please let us know the best possible method to add these details.It is not suggested to alter a standard SAP report. Still if the requirement persists, then copy the standard program into a zprogram and add required fields.
-
Want to add OBTYP field in existing filtergroup in BD64
Hi Guru's,
I want to add OBTYP field in existing filtergroup in BD64 can any one help me in this regard.Hi......
Check these links :
http://help.sap.com/saphelp_nw70/helpdata/EN/ae/d4712d2cad43ffb56f82733a560c3d/content.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/01/3b15301edf48169f91ec2b5b0cbe2c/frameset.htm
It may help you.......
Regards,
Debjani..... -
I want to add some fields in the report of FBL5N, Can anybody tell me how ?
I want to add some fields in the report of FBL5N, Can anybody tell me how to do it?
The fields are sales order, delivery, order quantity, net value and others.
I can only find the shipment number in FI document.
Thank you very much.Dear Jie,
Billing document number can be displayed in customer line item display
(FBL5N) and not in G/L line item display (FBL3N).
The value of VBELN is saved in table BSEG. So, this means, you
have to define the field BSEG-VBELN as a special field in table
T021S. Then you can use it in FBL3N, because then the report looks
directly in BSEG-VBELN.
For further information,please read the SAP note 207436. You don't have to
implement the coding corrections, if they are already in your system
with the hotpackage. But it explains very detailed the system
behaviour. The example in the note with field EBELN could be
replicated on your field VBELN.
About the MEINS field, please refer to 1-U_MEINS (bseg-meins field).
The SAP note 215798 may also be helpful.
Mauri -
I want to add new field to this list
hi all,
i want to add new field to this list.
kostenstelle from table zfmkstel
*& Report ZFM_MOBLIST *
REPORT ZFM_MOBLIST.
TABLES: zfm_handy , pa0002.
TYPE-POOLS : slis.
DATA: g_repid LIKE sy-repid,
gs_print TYPE slis_print_alv,
gt_list_top_of_page TYPE slis_t_listheader,
gt_list_end_of_page TYPE slis_t_listheader,
gt_events TYPE slis_t_event,
gt_sort TYPE slis_t_sortinfo_alv,
gs_layout TYPE slis_layout_alv,
gt_fieldcat TYPE slis_t_fieldcat_alv,
fieldcat_ln LIKE LINE OF gt_fieldcat,
col_pos TYPE i.
*DATA : BEGIN OF it_moblist OCCURS 0.
INCLUDE STRUCTURE zfm_handy.
*DATA : nachn TYPE pa0002-nachn,
vorna TYPE pa0002-vorna,
END OF it_moblist.
DATA : BEGIN OF IT_MOBLIST OCCURS 0,
TELNUM TYPE ZFM_HANDY-TELNUM,
KARTNR TYPE ZFM_HANDY-KARTNR,
ZUTART TYPE ZFM_HANDY-ZUTART,
PERNR TYPE ZFM_HANDY-PERNR,
nachn TYPE pa0002-nachn,
VORNA TYPE pa0002-vorna,
ZDATE TYPE ZFM_HANDY-ZDATE,
PINNR TYPE ZFM_HANDY-PINNR,
PUKNR TYPE ZFM_HANDY-PUKNR,
TARIF1 TYPE ZFM_HANDY-TARIF1,
TARIF2 TYPE ZFM_HANDY-TARIF2,
TARIF3 TYPE ZFM_HANDY-TARIF3,
GTYPE TYPE ZFM_HANDY-GTYPE,
IMEI TYPE ZFM_HANDY-TARIF1,
twincard type zfm_handy-twincard,
twinbill type zfm_handy-twinbill,
einbau type zfm_handy-einbau,
beschr type zfm_handy-beschr,
text1 type zfm_handy-text1,
text2 type zfm_handy-text2,
text3 type zfm_handy-text3,
end of it_moblist.
DATA : BEGIN OF IT_zfm_handy OCCURS 0,
TELNUM TYPE ZFM_HANDY-TELNUM,
KARTNR TYPE ZFM_HANDY-KARTNR,
ZUTART TYPE ZFM_HANDY-ZUTART,
PERNR TYPE ZFM_HANDY-PERNR,
ZDATE TYPE ZFM_HANDY-ZDATE,
PINNR TYPE ZFM_HANDY-PINNR,
PUKNR TYPE ZFM_HANDY-PUKNR,
TARIF1 TYPE ZFM_HANDY-TARIF1,
TARIF2 TYPE ZFM_HANDY-TARIF2,
TARIF3 TYPE ZFM_HANDY-TARIF3,
GTYPE TYPE ZFM_HANDY-GTYPE,
IMEI TYPE ZFM_HANDY-TARIF1,
twincard type zfm_handy-twincard,
twinbill type zfm_handy-twinbill,
einbau type zfm_handy-einbau,
beschr type zfm_handy-beschr,
text1 type zfm_handy-text1,
text2 type zfm_handy-text2,
text3 type zfm_handy-text3,
end of it_zfm_handy.
*DATA : BEGIN OF it_zfm_handy OCCURS 0.
INCLUDE STRUCTURE zfm_handy.
*DATA END OF it_zfm_handy.
DATA : BEGIN OF it_pa0002 OCCURS 0,
pernr TYPE pa0002-pernr,
nachn TYPE pa0002-nachn,
vorna TYPE pa0002-vorna,
pernr TYPE pa0002-pernr,
END OF it_pa0002.
INITIALIZATION.
g_repid = sy-repid.
PERFORM print_build USING gs_print. "Print PARAMETERS
START-OF-SELECTION.
PERFORM data_selection.
PERFORM build_fieldcat.
PERFORM eventtab_build CHANGING gt_events.
PERFORM comment_build CHANGING gt_list_top_of_page.
PERFORM call_alv.
*& Form TOP_OF_PAGE
FORM top_of_page.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = gt_list_top_of_page.
WRITE: sy-datum, 'Page No', sy-pagno RIGHT-JUSTIFIED.
ENDFORM. "TOP_OF_PAGE
*& Form END_OF_PAGE
FORM end_of_page.
WRITE: /.
WRITE AT (sy-linsz) sy-pagno CENTERED.
ENDFORM. "END_OF_PAGE
### PRINT SETTINGS
FORM print_build USING ls_print TYPE slis_print_alv.
ls_print-print = ' '. "PRINT IMMEDIATE
ls_print-no_print_selinfos = 'X'. "NO SELECTION INFO
ls_print-no_coverpage = ' '. "NO COVER PAGE
ls_print-no_new_page = ' '. "NO NEW PAGE
ls_print-no_print_listinfos = 'X'. "NO PRINT LIST INFO
ls_print-reserve_lines = 2. " FOOTERLINE
ENDFORM. "PRINT_BUILD
*& Form data_selection
text
--> p1 text
<-- p2 text
FORM data_selection .
data : n(8) type n.
SELECT * FROM
zfm_handy
INTO CORRESPONDING FIELDS OF TABLE it_zfm_handy where pernr ne space.
IF NOT it_zfm_handy[] IS INITIAL.
loop at it_zfm_handy.
n = it_zfm_handy-pernr.
it_zfm_handy-pernr = n.
modify it_zfm_handy.
endloop.
SELECT pernr nachn
vorna
FROM pa0002
INTO TABLE it_pa0002
FOR ALL ENTRIES IN it_zfm_handy
WHERE pernr = it_zfm_handy-pernr and endda = '99991231'.
SELECT pernr nachn
vorna
FROM pa0002
INTO TABLE it_pa0002
FOR ALL ENTRIES IN it_zfm_handy
WHERE pernr = it_zfm_handy-pernr and begda le sy-datum and endda ge sy-datum.
ENDIF. " not it_zfm_handy
LOOP AT it_zfm_handy.
MOVE-CORRESPONDING it_zfm_handy TO it_moblist.
clear it_pa0002.
READ TABLE it_pa0002 WITH KEY pernr = it_zfm_handy-pernr.
if sy-subrc = 0.
move it_pa0002-nachn to it_moblist-nachn.
move it_pa0002-vorna to it_moblist-vorna.
move it_pa0002-pernr to it_moblist-pernr.
ENDIF.
APPEND it_moblist.
CLEAR it_moblist.
*endif.
ENDLOOP.
ENDFORM. " data_selection
*& Form BUILD
text
--> p1 text
<-- p2 text
FORM build_fieldcat .
Explain Field Description to ALV
DATA: fieldcat_in TYPE slis_fieldcat_alv.
CLEAR fieldcat_in.
fieldcat_ln-fieldname = 'TELNUM'.
fieldcat_ln-tabname = 'IT_MOBLIST'.
fieldcat_ln-no_out = ' '.
fieldcat_ln-seltext_l = 'TELNUM'.
APPEND fieldcat_ln TO gt_fieldcat.
CLEAR fieldcat_in.
fieldcat_ln-fieldname = 'KARTNR'.
fieldcat_ln-tabname = 'IT_MOBLIST'.
fieldcat_ln-no_out = ' '.
fieldcat_ln-seltext_l = 'KARTNR'.
APPEND fieldcat_ln TO gt_fieldcat.
CLEAR fieldcat_in.
fieldcat_ln-fieldname = 'ZUTART'.
fieldcat_ln-tabname = 'IT_MOBLIST'.
fieldcat_ln-no_out = ' '.
fieldcat_ln-seltext_l = 'ZUTART'.
APPEND fieldcat_ln TO gt_fieldcat.
CLEAR fieldcat_in.
fieldcat_ln-fieldname = 'PERNR'.
fieldcat_ln-tabname = 'IT_MOBLIST'.
fieldcat_ln-no_out = ' '.
fieldcat_ln-seltext_l = 'PERNR'.
APPEND fieldcat_ln TO gt_fieldcat.
CLEAR fieldcat_in.
fieldcat_ln-fieldname = 'NACHN'.
fieldcat_ln-tabname = 'IT_MOBLIST'.
fieldcat_ln-no_out = ' '.
fieldcat_ln-seltext_l = 'NACHN'.
APPEND fieldcat_ln TO gt_fieldcat.
CLEAR fieldcat_in.
fieldcat_ln-fieldname = 'VORNA'.
fieldcat_ln-tabname = 'IT_MOBLIST'.
fieldcat_ln-no_out = ' '.
fieldcat_ln-seltext_l = 'VORNA'.
APPEND fieldcat_ln TO gt_fieldcat.
CLEAR fieldcat_in.
fieldcat_ln-fieldname = 'ZDATE'.
fieldcat_ln-tabname = 'IT_MOBLIST'.
fieldcat_ln-no_out = ' '.
fieldcat_ln-seltext_l = 'ZDATE'.
APPEND fieldcat_ln TO gt_fieldcat.
CLEAR fieldcat_in.
fieldcat_ln-fieldname = 'PINNR'.
fieldcat_ln-tabname = 'IT_MOBLIST'.
fieldcat_ln-no_out = ' '.
fieldcat_ln-seltext_l = 'PINNR'.
APPEND fieldcat_ln TO gt_fieldcat.
CLEAR fieldcat_in.
fieldcat_ln-fieldname = 'PUKNR'.
fieldcat_ln-tabname = 'IT_MOBLIST'.
fieldcat_ln-no_out = ' '.
fieldcat_ln-seltext_l = 'PUKNR'.
APPEND fieldcat_ln TO gt_fieldcat.
CLEAR fieldcat_in.
fieldcat_ln-fieldname = 'TARIF1'.
fieldcat_ln-tabname = 'IT_MOBLIST'.
fieldcat_ln-no_out = ' '.
fieldcat_ln-seltext_l = 'TARIF1'.
APPEND fieldcat_ln TO gt_fieldcat.
CLEAR fieldcat_in.
fieldcat_ln-fieldname = 'TARIF2'.
fieldcat_ln-tabname = 'IT_MOBLIST'.
fieldcat_ln-no_out = ' '.
fieldcat_ln-seltext_l = 'TARIF2'.
APPEND fieldcat_ln TO gt_fieldcat.
CLEAR fieldcat_in.
fieldcat_ln-fieldname = 'TARIF3'.
fieldcat_ln-tabname = 'IT_MOBLIST'.
fieldcat_ln-no_out = ' '.
fieldcat_ln-seltext_l = 'TARIF3'.
APPEND fieldcat_ln TO gt_fieldcat.
CLEAR fieldcat_in.
fieldcat_ln-fieldname = 'GTYPE'.
fieldcat_ln-tabname = 'IT_MOBLIST'.
fieldcat_ln-no_out = ' '.
fieldcat_ln-seltext_l = 'GTYPE'.
APPEND fieldcat_ln TO gt_fieldcat.
CLEAR fieldcat_in.
fieldcat_ln-fieldname = 'IMEI'.
fieldcat_ln-tabname = 'IT_MOBLIST'.
fieldcat_ln-no_out = ' '.
fieldcat_ln-seltext_l = 'IMEI'.
APPEND fieldcat_ln TO gt_fieldcat.
CLEAR fieldcat_in.
fieldcat_ln-fieldname = 'TWINCARD'.
fieldcat_ln-tabname = 'IT_MOBLIST'.
fieldcat_ln-no_out = ' '.
fieldcat_ln-seltext_l = 'TWINCARD'.
APPEND fieldcat_ln TO gt_fieldcat.
CLEAR fieldcat_in.
fieldcat_ln-fieldname = 'TWINBILL'.
fieldcat_ln-tabname = 'IT_MOBLIST'.
fieldcat_ln-no_out = ' '.
fieldcat_ln-seltext_l = 'TWINBILL'.
APPEND fieldcat_ln TO gt_fieldcat.
CLEAR fieldcat_in.
fieldcat_ln-fieldname = 'EINBAU'.
fieldcat_ln-tabname = 'IT_MOBLIST'.
fieldcat_ln-no_out = ' '.
fieldcat_ln-seltext_l = 'EINBAU'.
APPEND fieldcat_ln TO gt_fieldcat.
CLEAR fieldcat_in.
fieldcat_ln-fieldname = 'BESCHR'.
fieldcat_ln-tabname = 'IT_MOBLIST'.
fieldcat_ln-no_out = ' '.
fieldcat_ln-seltext_l = 'BESCHR'.
APPEND fieldcat_ln TO gt_fieldcat.
CLEAR fieldcat_in.
fieldcat_ln-fieldname = 'TEXT1'.
fieldcat_ln-tabname = 'IT_MOBLIST'.
fieldcat_ln-no_out = ' '.
fieldcat_ln-seltext_l = 'TEXT1'.
APPEND fieldcat_ln TO gt_fieldcat.
CLEAR fieldcat_in.
fieldcat_ln-fieldname = 'TEXT2'.
fieldcat_ln-tabname = 'IT_MOBLIST'.
fieldcat_ln-no_out = ' '.
fieldcat_ln-seltext_l = 'TEXT2'.
APPEND fieldcat_ln TO gt_fieldcat.
CLEAR fieldcat_in.
fieldcat_ln-fieldname = 'TEXT3'.
fieldcat_ln-tabname = 'IT_MOBLIST'.
fieldcat_ln-no_out = ' '.
fieldcat_ln-seltext_l = 'TEXT3'.
APPEND fieldcat_ln TO gt_fieldcat.
DATA SORTING
DATA: gs_sort TYPE slis_sortinfo_alv.
CLEAR gs_sort.
gs_sort-fieldname = 'TELNUM'.
gs_sort-spos = 1.
gs_sort-up = 'X'.
GS_SORT-SUBTOT = 'X'.
APPEND gs_sort TO gt_sort.
CLEAR GS_SORT.
GS_SORT-FIELDNAME = 'KARTNR'.
GS_SORT-SPOS = 2.
GS_SORT-UP = 'X'.
*GS_SORT-SUBTOT = 'X'.
APPEND gs_sort TO gt_sort.
ENDFORM. " BUILD
*& Form EVENTTAB_BUILD
text
<--P_GT_EVENTS text
FORM eventtab_build CHANGING lt_events TYPE slis_t_event.
CONSTANTS:
gc_formname_top_of_page TYPE slis_formname VALUE 'TOP_OF_PAGE',
gc_formname_end_of_page TYPE slis_formname VALUE 'END_OF_PAGE'.
DATA: ls_event TYPE slis_alv_event.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = lt_events.
READ TABLE lt_events WITH KEY name = slis_ev_top_of_page
INTO ls_event.
IF sy-subrc = 0.
MOVE gc_formname_top_of_page TO ls_event-form.
APPEND ls_event TO lt_events.
ENDIF.
define END_OF_PAGE event
READ TABLE lt_events WITH KEY name = slis_ev_end_of_page
INTO ls_event.
IF sy-subrc = 0.
MOVE gc_formname_end_of_page TO ls_event-form.
APPEND ls_event TO lt_events.
ENDIF.
ENDFORM. " EVENTTAB_BUILD
*& Form COMMENT_BUILD
text
<--P_GT_LIST_TOP_OF_PAGE text
FORM comment_build CHANGING gt_top_of_page TYPE slis_t_listheader.
DATA: gs_line TYPE slis_listheader.
DATA: today_date(10) TYPE c.
CONCATENATE
sy-datum+6(2) '.'
sy-datum+4(2) '.'
sy-datum(4) INTO today_date.
CLEAR gs_line.
gs_line-typ = 'H'.
gs_line-info = 'MOBLIST DETAILS'.
APPEND gs_line TO gt_top_of_page.
CLEAR gs_line.
gs_line-typ = 'S'.
gs_line-key = 'Date:'.
gs_line-info = today_date.
APPEND gs_line TO gt_top_of_page.
GS_LINE-KEY = 'User:'.
GS_LINE-INFO = sy-uname.
APPEND gs_line TO gt_top_of_page.
CLEAR gs_line.
gs_line-typ = 'A'.
gs_line-info = 'ACTION'.
APPEND gs_line TO gt_top_of_page.
ENDFORM. " COMMENT_BUILD
*& Form CALL_ALV
text
--> p1 text
<-- p2 text
FORM call_alv .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
is_layout = gs_layout
it_fieldcat = gt_fieldcat
it_sort = gt_sort
it_events = gt_events
is_print = gs_print
TABLES
t_outtab = IT_MOBLIST
EXCEPTIONS
program_error = 1
OTHERS = 2.
ENDFORM. "CALL_ALV.Hi,
add:
1) to IT_MOBLIST
text3 type zfm_handy-text3,
kostl type csks-kostl,
end of it_moblist.
2)...
CLEAR fieldcat_in.
fieldcat_ln-fieldname = 'KOSTL'.
fieldcat_ln-tabname = 'IT_MOBLIST'.
fieldcat_ln-no_out = ' '.
fieldcat_ln-seltext_l = 'KOSTL'.
APPEND fieldcat_ln TO gt_fieldcat. -
Want to add 2 fields in report ARXAGMW.rdf
Hi,
I want to add to fields in the report ARXAGMW.rdf.
The fields are:
- ps.trx_date transactiedatum, --transactiondate
- ps.amount_due_original factuurbedrag, --transactionamount
I changed the function below. I pasted not the whole code.
But when i run the report i get the error:
MSG-01001: after build_invoice_select
ORA-01789: query block has incorrect number of result columns
==> select rpad ( 'a' , 50 , '-' ) cust_name_inv , rpad ( 'a' , 30 , '-' ) cust_no_inv , rpad ( 'a' , 4000 , '-' ) sort_field1_inv , rpad ( 'a' , 4000 , '-' ) sort_field2_inv , 0 inv_tid_inv , 0 contact_site_id_inv , rpad ( 'a' , 60 , '-' ) cust_state_i
FUNCTION BUILD_INVOICE_SELECT
RETURN LONG IS
l_inv_sel LONG;
l_inv_sel1 LONG;
l_inv_sel2 LONG;
l_inv_sel3 LONG;
l_inv_sel4 LONG;
l_inv_sel5 LONG;
new_line VARCHAR2(10) := '
BEGIN
-- BUILD FIRST SELECT STATEMENT
srw.message('1000','inside build_invoice_select');
srw.message('1001','*** BUILDING SELECT #1 All outstanding transactions ***');
l_inv_sel1 :=
'select substrb(party.party_name,1,50) cust_name_inv,
cust_acct.account_number cust_no_inv,';
l_inv_sel1 := l_inv_sel1 || new_line;
if (:p_rep_type = 'ARXAGS') then
l_inv_sel1 := l_inv_sel1 || 'decode(upper(:p_in_sortoption),''CUSTOMER'',NULL,
arpt_sql_func_util.get_org_trx_type_details(ps.cust_trx_type_id,ps.org_id))';
elsif (:p_rep_type = 'ARXAGL') then
l_inv_sel1 := l_inv_sel1 || 'col.name';
elsif(:p_rep_type = 'ARXAGR') then
l_inv_sel1 := l_inv_sel1 || 'sales.name';
elsif(:p_rep_type = 'ARXAGF') then
l_inv_sel1 := l_inv_sel1 || :lp_accounting_flexfield;
end if;
l_inv_sel1 := l_inv_sel1 ||
' sort_field1_inv,' || new_line;
l_inv_sel1 := l_inv_sel1 ||
'arpt_sql_func_util.get_org_trx_type_details(ps.cust_trx_type_id,ps.org_id) sort_field2_inv,' || new_line;
if (:p_rep_type = 'ARXAGS') then
l_inv_sel1 := l_inv_sel1 ||
'decode(upper(:p_in_sortoption),''CUSTOMER'',-999,ps.cust_trx_type_id)';
elsif (:p_rep_type = 'ARXAGL') then
l_inv_sel1 := l_inv_sel1 || 'col.collector_id';
elsif(:p_rep_type = 'ARXAGR') then
l_inv_sel1 := l_inv_sel1 || 'nvl(sales.salesrep_id, -3)';
elsif(:p_rep_type = 'ARXAGF') then
l_inv_sel1 := l_inv_sel1 || 'c.code_combination_id';
end if;
l_inv_sel1 := l_inv_sel1 || ' inv_tid_inv, ';
l_inv_sel1 := l_inv_sel1 ||
' site.site_use_id contact_site_id_inv,
loc.state cust_state_inv,
loc.city cust_city_inv,
decode(:format_detailed,NULL,-1,acct_site.cust_acct_site_id) addr_id_inv,
nvl(cust_acct.cust_account_id,-999) cust_id_inv,
ps.payment_schedule_id payment_sched_id_inv,
ps.class class_inv,
ps.due_date due_date_inv,
amt_due_remaining_inv,
ps.trx_number invnum,
ceil(to_date(:as_of_date) - ps.due_date) days_past_due,
ps.amount_adjusted amount_adjusted_inv,
ps.amount_applied amount_applied_inv,
ps.amount_credited amount_credited_inv,
ps.gl_date gl_date_inv,
ps.trx_date transactiedatum,
ps.amount_due_original factuurbedrag,
decode(ps.invoice_currency_code, :functional_currency, NULL,
decode(ps.exchange_rate, NULL, ''*'', NULL)) data_converted_inv,
nvl(ps.exchange_rate, 1) ps_exchange_rate_inv, '
l_inv_sel1 := l_inv_sel1 ||
' arpt_sql_func_util.bucket_function(:bucket_line_type_0,
dh.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_0,:bucket_days_to_0,
ps.due_date,:bucket_category,to_date(:as_of_date)) b0_inv,
arpt_sql_func_util.bucket_function(:bucket_line_type_1,
dh.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_1,:bucket_days_to_1,
ps.due_date,:bucket_category,to_date(:as_of_date)) b1_inv,
arpt_sql_func_util.bucket_function(:bucket_line_type_2,
dh.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_2,:bucket_days_to_2,
ps.due_date,:bucket_category,to_date(:as_of_date)) b2_inv,
arpt_sql_func_util.bucket_function(:bucket_line_type_3,
dh.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_3,:bucket_days_to_3,
ps.due_date,:bucket_category,to_date(:as_of_date)) b3_inv,
arpt_sql_func_util.bucket_function(:bucket_line_type_4,
dh.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_4,:bucket_days_to_4,
ps.due_date,:bucket_category,to_date(:as_of_date)) b4_inv,
arpt_sql_func_util.bucket_function(:bucket_line_type_5,
dh.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_5,:bucket_days_to_5,
ps.due_date,:bucket_category,to_date(:as_of_date)) b5_inv,
arpt_sql_func_util.bucket_function(:bucket_line_type_6,
dh.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_6,:bucket_days_to_6,
ps.due_date,:bucket_category,to_Date(:as_of_date)) b6_inv,';
l_inv_sel1 := l_inv_sel1 || :lp_acct_flex_bal_seg || ' company_inv,';
l_inv_sel1 := l_inv_sel1 || :lp_query_show_bill || ' cons_billing_number, ';
l_inv_sel1 := l_inv_sel1 || ' arpt_sql_func_util.get_org_trx_type_details(ps.cust_trx_type_id,ps.org_id)'
|| ' invoice_type_inv ';
IF upper(:p_mrcsobtype) = 'R' then
l_inv_sel1 := l_inv_sel1 ||
' from hz_cust_accounts cust_acct,
hz_parties party, ';
/*Bug 3487101 : Incorporated the logic of COMP_AMT_DUE_REM_INVFORMULA() in the main query itself */
l_inv_sel1 := l_inv_sel1 ||
'(select a.customer_id,
a.customer_site_use_id ,
a.customer_trx_id,
a.payment_schedule_id,
a.class ,
sum(a.primary_salesrep_id) primary_salesrep_id,
a.due_date ,
sum(a.amount_due_remaining) amt_due_remaining_inv,
a.trx_number,
a.amount_adjusted,
a.amount_applied ,
a.amount_credited ,
a.amount_adjusted_pending,
a.gl_date ,
a.trx_date ,
Where do i have to add to two fields?
Regards,
thijsThis code is not formatted and therefore very hard to read. Please use the <pre></pre> tags to format code.
Error: ORA-01789: query block has incorrect number of result columns
Cause: You tried to execute a SELECT statement (probably a UNION or a UNION ALL), and all of the queries did not contain the same number of result columns. -
Want to add new field in QA32/QA11 transaction under inspection lot stock
Dear Experts,
I want to add new field in QA32 transaction under inspection lot stock tab or under characteristic tab.
The reason behind is: Depends upon UD decision i want to assing customer name. So already we are having one Z Report for all the lots against this lot we have to display customer name.
So in order to fetch customer name in the Z report we want to assing customer through F4 selection in the usage decision screen.
I know this is possibe for Make to order scenario, but our senario is make to stock.
Please advice your valuable inputs.
Regards.Hi Sujit,
Can you please elaborate it,coz i'm using the same but if i place the break-point in PBO of sub screen,the break-point won't be triggered.and is there any additional step to get the data from function group? if yes, please explain me indetail.
If possible please provide the sample code for this.
Thanks Inadvance.
Madan
Edited by: Madan.ngt on Mar 3, 2011 7:16 AM
Edited by: Madan.ngt on Mar 3, 2011 7:17 AM -
Want to add and remove GL account in report through report painter
Hi,
Thanks in advance,
1.I want to add new GL account in IS01 report i.e. Income Statement. I am trying to add through report painter but could not able to do it.
2.Also i want to delete existing GL account from report through report painter.
Any body pls suggest the steps to add and remove GL account through report painter because this report is under report painter.
Thanks,
KMRthe account is probably in account group or set. Look for that one in report painter and then go to the set or account group and remove/add the account.
-
Hi Experts,
How to add additional field into output table VENDORS/WH TAX TYPES AND CODES in RFIDYYWT(Generic Withholding Tax Reporting).
I have no idea how to start with, please give some advice.
Thanks!
IceDear Ice,
Use Append structure, see given link:
https://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eb61446011d189700000e8322d00/content.htm
Regards,
Abbas. -
Trying to Add IBAN Field to Vendor Changes Report
Hi,
I need to add IBAN field to vendor changes report (S_ALR_87012089).
These are the steps I took:
1) Go to OBAT and add new field group
2) Go to OBAU and add new fields to field group created in (1)
However, TIBAN fields cannot be added to the field group.
Are there any workarounds?
Thanks.No solution except customization
-
Add new fields in KE32 tonnagetax Report
I wanna add two New Columns in report (City and Delivery number) in KE32-> Tonnagetax report. Can anyone lemme know how to achieve this.
Any help ??
Regards
VEnk@Subhash,
The nature of a customized report is that it was coded only for your company. Although there are dozens of ways that the report could have been built, we don't know which way your report was written. Furthermore, forum members are generally not inclined to manage your reports, even if we did technically understand their structure.
I expect the report is written in ABAP (the programming language developed for SAP). The standard ABAP object code editor is SE38, where you can make the appropriate changes required. It is beyond the scope of this forum to teach you ABAP. For that, I suggest you take a class, or perhaps buy one of the many ABAP books that exist.
To fix your report today, though, I suggest you consult with your local ABAP resource. If one is not available, then your company should engage the services of an external ABAP consultant, who should be able to serve your needs for a fee. There are thousands of ABAP consultants out there looking for work.
You might try posting your question on one of the more Techie forums. such as ABAP Development Maybe you will find someone there who is willing to teach you ABAP coding....
Best Regards,
DB49 -
To add new field in withholding tax report
Hi Experts,
I have a requirement to add pan no. field in withholding tax reporting in Tax per business Partner.
Can somebody help me how to do it with BADI or User exit.
Thanks in advance
Rahul
Moderator Message: Do some work of your own first. Do not expect others to do your entire work for you
Edited by: kishan P on Oct 28, 2010 10:17 AMHi Dheeraj Late,
MESSAGE_TYPE_X is likely kernel problem.
want to update your kernel level up to latest version.
will solve most cases.
Regards,
Padma. -
MB51 - Add a field in output list
We changed the layout of MB51 to add, in the output screen (ALV list), the fields: MSEG-ANLN1 (main asset number), MSEG-ANLN2 (asset subnumber).
The customer also wants to have the field ANLA-MCOA1 (asset description).
How do we add? Maybe there are a BADI or UserExit for customize the program RM07DOCS. Perhaps it is better to write a custom program Z_RM07DOCS (changing the standard program), or change the view V_MMIM_REP_CUST, adding the missing field.
Please help: which path to take and how?
SerenaHi
See SAP Note 357187 - MB51: Fields in field catalog / selection screen
Regards
Eduardo -
How to add new fields to standard alv report
Hi,
Tcode(VL10G) .ie.out put list will not showing one new field.I want to add one more field to output list. append the field(VIKP-SDABW) In the SHP_VL10_ITEM structure .And write the logic in the exit LV50R_VIEWG05----
>USEREXIT_PREPARE_LAYOUT_FILL.Please expain what is the process?
Why i have write the code?what logic i will write?
Thanks & Regards,
sairamFORM ZI004_FIELDCAT_MOULD .
wa_fieldcat-fieldname = 'ZMLDCDID' . "Mould Code ID
wa_fieldcat-tabname = 'IT_MLDETAILS' .
wa_fieldcat-outputlen = 40 .
wa_fieldcat-seltext_l = text-010 .
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'ZMLDID' . "Mould ID
wa_fieldcat-tabname = 'IT_MLDETAILS' .
wa_fieldcat-outputlen = 20 .
wa_fieldcat-seltext_l = text-011 .
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'ZMLDCODE' . "Mould Code
wa_fieldcat-tabname = 'IT_MLDETAILS' .
wa_fieldcat-outputlen = 40 .
wa_fieldcat-seltext_l = text-012 .
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
endform.
Maybe you are looking for
-
Search on Master Detail form/report
Hi, I noticed that when I created a new application in Apex 4.01 basing the intial page on a Master Detail form/report, I was able to add a search item to the initial page. When I go to add another page with a different Master detail form/report, I d
-
How to send the email without using server side (Php, java)
How to send the (Run time image or file) Email & Attachment in Flex web application. without using php, java.
-
How to increase the column size of interactive report
Hi , I am using apex 4.2 and theme 25 .. i did not find any option to increase the column size of interactive report. where as in classic report i can do so ,, Please guide me to achieve that. Thank You, Nihar Narla
-
How to Insert An SM (service mark) in Contribute?
Hi, This does not seem to be included in the special characters section. Any suggestions? Thanks Sam
-
I am a Naab with issues.
I have this fabulous blue screen which I see can be common unfortunately I have lost my disks in for this laptop in a move and have gone through all of the help docs to the best of my ability with no change. I tried safe mode wont load that way I tri