Restrict Frames display in report
Hi all,
I am using 10g 10.1.2 dev suit. I have a report with 6 frames (6 queries) each page is on different page. The parameter is customer no... some time only 1 frame is populated and other 5 pages printed without any data. I want to restrict this that only frame that has data is print on pdf file output.
Any idea how it is possible.
Regards,
would you like to give and example for me. I am using the following code after creating a summary column with count. But it through error that col is at wrong frequency.
function M_4FormatTrigger return boolean is
begin
if :pos_ref_no = 0 then return (false);
end if;
return (TRUE);
end;Regards
Similar Messages
-
How to restrict the display of report variants
Hello All,
I want t know how to restrict the display of report variants.
I mean, when a user saves a variant for his/her purpuse on some report program, only he/she can refer the variant while other users cannot.
I know that by setting the attribute of the variant ("Protect Variant ", "Only Display in Catalog"), this would be possible, but I want to know another way, without this setting.
Thank you for your help in advance.
Regards,Hi,
Can you just try this
DATA:it_varid TYPE TABLE OF varid.
DATA:wa_varid TYPE varid.
INITIALIZATION.
SELECT * FROM varid INTO TABLE it_varid
WHERE report = sy-repid
and ename = sy-uname.
IF sy-subrc = 0.
LOOP AT it_varid INTO wa_varid .
CALL FUNCTION 'RS_SUPPORT_SELECTIONS'
EXPORTING
report = sy-repid
variant = wa_varid-variant
EXCEPTIONS
variant_not_existent = 1
variant_obsolete = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDLOOP.
ENDIF. -
Complete data not displayed in Report
Hi forum,
I have a cube based on data source 0FI_AR_4,which is updated via an ODS.I have created a query for ageging analysis.The query uses Referrence number ( invoice number) to display the receivables of various customers and number of days from due date.
To my surprise many invoice numbers are not being displayed in the query, but when i restrict the query to the invoice numbers which are not being displayed the report generated is able to display all the doccuments.
I have checked the data in the cube and all the invoice numbers are flowing well fro R/3.
My only way of saying thanks to the people who solve the issue or provide helpful answers is by assigining points.
Regds
Suhelhello
This is simple problem
The result the query fetches is not able to display in the number of cells provided in the excel sheet
So when you restrict the data, the query is able to show all the data fetched by accomadating in the columns available in the excel.
Here in your case , there are not enough columns in the excel sheet to display all data
Regards
N Ganesh -
How to display a report in tree format
hai can any one send me the code to display the report in a tree format
if i take example of customer numbers as tree branches and if i click each customer number the tree should expand showing all sales orders for a customer
ragrds
afzaluse FM HR_ALV_HIERSEQ_LIST_DISPLAY
there are 2 internal table , one for header and one for detail
below is code for reference
REPORT zinsd_quot_cont.
TYPES : BEGIN OF ty_vbak,
vbeln TYPE vbeln_va,
vkorg TYPE vkorg,
vtweg TYPE vtweg,
spart TYPE spart,
vkbur TYPE vkbur,
vkgrp TYPE vkgrp,
angdt TYPE angdt_v,
bnddt TYPE bnddt,
kunnr TYPE kunnr,
kwmeng TYPE kwmeng,
meins TYPE meins,
kunwe TYPE kunnr,
name1 TYPE name1_gp ,
name2 TYPE name1_gp ,
sel(1),
expand(1),
salesdocument TYPE bapivbeln-vbeln,
message TYPE bapi_msg,
END OF ty_vbak.
DATA : w_vbak TYPE ty_vbak,
t_vbak TYPE TABLE OF ty_vbak.
DATA : w_update TYPE ty_vbak,
t_update TYPE TABLE OF ty_vbak.
TYPES : BEGIN OF ty_kna1,
kunnr TYPE kunnr,
name1 TYPE name1_gp ,
END OF ty_kna1.
DATA : w_kna1 TYPE ty_kna1,
t_kna1 TYPE TABLE OF ty_kna1.
TYPES : BEGIN OF ty_vbap,
vbeln TYPE vbeln_va,
posnr TYPE posnr_va,
matnr TYPE matnr,
matkl TYPE matkl,
werks TYPE werks_ext,
kwmeng TYPE kwmeng,
meins TYPE meins,
mvgr5 TYPE mvgr5,
maktx TYPE maktx,
END OF ty_vbap.
DATA : w_vbap TYPE ty_vbap,
t_vbap TYPE TABLE OF ty_vbap.
TYPES : BEGIN OF ty_makt,
matnr TYPE matnr,
maktx TYPE maktx,
END OF ty_makt.
DATA : w_makt TYPE ty_makt,
t_makt TYPE TABLE OF ty_makt.
TYPES : BEGIN OF ty_sum,
vbeln TYPE vbeln_va,
kwmeng TYPE kwmeng,
END OF ty_sum.
DATA : w_sum TYPE ty_sum,
t_sum TYPE TABLE OF ty_sum.
TYPES : BEGIN OF ty_vbpa,
vbeln TYPE vbeln,
posnr TYPE posnr,
parvw TYPE parvw,
kunnr TYPE kunnr,
END OF ty_vbpa.
DATA : w_vbpa TYPE ty_vbpa,
t_vbpa TYPE TABLE OF ty_vbpa.
TYPES : BEGIN OF ty_vbup,
vbeln TYPE vbeln,
posnr TYPE posnr ,
gbsta TYPE gbsta ,
END OF ty_vbup.
DATA : w_vbup TYPE ty_vbup,
t_vbup TYPE TABLE OF ty_vbup.
TYPE-POOLS slis.
DATA: t_fieldcatalog TYPE slis_t_fieldcat_alv,
w_fieldcatalog TYPE slis_fieldcat_alv,
w_layout TYPE slis_layout_alv,
gs_keyinfo TYPE slis_keyinfo_alv.
DATA: g_tabname_header TYPE slis_tabname,
g_tabname_item TYPE slis_tabname.
data definition
Batchinputdata of single transaction
DATA: bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.
messages of call transaction
DATA: messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
DATA : g_lines TYPE i.
*Selection Screen
TABLES : vbak,vbap.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-000.
SELECT-OPTIONS s_vkorg FOR vbak-vkorg. " Sales Org
SELECT-OPTIONS s_vtweg FOR vbak-vtweg. " Dist Channel
SELECT-OPTIONS s_spart FOR vbak-spart. " Division
SELECT-OPTIONS s_vkbur FOR vbak-vkbur. " Sales Off
SELECT-OPTIONS s_vkgrp FOR vbak-vkgrp. " Sales Grp
SELECT-OPTIONS s_matkl FOR vbap-matkl. " Mat Grp
SELECT-OPTIONS s_werks FOR vbap-werks. " Plant
SELECT-OPTIONS s_period FOR vbak-angdt. " Sales Off
SELECTION-SCREEN END OF BLOCK b1.
START-OF-SELECTION.
PERFORM f_getdata.
PERFORM f_initdata.
END-OF-SELECTION.
PERFORM f_createalv.
PERFORM f_dispalv.
*& Form f_getdata
text
--> p1 text
<-- p2 text
FORM f_getdata .
*Sales Header
SELECT
vbeln
vkorg
vtweg
spart
vkbur
vkgrp
angdt
bnddt
kunnr
INTO TABLE t_vbak
FROM vbak
WHERE
vkorg IN s_vkorg " Sales Org
AND vtweg IN s_vtweg " Dist Channel
AND spart IN s_spart " Division
AND vkbur IN s_vkbur " Sales Off
AND vkgrp IN s_vkgrp " Sales Grp
AND angdt IN s_period
AND bnddt IN s_period
AND auart = 'ZQMO'
AND vbtyp = 'B'.
*CUST NAME
SELECT
kunnr
name1
INTO TABLE t_kna1
FROM kna1
FOR ALL ENTRIES IN t_vbak
WHERE
kunnr = t_vbak-kunnr
*Sales Item
SELECT
vbeln
posnr
matnr
matkl
werks
kwmeng
meins
mvgr5
INTO TABLE t_vbap
FROM vbap
FOR ALL ENTRIES IN t_vbak
WHERE
vbeln = t_vbak-vbeln
AND matkl IN s_matkl " Mat Grp
AND werks IN s_werks " Plant
*Partners
SELECT
vbeln
posnr
parvw
kunnr
INTO TABLE t_vbpa
FROM vbpa
FOR ALL ENTRIES IN t_vbak
WHERE
vbeln = t_vbak-vbeln.
IF t_vbpa[] IS NOT INITIAL.
SELECT
kunnr
name1
APPENDING TABLE t_kna1
FROM kna1
FOR ALL ENTRIES IN t_vbpa
WHERE
kunnr = t_vbpa-kunnr
ENDIF.
*Status - Sales Doc
SELECT
vbeln
posnr
gbsta
INTO TABLE t_vbup
FROM vbup
FOR ALL ENTRIES IN t_vbap
WHERE
vbeln = t_vbap-vbeln
AND posnr = t_vbap-posnr
AND gbsta NE 'C'.
SELECT
matnr
maktx
INTO TABLE t_makt
FROM makt
FOR ALL ENTRIES IN t_vbap
WHERE
matnr = t_vbap-matnr
AND spras = 'E'.
ENDFORM. " f_getdata
*& Form f_initdata
text
--> p1 text
<-- p2 text
FORM f_initdata .
SORT t_vbap BY vbeln DESCENDING.
*delete all closed stat items
LOOP AT t_vbap INTO w_vbap.
READ TABLE t_vbup INTO w_vbup
WITH KEY
vbeln = w_vbap-vbeln
posnr = w_vbap-posnr.
IF sy-subrc <> 0.
DELETE t_vbap.
CONTINUE.
ELSE.
READ TABLE t_makt INTO w_makt
WITH
KEY matnr = w_vbap-matnr.
IF sy-subrc = 0.
w_vbap-maktx = w_makt-maktx.
MODIFY t_vbap FROM w_vbap.
ENDIF.
ENDIF.
ENDLOOP.
*find the total quantity
LOOP AT t_vbap INTO w_vbap.
w_sum-vbeln = w_vbap-vbeln.
w_sum-kwmeng = w_vbap-kwmeng.
COLLECT w_sum INTO t_sum.
CLEAR w_sum.
ENDLOOP.
*populate header
LOOP AT t_vbak INTO w_vbak.
Quantity - Total
READ TABLE t_sum INTO w_sum
WITH KEY
vbeln = w_vbak-vbeln.
IF sy-subrc = 0.
w_vbak-kwmeng = w_sum-kwmeng.
ELSE.
CLEAR w_vbak-kwmeng.
ENDIF.
UoM
READ TABLE t_vbap INTO w_vbap
WITH KEY
vbeln = w_vbak-vbeln.
IF sy-subrc = 0.
w_vbak-meins = w_vbap-meins.
ELSE.
CLEAR w_vbak-meins.
ENDIF.
Partner
READ TABLE t_vbpa INTO w_vbpa
WITH KEY
vbeln = w_vbak-vbeln
parvw = 'WE'.
IF sy-subrc = 0.
w_vbak-kunwe = w_vbpa-kunnr.
ELSE.
CLEAR w_vbak-kunwe.
ENDIF.
SHIP TO PARTY NAME
READ TABLE t_kna1 INTO w_kna1
WITH KEY
kunnr = w_vbak-kunwe.
IF sy-subrc = 0.
w_vbak-name2 = w_kna1-name1.
ENDIF.
CUST NAM - SOLD TO PARTY
READ TABLE t_kna1 INTO w_kna1
WITH KEY
kunnr = w_vbak-kunnr.
IF sy-subrc = 0.
w_vbak-name1 = w_kna1-name1.
ENDIF.
MODIFY t_vbak FROM w_vbak.
ENDLOOP.
DELETE t_vbak WHERE kwmeng IS INITIAL.
SORT t_vbak BY vbeln DESCENDING.
SORT t_vbap BY vbeln DESCENDING posnr ASCENDING.
ENDFORM. " f_initdata
*& Form f_createalv
Create Field Cat.
--> p1 text
<-- p2 text
FORM f_createalv .
g_tabname_header = 't_vbak'.
g_tabname_item = 't_vbap' .
CLEAR gs_keyinfo.
gs_keyinfo-header01 = 'VBELN'.
gs_keyinfo-item01 = 'VBELN'.
*VBAK
w_fieldcatalog-fieldname = 'VBELN'.
w_fieldcatalog-tabname = 't_vbak'.
w_fieldcatalog-seltext_l = 'Sales Document'.
APPEND w_fieldcatalog TO t_fieldcatalog.
CLEAR: w_fieldcatalog.
w_fieldcatalog-fieldname = 'VKORG'.
w_fieldcatalog-tabname = 't_vbak'.
w_fieldcatalog-seltext_l = 'Sales Org'.
APPEND w_fieldcatalog TO t_fieldcatalog.
CLEAR: w_fieldcatalog.
w_fieldcatalog-fieldname = 'VTWEG'.
w_fieldcatalog-tabname = 't_vbak'.
w_fieldcatalog-seltext_l = 'Dist Channel'.
APPEND w_fieldcatalog TO t_fieldcatalog.
CLEAR: w_fieldcatalog.
w_fieldcatalog-fieldname = 'SPART'.
w_fieldcatalog-tabname = 't_vbak'.
w_fieldcatalog-seltext_l = 'Division'.
APPEND w_fieldcatalog TO t_fieldcatalog.
CLEAR: w_fieldcatalog.
w_fieldcatalog-fieldname = 'VKBUR'.
w_fieldcatalog-tabname = 't_vbak'.
w_fieldcatalog-seltext_l = 'Sales Office'.
APPEND w_fieldcatalog TO t_fieldcatalog.
CLEAR: w_fieldcatalog.
w_fieldcatalog-fieldname = 'VKGRP'.
w_fieldcatalog-tabname = 't_vbak'.
w_fieldcatalog-seltext_l = 'Sales GRP'.
APPEND w_fieldcatalog TO t_fieldcatalog.
CLEAR: w_fieldcatalog.
w_fieldcatalog-fieldname = 'KUNNR'.
w_fieldcatalog-tabname = 't_vbak'.
w_fieldcatalog-seltext_l = 'Sold to Party'.
APPEND w_fieldcatalog TO t_fieldcatalog.
CLEAR: w_fieldcatalog.
w_fieldcatalog-fieldname = 'NAME1'.
w_fieldcatalog-tabname = 't_vbak'.
w_fieldcatalog-outputlen = 35.
w_fieldcatalog-seltext_l = 'Sold to Party Code - Name'.
APPEND w_fieldcatalog TO t_fieldcatalog.
CLEAR: w_fieldcatalog.
w_fieldcatalog-fieldname = 'KUNWE'.
w_fieldcatalog-tabname = 't_vbak'.
w_fieldcatalog-seltext_l = 'Ship to Party'.
APPEND w_fieldcatalog TO t_fieldcatalog.
CLEAR: w_fieldcatalog.
w_fieldcatalog-fieldname = 'NAME2'.
w_fieldcatalog-tabname = 't_vbak'.
w_fieldcatalog-seltext_l = 'Ship Party Code - Name'.
w_fieldcatalog-outputlen = 35.
APPEND w_fieldcatalog TO t_fieldcatalog.
CLEAR: w_fieldcatalog.
w_fieldcatalog-fieldname = 'KWMENG'.
w_fieldcatalog-tabname = 't_vbak'.
w_fieldcatalog-seltext_l = 'Quantity'.
w_fieldcatalog-outputlen = 25.
APPEND w_fieldcatalog TO t_fieldcatalog.
CLEAR: w_fieldcatalog.
w_fieldcatalog-fieldname = 'MEINS'.
w_fieldcatalog-tabname = 't_vbak'.
w_fieldcatalog-seltext_l = 'UoM'.
APPEND w_fieldcatalog TO t_fieldcatalog.
CLEAR: w_fieldcatalog.
w_fieldcatalog-fieldname = 'SALESDOCUMENT'.
w_fieldcatalog-tabname = 't_vbak'.
w_fieldcatalog-seltext_l = 'Document'.
APPEND w_fieldcatalog TO t_fieldcatalog.
CLEAR: w_fieldcatalog.
w_fieldcatalog-fieldname = 'MESSAGE'.
w_fieldcatalog-tabname = 't_vbak'.
w_fieldcatalog-seltext_l = 'Log'.
APPEND w_fieldcatalog TO t_fieldcatalog.
CLEAR: w_fieldcatalog.
*VBAP
w_fieldcatalog-fieldname = 'POSNR'.
w_fieldcatalog-tabname = 't_vbap'.
w_fieldcatalog-seltext_l = 'POS'.
w_fieldcatalog-outputlen = 6.
APPEND w_fieldcatalog TO t_fieldcatalog.
CLEAR: w_fieldcatalog.
w_fieldcatalog-fieldname = 'MATNR'.
w_fieldcatalog-tabname = 't_vbap'.
w_fieldcatalog-seltext_l = 'Material'.
w_fieldcatalog-outputlen = 18.
APPEND w_fieldcatalog TO t_fieldcatalog.
CLEAR: w_fieldcatalog.
w_fieldcatalog-fieldname = 'MAKTX'.
w_fieldcatalog-tabname = 't_vbap'.
w_fieldcatalog-seltext_l = 'Material Desc'.
w_fieldcatalog-outputlen = 40.
APPEND w_fieldcatalog TO t_fieldcatalog.
CLEAR: w_fieldcatalog.
w_fieldcatalog-fieldname = 'MATKL'.
w_fieldcatalog-tabname = 't_vbap'.
w_fieldcatalog-seltext_l = 'Material Grp'.
w_fieldcatalog-outputlen = 9.
APPEND w_fieldcatalog TO t_fieldcatalog.
CLEAR: w_fieldcatalog.
w_fieldcatalog-fieldname = 'MVGR5'.
w_fieldcatalog-tabname = 't_vbap'.
w_fieldcatalog-seltext_l = 'MCNO'.
w_fieldcatalog-outputlen = 4.
APPEND w_fieldcatalog TO t_fieldcatalog.
CLEAR: w_fieldcatalog.
w_fieldcatalog-fieldname = 'WERKS'.
w_fieldcatalog-tabname = 't_vbap'.
w_fieldcatalog-seltext_l = 'Plant'.
w_fieldcatalog-outputlen = 91.
APPEND w_fieldcatalog TO t_fieldcatalog.
CLEAR: w_fieldcatalog.
w_fieldcatalog-fieldname = 'KWMENG'.
w_fieldcatalog-tabname = 't_vbap'.
w_fieldcatalog-seltext_l = 'Quantity'.
w_fieldcatalog-outputlen = 25.
APPEND w_fieldcatalog TO t_fieldcatalog.
CLEAR: w_fieldcatalog.
w_fieldcatalog-fieldname = 'MEINS'.
w_fieldcatalog-tabname = 't_vbap'.
w_fieldcatalog-seltext_l = 'UoM'.
APPEND w_fieldcatalog TO t_fieldcatalog.
CLEAR: w_fieldcatalog.
LAYOUT
w_layout-colwidth_optimize = 'X'.
w_layout-zebra = 'X'.
w_layout-expand_fieldname = 'EXPAND'.
w_layout-box_fieldname = 'SEL'.
w_layout-box_tabname = 't_vbak'.
ENDFORM. " f_createalv
*& Form f_dispalv
Call ALV
--> p1 text
<-- p2 text
FORM f_dispalv .
CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
is_layout = w_layout
it_fieldcat = t_fieldcatalog
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
i_tabname_header = g_tabname_header
i_tabname_item = g_tabname_item
is_keyinfo = gs_keyinfo
TABLES
t_outtab_header = t_vbak
t_outtab_item = t_vbap
EXCEPTIONS
program_error = 1
OTHERS = 2
IF sy-subrc <> 0.
ENDIF.
ENDFORM. " f_dispalv
*& Form set_pf_status
PF stat
-->RT_EXTAB text
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'ZINSD_QUOT_CONT_ST'.
ENDFORM. "set_pf_status
*& Form user_command
Process List UCOMM
-->R_UCOMM text
-->RS_SELFIELD text
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
REFRESH t_update.
IF r_ucomm = 'EXIT'.
LEAVE PROGRAM.
ENDIF.
IF r_ucomm = 'EXECUTE'.
LOOP AT t_vbak INTO w_update
WHERE
sel = 'X'
AND salesdocument = ' '.
APPEND w_update TO t_update.
ENDLOOP.
IF t_update[] IS NOT INITIAL.
LOOP AT t_update INTO w_update.
PERFORM f_bapi_contract_createfromdata USING w_update.
PERFORM f_bdc_contract_from_quotation.
MODIFY t_update FROM w_update.
ENDLOOP.
ELSE.
ENDIF.
PERFORM f_dispalv.
ENDIF.
IF r_ucomm = '&IC1'.
IF rs_selfield-sel_tab_field = 't_vbak-VBELN'.
SET PARAMETER ID 'AGN' FIELD rs_selfield-value.
CALL TRANSACTION 'VA23' AND SKIP FIRST SCREEN.
ENDIF.
IF rs_selfield-sel_tab_field = 't_vbak-SALESDOCUMENT' AND
rs_selfield-value NE ' '.
SET PARAMETER ID 'KTN' FIELD rs_selfield-value.
CALL TRANSACTION 'VA43' AND SKIP FIRST SCREEN.
ENDIF.
ENDIF.
ENDFORM. "user_command
*& Form F_BAPI_CONTRACT_CREATEFROMDATA
BAPI CALL
-->P_W_UPDATE text
FORM f_bapi_contract_createfromdata USING p_w_update STRUCTURE w_update .
DATA : w_contract_header_in TYPE bapisdhd1 ,
w_contract_header_inx TYPE bapisdhd1x ,
t_contract_items_in TYPE TABLE OF bapisditm WITH HEADER LINE,
t_contract_items_inx TYPE TABLE OF bapisditmx WITH HEADER LINE,
t_contract_partners TYPE TABLE OF bapiparnr WITH HEADER LINE,
t_return TYPE TABLE OF bapiret2 WITH HEADER LINE.
CLEAR : w_contract_header_in,
w_contract_header_inx.
REFRESH : t_contract_items_in,
t_contract_items_inx,
t_contract_partners,
t_return.
w_contract_header_in-doc_type = 'ZCNT'.
w_contract_header_in-sales_org = p_w_update-vkorg.
w_contract_header_in-distr_chan = p_w_update-vtweg.
w_contract_header_in-division = p_w_update-spart.
w_contract_header_in-ct_valid_f = p_w_update-angdt.
w_contract_header_in-ct_valid_t = p_w_update-bnddt.
w_contract_header_inx-doc_type = 'X'.
w_contract_header_inx-sales_org = 'X'.
w_contract_header_inx-distr_chan = 'X'.
w_contract_header_inx-division = 'X'.
w_contract_header_inx-ct_valid_f = 'X'.
w_contract_header_inx-ct_valid_t = 'X'.
LOOP AT t_vbap INTO w_vbap
WHERE
vbeln = p_w_update-vbeln.
t_contract_items_in-material = w_vbap-matnr.
t_contract_items_in-plant = w_vbap-werks.
t_contract_items_in-target_qty = w_vbap-kwmeng.
t_contract_items_in-target_qu = w_vbap-meins.
t_contract_items_in-ref_doc = w_vbap-vbeln.
t_contract_items_in-ref_doc_it = w_vbap-posnr.
t_contract_items_in-ref_doc_ca = 'B'.
t_contract_items_in-prc_group5 = w_vbap-mvgr5.
t_contract_items_inx-material = 'X'.
t_contract_items_inx-plant = 'X'.
t_contract_items_inx-target_qty = 'X'.
t_contract_items_inx-target_qu = 'X'.
t_contract_items_inx-ref_doc = 'X'.
t_contract_items_inx-ref_doc_it = 'X'.
t_contract_items_inx-ref_doc_ca = 'X'.
t_contract_items_inx-prc_group5 = 'X'.
APPEND t_contract_items_in.
APPEND t_contract_items_inx.
ENDLOOP.
LOOP AT t_vbpa INTO w_vbpa
WHERE
vbeln = p_w_update-vbeln.
AND posnr = w_vbap-posnr.
t_contract_partners-partn_role = w_vbpa-parvw.
t_contract_partners-partn_numb = w_vbpa-kunnr.
t_contract_partners-itm_number = w_vbpa-posnr.
APPEND t_contract_partners.
ENDLOOP.
CALL FUNCTION 'BAPI_CONTRACT_CREATEFROMDATA'
EXPORTING
SALESDOCUMENTIN =
contract_header_in = w_contract_header_in
contract_header_inx = w_contract_header_inx
SENDER =
BINARY_RELATIONSHIPTYPE = ' '
INT_NUMBER_ASSIGNMENT = ' '
BEHAVE_WHEN_ERROR = ' '
LOGIC_SWITCH =
TESTRUN =
CONVERT = ' '
IMPORTING
salesdocument = p_w_update-salesdocument
TABLES
return = t_return
contract_items_in = t_contract_items_in
contract_items_inx = t_contract_items_inx
contract_partners = t_contract_partners
CONTRACT_CONDITIONS_IN =
CONTRACT_CONDITIONS_INX =
CONTRACT_CFGS_REF =
CONTRACT_CFGS_INST =
CONTRACT_CFGS_PART_OF =
CONTRACT_CFGS_VALUE =
CONTRACT_CFGS_BLOB =
CONTRACT_CFGS_VK =
CONTRACT_CFGS_REFINST =
CONTRACT_DATA_IN =
CONTRACT_DATA_INX =
CONTRACT_TEXT =
CONTRACT_KEYS =
EXTENSIONIN =
PARTNERADDRESSES =
IF p_w_update-salesdocument NE ' ' .
p_w_update-message = 'SUCCESS'.
ELSE.
READ TABLE t_return INDEX 1.
p_w_update-message = t_return-message.
ENDIF.
READ TABLE t_vbak INTO w_vbak
WITH KEY
vbeln = p_w_update-vbeln.
IF sy-subrc = 0.
MODIFY t_vbak INDEX sy-tabix FROM p_w_update .
ENDIF.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
ENDFORM. " F_BAPI_CONTRACT_CREATEFROMDATA
*& Form f_bdc_contract_from_Quotation
BAPI CALL
-->P_W_UPDATE text
FORM f_bdc_contract_from_quotation.
DATA : l_date TYPE char10.
REFRESH : messtab, bdcdata.
CLEAR : messtab, bdcdata.
PERFORM bdc_dynpro USING 'SAPMV45A' '0101'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=COPY'.
PERFORM bdc_field USING 'VBAK-AUART'
'ZCNT'.
PERFORM bdc_dynpro USING 'SAPLV45C' '0100'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=RANG'.
PERFORM bdc_dynpro USING 'SAPLV45C' '0100'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=UEBR'.
PERFORM bdc_field USING 'LV45C-VBELN'
w_update-vbeln.
PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=SICH'.
IF NOT w_update-angdt IS INITIAL.
CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
EXPORTING
date_internal = w_update-angdt
IMPORTING
date_external = l_date
EXCEPTIONS
date_internal_is_invalid = 1
OTHERS = 2.
PERFORM bdc_field USING 'VBAK-GUEBG'
l_date.
ENDIF.
IF NOT w_update-bnddt IS INITIAL.
CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
EXPORTING
date_internal = w_update-bnddt
IMPORTING
date_external = l_date
EXCEPTIONS
date_internal_is_invalid = 1
OTHERS = 2.
PERFORM bdc_field USING 'VBAK-GUEEN'
l_date.
ENDIF.
CALL TRANSACTION 'VA41' USING bdcdata
MODE 'E'
UPDATE 'S'
MESSAGES INTO messtab.
break abap.
READ TABLE messtab WITH KEY msgid = 'V1'
msgnr = '311'.
IF sy-subrc EQ 0.
w_update-message = 'SUCCESS'.
w_update-salesdocument = messtab-msgv2.
ELSE.
READ TABLE messtab WITH KEY msgtyp = 'E'.
IF sy-subrc EQ 0.
DATA : l_info TYPE einfo.
CLEAR l_info.
l_info-msgid = messtab-msgid.
l_info-msgty = messtab-msgtyp.
l_info-msgno = messtab-msgnr.
l_info-msgv1 = messtab-msgv1.
l_info-msgv2 = messtab-msgv2.
l_info-msgv3 = messtab-msgv3.
l_info-msgv4 = messtab-msgv4.
CALL FUNCTION 'MESSAGE_GET_TEXT'
EXPORTING
ieinfo = l_info
ilangu = sy-langu
IMPORTING
etext = w_update-message
EXCEPTIONS
no_t100_found = 1
OTHERS = 2.
ENDIF.
ENDIF.
READ TABLE t_vbak INTO w_vbak WITH KEY vbeln = w_update-vbeln.
IF sy-subrc = 0.
MODIFY t_vbak INDEX sy-tabix FROM w_update transporting message
salesdocument.
ENDIF.
ENDFORM. " f_bdc_contract_from_Quotation
Start new screen *
FORM bdc_dynpro USING program dynpro.
CLEAR bdcdata.
bdcdata-program = program.
bdcdata-dynpro = dynpro.
bdcdata-dynbegin = 'X'.
APPEND bdcdata.
ENDFORM. "bdc_dynpro
Insert field *
FORM bdc_field USING fnam fval.
CLEAR bdcdata.
bdcdata-fnam = fnam.
bdcdata-fval = fval.
APPEND bdcdata.
ENDFORM. "bdc_field -
How to display a report in CrystalReportViewer when report is a Shortcut
Hello,
In BusinessObjects Enterprise XI R2, we have a shortcut to a report since we don't want to give a particular group of users access to the original folder. However, my objective is to display the "shortcut" report in a .NET web application.
What I'm running into seems to basically be permissions errors when setting the ReportSource of the CrystalReportViewer to the ID of the shortcut. In InfoView, the same user can click the shortcut and the report comes up with no problems.
So my question is how do I display this report in my application's viewer and still honor the privs of the shortcut, and of not the original report?
Partial code listing...
' load the report
Dim reportId As String = Me.SessionState.ReportId
myReportViewer.ReportSource = MyInfoStoreManager.GetReportSource(myEnterpriseSession, reportId)
myReportViewer.EnterpriseLogon = myEnterpriseSession
The relevant code in the GetReportSource method is below...
' retrieve the report from BOXI Infostore
Dim objReportFactoryService As EnterpriseService = myEnterpriseSession.GetService("PSReportFactory")
Dim objFactory As Viewing.PSReportFactory = CType(objReportFactoryService.Interface, Viewing.PSReportFactory)
Dim objReportSource As ISCRReportSource
objReportSource = objFactory.OpenReportSource(intReportId)
Return objReportSource
Thanks,
HorusSince you're using XI Release 2, there'd be limited options. XI 3.x allow for greater control of rights inheritance, so you can specify no-view rights for the folder, but view rights for the contents of the folder.
So with XI Release 2, since you can't control inheritance, you'd restrict rights to the parent folder, but give each report within specific rights tailored to the User or UserGroup. If you have lots of reports, the rights admin overhead may be problematic, since you'd need to manage them per-object.
Sincerely,
Ted Ueda -
Problems displaying BO reports in an iframe in Firefox
Hi,
I have an aspx page which has an iFrame. I have provided the src for this iFrame as the BO report. When I open this page in IE, the report comes up properly. However when I open this page in Firefox, the report does not display. However if I open this URL directly in Firefox (paste the URL in the address bar), the report comes up correctly. I checked the HTML code that is generated at runtime for both the iFrame and directly on the firefox and found out that the styles that were used to display the report in iFrame was different than when used to display the report when opened directly in Firefox.
Any idea why the style was getting changed? Cause this is what is causing the reports from not being displayed in iFrames.
Regards,
Ritaif your project's name is businessobjects.
first, modify the file
path:businessobjects\enterprise115\desktoplaunch\InfoView\utils\utils.js
find the following mothod,modify the content
function findElementHelper(frame, Id) {
// frames with certain plugins (word, excel) will cause a js error because the frame document doesn't exist
if ((typeof(frame.document)).toLowerCase() == "unknown") return null;
var f = null;
try {
f = frame.document.getElementById(Id);
} catch(ex) {
// Ignore this frame if we can't access it. NS will return "Permission denied to get property
// HTMLDocument.getElementById" on some frames (eg: external hyperlink page)
if (f != null) return f;
for (var i = 0; i < frame.length; i++) {
f = findElementHelper(frame.frames<i>, Id);
if (f != null) return f;
return null;
second,modify the file
path:businessobjects\enterprise115\desktoplaunch\viewers\cdz_adv\scripts\IVIntegration.js
find the mothod 'function canGoEdit()',modify the content
try{
var isAppsFrame=(myframe.thisIsAnAppsFrame && myframe.thisIsAnAppsFrame=="wishYouAreHere")?true:false;
}catch(e){
var isAppsFrame = true; -
How to display a Report 9i from Forms if the Report has a Parameter Form?
Hi,
could some one please post me a code sample to show how to call a (paper layout, RDF) Report from Forms if I would like it to display the Report's parameter form first?
Thank you in advance.
Tamas Szecsy
I used the following code segment do achieve the job, but I get "REP-546: Warning: The value of restricted LOV parameter P_ALAL is not among the selectable values" message, even though I would like to specify the P_ALAL value on the report's parameter Form.
declare
paramlist_id ParamList;
tmp_riport_name varchar2(200);
report_id report_object;
report_job_id varchar2(200);
tmp_id number;
begin
-- init
tmp_riport_name := null;
-- parameter list
paramlist_id := get_parameter_list('mytmp_params');
if not id_null(paramlist_id) then
destroy_parameter_list(paramlist_id);
end if;
paramlist_id := Create_Parameter_List('mytmp_params');
add_parameter( paramlist_id, 'PARAMFORM', TEXT_PARAMETER, 'YES' );
-- call report
report_id := find_report_object( 'DUMMY' );
if report_id.id is null then
return;
end if;
-- display
set_report_object_property( report_id, report_execution_mode, runtime );
set_report_object_property( report_id, report_comm_mode, synchronous );
set_report_object_property( report_id, report_destype, 'preview' );
set_report_object_property( report_id, report_desformat, 'PDF' );
set_report_object_property( report_id, report_server, 'rep_geoias' );
set_report_object_property( report_id, report_filename, :ALAP_REPORTS_NAME||'.rep' );
report_job_id := run_report_object( report_id, paramlist_id );
tmp_id := to_number(substr( report_job_id, length(name_in('rep_geoias'))+2 ));
web.show_document( '/reports/rwservlet/getjobid'||tmp_id||'?server=rep_geoias', '_blank' );
END;I think you specified report object name incorrect.
in command line:
repid := FIND_REPORT_OBJECT('REPORT1');
Report1 must be name of report object in Form Builder.
However to call report from Oracle Form you must do more work. For example:
- Create report server name
- Adding some code to set property for report object base on report server you created.
Cheer! -
AFTER LOADING THE DATA INTO THE INFOCUBE IT SHOULD NOT DISPLAY IN REPORTING
Hi experts,
I have the data in infocube. When i selected the cube in reporting it should not display i.e; the data should not display in reporting.
thanks nd regards,
venkatBit strange requirement. But if you have data in Cube and automatically its will be available for Reporting. unlike ODS, we do not have option of "Automatic request activation".
However on repoeting side, you can restrict the values to # and exclude everything from slection. But not good solution as such.
Regards
Pankaj -
Parent - child - hierarchy - display in report output?
<b>CHILD PARENT LEVEL HIERARCHY</b>
140339991000 901589991000 1 /901589991000
140349990000 901589991000 1 /901589991000
140359999000 901589991000 1 /901589991000
991539998000 906349995000 3 /901589991000/140359999000/906349995000
991539998000 906339996000 3 /901589991000/140359999000/906339996000
991539998000 951309993000 2 /901589991000/140359999000/
In my report I need to display these as levels. Example level1 displays only those numbers with level1. Level 2 on following frame displays level 2 children with the parent numbers. Similarly, level 3 in next frame displays children and parent one below the other. How can I achieve this?
Something like this:
level 3
level2
level1If you have a limited number of levels, then you may have a frme for each possible value for a level. And you would print frame_level1 only when :field_level=1 (you use the format trigger for frame_level1), print frame_level2 only when :field_level=2 and so on ...
In case you have a large number of levels, then I simply can't imagine how you wish to have the data printed.
HTH -
Hi Experts,
I am using the Crystal Reports Server V1 trial version. I want to display Xcelsius Dashboards through InfoView. Because the add-function for flash (swf) files isnt avaiable I choose the option to insert my swf files into Crystal Reports and add this to the Server.
When I create my Dashboard with the Dashboard Builder there are my Reports with the standard frame. But I only want to display the flash file. I thought that I can use the display specific report part function in Crystal Reports. So I defined it for the flash object and in InfoView I select the option too, but nothing happens.
Does somebody know how to use this function correctly?
Regards
Janhello,
if you have already defined your flash object as the default report part in the crystal reports > file > report settings then:
1) in infoview in your dashboard open corportate analytics and drag your report over
2) edit this analytic to use the parts viewer
3) ensure that you select on demand
4) select default report part
i have tested this on the cr server v1 and it works aok.
jamie -
Fix for WebHelp frame display in Mozilla?
I've checked a number of resources on this topic, including
Peter Grainge's helpful Website, but I have yet to find a solution.
When running our WebHelp Help project in Mozilla, the top portion
of the project frame that separates the navigation and topic
viewing area from the contents, index, and search tabs is hidden.
Is there some type of tweak that can be made to one of the
javascript files to make this portion of the frame display? P.S.
The JavaScript console in Mozilla reported a number of scripting
and htm page errors. The errors point to the following files:
whstart.js, whskin_tbars.htm, whskin_mbrs.htm. Thank you for your
input.You say,
The missing frame is a HUGE sore spot with our overseas
colleagues who see this as a significant flaw and would like to
have it fixed.
I'm not sure I understand what's missing.
In lieu of a picture, here's a list of window and frame
components I see in Firefox (Netscape is substantially the same;
Opera is a little different.):
1. The Firefox browser window, with toolbars, status bar,
etc. as specified in the browser's View menu.
Inside the window:
2. The main WebHelp toolbar across the width of the window.
2a. A background image or color of my choice in the toolbar.
2b. Contents, Index, Search, Glossary, "About" buttons, any
that I specified in the single source layout.
2c. A custom logo/button that I built into the skin in RH.
2d. A horizontal frame rule between the main toolbar and the
topic, visible in IE, is missing in Mozilla and the other browsers.
3. The Navigation frame at left.
3a. The minibar heading, in a background color or image of my
choice (requires a patch in whskin_mbars.htm) and a thin bottom
border.
3b. The "Hide" X icon (requires one of those patches)
3c. Triangle icons for browsing foward and back, if I built a
browse sequence (requires one of those patches).
3d. The selected listing -- Contents, Index, whatever.
3e. A vertical frame rule between the left and topic frames,
matching the horizontal frame rule above the topic.
4 The topic frame
4a. The topic header, if any.
4b The topic. with scrollbars if needed
4c The topic footer, if any.
So, please explain, what's missing in your WebHelp that is "a
HUGE sore spot "?
Harvey -
Budget is not getting displayed in Report S_ALR_87013558
Hi Friends,
For project the budget is not getting displayed in Report S_ALR_87013558 though the budget is planned by TCode: CJ30 and released also by TCode: CJ32
Is there any setting in customising in information systems to display in the report.
Please treat this as quite urgent.
Regards,
Manohar NHi Sridhar,
Thanks for the input.
But still Budget is not appearing in the report, even after running CJBN & CJEN.
I had a look into CJ30 but the overall Budget is available. Is there any change required in the report.
Regards,
Selva -
Text data is not displaying at Report level for an Infoobject Item name
Hi All,
Texts data is maintained at Info object level but text information is not displaying at Report level for an object. I have set the property at query level as "Text", but at report level it is displaying key values of the object, not displaying texts information. This problem occured in QA(Quality) system but not replicated in Production system. I have checked all properties at backend and query level and compared the same between QA and Production system didn't find any difference.
Please suggest what might be the cause: at report level it is displaying key values instead of the textual information even text data is mainintained at backend. In production it is displaying textal data for the IO.
Thanks in advance.Hi All,
Thanks for your valuable information. I have changed the setting under Advanced tab as "Master data" for Access type for results values, but didn't solved the problem still it showing key information for the IO.
In Production system the report displaying texts information for the IO, but in QA its displaying key information. The problem exits only in QA, its working fine in DEv and Production.
As per my understanding might be the issue with Patches will be checking with Basis team on the same.
Please suggest if you have any alternatives to fix the issue. -
I need to display a Report which contain -- del QTY and INV QTY in one
Hi ALL,
I need to display a Report which contain
<b>Customer , Material , Order No, Delivery No, Billing No , Order Qty , Dev Qty, Bill Qty , Invoiced Qty and There Values in One Line .</b>
How can I Display, When I am executing the report against the Delivery Number Bill Qty and Invoiced Qty is showing Hash ( # ).
Do I need to right any Routines for this, if I am correct, where I have to write that code and what is the code ,
What are the Consolidation routines ?????
I am working on BI 7.
Regards ,
Shaik
Message was edited by:
shaikFrst check in backend, which all cubes have got data for each of three..
Corresponding you can go ahead with Multi/Infoset..
Look for reference no in all three cubes and pick one order and track tht by reference no in all cubes,
Hope it helps..
Thanks for points assigned -
Report 6i/Webdb -Not able to display the report in the browser - rep- 3002 error.
Would someone tell what I missed, I have set up the following:
1) a report using report builder on NT
2) my database is in Unix
3) my report server is started in NT
4) I run webdb listener for the following code: http://myweb.com/cgi/rwcgi60.exe?server=repserver+report=myreport+userid=usid/pw/connect_string+destype=cache+desformat=html. Then, I receive this message:
Error: The requested URL was not found, or cannot be served at this time.
Oracle Reports Server CGI - Report Job has terminated with error.
Reports Server Replies:
REP-3002: Error initializing printer. Please make sure a printer is installed.
Why is it thinking I want to use the printer whereas I want to display the report in the browser?. Any help would be appreciated.
nullIt sounds like that your Web CGI did not configure right. To test if your CGI configuration is correct, type:
http://hostname:port/cgi-bin/rwcgi60exe?
If you get a help screen, then you should be able to bring up your report.
Regards,
Xiaoling
Maybe you are looking for
-
Why have apple disabled file transfer between iphone and other devices?
I have recently purchased an iPhone and i was about to send a file from my iPhone to a friends android and i found that it wasnt possible. Does anyone know why apple have not allowed this feature on any of the iPhones?
-
BC4J: client object reference in app module
We know that the BC4J clients can call the server using the remote app module reference. Just wondering if the server can have references to the clients as well (so that the server could call all the clients if something on the server gets updated)?
-
Scheduling of Iphoto and Web Gallery Uploads
Hi, Does anyone know if there is an app or built in functionality in iPhoto that allows one to schedule when photos can be uploaded to the MobileMe web gallery? I don't want to do this whilst I'm working on my PC and will rather tell it what to uploa
-
Hi All, I have a problem in using the webutil hope can get some help here I have provided an option to attach scanned documents and images on the form where in the path of it will be stored on the form but the image will be loaded from the physical d
-
Custom Breaking of more than three columns - apex 3.0
Trying to create an application that has more than 3 columns for break formatting - have read of a technique thats quite long winded using decodes and grouping sets etc - but seems a bit complex for such a (supposedly) simple query. Just wondering if