Need to print Records as according to line values.
Hi All,
I have a query,in my report when i pass the po_number,it prints the po details and line details.For each line i have taxes also.
For Example if i have 5 lines (1,2,3,4,5) and for 1st,2nd and 3rd line's have a,b,c,d as the taxes and for 4th and 5th having a,b as taxes.
Now i need to print the reportin such a manner that,first i need to print all the three lines (1,2,3) and then need to print there taxes(a,b,c,d).
and then need to print 4th and 5th line and followed by taxes(a,b) which the both line contains.
Waiting for you valuable comments..
Thanks in Advance.....
RR
And whats the rule at what time the taxes for some preceding lines should be printed?
Similar Messages
-
Selecting a column in a table according to a value
Hi,
I am stuck with a little problem here. I need to fill a column according to a value. I have an xml that will looks like this to make it simple. (Don't worry, I am not managing the status of a stock of Candy ;-))
I have to build in rtf.
<?xml version="1.0" encoding="UTF-8" ?>
- <ROWSET>
- <ROW>
<CANDY>Bubble gum</CANDY>
<SUGAR>SUGARFREE</SUGAR>
</ROW>
- <ROW>
<CANDY>Cinnamon candy</CANDY>
<SUGAR>SUGARFREE</SUGAR>
</ROW>
- <ROW>
<CANDY>Gummy candy</CANDY>
<SUGAR>SUGAR</SUGAR>
</ROW>
</ROWSET>
I have a table with two columns. I need to put on the left column the "SUGARFREE" candy and on the right the "SUGAR" candy.
Is there any condition to make this happen. Or do I have to make two table of one column next to the other and adapt a if condition in the for-each.
best regards,
OlivierHave the same table structure with two columns and have for-each with conditions in each of your columns.
Say in column1: <?for-each:ROW[SUGAR='SUGARFREE']?>text to print <?end for-each?>
column2: <?for-each:ROW[SUGAR='SUGAR']?>text to print <?end for-each?>
Hope this is what you want -
Need to print sheet of multiple identical labels from one data record
Post Author: mhamill
CA Forum: General
I need to print 18 labels on a sheet 3 columns x 6 rows of the SAME LABEL based on a single data record,
I've got the label size all set but can only find a way to produce 1 label if I only have 1 record in the data.
Is there a repeat or other function which will let me do this similar to the MS WORD Repeat label functionality?
ThanksMikePost Author: SKodidine
CA Forum: General
Try replicatestring function. You might have to use chrw(13) for carriage returns to make it go to the end of the label before printing the next one. -
Need to print new line when "," in string
Hi,
I have a string having value 12,221,23,67...
I need to print a new line after ", "
i;e 12
221
23
67....
Please suggest.
Thanks,
AjitHi Team ,
its done.
I have used chr 13, chr10 and it print new lines for me
v_serial_num:=v_serial_num||','||CHR(13) || CHR(10)||rec.SERIAL_NUMBER;
Thanks,
Ajit -
I need to print logo in alv grid
I need to print logo in alv grid .As of now its getting displayed but it cannot be printed .Kindly tell me wether there is any option to print it .Eitjer using ALV or Object oriented ALV.Please reply soon
Hi Deepti,
Refer the code below.
report sy-repid.
type-pools : slis.
*ALV Formatting tables /structures
data: gt_fieldcat type slis_t_fieldcat_alv.
data: gt_events type slis_t_event.
data: gs_layout type slis_layout_alv.
data: gt_page type slis_t_listheader.
data: gs_page type slis_listheader.
data: v_repid like sy-repid.
*ALV Formatting work area
data: w_fieldcat type slis_fieldcat_alv.
data: w_events type slis_alv_event.
data: gt_bsid type table of bsid with header line.
initialization.
perform build_events.
perform build_page_header.
start-of-selection.
*perform build_comment. "top_of_page - in initialization at present
select * from bsid into table gt_bsid up to 10 rows.
*perform populate_for_fm using '1' '3' 'BUKRS' '8' 'GT_BSID' 'Whee'.
*USING = Row, Column, Field name, display length, table name, heading
*OR
perform build_fieldcat.
gs_layout-zebra = 'X'.
*top of page event does not work without I_callback_program
v_repid = sy-repid.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = v_repid
i_structure_name = 'BSID'
i_background_id = 'ALV_BACKGROUND'
i_grid_title = 'This is the grid title'
I_GRID_SETTINGS =
is_layout = gs_layout
it_fieldcat = gt_fieldcat[]
it_events = gt_events[]
tables
t_outtab = gt_bsid.
Form..............: populate_for_fm
Description.......: Populates fields for function module used in ALV
form populate_for_fm using p_row
p_col
p_fieldname
p_len
p_table
p_desc.
w_fieldcat-row_pos = p_row. "Row Position
w_fieldcat-col_pos = p_col. "Column Position
w_fieldcat-fieldname = p_fieldname. "Field name
w_fieldcat-outputlen = p_len. "Column Lenth
w_fieldcat-tabname = p_table. "Table name
w_fieldcat-reptext_ddic = p_desc. "Field Description
w_fieldcat-input = '1'.
append w_fieldcat to gt_fieldcat.
clear w_fieldcat.
endform. " populate_for_fm
*& Form build_events
form build_events.
data: ls_event type slis_alv_event.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = gt_events.
read table gt_events with key name = slis_ev_user_command
into ls_event.
if sy-subrc = 0.
move slis_ev_user_command to ls_event-form.
append ls_event to gt_events.
endif.
read table gt_events with key name = slis_ev_top_of_page
into ls_event.
if sy-subrc = 0.
move slis_ev_top_of_page to ls_event-form.
append ls_event to gt_events.
endif.
endform. " build_events
*& Form USER_COMMAND
When user command is called it uses 2 parameters. The itab
passed to the ALV is in whatever order it currently is on screen.
Therefore, you can read table itab index rs_selfield-tabindex to get
all data from the table. You can also check r_ucomm and code
accordingly.
form user_command using r_ucomm like sy-ucomm
rs_selfield type slis_selfield.
read table gt_bsid index rs_selfield-tabindex.
error checking etc.
set parameter id 'KUN' field gt_bsid-kunnr.
call transaction 'XD03' and skip first screen.
endform.
*& Form top_of_page
Your own company logo can go here if it has been saved (OAOR)
If the logo is larger than the size of the headings in gt_page,
the window will not show full logo and will have a scroll bar. Thus,
it is a good idea to have a standard ALV header if you are going to
use logos in your top of page.
form top_of_page.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = gt_page
i_logo = 'ENJOYSAP_LOGO'.
endform.
*& Form build_fieldcat
*Many and varied fields are available here. Have a look at documentation
*for FM REUSE_ALV_LIST_DISPLAY and REUSE_ALV_FIELDCATALOG_MERGE
form build_fieldcat.
w_fieldcat-fieldname = 'BUDAT'.
w_fieldcat-seltext_m = 'Dte pst'.
w_fieldcat-ddictxt(1) = 'M'.
Can change the position of fields if you do not want them in order
of the DDIC or itab
w_fieldcat-row_pos = '1'.
w_fieldcat-col_pos = '10'.
append w_fieldcat to gt_fieldcat.
clear w_fieldcat.
endform. " build_fieldcat
*& Form build_page_header
gt_page is used in top of page (ALV subroutine - NOT event)
*H = Header, S = Selection, A = Action
form build_page_header.
For Headers, Key is not printed and is irrelevant. Will not cause
a syntax error, but is not used.
gs_page-typ = 'H'.
gs_page-info = 'Header 1'.
append gs_page to gt_page.
gs_page-typ = 'H'.
gs_page-info = 'Header 2'.
append gs_page to gt_page.
For Selections, the Key is printed (bold). It can be anything up to 20
bytes. It gets printed in order of code here, not by key value.
gs_page-typ = 'S'.
gs_page-key = 'And the winner is:'.
gs_page-info = 'Selection 1'.
append gs_page to gt_page.
gs_page-typ = 'S'.
gs_page-key = 'Runner up:'.
gs_page-info = 'Selection 2'.
append gs_page to gt_page.
For Action, Key is also irrelevant.
gs_page-typ = 'A'.
gs_page-info = 'Action goes here'.
append gs_page to gt_page.
endform. " build_page_header
Settings for the Logo :
01) GOTO - OAOR (Business Document Navigator)
02) Give Class Name - PICTURES
Class Type - OT
Object type - whatever you want to call your area EG: OURCOMP.... then Execute
03) Top left will say PICTURES. Bottom left will have multi tab. Select Create and double-click on Screen.
04) Select your image from the appropriate directory.
05) Give the image an appropriate name (not Screen)
06) It will tell you document stored successfully.
07) You can now find your logo under the heading OURCOMP in top left window.
08) You can reference the logo in things like FM REUSE_ALV_COMMENTARY_WRITE or any other area which may reference these things. EG: I_LOGO = 'OURCOMP'. You can preview image by double-clicking it.
<b>Please reward points if it helps.</b>
Regards,
Amit Mishra
Message was edited by: Amit Mishra -
Does anyone know how to access sms text messages from iphone 5c backup from icloud or itunes? Apparently SMS can be restored so data I need must be stored in backup. I need to print a series of abusive/threatening SMS messages received on my iphone 5c from one sender. I need the time, date & whatever data is stored about source/sender of messages, as well as content. How can I access this data to create a chronological record of the abusive SMS messages and can I preserve the iphone's message log specifically-- so I can access records of these texts without having to restore a back-up? I need to do this to provide evidence for my solicitor and preserve that evidence for future court proceedings, thank you.
http://www.wideanglesoftware.com/touchcopy/index.php?gclid=CMr1..
http://www.ecamm.com/mac/phoneview/ -
How to print text in a new line in a text view.
Hi,
I have a situation where I need to print two lines inside a text view.
for eg: Bye Bye < user name>
Have a nice day!!
I am assigning this to the context by conactenating Bye Bye < user name> Have a nice day!!.
But the text view prints it a same line.
How can I print Have a nice day!!. in the second line.
Any suggestions and ideas are welcome and appreciated.
Thanks and regards.Hi,
This link will help you to do all the functions in text view using HTML.
[html in text view|http://help.sap.com/saphelp_erp2005/helpdata/en/08/5696420cc2c56ae10000000a155106/content.htm]
Karthik.R -
Printing fixed number of Invoice Line in rtf template with level two group
Hi,
I have to print fixed number of invoice lines on a page. Invoce tempalte design has a table with header and summary(Invoice , tax and shiping totals) at each page in table footer. The table should repeate at each page with header and footer. I need to print specific number of rows or number of rows wihich page can accumulate in table body on each page.
I checked few blogs giving solution for fixed number of rows printing say
"Anatomy of a Template I - Fixed Row Enumeration"(http://blogs.oracle.com/xmlpublisher/2007/03/27/)
and
http://oracle.anilpassi.com/xml-publisher-developing-reports-printed-on-pre-printed-stationary-2.html
Above two blogs explanation has only one group at line level. but in my case there are two groups (Parent and child) at line level. I am able to count rows in parent group but it is not counting lines in child group.
Edited by: Bhanu Yadav on Apr 19, 2011 2:10 AMWill it be possible for you to move the 1st and 3rd sections to header/footer?
So that if the 2nd section spills over to next page too, starting position of 3rd section wont be affected. -
Multiple PR-PO but need to print GR based on PR
Hi All,
We have multiple PR grouped into one PO and when we receive Goods Receipts (GR) for this PO, is there any way we can print the goods receipt note based on PR ?
I.e. Say 5 PR grouped into one PO and GR is posted and when we print the GR we need to print based on purchase requisition based, 5 print out.
We have the requirement were we don't want to post GR individually.
Appreciate if you can help me on this. Thanks.
Regards
AshwinHi,
As and when we create PO with reference to PR.. I think you will be knowing the Item lines of the materials from which PR it is been taken.
Then when creating a GR with respect to PO please enter the PO number with the line item number and then only the materials in that PR will be picked up while creating the GR.
You can make a reference in one of the fields the PR number and then you can even customise in your forms for the print out of the PR number also
Then you can configure for WE03 which is collective GR list and then when you print you will get the materials with respect to the PR only.
Hope this is helpful,
Thanks & Regards,
Kiran V
Edited by: Kiran. V on Apr 18, 2008 3:48 PM
Edited by: Kiran. V on Apr 18, 2008 3:49 PM -
I am trying to record tv shows on-line. I go to tv listings and click on a show but the 'record' and 'record series' buttons do not appear. I just installed FIOS 3 days ago with DVR service. Do I need to activate or register the DVR somewhere?
ThanksYes under the main menu, FiOS TV Remote DVR, Web Access.
-
Need to print report imediately
i need to print the report output immediately i am pasting some code which i am having problem , in job_open function module exporting parameters are gettting problem.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
mode = 'BATCH'
report = l_repid
IMPORTING
out_parameters = l_parms
valid = valid.
IF valid <> space.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = my_job.
SUBMIT l_repid VIA JOB 'MY_JOB' NUMBER jobcount TO SAP-SPOOL WITHOUT
SPOOL DYNPRO SPOOL PARAMETERS l_parms.
CALL FUNCTION 'JOB_CLOSE'.
ENDIF.
*Sending the print parameters to this.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = 'LP01'
IMPORTING
out_parameters = l_parms
valid = valid.
IF valid <> space.
NEW-PAGE PRINT ON PARAMETERS l_parms.
ENDIF.Hi!
*Sending the print parameters to this.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = 'LP01'
immediately = 'X' "<<< add this line - immediate print
NEW_LIST_ID = 'X' "<<< add this line - new spool request
IMPORTING
out_parameters = l_parms
valid = valid.
Regards
Tamá -
when I open up an e-mail attachment a box pops up PRINT TO FILE below that line OUTPUT FILE NAME with an empty line for the file name vs. simply going to my default printer?
Make sure that '''''Print to File''''' isn't selected in the native print dialog box ''(see screenshot below)'' middle-right, and make sure your Printer is selected at the top of that dialog box.
''I'm a little confused why an email attachment would need to go directly to the printer, but that's what you asked about.'' -
J4680 printing bottom half of some lines of print. What can be done?
HPJ4680 is printing only the bottom half of some lines. Can I correct this?
Hi @ReneePM,
Welcome to the HP Forums!
I noticed that your HP J4680 is printing bottom half of some lines of print. I am happy to help you with this printing issue!
For further assistance, I will need to know the following:
If you are using a Windows or Mac Operating System, and the version number. To find the exact version, visit this link. Whatsmyos.
If the printer is able to make copies.
If the power cable is plugged into a surge protector, or directly to the wall outlet. Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector. This applies to Inkjet printers as well.
Please see this post, Want Good Answers? Ask Good Questions, by @Bob_Headrick, so you can get the most out of these forums.
If you are using Windows please try the HP Print and Scan Doctor, and let me know what happens!
Thank you for posting, and hope to hear from you soon!
RnRMusicMan
I work on behalf of HP
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos Thumbs Up" to say “Thanks” for helping! -
Printing on Pre Printed Stationery and Bursting Extra Lines
Hi,
I am new to BI Publisher. I have managed to build a RTF template to print a check on a pre printed stationery (For Oracle Apps). There are two issues I have:
1. The check I need to print has the invoice lines on top repeated twice and the actual check at the bottom. The isse is when i print multiple invoice lines and it exceeds the section allocated for invoice lines, it pushes content down and my alignment is destroyed. What i need to do is once a certain number of lines are printed it should print the balance lines in a different file and continue the check as usual. I figured that bursting may be an option but most of the stuff on the internet points to pushing the content through email when bursting. Is there anyway to achieve this.
2. When displaying output in columns I want to achieve this in a table not using word colums
<Invoices Section>
c1 c2
Invoice Num - Amount Invoice Num Amount
1 10 4 10
2 9 5 9
3 20 6 34
<end Invoices Section>
Extral lines after the end of this section should go into a differnt file
Any help will be greatly appreciated. ThanksHi user953712,
1. Check format should use fixed row enumeration matched to the number of remittance lines per stub setup on the Payment Document in EBS.
2. "not using word columns"? I'd be using a table in Word. Is this a text based format? If so consider ETEXT.
"should go into a different file"? Sounds like bursting or some other mechanism.
Regards,
Gareth -
How to print the message in 2 lines?
How to print the message in 2 lines?
Here i am having it like this... MESSAGE i000(zm) WITH lv_uname.
here I want to print lv_uname in 2 lines because it lengthy one.
Thanks,
Sridhar.No man, itas not comming..I am using the below logic to print my message:
CONCATENATE text-I01 lv_printdate1 text-I02 INTO lv_printname
SEPARATED BY space.
MESSAGE i002(zm) WITH lv_printname.
its printing in a single line...
Maybe you are looking for
-
Could not save *.* because file is in use or was left open...
OK, I mentioned this when it happened with .eps files, and rather than get a single useful tip(Except for 'choose a new file name'), I got a series of responses from people telling me how I should be saving in .tiff and 'eps files aren't any good any
-
How to Include only a part of big JAR in my own JAR
i'm using AXIS soap functionality in my app, but the problem is that my own final jar file is as small as 700 KB and required for it AXIS.JAR takes about 2 MB. i'm using only a limited amount of classed from it, but the FACTORY classes loads them din
-
Steps to recod radio on my Zen V p
Hi, How do I record radio on my Zen V-Plus?I searched for the threads related to this subject but wasn't successful.Also what is Line-in recording and How do I exactly record music without using the PC?
-
How to load item level and location level member in demantra
This is in context where we are not using any integration of demantra with either Ebiz or E1 system. Data is present in flat file. As per i know, integration interface can only export the data for item level and location level but can not import data
-
Things that are tough/not possible in SAP WAD but can possible in BO Webi
Hi , I would like to collect some features or tasks that are tough to make in SAP Web application designer and those are now avilable in BO Webi or BO reporter. My main agenda is to collect some features where i could show that Bo webi is much more s