Display header data only in multiple xl sheets
hi all,
my rewuirement is as follows.:
i need to write a code for template. when i click this template i have to header in different xlsheets. idont have line items.
plz send me the code.
thanks,
maheedhar.t
arey nani...requirement spelling correct ga ledu ..choodu okasari
Similar Messages
-
Hi All,
How can i display header data in a simple report(its not an ALV report).
i am planning to use event TOP-OF-PAGE for this.is this correct?
Can anyone explain me through a piece of code.
Thanks,
RupeshHi,
Top-of-page is an event which will produce a static header that is even you scroll the list the header will be displayed. But when you not use the top-of-page event You will notget the static header.
say for example,
data : itab like mara occurs 0 with header line.
select * from mara into table itab upto 100 rows.
loop at itab.
write : /1 itab-matnr.
endloop.
top-of-page.
write : /1 'header'.
also use the code,
data : itab like mara occurs 0 with header line.
select * from mara into table itab upto 100 rows.
write : /1 'header'.
loop at itab.
write : /1 itab-matnr.
endloop.
see the difference in the header.
Regards,
Sanki. -
Hi experts,
i have a scenerio in which i m displaying the data with header and after that in the next line i need the data from another table with a diffrent header the data being related to one of the field of the above displayed data.I require this to continue for different data...
Let me explain you with an example.....i display the data from sflight with header...which contains carrid,connid,currency,price etc...and now in the next line i require booking details from sbook for the same carrid to be displayed with a header...i want this sequence to be repeated for each carrid in sflight.
i hope i get some help from you people.....
thnx and regards......
RunaliHi Runali.
You could achieve this by using a table as TablePopin:
http://help.sap.com/saphelp_erp2005vp/helpdata/en/23/5e9041d3c72e7be10000000a1550b0/frameset.htm
Cheers,
Sascha -
Settings to copy header data only in copy control
Hi Friends,
I am trying to create an order with reference an invoice but i only want to copy the header data. What setting should i maintain in copy control to achieve this.
Regards,
Wasim.Hi DSR,
I have maintained below data in VTAF (Data T: 052 ,Copying requirements: 302,DataT: 103,DataT: 003)
Now i am getting dump while raising sales order with ref a billing doc.
Can anyone please suggest how to rectify the same.
DUMP:
Short text
Missing parameter with PERFORM.
What happened?
Error in the ABAP Application Program
The current ABAP program "SAPLV45C" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYN_CALL_PARAM_MISSING', was
not caught in
procedure "VBRK-VBELN_PRUEFEN" "(FORM)", nor was it propagated by a RAISING
clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
A PERFORM was used to call the routine "BEDINGUNG_PRUEFEN_302" of the program
"SAPLV45C".
The current call contains 0 actual parameter(s),
but the routine "BEDINGUNG_PRUEFEN_302" expects 1 parameters.
Missing RAISING Clause in Interface
Program SAPLV45C
Include LV45CF0V
Row 14
Module type (FORM)
Module Name VBRK-VBELN_PRUEFEN
ger Location of Exception
Program SAPLV45C
Include LV45CF0V
Row 51
Module type (FORM)
Module Name VBRK-VBELN_PRUEFEN
ce Code Extract
SourceCde
1 HVBAK-VKORG = VBRK-VKORG.
2 HVBAK-VTWEG = VBRK-VTWEG.
3 HVBAK-SPART = VBRK-SPART.
4 ORG_FROM_NEW_DOCUMENT = CHARX.
5 ENDIF.
6 IF POSITIONSVORSCHLAG = SPACE.
7 PERFORM VBUK_SELECT USING VBRK-VBELN.
8 ENDIF.
9 ELSE.
0 MESSAGE E001.
1 ENDIF.
32
33 IF POSITIONSVORSCHLAG = SPACE.
34 * Kopf-Kopierbedingung pruefen
35 PERFORM TVCPA_SELECT USING SPACE " AUART_VON
36 FVBRK-FKART " AUART_VON
37 HVBAK-AUART. " AUART_NACH
38
39 PERFORM VBPA_SELECT_PROBE USING VBRK-VBELN.
40
41 * Falsche Belegnummer in Anlegen mit Bezug eingegeben
42 IF SUBRC > 0.
43 EXIT.
44 ENDIF.
45
46 IF STEUERUNG-NUMMER <> '000'.
47 PERFORM (STEUERUNG) IN PROGRAM SAPLV45C.
48 ENDIF.
49 ENDIF.
50
>>>>> ENDFORM.
52 *eject
53
54 &----
55 *& Form VBAP-UEPOS_LESEN
56 &----
57 * text *
58 ----
59 FORM VBAP-UEPOS_LESEN USING VALUE(VS_VBELN)
60 VALUE(VS_UEPOS).
61
62
64 EXPORTING
65 I_DOCUMENT_NUMBER = VS_VBELN
66 I_ITEM_NUMBER = VS_UEPOS
67 IMPORTING
68 E_VBAP = VBAP
69 EXCEPTIONS
70 ITEM_NOT_FOUND = 01. -
How to display header data of an input layout
Hi Experts,
I have a problem with the two-parted layout. The header information is not displayed in the folder (neither for the input nor for the output layout).
Some data can be displayed in variables and/or column headings but still I need to show some more important data.
Does anybody have an idea how to solve this?
Any hints will be appreciated.
Thanks,
AttilaHi Alexander,
Yes, I mean the folder type '1 Folder with Separate Input/Output Areas, Not Web-enabled'. We use the upper layout for data input for several combinations and we sum up the data in the lower output layout.
In this way the user doesn't have to swith to a query and refresh it every time he wants to know where he is. So I think it makes a lot of sense.
The thing is, I have only one active button (Check) for the input layout and no buttons at all for the output layout.
I checked the header settings in BPS0, its OK. I have three unchecked characteristics. But I still don't have the header or the 'Header On/Off' button when I execute the folder.
I'm affraid this option is not available in our version as Vlad wrote. Which SEM version do you have ?
Best,
Attila -
How to display group data only when the particular group is clicked
Hi frnds,
I want to design my report as follows:
Data is grouped by country, and for each country it is showing details for that country. I need to find out a way to display all group names first. E.g.
Argentina
Aruba
Australia
And on click of particular country name it should display its details below it
e.g.
-Argentina
BBB Mendoza 123456
+Aruba
+Australia
Has anyone done that before??? Is it possible to achieve it through Crystal Report Designer (2008)?? If yes then how???
A prompt reply would be appriciated as i need this information urgently.
Thanx.Thanx Jehanzeb,
The sample u suggested did not solve my problem since it is opening the group data in new window.
My question is - can we show/hide group data by clicking on that particular group (under that group name).
e.g.
->(initial display - only groups)
+ Australia
+ America
+ Bhutan
->(on clicking a group)
+ Australia
\- America
abc xyx 12213213 wqe9090
dsd dcv 90eur90e ifjjdioifdoi
+ Bhutan
In short, I am looking for on-demand display of records grouped by some field and the expansion of data must be done in the same page.
Edited by: Kuldeep Chitrakar on Aug 6, 2008 12:44 PM
Edited by: Kuldeep Chitrakar on Aug 6, 2008 12:45 PM
Edited by: Kuldeep Chitrakar on Aug 6, 2008 12:46 PM -
Netflow is displaying inbound data only, but not outbound
We use NetQos to monitor our Netflows. Some tunnels at our remote site show both inbound and outbound netflow data, yet some tunnels only show inbound. The sh run confirms that both tunnels are set up in equivilant manner i.e. "ip flow ingress", "ip flow egress", and "ip route-cache flow". The NetQos tool looks accurate, what am I missing? jimmyc
hi Jeff,
Check if the alerts are raised properly, just to reassure check the table /sapapo/am_alert has the alerts you have generated. I suggest delete all alerts & check teh table has zero entries & then generate new alerts. Then try to display, if it does not appear please check if there is any system dump in ST22. While displaying alerts in alert monitor if there is a system dump (for soem reason) you dont get a dump screen, instead you get zero alerts.
I am not sure if you are using any user exit for the alert display, if yes please check them too.
Regards,
Vasu -
Display Header data to item level in me21n
Dear Friends ,
I have the requirement that Incoterm field in me21n at header level while creating purchase order needs to get reflected at item level too. Currently it is blank (at item level).
Is it the development or Customisation?
Can anybody please explain me how to go abt it?If you enter an Incoterm on header level, this is valid for all items that do not explicitly have an Incoterm.
If you then enter an Incoterm on item level, this overwrites the Incoterm entered on header level.
So it's not clear why this requirement has come up.
http://help.sap.com/saphelp_srm50/helpdata/en/0c/b91b3f7f9e3642e10000000a114084/content.htm -
Displaying Header Data within Group Section
I am trying to reformat our 1099 forms and am having trouble getting our company address to show up w/in the table that contains each individual employee's information. I can't upload the data since it contains sensitive info but basically I have a group for each employee's info:
<LIST_G_MAIN_SELECT>
<G_EMP>
<NAME>Rob</NAME>
<SSN>111-11-1111</SSN>
<EMP_ADDRESS>500 Any Street</EMP_ADDRESS>
</G_EMP>
<G_EMP>
<NAME>Steve</NAME>
<SSN>111-22-1111</SSN>
<EMP_ADDRESS>450 Any Street</EMP_ADDRESS>
</G_EMP>
</LIST_G_MAIN_SELECT>
<C_COMPANY_ADDRESS>1000 N 1ST STREET</C_COMPANY_ADDRESS>
In my template I am using a <?for-each:G_EMP?> and then have the employee info in the table but I also need to put the C_COMPANY_ADDRESS in every table as well. When I point to that field it does not show up. I am assuming it is b/c it is outside the group?
Thanks in advance!!
RobHi Rob,
put them in variable outside the place where it is accessible and access it inside the loop
<?variable:var_add;/APXT7F99/C_COMPANY_ADDRESS?> put this before the loop.
and inside the loop access it as <?$var_add?>
or
make the the loop from root ie. absolute path not by relative path
something like
<?for-each:/APXT7F99/LIST_G_MAIN_SELECT/G_EMP?
inside the loop, you can access the addres as <?../../C_COMPANY_ADDRESS?>
or
Would be glad to assist you , if i have the xml and template , remove sensitive info and send them :) to my id. -
Is it possible to display a date as (DD-MON-YYYY) in excel output using excel template in xml publisher where date should be displayed as date only not string.
I've tried to use hierarchy node variables, but it seems like you can't specify a attribute of the hierarchy such as level. So with the WBS hierarchy, if you create a hierarchy node variable, you specify the WBS value to select (If I understand this correctly). I wish I could instead specify "give me all the WBS nodes that happen to have the value of the level attribute greater or equal to 3. If I understand Juergens post, he is saying make security access so that only certain WBS levels can be returned in the query. I suppose we can try that, but that would then preclude getting the level 1 and 2 in the future if the authorization is global.
-
Hi All,
I want to display header data & after single record of header
record corresponding item details to be displayed.
What i have to use for that. Is it possible with ALV GRID.
Please Give me replyhi
good
Add following code to 'STATUS_0100'(PBO module)
Create ALVtree Hierarchy
PERFORM create_alvtree_hierarchy.
Add following code to 'Z......F01' INCLUDE
*& Form CREATE_ALVTREE_HIERARCHY
text
Builds ALV tree display, (inserts nodes, subnodes etc)
form create_alvtree_hierarchy.
DATA: NODE LIKE MTREESNODE,
ld_node type string.
LOOP AT it_ekko INTO wa_ekko.
Build the node table.
Caution: The nodes are inserted into the tree according to the order
in which they occur in the table. In consequence, a node must not
occur in the node table before its parent node.
Node with key 'Root'
node-node_key = wa_ekko-ebeln. " 'Root'. "#EC NOTEXT
" Key of the node
CLEAR node-relatkey. " Special case: A root node has no parent
CLEAR node-relatship. " node.
node-hidden = ' '. " The node is visible,
node-disabled = ' '. " selectable,
node-isfolder = 'X'. " a folder.
CLEAR node-n_image. " Folder-/ Leaf-Symbol in state "closed":
" use default.
CLEAR node-exp_image. " Folder-/ Leaf-Symbol in state "open":
" use default
CLEAR node-expander. " see below.
node-text = wa_ekko-ebeln. "'Root'.
APPEND node TO node_table.
LOOP AT it_ekpo INTO wa_ekpo WHERE ebeln EQ wa_ekko-ebeln.
Node with key wa_ekpo-ebelp "'Child1'
ld_node = sy-tabix.
concatenate wa_ekpo-ebelp ld_node into ld_node.
node-node_key = ld_node. "'Child1'. #EC NOTEXT
Node is inserted as child of the node with key wa_ekpo-ebeln "'Root'.
node-relatkey = wa_ekpo-ebeln. " 'Root'.
node-relatship = cl_gui_simple_tree=>relat_last_child.
node-hidden = ' '.
node-disabled = ' '.
node-isfolder = ' '.
CLEAR node-n_image.
CLEAR node-exp_image.
node-expander = ' '. " The node is marked with a '+', although
it has no children. When the user clicks on the
+ to open the node, the event
expand_no_children is fired. The programmer can
add the children of the
node within the event handler of the
expand_no_children event
(see method handle_expand_no_children
of class lcl_application)
node-text = wa_ekpo-ebelp.
APPEND node TO node_table.
ENDLOOP.
ENDLOOP.
Add nodes to alv tree
CALL METHOD GD_TREE->ADD_NODES
EXPORTING
TABLE_STRUCTURE_NAME = 'MTREESNODE'
NODE_TABLE = NODE_TABLE
EXCEPTIONS
FAILED = 1
ERROR_IN_NODE_TABLE = 2
DP_ERROR = 3
TABLE_STRUCTURE_NAME_NOT_FOUND = 4
OTHERS = 5.
thanks
mrutyun^ -
Post Author: blofrese
CA Forum: Exporting
I am using Crystal XI and need to output several columns worth of data. Do to so I attempted to have the data presented in 2 rows within the same section.
Example:Page Header b contains: 7 columns 5 columns
Details a contains: 7 columns 5 columns
When exporting to excel data only I only see the bottom 5 column header info and all the detail data in the correct order. How do I get all the Headers to display on the export file?
Thank you for your time.Post Author: jw1234
CA Forum: Exporting
I have the same problem. Have you find the solution yet??
I'm trying to export as Excel data only and have 2 page header band. It only display the 2nd band with the bottom label. None of the 1st band shows up.
Page Header a contains:Report TitleDate Range
Page Header b contains:Dept Name4 columns
Please help. Thanks! -
HR BAdi to display the header data of employee (PA30)
Hello All,
I am using transactions PA30 and PA20 to change the HR master data. I will explain my problem as follows.
1) Transaction pa30. Enter personal number. Press enter. Screen will display employee basic info at header, just before selecting the any infotype. SSN number is also displayed for USA employee.
2) I will select infotype 0002, change the SSN number, save it. before saving, in function module exit:EXIT_SAPFP50M_002 (INCLUDE ZXPADU02) , i am encrypting the SSN number and then stores it in DB.
3) In BADI HRPAD00INFTY(BEFOE_OUTPUT), i am taking same encrypted SSN number form DB, decrypt it, and showing on screen.
But the header part is still showing encrypted value. It is not decrypting the value before display. After investigation i found that, while displaying header part, mentioned Badi is getting called. I want to decrypt he same before display in header part only. It is working fine with detailed part (Means 0002 infotype screen).
Which Badi should i use to decrypt the SSN number, before display it in header part??
Any help??
Thanks,
PrashantHi Prashant,
The Badi method is triggering before the PBO, Means before infotype screen 3000
In your requirement you have to implement the method AFTER_INPUT rather than BEFORE_OUTPUT in the same BADI implementation
This will work, Try it out.
Thanks
Pavan
Edited by: pavan kanike on Jan 30, 2009 7:34 PM -
How To avoid column heading for only total line in ALV list Display
Hi,
How To avoid column heading for only total line in ALV list Display.Hi,
to change colunm header field catlog is built
look at the example below
Changing column text headers
use this to change, hide, or alter the ALV columns
CLEAR: gt_fcat.
READ TABLE gt_fcat WITH KEY fieldname = 'TEXT1' " ***
*TEXT1 is your field name
ASSIGNING <gtfcat>.
IF sy-subrc = 0.
<gtfcat>-coltext = 'Date Type'.
<gtfcat>-no_out = ' '.
<gtfcat>-tooltip = 'Date Type Text from IT0019'.
<gtfcat>-seltext = 'IT0019'.
keep seltext to '' if u want to hide
ENDIF.
regards
austin -
Downloading data into multiple work sheets in excel
Hi All,
Could you please tell me the way of downloading data into multiple work sheets .
Now, we are downloading data into multiple excel files and after that copying all the excel file data in to different work sheets of the single excel manually.
So , here I want directly download the data into different work sheets of single excel file.
Regards,
Siddivinesh JoguHi,
Down load into three worksheets in one XL
REPORT ZKC_TEST1.
INCLUDE ole2incl.
DATA: w_cell1 TYPE ole2_object,
w_cell2 TYPE ole2_object.
*--- Ole data Declarations
DATA: h_excel TYPE ole2_object, " Excel object
h_mapl TYPE ole2_object, " list of workbooks
h_map TYPE ole2_object, " workbook
h_zl TYPE ole2_object, " cell
h_f TYPE ole2_object, " font
gs_interior TYPE ole2_object, " Pattern
worksheet TYPE ole2_object,
h_cell TYPE ole2_object,
h_cell1 TYPE ole2_object,
range TYPE ole2_object,
h_sheet2 TYPE ole2_object,
h_sheet3 TYPE ole2_object,
gs_font TYPE ole2_object,
e_color TYPE ole2_object,
gs_italic TYPE ole2_object,
flg_stop(1) TYPE c.
** Internal table Declaration
DATA: BEGIN OF t_excel OCCURS 0,
MATNR type mara-matnr, "(18) type c,
ERSDA type mara-ersda, " (8) type c,
ERNAM type mara-ernam, "(12) type c,
LAEDA type mara-laeda, "(8) type c,
AENAM type mara-aenam, "(12) type c,
VPSTA type mara-vpsta, "(15) type c,
PSTAT type mara-pstat, "(15) type c,
END OF t_excel.
DATA: t_excel_bckord LIKE t_excel OCCURS 0 WITH HEADER LINE,
t_excel_bcklog LIKE t_excel OCCURS 0 WITH HEADER LINE,
t_excel_blkord LIKE t_excel OCCURS 0 WITH HEADER LINE.
data: wa_excel_bckord like line of t_excel.
TYPES: data1(1500) TYPE c,
ty TYPE TABLE OF data1.
DATA: it TYPE ty WITH HEADER LINE,
it_2 TYPE ty WITH HEADER LINE,
it_3 TYPE ty WITH HEADER LINE,
rec TYPE sy-tfill,
deli(1) TYPE c,
l_amt(18) TYPE c.
DATA: BEGIN OF hex,
tab TYPE x,
END OF hex.
FIELD-SYMBOLS: <fs> .
CONSTANTS cns_09(2) TYPE n VALUE 09.
ASSIGN deli TO <fs> TYPE 'X'.
hex-tab = cns_09.
<fs> = hex-tab.
DATA gv_sheet_name(20) TYPE c .
*---selecting into tables
select MATNR
ERSDA
ERNAM
LAEDA
AENAM
VPSTA
PSTAT
from mara into table t_excel_bckord
where pstat = 'KVELBCD'.
wa_excel_bckord-matnr = 'MATNR'.
wa_excel_bckord-ersda = 'ERSDA'.
wa_excel_bckord-ernam = 'ERNAM'.
wa_excel_bckord-laeda = 'LAEDA'.
wa_excel_bckord-aenam = 'AENAM'.
wa_excel_bckord-vpsta = 'VPSTA'.
wa_excel_bckord-pstat = 'PSTAT'.
INSERT wa_excel_bckord
INTO t_excel_bckord INDEX 1 .
select MATNR
ERSDA
ERNAM
LAEDA
AENAM
VPSTA
PSTAT
from mara into table t_excel_bcklog
where pstat = 'KVELBCDP'.
INSERT wa_excel_bckord
INTO t_excel_bcklog INDEX 1 .
select MATNR
ERSDA
ERNAM
LAEDA
AENAM
VPSTA
PSTAT
from mara into table t_excel_blkord
where pstat = 'KEBC'.
INSERT wa_excel_bckord
INTO t_excel_blkord INDEX 1 .
LOOP AT t_excel_bckord.
CONCATENATE
t_excel_bckord-MATNR
t_excel_bckord-ERSDA
t_excel_bckord-ERNAM
t_excel_bckord-laeda
t_excel_bckord-aenam
t_excel_bckord-vpsta
t_excel_bckord-pstat
INTO it
SEPARATED BY deli.
APPEND it.
CLEAR it.
ENDLOOP.
LOOP AT t_excel_bcklog.
CONCATENATE
t_excel_bcklog-matnr
t_excel_bcklog-ersda
t_excel_bcklog-ernam
t_excel_bcklog-laeda
t_excel_bcklog-aenam
t_excel_bcklog-vpsta
t_excel_bcklog-pstat
INTO it_2
SEPARATED BY deli.
APPEND it_2.
CLEAR it_2.
ENDLOOP.
LOOP AT t_excel_blkord.
CONCATENATE
t_excel_blkord-matnr
t_excel_blkord-ersda
t_excel_blkord-ernam
t_excel_blkord-laeda
t_excel_blkord-aenam
t_excel_blkord-vpsta
t_excel_blkord-pstat
INTO it_3
SEPARATED BY deli.
APPEND it_3.
CLEAR it_3.
ENDLOOP.
*--- start Excel
IF h_excel-header = space OR h_excel-handle = -1.
CREATE OBJECT h_excel 'EXCEL.APPLICATION'.
ENDIF.
*--- get list of workbooks, initially empty
CALL METHOD OF h_excel 'Workbooks' = h_mapl.
SET PROPERTY OF h_excel 'Visible' = 1.
CALL METHOD OF h_mapl 'Add' = h_map.
gv_sheet_name = 'Back Orders'.
GET PROPERTY OF h_excel 'ACTIVESHEET' = worksheet.
SET PROPERTY OF worksheet 'Name' = gv_sheet_name .
*--Formatting the area of additional data 1 and doing the BOLD
CALL METHOD OF h_excel 'Cells' = w_cell1
EXPORTING
#1 = 1
#2 = 1.
CALL METHOD OF h_excel 'Cells' = w_cell2
EXPORTING
#1 = 1
#2 = 50.
CALL METHOD OF h_excel 'Range' = h_cell
EXPORTING
#1 = w_cell1
#2 = w_cell2.
GET PROPERTY OF h_cell 'Font' = gs_font .
SET PROPERTY OF gs_font 'Bold' = 1 .
SET PROPERTY OF gs_font 'Name' = 'Arial' .
GET PROPERTY OF h_cell 'Interior' = e_color.
SET PROPERTY OF e_color 'ColorIndex' = 35.
GET PROPERTY OF h_cell 'Font' = gs_italic .
SET PROPERTY OF gs_italic 'Italic' = 1 .
DATA l_rc TYPE i.
CALL METHOD cl_gui_frontend_services=>clipboard_export
IMPORTING
data = it[]
CHANGING
rc = l_rc
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
not_supported_by_gui = 3
OTHERS = 4.
CALL METHOD OF h_excel 'Cells' = w_cell1
EXPORTING
#1 = 1
#2 = 1.
CALL METHOD OF h_excel 'Cells' = w_cell2
EXPORTING
#1 = 1
#2 = 1.
CALL METHOD OF h_excel 'Range' = range
EXPORTING
#1 = w_cell1
#2 = w_cell2.
CALL METHOD OF range 'Select'.
CALL METHOD OF worksheet 'Paste'.
gv_sheet_name = 'Backlog'.
GET PROPERTY OF h_excel 'Sheets' = h_sheet2 .
CALL METHOD OF h_sheet2 'Add' = h_map.
SET PROPERTY OF h_map 'Name' = gv_sheet_name .
GET PROPERTY OF h_excel 'ACTIVESHEET' = worksheet.
*--Formatting the area of additional data 1 and doing the BOLD
CALL METHOD OF h_excel 'Cells' = w_cell1
EXPORTING
#1 = 1
#2 = 1.
CALL METHOD OF h_excel 'Cells' = w_cell2
EXPORTING
#1 = 1
#2 = 50.
CALL METHOD OF h_excel 'Range' = h_cell
EXPORTING
#1 = w_cell1
#2 = w_cell2.
GET PROPERTY OF h_cell 'Font' = gs_font .
SET PROPERTY OF gs_font 'Bold' = 1 .
GET PROPERTY OF h_cell 'Interior' = e_color.
SET PROPERTY OF e_color 'ColorIndex' = 40.
CALL METHOD cl_gui_frontend_services=>clipboard_export
IMPORTING
data = it_2[]
CHANGING
rc = l_rc
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
not_supported_by_gui = 3
OTHERS = 4.
CALL METHOD OF h_excel 'Cells' = w_cell1
EXPORTING
#1 = 1
#2 = 1.
CALL METHOD OF h_excel 'Cells' = w_cell2
EXPORTING
#1 = 1
#2 = 1.
CALL METHOD OF h_excel 'Range' = range
EXPORTING
#1 = w_cell1
#2 = w_cell2.
CALL METHOD OF range 'Select'.
CALL METHOD OF worksheet 'Paste'.
gv_sheet_name = 'Blocked Orders'.
GET PROPERTY OF h_excel 'Sheets' = h_sheet3 .
CALL METHOD OF h_sheet3 'Add' = h_map.
SET PROPERTY OF h_map 'Name' = gv_sheet_name .
GET PROPERTY OF h_excel 'ACTIVESHEET' = worksheet.
*--Formatting the area of additional data 1 and doing the BOLD
CALL METHOD OF h_excel 'Cells' = w_cell1
EXPORTING
#1 = 1
#2 = 1.
CALL METHOD OF h_excel 'Cells' = w_cell2
EXPORTING
#1 = 1
#2 = 50.
CALL METHOD OF h_excel 'Range' = h_cell
EXPORTING
#1 = w_cell1
#2 = w_cell2.
GET PROPERTY OF h_cell 'Font' = gs_font .
SET PROPERTY OF gs_font 'Bold' = 1 .
GET PROPERTY OF h_cell 'Interior' = e_color.
SET PROPERTY OF e_color 'ColorIndex' = 45.
CALL METHOD cl_gui_frontend_services=>clipboard_export
IMPORTING
data = it_3[]
CHANGING
rc = l_rc
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
not_supported_by_gui = 3
OTHERS = 4.
CALL METHOD OF h_excel 'Cells' = w_cell1
EXPORTING
#1 = 1
#2 = 1.
CALL METHOD OF h_excel 'Cells' = w_cell2
EXPORTING
#1 = 1
#2 = 1.
CALL METHOD OF h_excel 'Range' = range
EXPORTING
#1 = w_cell1
#2 = w_cell2.
CALL METHOD OF range 'Select'.
CALL METHOD OF worksheet 'Paste'.
*--- disconnect from Excel
FREE OBJECT h_zl.
FREE OBJECT h_mapl.
FREE OBJECT h_map.
FREE OBJECT h_excel.
Thanks,
Krishna..
Maybe you are looking for
-
Javamail to send message with a custom messageclass to outook exchange
Hello, I developed a microsoft outlook addin which added a custom message class to our outlook exchange. Now if a user sends a message of type "IPM.Note.OurCustomForm"; the recipient gets our custom addin when the message is received. My question is,
-
my hp photosmart premium c390g-m installed a few years ago has been working fine. now will not print in black. new cartridge has been installed. cleaned printhead. alignment fails. do i need a new printer?
-
Greetings Everyone, I am getting the follow up errors: "This field contains duplicate values. Remove all duplicate values and try the operation again." when I tried to make the field "Claim Number" from the list in site collection library. See the sc
-
My iPod Classic will not shuffle
My playlists show as shuffled in iTunes and on the iPod, but when I play the playlist it only plays the songs within that playlist in order by artist, album & song. Any suggestions?
-
Assuming I can upgrade to ST 2.0 at some point without losing my custom icons... I just read about a tool called Speed Launch that essentially you give it the programs you need to open all at once, and then one click opens them all. I have several ta